Collada Animation Using Papervision3D and 3ds Max 2009

I recently got my hands on a copy of 3ds Max 2009 and was trying to play around with some animation for use in Papervision3D. I started out using the built in collada export tool, but the DAE parser in Papervision3D doesn't handle the nested tags produced by the tool. (see Tim Knip's explaination here) I also tried the ColladaMax NextGen plugin (latest and greatest?) and that too produced animation tags that Papervision3D didn't like.

The solution is to use the older version of ColladaMax (get it here). Make sure when you do your export that you select the correct .dae save type. The screencap below shows the correct option.

Comments

Unknown said…
hi
sorry, can you help me with my test
i load collada model and i don't know why there holes in it
you can check it http://miles.coil.ru/pv3d/
and here's code http://miles.coil.ru/pv3d/test.as

thanks
CodeJockey said…
The problem you're seeing is a result of a common Papervision3D Z sorting issue. You can either increase the number of triangles in your model where the holes appear or you can try using the QuadrantRenderEngine or ViewportLayers. Check out these links:

http://blog.zupko.info/?p=177

http://www.x-com.se/labs/flash/viewportlayers-in-depth-papervision3d.html
Unknown said…
i read the last and i add model in viewport layer
var daeLayer:ViewportLayer = new ViewportLayer(viewport,null);
daeLayer.addDisplayObject3D(dae);

viewport.containerSprite.addLayer(daeLayer);
viewport.containerSprite.sortMode = ViewportLayerSortMode.Z_SORT;
viewport.containerSprite.getChildLayer(dae, true, true);

but no result
CodeJockey said…
A single viewport layer won't help because you still have all of your model geometry in a single layer. For viewport layers to help, you will need to split your model geometry so that you can place chunks of it into layers. Then you can manipulate their depths so that the correct pieces are in front and behind.

Popular Posts