POV-Ray : Newsgroups : povray.general : Coordinates baking in pov : Re: Coordinates baking in pov Server Time
31 Jul 2024 00:22:36 EDT (-0400)
  Re: Coordinates baking in pov  
From: Nicolas Alvarez
Date: 18 Feb 2008 09:37:23
Message: <47b99823$1@news.povray.org>

> Just by adding the values would give me the wrong result. vrotate gives the
> right result?
> 

Do three vrotate calls.

#declare A = vrotate(A, x*rrx/power);
#declare A = vrotate(A, z*rrz/power);
#declare A = vrotate(A, y*rry/power);

In fact, you could do this too:

#declare A = vrotate(A, <rrx, 0, rrz>/power);
#declare A = vrotate(A, < 0, rry, 0 >/power);


Post a reply to this message

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