Print at Dec 20, 2025, 11:00:54 AM

Posted by apptaro at Aug 17, 2010, 1:53:18 PM
DAELoader Bug Fixes
Hi list,

I was looking for a decent Collada parser for Java3D. I tried several libraries and found that com.eteks.sweethome3d.j3d.DAELoader is the best! It was the fastest and the most correct.

Some of my collada files, however, were not parsed correctly, so I digged into the code, and found several bugs:

- texture coordinate sets are not supported.
- inputCount is incorrectly counted,
which results in model corruption.
- NumberFormatException occurs for some bad collada files,
which can be just safely ignored.
- node rotations are incorrectly applied.
- Y_UP models are facing the other way.

I have made fixes and tested with many collada files from Blender, 3DS Max and Maya. Now it works correctly for all my models!

So, I want to share my fixes but since I'm new here, I'm wondering if someone could merge my changes to the main code. My fixes were made on top of the latest rev 1.9 of com.eteks.sweethome3d.j3d.DAELoader, so it should be easy to merge. Anyone?