[osg-submissions] Modifications to Collada plugin to make it be compiled with Collada 2.0

Yongjoo Cho ycho.mail at gmail.com
Sun Apr 27 17:14:30 PDT 2008


Hello,

There has been changes in Collada's API so the old plugin gets broken 
when compiling against the new version of Collada.
So I've modified Collada plug-in to make it be compiled with Collada 2.0.

Mainly, the following are the changes I made to make the plugin be 
compiled with Collada 2.0.

1. daeURI class' getFilepath and getFile were changed to pathDir and 
pathFile. Moreover, pathDir and pathFile returns std::string instead of 
char * as getFilePath and getFile did.
    Thus, changed appropriately to use the std::string's features 
instead of C string functions.
    --> daeRMaterials.cpp
2. domP::_Meta->create method has been changed to domP::create
    --> daeRGeometry.cpp
3. Most class' methods of Collada library now takes the reference of dae 
class as the first parameter.
   --> daeRGeometry.cpp, daeWMaterials.cpp
4. I commented out rootName (instance of daeURI), which seems not used 
anywhere in the class.
  --> daeWriter.h

The modifications were made based on the public release of OSG-2.4.0, 
which I downloaded from the web right after it was released.

To find out the changes were ok, I downloaded a few models (5~6 models 
from simple to more complex ones) from Google 3D Warehouse.
Then, I loaded the models against the old version of the plugin 
(compiled with 2.3.2) and the new version of the plugin (with 2.4.0) and
find out the same behavior.

Yongjoo Cho










-------------- next part --------------
A non-text attachment was scrubbed...
Name: newdae.tar.gz
Type: application/x-gzip
Size: 14781 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080428/434f465f/attachment.bin 


More information about the osg-submissions mailing list