POV-Ray : Newsgroups : povray.pov4.discussion.general : A false projection matrix!!!! : Re: A false projection matrix!!!! Server Time
26 Apr 2024 00:19:57 EDT (-0400)
  Re: A false projection matrix!!!!  
From: Simon Copar
Date: 20 Mar 2013 22:00:01
Message: <web.514a68bf3457eecef42173100@news.povray.org>
Povray executes the transformations in the order they are specified. Therefore,
your code transforms THE CAMERA first by rotating by 20 DEGREES around x, THEN
-45 DEGREES around y, then translate. Of course, transforming the camera is
inverse of transforming the object. So, if you are transforming the cube, you
first do the translation in reverse, then the rotations in reverse (basically,
matrix inverse).

> R=Transpose[Rx,Ry,Rz].

What syntax is that? Shouldn't this be Rz*Ry*Rx?

I hope this helps.


Post a reply to this message

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