POV-Ray : Newsgroups : povray.tools.general : Chief Architect User : Re: Chief Architect User Server Time
24 Feb 2024 17:18:23 EST (-0500)
  Re: Chief Architect User  
From: Anthony D  Baye
Date: 2 Aug 2015 16:10:00
Message: <web.55be788250ae81842aaea5cb0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 16-6-2015 18:47, Jaime Vives Piqueres wrote:
> > [snip] The only glitch was that the exported files seem to have a
> > different coordinate system, and you may have to swap the Y and Z axes.
> > Try it and let me know if you have specific problems...
> >
> This sounds like a right-handed coordinate system like Moray. If that is
> correct, and also the mirroring effect is there, a little transform code
> can be added to the objects after export to POV-Ray :
>    scale <1, 1, -1>
>    rotate 90*x
> --
> Thomas

This is actually a lot of work for a very simple operation. All you really need
to do is negate the right vector in the camera, thusly:

camera {
    location POS
    up y
    right -x*(image_height/image_width)
    look_at TGT

where POS and TGT are the position and focal points.  Make sure your camera is
pointed in the -z direction, and presto-chango: right-handed coords.

Source: Documentation


Post a reply to this message

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