POV-Ray : Newsgroups : moray.win : Easy conversion from POV to Moray??? : Re: Easy conversion from POV to Moray??? Server Time
29 Jul 2024 00:33:53 EDT (-0400)
  Re: Easy conversion from POV to Moray???  
From: Charles
Date: 23 Sep 1999 20:00:51
Message: <37EABF89.B5327AC1@enter.net>
/*LHC -> RHC conversion*/ rotate 90*x scale <1,-1,1>

Apply the above to any object you want to convert to the right handed
coordinate system used by Moray. That rotates so the Y/Z are flipped
but this puts the "Y" pointing the the wrong direction, so the scale
with a -1 in Y fixes that, effectively mirroring it "backside-front".

Incidentally, if you ever needed to do the opposite (for some 
reason! <g>)the inverse operation is just...

/*RHC -> LHC conversion*/ rotate -90*x  scale <1,1,-1>


Charles
-- 
http://www.enter.net/~cfusner
"...Then darkness took me, and I strayed out of thought and time,
 and I wandered far on roads that I will not tell..." 
                              -The Two Towers, JRR Tolkien


Post a reply to this message

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