Hi Robert,

On 8/02/11 8:41 , Robert Pardridge wrote:
> The problem is I get back a null pointer for options after using this:
> 
> osgDB::ReaderWriter::Options* options 
> =osgDB::Registry::instance()->getOptions();

The Registry doesn't create a default object, but it can store it and pass it 
on for you.

osgDB::Options* options = new osgDB::Options;
options->setOptionString("foo=bar");

Then either:
osgDB::Registry::instance()->setOptions(options);
osg::Node* node = osgDB::readNodeFile("myobject.obj");

or:
osg::Node* node = osgDB::readNodeFile("myobject.obj", options);

(Untested code, but roughly like that.)

Hope this helps,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to