|
![](/i/fill.gif) |
Le_Forgeron <jgr### [at] free fr> 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
|
![](/i/fill.gif) |