POV-Ray : Newsgroups : povray.general : Coordinates baking in pov : Re: Coordinates baking in pov Server Time
31 Jul 2024 00:21:26 EDT (-0400)
  Re: Coordinates baking in pov  
From: H  Karsten
Date: 18 Feb 2008 09:10:01
Message: <web.47b990ec6961e077f8a489ba0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> H. Karsten <h-karsten()web.de> wrote:
> > I need to write a file, with contains the absolute position and rotation of
> > these objects.
>
>   Define a vector (let's call it L for short) which contains the location
> of the unmodified object, and another (O) which contains its orientation.
>
>   Each time you translate the object, add the translation vector to L.
> Each time you rotate the object, apply the same rotation to both L and O
> using vrotate(). Each time you scale the object, multiply L with the
> scaling factor (even if it's uneven scaling using a vector as factor).
>
> --
>                                                           - Warp

A question to vrotate:

When I'm rotate an object, I have to do this in a right order:

 rotate <rrx,0,0>/power
 rotate <0,0,rrz>/power
 rotate <0,rry,0>/power

This is absolute necessary!

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

-holger-


Post a reply to this message

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