[Papervision3D] DAE parser fix for ColladaMAX NextGen

Paul Tondeur paul at paultondeur.nl
Fri Jul 31 14:04:01 PDT 2009


Hi Caue,

There were indeed problems with the DAE parser in pv3d. However since  
end May, Tim Knip refactured a lot of code and made it compatible with  
ColladaMax Nextgen exported models, as well as Cinema4D exported  
models and possible even more.

More details about this can be found here: http://techblog.floorplanner.com/2009/05/26/papervision3d-21-alpha/

I've also faced the problems with animation nodes without an ID, or  
nested animation nodes as with Cinema4D.

If possible, you should update to the latest pv3d revision. It  
includes many new features!

Anyway, thanks for sharing the bugfix:-)

Paul

On Jul 31, 2009, at 10:29 PM, Cauê Waneck wrote:

> I was having some difficulties having the DAE parser read an  
> animation generated with ColladaMAX NextGen, and tracing through the  
> problem, I arrived at a null reference on DaeDocument.as
>
> var animNode:XML = getNodeById( animLib,  
> ASCollada.DAE_ANIMATION_ELEMENT, animation.id );
>
> animation.id was null in the case.
> I got it fixed by changing this line to:
>
> if ( (animation.id == null) || (animation.id == "") )
> 						var animNode:XML = getNode( animLib,  
> ASCollada.DAE_ANIMATION_ELEMENT);
> 					else
> 						animNode = getNodeById( animLib,  
> ASCollada.DAE_ANIMATION_ELEMENT, animation.id );
>
> Now everything works fine.
>
> I don't think this fix will break anything, but I don't think so, as  
> it just prevents from unexpected null referencing. So if you are  
> having a hard time playing a DAE animation from ColladaMax NextGen,  
> maybe this will help you too.
>
> Cheers!
> Caue
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090731/34c6cd7d/attachment.html>


More information about the Papervision3D mailing list