|
![](/i/fill.gif) |
"CShake" <cshake+pov### [at] gmail com> schreef in bericht
news:4ad67654$1@news.povray.org...
>
> I was hoping this would work since it's almost exactly what I want, but I
> get the error "Cannot layer over a patterned texture", which I assume
> comes from having an image_map.
> On to try Christian's method now.
>
>
No. Image_maps work fine with layered textures as Poseray (for instance)
shows clearly. The error must come from something else.
Here is an example texture as Poseray generates:
//===start code===
#declare p_map6=pigment {image_map{png "MyImage.png" interpolate 2 transmit
all 0 filter all 0.21} }
#declare LeftEyeWhite_1_=
material{
texture{ pigment {color rgb <0.79,0.79,0.79> transmit 0}
finish{specular 0 roughness 1 ambient rgb <0.00,0.00,0.00> diffuse
0.8 reflection{0} conserve_energy}}
texture{ pigment{uv_mapping p_map6}
finish{specular 0.04266667 roughness 0.01484519 ambient rgb
<0.00,0.00,0.00> diffuse 0.8 reflection{0 } conserve_energy}}
}
//===end code===
material{} is not strictly necessary for layering. Note also that here the
image_map p_map6 is on top, which is possible as it has some filter. In the
same way, you can inverse the textures, providing some filter or transmit to
the top pigment.
Hope this helps.
Thomas
Post a reply to this message
|
![](/i/fill.gif) |