|
![](/i/fill.gif) |
I started with povray some days ago to convert some realtime scenes to
povray files. After reading the documentation again and again i wondered if
it would be possible to define materials or textures just like in OpenGL,
3dsMax and so on.
E.g. the modulation of an image_map color with a constant color:
pigment = <image_map[u,v].red * color.red, image_map[u,v].green *
color.green, image_map[u,v].blue * color.blue>
Furthermore i wondered why it is possible to define an ambient "reflection"
as rgb but a diffuse and specular reflection just as scalar. If it would be
possible i would not need to modulate the image_map anymore.
Are there any workarounds to do that?
I want to use the commonly used lighting equation:
Result = Ambient(rgb) +
DiffuseMap(rgb)*DiffuseReflection(rgb)*DiffuseCoefficient(scalar) +
SpecularMap(rgb)*SpecularReflection(rgb)*SpecularCoefficient(scalar)
Thanks,
Jan
Post a reply to this message
|
![](/i/fill.gif) |