Hi Joseph, You don't have to take care of the registration of new plugins as the work will be done on the fly. OSG will automatically try to load a dynamic library named osgdb_tri will reading or writing to .tri files. And if it fails to find the .dll/.so file or the plugin can't work properly, the readNodeFile() simply returns NULL. You may also force an extension to be read by specific plugin using the Registry::addFileExtensionAlias() method.
Cheers, Wang Rui 2011/9/1 Joseph Louis <[email protected]>: > Hello all! > > I have followed Wang Rui's excellent tutorial on how to create a custom > loader plugin (in the tutorial, he creates an example loader for a .tri > format). I am however confused as to proceed in order to register the > generated files (.dll, .pdb, .ilk) with the OSG Registry. The tutorial > mentions that we need to add the line (add_library( osgdb_tri SHARED > readerwriter.cpp )) to the CMake file. I am not sure which CMake file this is > or how to proceed. > > Could someone please explain how I need to proceed with this? Thanks in > advance! > > Thank you! > > Cheers, > Joseph > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=42354#42354 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

