|
|
Hi, hope someone can help
I've modeled a bowl using sPatch and exported it in POV format. (it uses
'bicubic_patch'es)
I modified the file produced to use #declare to name the union object.
I then use
object { tray
texture { T_Silver_5B }
}
and render.
Lovely...
except that when I shine a blue spotlight at the bowl from underneath
and place the camera on top, I see the floor of the bowl is blue (and
shows a shadow from a pipe placed beneath the bowl)
camera
|
V
Bowl
pipe
^
|
light
If I put the camera underneath, and look up, the floor of the bowl looks
the same.
I've sent some small (10k each) images.
Am I doing something wrong here?
Why can I see through my bowl?
David
PS For those who helped with the bendy pipes - here they are :)
Post a reply to this message
Attachments:
Download 'above.jpg' (12 KB)
Download 'below.jpg' (12 KB)
Preview of image 'above.jpg'
Preview of image 'below.jpg'
|
|
|
|
Johannes Hubert wrote:
>
> David Greaves wrote in message <36138CC4.6E8891E4@telekinesys.co.uk>...
>
> >The top picture has the problem.
> >How can I see the floor of the bowl?
> >There should be *no* light illuminating this surface at all!!
>
> Not really. Only if the texture has an ambient value of 0.0 in its finish
> (which the silver texture doesn't, I assume), wouldn't you see anything. See
> "ambient" in the docs.
>
> About the strange shadow/reflection: I don't know...
>
> Johannes.
This sounds a lot like the problem mentioned in my earlier posting
"Re: Tranlucency and bicubic patches".
In my sample code, I specifically made the ambient 0.0, and there
was no reflection value given (I assume the default is reflection 0?).
I tried to keep it as simple as possible, to eliminate the most likely
sources of wierdness:
#declare myPatch = bicubic_patch {
type 1
flatness 0.01
u_steps 3
v_steps 3
<0, 3, 1.0> <1, 2.5, 1.0> <2, 2.5, 1.0> <3, 3, 1.0>
<0, 2, -0.5> <1, 2.0, -0.5> <2, 2.0, -0.5> <3, 2, -0.5>
<0, 1, 0.0> <1, 1.0, 1.0> <2, 1.0, 1.0> <3, 1, 1.0>
<0, 0, 2.0> <1, 0.5, 2.0> <2, 0.5, 2.0> <3, 0, 2.0>
translate <-1.5, -1.5, 0>
texture {
pigment {color red 1 filter 0}
finish {phong 1 phong_size 100 ambient 0 diffuse 0.9}
}
}
use a single light_source, just above the mid point between the camera
and patch object, and have a look at it from several angles.
Lights and shadows are visible on the "wrong" sides of bicubic patches,
it seems, in both Mac and Win versions. Other things like clipped
objects
and discs don't display this feature/bug.
-jr-
Post a reply to this message
|
|