Results 1 to 8 of 8

Thread: 3ds file problem

  1. #1

    3ds file problem

    ive got to the stage where im now dealing with the textures in my modeler for my game. im using Mike Lischke's 3ds loader and its going well until this point.

    basicly what happens when i go to write the texture coordinates to my file, i get an I/O error 1784 on the 6th mesh in the 3ds model.

    here is part of my export code

    Code:
            for iLoop:=0 to Mesh[iObjectLoop].Count -1 do
              Begin
                BlockWrite(F, Mesh[iObjectLoop].TexCoords[iLoop].S, 4);
                BlockWrite(F, Mesh[iObjectLoop].TexCoords[iLoop].T, 4);
              end;
    the full unit can be found at http://www.vadertrophy.com/~files/uExport.pas

    any help is apreciated

  2. #2

    3ds file problem

    Error code 1784 means that the supplied user buffer is not valid for the requested operation.

    Does your 6th mesh have texture coords?

    Consider using gl3ds instead. It comes complete with a custom exporter you can modify. But it expects texture coords also! Try it with your mesh to see if it works.
    http://3das.noeska.com - create adventure games without programming

  3. #3

    3ds file problem

    hmm. im not in the mood to change loader tonight

    ill give it a try tomorrow, thanks

  4. #4

    3ds file problem

    i tryed gl3ds and its killed the normals

  5. #5

    3ds file problem

    i know my normals are not working properly. Inside the 3ds files no normals are stored so i had to recalculate them, have a look inside the gl3ds.pas file and have a look at the part that calculates the normals if in your version the real smooth normals part is not commented make it so and run it again. Leave the first part in though!

    But does your export work now?
    http://3das.noeska.com - create adventure games without programming

  6. #6

    3ds file problem

    even after commenting it out, still doesnt work

    this is with your one


    this is with the other one


    ures also wont zoom in fully without clipping :?

  7. #7

    3ds file problem

    hmmmm, i see. Tomorrow i have a go at the normals again.
    http://3das.noeska.com - create adventure games without programming

  8. #8

    3ds file problem

    ive fixed the i/o error in my texture code (with a nasty work around).

    if you look at the viewer example on http://lischke-online.de/ in viewer.pas theres a ConvertMeshData procedure. mabey that will help with your normals

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •