|
|
I want my pigment used as a function for an isosurface to correspond
with a pigment used as a texture. Here is the code. It's simple, I want
red groove :
light_source { <1,1,2>*10000 color rgb 1.4 parallel }
camera
{
location <2.5,1.7,9.5>
look_at <0,1.7,8>
}
#declare F_PilierEntree =
function
{
pigment
{
crackle
color_map
{
#local cc = 0.1;
[ cc-0.05 color rgb 0 ]
[ cc color rgb 1 ]
}
scale 0.1
}
}
#declare T_PilierEntree =
texture
{
pigment
{
function { F_PilierEntree(x,y,z).gray }
pigment_map
{
#local cc = 0.001;
[ cc color red 1 ]
[ cc color rgb 1 ]
}
}
}
isosurface
{
#local R = 0.15;
function { x*x + z*z - R*R - 0.002*F_PilierEntree(x,y,z).gray}
max_gradient 2.5
contained_by { box { <-1,0,-1>, <1,2.4,1> } }
translate <0,0,8>
texture { T_PilierEntree }
}
Thanks
--
ZeSly
http://perso.wanadoo.fr/zesly/
Post a reply to this message
|
|
|
|
> isosurface
> {
> #local R = 0.15;
> function { x*x + z*z - R*R - 0.002*F_PilierEntree(x,y,z).gray}
> max_gradient 2.5
> contained_by { box { <-1,0,-1>, <1,2.4,1> } }
> translate <0,0,8>
> texture { T_PilierEntree }
> }
gRRominet has found on irc : the translate must be under the texture.
Post a reply to this message
|
|