POV-Ray : Newsgroups : povray.general : Scaling macros? : Re: Scaling macros? Server Time
5 Nov 2024 01:22:47 EST (-0500)
  Re: Scaling macros?  
From: JC (Exether)
Date: 30 Jul 2003 04:59:39
Message: <3F2788FA.1050401@spam.fr>
Cool thread, it's always interesting to see how others handle common 
problems.
I use to define all my models in meters. And when it is not appropriate 
I define the object in centimeters for example and then I scale the 
whole model to meters. I do the same with models I get from outside.

JC

John VanSickle wrote:
> Let's say I design a scene using centimeters.  You design a model using
> meters, or some English unit.
> 
> Who would find a set of relatively automatic scale converters
> useful?
> 
> The way I envision them, the scene builder calls one macro early in
> the scene:
> 
>   ExpectMeters()
> 
> while the model maker calls another macro in their code:
> 
> union {
>   sphere { pHere,rSize }
>   // etc
> 
>   UseCentimeters()
> }
> 
> The two macros work together to make sure that the latter item is
> scaled properly (in this example, by 1/100).
> 
> Except for models using IK, the macros are pretty easy to do.  Any
> takers?
> 
> Regards,
> John
> 
> PS:  Pardon me if this has been done.


Post a reply to this message

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