POV-Ray : Newsgroups : povray.general : Oject as Light Source : Re: Oject as Light Source Server Time
14 Aug 2024 01:23:25 EDT (-0400)
  Re: Oject as Light Source  
From: Roland Mas
Date: 11 Apr 1998 07:02:48
Message: <6gniko$r6v$1@melchior.cuivre.fr.eu.org>
Hello!

yan### [at] pacbellnet 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] casimirrezelenstfr -- Linux, POV-Ray, LaTeX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.