[osg-users] Loading files and ignore texture images

Maik Stange maik.stange at numenus.de
Fri Nov 20 09:40:03 PST 2009


I have a problem with loading files without  the assigned textures.
osg is working perfect in loading the e.g. an .obj file with its assigned textures by:
osg::ref_ptr<osg::Node> rootNode = osgDB::readNodeFile(filename);

After that I'm able to parse the node and get all the vertex, normal, etc. information I need. Also the image data of textures is available, but that is the thing I don't want. I want to load image files with my own code.

Is there a way to ignore loading image files in the readNodeFile part?
When parsing the node i only need the info that there is a texture and its path and filename to load it in my code.

Thank you!


Read this topic online here:

More information about the osg-users mailing list