Hi Patrick,
On Wed, 2006-04-05 at 08:25 +0200, [EMAIL PROTECTED] wrote:
> Hi Gerrit,
> >
> > Given that the ColladaDom is much closer to what we need and how I
> > would implement a loader I still think it would be a good idea
> > to start with it and solve the backward compatibility problems as
> > they come along (I would not care about Collada 1.3 anymore). I also
> > think it is the better code base in case we decide we need to write our
> > own loader.
> >
> > The other option would be to immediately go for our own loader.
> >
> I think we should use ColladaDom as an help how to read/interpret certain
> elements.
> The interesting question for speed and memory usage during reading would be
> if we could write a SAX2 based parser? As the name said I think ColladaDom
> also uses the DOM model...
I think it is already SAX2 based. Given that my ignorance of XML is
pretty good, with SAX2 I mean they convert the text information as
early as possible and don't build a 'text' tree. If you look at the
daeLIBXMLPlugin they use the textReader interface (e.g.
xmlReaderForFile). So as soon as they start reading an element they
create the corresponding c++ object and start filling it, e.g.
daeElementRef element = thisMetaElement->create(
(const daeString)xmlTextReaderConstName(reader));
and later on they immediately convert values by basically doing
xmlChar* value = xmlTextReaderValue(reader);
element->getMeta()->getValueAttribute()->set(element,start);
where start traces over the whitespace separated values.
regards,
gerrit
--
It's Emergent[*], you see.
[*] [adj] A word favored by computer nerds; mandatory for DARPA research
applications; on recent evidence, a synonym for 'doomed'.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users