[osg-users] how to convert osgb files to old version
Christian Buchner
christian.buchner at gmail.com
Mon Jun 19 05:11:39 PDT 2017
osgconv is always built against one specific OSG version. If it can read a
newer osgb format, it probably wouldn't write an older format. If it writes
an old format, it can't read the newer format properly.
So you would have to go through an intermediate file format, say, e.g.
.obj, Collada (DAE)
and use the new osgconv version for reading and converting to DAE and an
older osgconv version for converting from DAE to osgb.
My recommendation is to use the binary osgb, ive formats only where
performance absolute requires this and where such file versioning issues
will not occur.
Christian
2017-06-19 2:56 GMT+02:00 tianzjyh <tianzjyh at 126.com>:
> Hi, Yu,
> You can manually use osgconv.exe to convert between model files. Run
> "osgconv.exe --help" for help.
> Also, u can use osgDB::readNodeFile() and osgDB::writeNodeFile()
> respectively with filenames with proper extension, such as ".osg" and
> ".osgb".
> --
>
> Cheers,
> ---
> TianZJ
>
>
> At 2017-06-18 16:14:01, "Haojia Yu" <haojia521 at hotmail.com> wrote:
> >Hi,
> >
> >I am working on an application based on osg 3.5.3, and i use it to generate lots
> >of modles saved as osgb format. However, there are some other softwares based
> >on older osg versions, maybe osg 3.4.0 or 3.0.0 or even earlier, and they
> >...
>
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170619/a0b02beb/attachment-0003.htm>
More information about the osg-users
mailing list