POV-Ray : Newsgroups : povray.advanced-users : Modifying the coordinate system in POV-Ray : Re: Modifying the coordinate system in POV-Ray Server Time
2 Jul 2024 19:40:53 EDT (-0400)
  Re: Modifying the coordinate system in POV-Ray  
From: Alain
Date: 18 Aug 2009 18:09:05
Message: <4a8b2681$1@news.povray.org>

> Okay.. here is what I'm trying to do. I'm trying to scale the height field to
> make the default unit for the coordinate system to be 1 meter. So let's say for
> simplicity that the 1 regular unit in POV-Ray is being scaled by about 1000. The
> goal is to be able to use actual distances and sizes for translating and scaling
> objects on the height field.
> 
> Now when initializing the height field and scaling it everything seems to work
> fine. However, scaling and translating objects or moving a camera works
> according to the original units, i.e. 1 unit along an axis corresponds to the
> new 1000 correspondence of the height field. So using translate 1 moves a huge
> distance rather than just moving 1 meter. Is there a recommended way to achieve
> this objective?
> 
> 
> 
> 
In POV-Ray, one unit is whatever you want it to be.

You apply your scaling to the hight field. You scale it by 1000 
horizontaly and 100 verticaly. You decide that 1 unit = 1m.

You next model and locate your objects acording to that scale. You DON'T 
scale from that point on.

One thing that you must remember: Don't scale after you translate your 
objects.


Alain


Post a reply to this message

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