Hi Wan Rui,

On Wednesday 10 Mar 2010 07:36:27 Wang Rui wrote:
> Hi Robert,
> 
> I've initially added the XML support of the new native osg format,
> using osgDB::XmlParser. The extension for XML-formatted scenes is
> .osgx, corresponding to .osgb for binary and .osgt for ascii. It could
> either be rendered in osgviewer or edited by common web browsers and
> xml editors because of a range of changes to fit the XML syntax. For
> example, the recorded class names are slight modified, from
> 'osg::Geode' to 'osg--Geode'.

many thanks for your effort in this area. I hope having an XML format will 
make it easier to interoperate with other XML based formats, such as Collada. 
At the very least it should be possible to write converters with standard XML 
tools. 

Have you thought of using XML namespaces at all? So your example above would 
become: <osg:Geode xmlns:osg="http://www.openscenegraph.org/schemas/osg";> or 
something along these lines. That way, one could even conceive mixing OSG xml 
data with say metadata from other xml namespaces. Of course, namespace 
declarations can either occur on the xml tag itself (as shown above) or once 
per file (on the xml root element).

> 
> To quickly get an XML file:
> # ./osgconv cow.osg cow.osgx
> 
> The StreamOperator header, InputStreram and OutputStream classes are
> modified to be more portable for triple ascii/binary/XML formats. I
> also fixed a bug in readImage()/writeImage() to share image objects if
> needed.
> 
> The ReaderWriterOSG2 class now supports all three formats and
> reading/writing scene objects (not nodes or images), thanks to
> Torben's advice before.
> 
> I'm going to focus on writing all other nodekits' wrappers from now
> on. Hope all of them could be finished before 2.10/3.0 released.
> 
> Cheers,
> 
> Wang Rui

Cheers,

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

Reply via email to