Brad Huber wrote:
Does anyone know of a good way to modify pixels in a texture at
runtime w OSG?
Basically I’m looking for a way for the user to select an arbitrary
color to be used on an airplane or similar. EG ability to switch to
any color as in the attached image.
I’m hoping to stay away from shaders. Thanks in advance for any insight.
The simplest way would be to use a Material on the geometry, allowing
the user to modify the Diffuse color. Then, you could apply a
gray-scale texture in MODULATE mode to try and add a little detail.
A more complex possibility would be to play with a TexEnvCombine. There
are a lot of potential options there, including blending a texture with
the overall environment color.
I know you're hoping to steer clear of them, but a shader would be the
most flexible method by far.
--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org