POV-Ray : Newsgroups : povray.general : Global handedness setting? : Re: Global handedness setting? Server Time
26 Apr 2024 17:28:21 EDT (-0400)
  Re: Global handedness setting?  
From: Stephen
Date: 22 Sep 2018 11:55:24
Message: <5ba665ec$1@news.povray.org>
On 22/09/2018 11:36, Mike Horvath wrote:
> On 9/22/2018 4:27 AM, Stephen wrote:
>> On 22/09/2018 06:41, Mike Horvath wrote:
>>> Is there a way to change the handedness of a scene? I am doing a lot 
>>> of astronomy calculations, and they are all right handed.
>>>
>>
>> You could put all that Matrix maths in the Bezier-patch torus thread 
>> to use.
>>
>> http://www.techart3d.com/2016/02/convert-left-handed-to-right-handed-coordinates/ 
>>
> 
> What would I need to do for astronomy maths? In the equations I am using 
> the Z and Y axes are switched.
> 
> Also, how do I multiply matrix transforms in POV-Ray?
> 
> 

I might be able to help from a practical view. Blender uses the Y-up 
coord system.
Here is the output of a uv mapped mesh2 sphere, declared as DATASphere

object {
     DATASphere
     matrix <1.000000, 0.000000, 0.000000,  0.000000, -0.000000, 
-1.000000,  0.000000, 1.000000, -0.000000,  0.000000, 0.000000, 0.000000>

}

But you would either have to transform them individually or put them in 
a union and transform that.


-- 

Regards
     Stephen


Post a reply to this message

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