|
![](/i/fill.gif) |
Hello!
yan### [at] pacbell net wrote:
> I have declared a sphere as an object, with a position.
> I have a light_source with a position.
Alright. (I guess you use a looks_like statement.)
> When rendered, the object's position is always the sum of
> the two positions, but the light always seems to come from
> the position of the light_source alone.
Of course it does! Where do you want it to come from?
> In the example below, you can see the light is coming from the position of
> light_source.
> Change the positions around, and see if what I say isn't true.
> Can someone explain this?
> Isn't the light supposed to come from the object?
No. The documentation (section 7.5.6.6) explains it all. The phrase
"position of the object" has no meaning: what is the "position" of a union
of a cube and a sphere? It cannot be assigned a unique meaning. So, you just
have to calculate the place you put your object in relation to the position
of the light_source, presumably around <0,0,0> so that the light_source is
in the object.
> --
> Alan
Roland.
--
bob### [at] casimir rezel enst fr -- Linux, POV-Ray, LaTeX
Post a reply to this message
|
![](/i/fill.gif) |