zhejiushizhuce / jiglibflash

Automatically exported from code.google.com/p/jiglibflash
0 stars 0 forks source link

[Molehill] Away3D4Mesh Class Fails if subGeometries has Zero Length - EXAMPLE ATTACHED #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi JigLib team - found a critical bug - when loading certain OBJ files that 
have a zero length subGeometry there are run time errors being thrown.

What steps will reproduce the problem?
1. Please Run the attached example class

What is the expected output? What do you see instead?
Expect to see the loaded terrain working as part of the physics scene - 
instead, I get this Run Time Error: 

RangeError: Error #1125: The index 0 is out of range 0.
    at jiglib.plugin.away3d4::Away3D4Mesh/get vertices()[C:\Users\marcus\Projects\lab\JigLibMolehill\src\jiglib\plugin\away3d4\Away3D4Mesh.as:88]

What version of the product are you using? On what operating system?
version: JigLibFlash molehill - beta (2011-2-27)

Please provide any additional information below.
Please advise if you need any further information.

Original issue reported on code.google.com by macro.ma...@gmail.com on 22 Mar 2011 at 12:57

Attachments:

GoogleCodeExporter commented 9 years ago
quick update - I've opened the OBJ file in PreFab and exported as AWD format 
instead, and it's all working fine now. 

For some reason, OBJ format creates a 0 length subGeometries vector, which 
causes errors in JigLib. AWD is fine. 

I'd say this is more of an error with the OBJ Parser, rather than JigLib.

Original comment by macro.ma...@gmail.com on 25 Mar 2011 at 3:31