POV-Ray : Newsgroups : povray.general : POV-Ray Includes - Standards : Re: POV-Ray Includes - Standards Server Time
31 Jul 2024 22:18:15 EDT (-0400)
  Re: POV-Ray Includes - Standards  
From: Chris B
Date: 19 Dec 2006 12:26:36
Message: <458820cc$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:45881636@news.povray.org...
>
>  Btw, there's one thing to consider when predeclaring an object which is
>  later to be scaled:
>  Media density is not scaled with the object.
>
>  ... snip ...
>
>  One possible solution to this is to make such objects #macros, one of
> which parameters is the desired scale of the object. The macro will then
> inversely scale the density of the media.
>
> ... snip ...
>
>                                                          - Warp

That's something I wasn't aware of, but I have come across another situation 
where scaling, rotating or translating a generated object was problematic 
and ended up having to 'tell' the macro about any transformation that was 
going to be applied so that it could take account of it during the 
generation of the object (using an inverse of the transformation).

I think we should build such examples into part of a tutorial on how to make 
objects reusable.

Regards,
Chris B.


Post a reply to this message

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