Print at Dec 20, 2025, 10:46:49 PM

Posted by Puybaret at Aug 17, 2010, 6:44:28 PM
Re: DAELoader Bug Fixes
I updated DAELoader class from your code except the Y_UP fix since it would bring some incompatibilities with existing imported models.

I was a little annoyed by handling multiple texture coordinates sets since OBJ format at export and SunFlow don't support this feature, but I copied your code anyway. To be sure that rendering will be always the same, I stored texture coordinates in a LinkedHashSet instance to ensure they are enumerated always in the same order.
By the way, thank you for fixing the bug on the max index in the for loop that creates UV coordinates from larger texture coordinates. wink

I'm happy you were able to read and improve this class. I was afraid that my code was really too complicated to maintain. smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator