tags:

views:

24

answers:

1

We are using the OpenCollada plugin for Max 2011. Geometry and animation data is coming through fine but I don't see any shader or material data included in the DAE.

Do I need to modify the Max exporter or should it just work out-of-the-box?

A: 

Using MaxScript we can iterate through the materials and export the cgfx (or directx shaders) to a separate file. Exporting it as part of the Collada is possible if we write a Collada exporter and insert the shader params as extra data. We're going the MaxScript route.

Update/Edit: wow, were we wrong about using MaxScript! The correct solution was to use the Max SDK and the IGame interface to query the materials. Yannick Puech has the definitive article.

Chris Masterton