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: 24 Jul 2008 07:02:27 GMT
  Re: Adding transparency to several objects after they've been defined  
From: Jan Dvorak
Date: 17 Jan 2008 15:44:47
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 1991-2004 POV-Team™