POV-Ray : Newsgroups : povray.newusers : help me with color_map, texture_map, bump_map with image_map : Re: help me with color_map, texture_map, bump_map with image_map Server Time
29 Jul 2024 10:25:12 EDT (-0400)
  Re: help me with color_map, texture_map, bump_map with image_map  
From: Penelope20k
Date: 6 Feb 2006 07:15:01
Message: <web.43e73ca91fdf6da23a0167500@news.povray.org>
"Marc Jacquier" <jac### [at] wanadoofr> wrote:

> 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


thansk , thats what i was looking for ..


thanks for your help


Post a reply to this message

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