Frankly it's stupid that the Collada DOM can't save or load files properly using native file system paths. Just in the last week I fixed this in the latest DOM code in the svn repo on SourceForge. Now there are some general file path <--> URI conversion functions in the DOM, and the DAE interface exposes loadFile, saveFile, etc methods to work with native file system paths. These functions work by converting a file system path to a URI and using the old load, save, etc methods, which still work with URIs only. So now you can write code like this:
DAE dae; dae.loadFile("c:\myFile.dae"); UNC paths should also work fine. I'm not sure if this helps you guys at all, since this code isn't in an official release of the DOM yet, but I still wanted to let you know. Steve Gordon Tomlinson wrote: > I got a headache reading that thread ;) > > > Sadly we cannot change the files, we typically only get read access to most > data > > Now I need to figure out how to get the units out of the loader when a file > loads, then we could at least apply a scale and possible origin relocation > at that time > > At some point in the future it would be nice to have an option for the > loader that takes the scene units and then the loader can convert to that if > needed > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roger James > Sent: Monday, November 19, 2007 11:13 AM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] Collada plugin DAE flaws > > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:osg-users- >> [EMAIL PROTECTED] On Behalf Of Gordon Tomlinson >> Sent: 19 November 2007 15:13 >> To: 'OpenSceneGraph Users' >> Subject: Re: [osg-users] Collada plugin DAE flaws >> >> now the other big one is the scaling issue and models not being in >> scene units >> >> >> Gordon >> >> > [Roger James] > > You could always open the dae file directly in your app and add the scale > units and orientation to it. > > However, beware that if you do it you will run into what may be a fairly > serious flaw in the collada library that at the moment needs you to mod the > dae plugin to delete its DAE object on every pass, not hang on to it as at > the moment. I have just spent the last 3 days tracking that down and am > currently awaiting a response from the Sony guys on it. You may also come > across this bug if you use the current plugin to save the same file name > more than once in one session. > > https://sourceforge.net/forum/forum.php?thread_id=1871237&forum_id=531264 > > Roger > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org