POV-Ray : Newsgroups : povray.newusers : color modulation in textures : Re: color modulation in textures Server Time
29 Jul 2024 18:23:04 EDT (-0400)
  Re: color modulation in textures  
From: Christoph Hormann
Date: 11 May 2005 14:00:01
Message: <d5th3g$8a6$1@chho.imagico.de>
tahoma wrote:
> 
> 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>

If you want to change the colors in an image map this should be done 
with an imaging program.  Mike also explained how you can do this 
internally (which is a good example for how POV-SDL can be used to do 
things it was never intended for).

> Furthermore i wondered why it is possible to define an ambient "reflection"
> as rgb but a diffuse and specular reflection just as scalar.

The ambient finish component in POV-Ray is a color, diffuse and specular 
are scalar.  This is explained in the manual.  So you can use:

finish {
   ambient <0.1, 0.2, 0.3>
}

to 'modulate' the ambient finish.  Note the color of specular highlights 
can be influenced with the 'metallic' keyword.  Apart from that you can 
also use layered textures to have more detailed control.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 03 May. 2005 _____./\/^>_*_<^\/\.______


Post a reply to this message

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