POV-Ray : Newsgroups : povray.binaries.images : Ball of Random Boxes : Re: Ball of Random Boxes Server Time
7 Aug 2024 11:21:51 EDT (-0400)
  Re: Ball of Random Boxes  
From: Jaap
Date: 25 May 2006 06:00:01
Message: <web.44757feaa72e66f4a8399d8d0@news.povray.org>
"Mark Birch" <las### [at] hotmailcom> wrote:
> I've never used a matrix transformation.  I don't know how it works.

basically, it's 3 vectors that define the "new" x,y and z. if you make sure
that
the new x y and z are still perpendicular and have a length of one, it's
just a rotation. The remaining 3 numbers in a transformation matrix is just
a translation vector. Internally povray uses matrices also. The big
advantage is that it's very simple (and fast!) to combine and use
transformations.

the matrix transformation in povray is very useful if your data is already
in matrix form because it's exported form some other 3D program/simulation.
you can even position a povray camera using a matrix.
I used it to render some ODE simulations in povray:
http://news.povray.org/povray.binaries.animations/thread/%3Cweb.443593c62b28687ba8399d8d0%40news.povray.org%3E/?mtop=22
6348&moff=10
you will have make some of the values in the matrix negative, because povray
and ODE use different left/right-hand coordinate systems. also, everyone
seems to store and write the numbers of the matrix in a different way :-)
starting top-down or left-to-right.


Post a reply to this message

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