POV-Ray : Newsgroups : povray.off-topic : Flipping a quaternion : Re: Flipping a quaternion Server Time
5 Sep 2024 09:23:19 EDT (-0400)
  Re: Flipping a quaternion  
From: clipka
Date: 14 Aug 2009 23:50:25
Message: <4a863081$1@news.povray.org>
c schrieb:
> I'm trying to export data from Blender.
> If you have ever used Blender you will see that the Y axis is pointing 
> forward and the Z axis is pointing up.
> 
> My problem is that I need to flip everything so that the Y axis is up 
> and the Z axis is forward, so basically swapping the two.

If all else fails, you can always use a rotate about the X axis by 90 
degrees, followed by a scale by <1,-1,1> to flip direction of the 
then-up Y axis.

Or just export the whole scene to use a fitting coordinate model, by 
defining appropriate up/right/direction and sky vectors in the camera 
statement.


Post a reply to this message

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