POV-Ray : Newsgroups : povray.advanced-users : Tranformation matrix to change coordinate spaces : Re: Tranformation matrix to change coordinate spaces Server Time
6 May 2024 07:45:11 EDT (-0400)
  Re: Tranformation matrix to change coordinate spaces  
From: Rune
Date: 11 May 2001 06:32:22
Message: <3afbbfb6@news.povray.org>
"Peter Popov" wrote:
> Can anyone (John? Please :) ) show me how to find a matrix that
> changes from one coordinate space (A0, Ax, Ay, Az) to another (A0',
> Ax', Ay', Az')? I found some info on the Net but I have problems
> finding the signs of the angles involved and it will probably be
> slower than some things I recall seeing here.

Do you need access the matrix itself or do you just need a transformation
that works?

If the latter, and if you use MegaPov, you can use:

transform {Coordinate_space1_matrix inverse}
transform {Coordinate_space2_matrix}

This is untested code, but I think it was something like that.

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated May 10)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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