Menu

Loading a model from URL

Help
julien
2005-09-10
2013-04-08
  • julien

    julien - 2005-09-10

    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

     
    • Josh DeFord

      Josh DeFord - 2006-01-20

      Send me a sample model that demonstrates this behavior and I'll take a look at it.

       
  • liu changming

    liu changming - 2009-10-03

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.