|
|
Hi,
I have a cylinder (open, hollow) that has a PNG graphic file as texture. That
image consist only of white dots (blurred edges) and the rest is transparent,
and I want to simulate light speed (or a wormhole travel, whatever).
The texture moves along that cylinder.
Outside of that cylinder is another one with a color_map (red to white to blue).
QUESTION
How can I achieve that of that PNG texture only the white color allows a part of
the outside color_map can shine through? "Filter" and "transmit" seem to be
rejected when using an image. Any idea?
SCENE SOURCE CODE
#declare Warp = texture
{
pigment
{
image_map
{
png "Warp - 001.png"
map_type 1
interpolate 2
}
rotate < 0.0, 0.0, 90.0 > //
rotate < 0.0, 90.0, 0.0 > //
scale < 10000.0, 10000.0, 10000000.0 >
translate < 0.0, 0.0, (50000.0*clock) >
}
finish { ambient 1.0 }
}
#declare LightShift = texture
{
pigment
{
gradient z
color_map
{
[ 0.0 pigment Blue ]
[ 0.5 pigment White ]
[ 1.0 pigment Red ]
}
scale < 1.0, 1.0, 1000000.0 >
}
finish { ambient 1.0 }
}
background { Black }
cylinder // Warp
{
< 0.0, 0.0, -1000000.0 > < 0.0, 0.0, 1000000.0 > 10000.0
hollow
open
texture { Warp }
}
cylinder // Warp Light Shift
{
< 0.0, 0.0, -1000000.0 > < 0.0, 0.0, 1000000.0 > 10000.01
hollow
open
texture { LightShift }
}
Post a reply to this message
|
|