Hello Pablo,

Carsten Neumann wrote:
> hm, so far I only had a short look at it, but I thought I'd share what 
> I've found (attached is a gdb session log):
> the last triangle (i=1023) in the mesh has invalid vertex indices for b 
> (16720) and c (4102), the mesh only has 530 vertices.
> I've not yet figured out if the loader messes this up or if there is 
> bogus data in the model file. Hopefully I can find out a bit more later.

some more info: Using 3dsdump (part of lib3ds, 
<sourceforge.net/projects/lib3ds>) suggests that the file is a little 
fishy (see the chunk size before the abort):

./3dsdump -d=3 teapot.3ds
  INFO : M3D_VERSION (0x2) size=10
  INFO : MDATA (0x3D3D) size=18771
  INFO :        MESH_VERSION (0x3D3E) size=10
  INFO :        MASTER_SCALE (0x100) size=10
  INFO :        NAMED_OBJECT (0x4000) size=18745
  INFO :                  NAME=Teapot01
  INFO :                N_TRI_OBJECT (0x4100) size=18730
  INFO :                        POINT_ARRAY (0x4110) size=6368
  INFO :                        MESH_MATRIX (0x4160) size=54
  INFO :                        FACE_ARRAY (0x4120) size=12302
  INFO :                                ***UNKNOWN*** (0x1) size=65536
  WARN :                                Unknown Chunk: ***UNKNOWN*** (0x1)
3dsdump: 
/store/home/carsten/devel/misc/lib3ds/trunk/src/lib3ds_chunk.c:72: 
lib3ds_chunk_read_next: Assertion `c->cur == c->end' failed.
Aborted

What software did you use to create/export the model ?

        Cheers,
                Carsten


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to