On 5/16/06, Netschke, Greg <[EMAIL PROTECTED]> wrote:
I too am trying to work with VRML.  When I saw this suggestion, I thought great!  Now I won't have to modify OSG to make this work.  However it is not working for me. 
 
osgDB::Registry::instance()->addFileExtensionAlias("wrl","wrl");
 
The if in the following function make it exit without making the desired change. 
 
Am I missing something?  I am still using version 0.9.9 but I checked my version 1.0 download -- it's the same.
 
void
Registry::addFileExtensionAlias(const std::string mapExt, const std::string toExt)
{
    if (mapExt!=toExt) _extAliasMap[mapExt] = toExt;
}

The CVS version doesn't have the "if (mapExt!=toExt)", so will apply.

I strongly recommend at least upgrading to 1.0, it contains lots of useful features and lots and lots of bug fixes.


==========================================================================
 
I have another issue that I would like to verify.  I have some VRML version 1.0 files, but they are ASCII -- not binary. 
 
The IVE reader seems to only load binary VRML v1 files.  Am I right?

The iv plugin uses Coin or Inventor to load VRML and ,iv files so what it can read depends entirely on these third party libraries.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to