Hi,

Chris 'Xenon' Hanson wrote:
  I ended up using Windows PowerShell to script a find/xargs foreach solution.

  I do think perhaps osgconv might benefit from a recursive convert option. has 
anyone
else run into trouble simply converting a VPB database between .osg and .ive or 
back, as a
result of this limitation?
I also had to recurse manually. An option in osgconv would be nice.


  Secondly, I notice that on write, the PagedLOD nodes write a DatabasePath 
item that
wasn't present in the source .osg files. It ends up making the paths hard-coded 
instead of
relative. I hacked around this by temporarily commenting out the line that 
writes the
DatabasePath to the .osg file, but there must be a 'proper' solution. Has anyone
experienced what I'm talking about?

Yes, I've had the same issue. I got around it by cd'ing to the dir where the file was before I run osgconv. From bottom of:

http://www.openscenegraph.org/projects/VirtualPlanetBuilder/wiki/CompressExisting

Reason for cd before osgconv

For some reason osgconv must be run with only the input file name, i.e. from the directory where the file is located. If it is run by passing not only the filename, but a whole path to the file, the links to files in other directories get corrupted somehow. When the links are broken, one can only open the database properly from a single directory, e.g.

cd new_db
osgviewer terrain.ive

would work, but

cd ..
osgviewer new_db/terrain.ive

or execution from any other path would not.

jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to