POV-Ray : Newsgroups : povray.newusers : Adding transparency to several objects after they've been defined : Re: Adding transparency to several objects after they've been defined Server Time
28 Jul 2024 18:14:18 EDT (-0400)
  Re: Adding transparency to several objects after they've been defined  
From: Jan Dvorak
Date: 17 Jan 2008 10:44:47
Message: <478f77ef$1@news.povray.org>
Josh VW napsal(a):
> Hi Chris,
>   Thanks for the suggestion - it definitely pointed me in the right direction.
> Here's what I ended up doing, in case anyone else has the same problem.  I put
> my texture declarations inside a macro which I could call to switch on and off
> transparency.  By being inside a macro, they are evaluated at runtime and not
> compile time (in my way of thinking), so I can switch textures on the fly.
> Here's the whole test file:

Actually it's just that macros are only parsed if and anytime it is 
used. Pigments are evaluated when the parser meets them (actually you 
can define a pigment inside a macro if you know what you are doing)


Post a reply to this message

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