|
![](/i/fill.gif) |
What I meant was, to go with your example:
#declare SunDistance = <0, 0, 5> //arbitrary units of course :)
#declare SunPosition = vrotate (Sundistance, <-Al, Az, 0>)
light_source {SunPosition color something}
#declare effect_location = SunPosition
-Mike
ingo wrote:
>
> Mike heeft geschreven in bericht <367B737F.1F700759@aol.com>...
> >You could #declare the variables you use for the sun postition and then
> >use that anywhere you want.
>
> I don't think that is what Istvan is looking for. The problem, as I
> understand it, is how to go from
>
> light_source {
> <0,0,0>
> translate <0, 0, SunDistance>
> rotate <-Al, Az, 0>
> }
>
> to an exact position: light_source {<x,y,z>}.
>
> Although I've put together the sunpos.inc (I needed it badly) my math is not
> as good as it has never been before
>
> Sorry I cant help you on this, maybe someone else?
>
> ingo
Post a reply to this message
|
![](/i/fill.gif) |