• Login
sketchucation logo sketchucation
  • Login
ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

Parse a compiled file with ruby?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 214 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    Chris Fullmer
    last edited by 28 Nov 2010, 05:42

    I am looking to make an importer for an old 3d format called b3d. It is a compiled file format. How would I tackle something like this with ruby? Here is a link to the .b3d format specs:

    http://www.blitzbasic.com/sdkspecs/sdkspecs/b3dfile_specs.txt

    Known unknowns 😄 :

    • I don't quite know how to parse a file that I don't know how to read.
    • I don't know what a "chunk" is.

    I'm sure there are dozens of "unknown unknowns", I'm sure I'll get to those once I get started.

    So is this going to be hardder than I am imagining? I was hoping I could figure the basics of this out in the next day or two - is there any hope?

    Chris

    Lately you've been tan, suspicious for the winter.
    All my Plugins I've written

    1 Reply Last reply Reply Quote 0
    • C Offline
      Chris Fullmer
      last edited by 28 Nov 2010, 08:56

      Hmm, looks like I won't need this. I can use .obj for this project it looks like. I'm still interested in the topic, but its not something that is very urgent or has any priority for me at the moment. Thanks,

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 28 Nov 2010, 14:37

        Hi Chris,

        This code snippet reads a binary 3ds file using Ruby and writes out an ascii .obj file.

        Hi

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement