POV-Ray : Newsgroups : povray.advanced-users : matrix extraction from transformation : Re: matrix extraction from transformation Server Time
29 Jul 2024 16:23:07 EDT (-0400)
  Re: matrix extraction from transformation  
From: Thorsten Froehlich
Date: 9 Nov 2001 06:00:13
Message: <3bebb73d$1@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> How can I extract components of matrix from Transform identifier ? At source
> level it is easy and I can patch it easy to get array from transform. But with
> 3.5 I have no sources so I have to extract it with manipulation. I suppose
> taking some unit vectors and read it after this transformation I can achive
> components on transformation matrix. It could be simple when it could be only
> translation and scale. But I think about universal macro with transform as
> parameter and array[4][3] as result. Should I resolve as many equations as it
> contain? What is the shortest way? Anybody have ready solution or should I
> fight with it?

Do the reverse:  Have an array keep your matrix components and use a macro
to turn it into a transform block when needed.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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