First of all, thanx for this great piece of code !
I'm facing a weird problem; when I load a given model (with associated texture file) from a local filesystem, everything goes fine... But when trying to load the same model from an URL, the parseChunks() method seems to enter an infinite loop somewhere. Here is what I get after enabling debug :
[...]
EditorChunk is LOADING: [id=4000, object= <NamedObjectChunk>, chunkLength=48248, position=280 limit=48528]
NamedObjectChunk is LOADING: [id=4100, object= <TriangularMeshChunk>, chunkLength=48236, position=292 limit=48528]
TriangularMeshChunk is LOADING: [id=4110, object= <Vertex3ListChunk>, chunkLength=14618, position=298 limit=14916]
TriangularMeshChunk is LOADING: [id=4140, object= <Vertex2ListChunk>, chunkLength=9746, position=14922 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
(and from here it loops forever...)
Do you have any idea ? It's probably not related to the 3ds model itself, as all is running fine on a local FS...
Thanx for your help,
Julien
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First of all, thanx for this great piece of code !
I'm facing a weird problem; when I load a given model (with associated texture file) from a local filesystem, everything goes fine... But when trying to load the same model from an URL, the parseChunks() method seems to enter an infinite loop somewhere. Here is what I get after enabling debug :
[...]
EditorChunk is LOADING: [id=4000, object= <NamedObjectChunk>, chunkLength=48248, position=280 limit=48528]
NamedObjectChunk is LOADING: [id=4100, object= <TriangularMeshChunk>, chunkLength=48236, position=292 limit=48528]
TriangularMeshChunk is LOADING: [id=4110, object= <Vertex3ListChunk>, chunkLength=14618, position=298 limit=14916]
TriangularMeshChunk is LOADING: [id=4140, object= <Vertex2ListChunk>, chunkLength=9746, position=14922 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
TriangularMeshChunk is skipping: [id=0, object= <null>, chunkLength=-6, position=24668 limit=24668]
(and from here it loops forever...)
Do you have any idea ? It's probably not related to the 3ds model itself, as all is running fine on a local FS...
Thanx for your help,
Julien
Send me a sample model that demonstrates this behavior and I'll take a look at it.
I have exactly the same problem which raised by **biloute**. Has the problem been solved? Please help me as soon as possible. Thanks very much!