Ah! thanks Stephan (and Len) for the follow up & explanation. 
Now I get it.


Cheers,
Ted


<snip>
+ Resources
   - cow.osg
   + aSampleFolder
     - dumptruck.osg

You can use the copy-files build-phase of xcode to copy the various
files to their correct locations.

So, to get the path to cow.osg, all you need to do is:

{
   std::string file = osgDB::findDataFile("cow.osg");
   osg::Node* node = osgDB::readNodeFile(file);
}

{
   std::string file = osgDB::findDataFile("aSampleFolder/dumptruck.osg");
   osg::Node* node = osgDB::readNodeFile(file);
}

<snip>

...

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35284#35284





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to