"Nagore Barrena" writes:
> Hi,
>
> I'm working in Windows XP with Osg-2.8.2. I use Catia to generate my 3d
> models. The only possibility to save the model in Catia and then to load it
> right in osg is to save the model in .stl extension. But
> when I save the model using this extension the model loses the colour,
> transforming into a grey model.
>
> I load the 3d model using osgDB::readNodeFile() method:
> modelNode = osgDB::readNodeFile("model.stl");
>
> Do you know how I can add custom colours to the model using OSG methods?
>
You can assign a StateSet in the code with a material definition which
overrides the colour of the model.
Or you can import the file in Blender, fine tune the material definition
for the object, save it into OBJ format and open it into OSG.
--
Alberto
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org