POV-Ray : Newsgroups : povray.binaries.images : Another feather : Re: Another feather Server Time
5 Nov 2024 06:21:07 EST (-0500)
  Re: Another feather  
From: Charles C
Date: 5 Nov 2007 01:11:03
Message: <472eb3f7@news.povray.org>
alphaQuad wrote:
> Would like to see all of this script. But the reason for my post is to request
> the transparent colored material used on the axis.
> 
> I may have a use for this material as seen here.
> 
> 


It's nothing fancy.  Really.  Case #2:

  #switch (Ref_Axis_Textype)
  #case (1) //SOLID:
          #local Xtex = texture{ pigment{rgb x} }
          #local Ytex = texture{ pigment{rgb y} }
          #local Ztex = texture{ pigment{rgb z} }
  #break
  #case (2) //TRANSPARENT:
          #local Xtex = texture{ pigment{rgbt <1,0,0,.7>} finish{ambient 
0} }
          #local Ytex = texture{ pigment{rgbt <0,1,0,.7>} finish{ambient 
0} }
          #local Ztex = texture{ pigment{rgbt <0,0,1,.7>} finish{ambient 
0} }
  #break
  #case (3) //TRANSPARENT 0 diffuse, with ambience:
          #local Xtex = texture{ pigment{rgbt <1,0,0,.7>} finish{diffuse 
0 ambient .5} }
          #local Ytex = texture{ pigment{rgbt <0,1,0,.7>} finish{diffuse 
0 ambient .5} }
          #local Ztex = texture{ pigment{rgbt <0,0,1,.7>} finish{diffuse 
0 ambient .5} }
  #end //end #switch (Ref_Axis_Textype)


Post a reply to this message

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