Hello David, David Kabala wrote: > My project is looking into using the collada importer in OpenSG 2.0 to > move 3D assets from Maya to our OpenSG application. We would like to > use cgfx, and glsl effects that are used by the artists in Maya. It > looks like the profile_glsl and profile_cg are not yet implemented in > ColladaEffects.cpp.
yes, both are currently not implemented. I've had trouble finding examples and no pressing need to implement this so far. > If no-one is currently working on this, then we > would like to implement these methods. > > Also, any input on the best way to go about this would be appreciated. > We will definitely submit our code to the OpenSG repository if desired. We'd certainly be very interested in supporting either or both profiles. As far as how to approach this, I've only got the very generic recommendation first to look at examples of what you want to load instead of aiming to support the full spec (IMHO the spec is scary ;) ). I've got some changes to the collada loader piled up, that I'll commit in a little bit (waiting for the build to finish): Mostly it introduces a factory to create the various objects that load parts of the file and moves the responsibility to create instances into the object (e.g. ColladaGeometry is now responsible for creating an instance when an <instance_geometry> tag is seen, ColladaInstanceGeometry only forwards the necessary information). One side effect of this change is that in some cases the ::read() member functions don't do much any more, since only when something is actually instantiated enough information is available to create OpenSG objects. Let me know if you have any questions about inner workings of the collada loader. Cheers, Carsten ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users