POV-Ray : Newsgroups : povray.general : merged (or nested) gradients : merged (or nested) gradients Server Time
1 Aug 2024 18:24:22 EDT (-0400)
  merged (or nested) gradients  
From: Steely
Date: 8 Jun 2005 11:45:00
Message: <web.42a71116fa3631b1e973d3470@news.povray.org>
Hello.

I am stuck over this :-( and any help will save my life! I need a texture
that extends along one axis with a varying transparency along another axis.
For example:

cylinder { 0*y 3*y 1
           pigment { gradient x
                     color map { [ 0.3 Red]
                                 [ 0.5 White]
                                 [ 0.7 Blue] ... and so on.

This should be merged with something like

gradient y {
            [ 0 transmit 0.5 ]
            [ 1 transmit 1.0 ]

So, the desired result is a cylinder with the colour bands along x, but
increasing transparency along y - the cylinder "disappears" at the top.

First, I expected it should be easy to get this, but meanwhile I tried
EVERYthing I could think of, with no luck. I am still sure that it should
be possible with two lines of code, and that I am -as many times- too
close to see it.

Thanks for any hint

S.


Post a reply to this message

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