Hi Joseph,
osg::Node* pLoadedModel =
osgDB::readNodeFile("C:\\Programme\\ADTF\\2.1.1\\lib\\OpenSceneGraph-2.6
.1\\bin\\tour.obj" );
I think using forward slashes instead (which don't need to be escaped)
would work as well.
Yep, and keeps visual clutter to a minimum:
osg::Node* pLoadedModel =
osgDB::readNodeFile(
"C:/Programme/ADTF/2.1.1/lib/OpenSceneGraph-2.6.1/bin/tour.obj" );
Of course make sure your model is really there (with that absolute
path). A bare-minimum test would be to run osgviewer with your model
file like this:
osgviewer
"C:/Programme/ADTF/2.1.1/lib/OpenSceneGraph-2.6.1/bin/tour.obj"
(on the same line)
If that loads up your model then you should be able to use the same
absolute path. Of course, using absolute paths hard-coded in a real
program is a bad idea, you should probably use config files and relative
paths, and / or add paths to the osgDB file path...
This also applies to the question you posted about reading a JPEG image
file. You need to escape backslashes or use slashes, and make sure the
image is where your program expects it to be.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org