Hello Oren, oren david wrote: > I've a mesh onject I've build from a .STL file. how do I get it colored > using a gradient colors?? and how do I specify which color I want in the > gradient ( I dont want all the range between blue and red).
The STL loader creates a Geometry with per-primitive (triangles) colours and no texture coordinates (not available in STL). You could use a fragment shader to assign colours based on world coordinate. Or use a 1D gradient texture and (probably object-linear) TexGen to create texture coordinates. Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

