-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jean-Sébastien Guay wrote: > Hello Jan, > >> That looks as if the alias for wrl extension was not registered properly >> in osgDB/Registry.cpp :( However, registry doesn't make a difference >> between debug and release version, AFAIK? I will check the source, >> perhaps there is something windows-specific in osgDB that I have >> missed :( > > Let me know what you find out.
Could you put a breakpoint at the function std::string Registry::createLibraryNameForExtension in osgDB/Registry.cpp, line 555 and step through it? This is where the name of the DLL to load is generated. The code looks OK to me, however, I do not have Windows around so I cannot check it. Perhaps some of the macros are not defined on your system. The expected behaviour is that at line 556 it will find an alias from wrl to vrml and it should call itself recursively with the new argument. Then it should return "osgdb_vrmld.dll" > >> Hmm, that looks like a bug - I am not sure whether the VRML plugin uses >> the OSG_FILE_PATH properly, probably not :( Well, another point to my >> TODO list :) > > If I specify the direct path (in my case, > G:\OpenSceneGraph-Data\sample.wrl) to osgviewerd, the same thing happens. > <...> > This really has me puzzled, as > > osgviewer cow.osg > and > osgviewer %OSG_FILE_PATH%\cow.osg > > both work as expected. The reason for this is obvious - the osg plugin is using an osgDB utility function to search the OSG_FILE_PATH for the file and the vrml plugin just passes the file name to OpenVRML directly. I will fix this one. Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFGjoC1n11XseNj94gRAj8VAJ47nYJ+ItRdTdqIdDyn5rovauh3LQCfZrvs KMLGrJVb+ZzbA5APAahjlGs= =fa/r -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
