POV-Ray : Newsgroups : povray.general : Finding exact position after translating and rotating... : Re: Finding exact position after translating and rotating... Server Time
12 Aug 2024 23:17:34 EDT (-0400)
  Re: Finding exact position after translating and rotating...  
From: Mike
Date: 18 Dec 1998 23:33:40
Message: <367BC732.B45C2276@aol.com>
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

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