POV-Ray : Newsgroups : povray.general : Convert translate/rotate list to single translate/rotate-Statement : Re: Convert translate/rotate list to single translate/rotate-Statement Server Time
29 Jul 2024 00:27:35 EDT (-0400)
  Re: Convert translate/rotate list to single translate/rotate-Statement  
From: Juergen
Date: 7 Dec 2013 14:30:00
Message: <web.52a3763a146379bfa1cf996b0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 07/12/2013 18:24, Juergen nous fit lire :
>
> Do you need to know the t* & r*, or just to have them available as a
> transform for your macro ?
>
> Look around
> http://wiki.povray.org/content/Documentation:Tutorial_Section_2.2#Matrix
>
> If you really need t* & r*, then you need to learn how to transform each
> operation as a weighted 4D matrix, multiply them in order and interpret
> it (if possible) to extract r* & t*.
>
> But I doubt it would be possible.
> (The single transform with a single 4D matrix is no problem, but it
> seldom turn to be only a translate+rotate )

Currently I need the concret values for the translate ans rotate.

The actual situation is, that I've two macros

AnimTranslate(arVertics, vTrans)  and  AnimRotate(arVertics, vRot)

to modity the mesh. arVertics ist an array with the vertics ofthe mesh.
AnimTranslate() simply adds the offset to each vector, AnimRotate() internally
uses "vrotate" to make the rotation.


Post a reply to this message

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