POV-Ray : Newsgroups : povray.newusers : color modulation in textures : color modulation in textures Server Time
29 Jul 2024 18:26:33 EDT (-0400)
  color modulation in textures  
From: tahoma
Date: 11 May 2005 10:00:00
Message: <web.42820fb76e48ea57d1428acf0@news.povray.org>
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

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