[osg-users] Loading files and ignore texture images
Chris 'Xenon' Hanson
xenon at alphapixel.com
Sat Nov 21 22:46:23 PST 2009
Maik Stange wrote:
> 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.
I think you could install a Read File Callback and just ignore/fail the loading of the
texture images.
> Cheers,
> Maik
--
Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen
More information about the osg-users
mailing list