POV-Ray : Newsgroups : povray.general : Feature suggestion: coordinate conversion built into POV-Ray. : Re: Feature suggestion: coordinate conversion built into POV-Ray. Server Time
1 Aug 2024 16:25:54 EDT (-0400)
  Re: Feature suggestion: coordinate conversion built into POV-Ray.  
From: Rune
Date: 4 Aug 2005 16:51:14
Message: <42f27fc2$1@news.povray.org>
Allen wrote:
> // Include an external mesh object
> #coordinates x=x, y=y, z=-z
> #include "myobject.inc"
> #coordinates off

> The idea is that POV-Ray would load the objects in memory, and at
> parse time, automatically fix any coordinates based on the settings.

How "fix any coordinates"?

What should this:

sphere {<1,1,-1> scale <1,1,-1>}

be fixed to with this setting:

#coordinates x=x, y=y, z=-z

?

I think what you want can easily be done by applying a transform to your 
poorly exported object like this:

object {MyObject matrix<1,0,0,0,1,0,0,0,-1,0,0,0>} // x=x, y=y, z=-z

object {MyObject2 matrix<1,0,0,0,0,1,0,1,0,0,0,0>} // x=x, y=z, z=y

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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