|
![](/i/fill.gif) |
news:web.43e23f20c23a6d944fdbe430@news.povray.org...
> I will enjoy if you can help me on this little problem
>
> In fact i don't know how to order my texture with, color_map etc..
>
>
> I would like to create some kind of grid, for that i have created a
template
> ( called test_ch.jpg) which is the looking of my grid (black & white
> picture)
> in my texture i would like that the color 0 (white there) will be fully
> transparent, and that all other color (grey and black) will be bump with
the
> color 'cu_rouille.jpg' image (which is a complete image with details)..
>
> How can i do this?
>
> Well, i still have the possibility to compute that 2 images to create only
> one, but i m still stack for assigning to the color 0 the transparency
> require ...
>
>
> Thanks for answering ..
>
You could try image_pattern which is a very usefull feature (as well as
pigment_pattern)
The following code could do the trick
#declare T_transparent= texture{pigment{color rgbt 1}}
#declare T_rouille = texture {pigment {image_map {"cu_rouille.jpg"
interpolate 4}}}
#declare T_grille= texture {
image_pattern
{
jpg "test_ch.jpg"
}
texture_map
{
[0.0 T_transparent]
[1.0 T_rouille]
}
}
//Marc
Post a reply to this message
|
![](/i/fill.gif) |