|
 |
Thomas de Groot <tho### [at] degroot org> 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 {
perspective
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 2.3.1.1.7
http://www.povray.org/documentation/view/3.7.0/246/
Regards,
A.D.B.
Post a reply to this message
|
 |