Thomas de Groot wrote:
> When using a transparency map instead of using the alpha channel, the code
> in Poseray should then also be as follows (note the place of uv_mapping)
> e.g.:
>
> //Material definitions
> #declare MyTexTex__opaque=
> texture {
> uv_mapping
> pigment { p_map1}
> normal {MyNormal}
> finish {MyFinish}
> }
> #declare MyTexTex_=
> material {
> texture {
> uv_mapping
> pigment_pattern { p_map2}
> texture_map {
> [0 MyTex__opaque]
> [1 pigment {Clear}]
> }
> }
> }
As a side note, usually I do use a construct like this:
#local MyTexTex_opaque =
texture {
uv_mapping
pigment { p_map1}
normal {MyNormal}
finish {MyFinish}
}
#local MyTexTex_trans =
texture {
uv_mapping
pigment { p_map1 transmit 1}
normal {MyNormal}
finish {MyFinishButWithoutAnySpecularPhongAndReflection}
}
#declare MyTexTex_=
material {
texture {
uv_mapping
pigment_pattern { p_map2}
texture_map {
[0 MyTex_opaque]
[1 MyTex_trans]
}
}
}
This does not make *much* of a difference but occasionally for closeup
shots and things like lace pattern or trans-mapped hair it looks better.
-Ive
Post a reply to this message
|