Hi, I'm trying to figure out how to use .obj files with their corresponding .mtl file. I use osgDB::ReadNodeFile to load the model. My questions are:
- Is the .mtl file and the textures of the model automatically loaded ? - How can I send and access the textures in a GLSL shader with a version greater or equal to 330 ? Do I have to send manually the textures or are there some OSG "built-ins" like the matrices' ones (osg_ModelViewMatrix, ...) ? Can you please post a minimal code doing this or redirect me to a tutorial. Thank you! Cheers, Khazyo ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59628#59628 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org