Created a server where you can upload blueprints and then view them online.

    Joined
    Jun 23, 2013
    Messages
    41
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Received several messages, I think some people are missing the part where you can click a ship to view it in 3d in your browser.
     
    Joined
    Jun 30, 2013
    Messages
    20
    Reaction score
    0
    Looks like your website doesn\'t like my Bahama7 very much! Bits and pieces left over from symmetry mistakes and old versions. Everyone else\'s look fine.... Very cool though. Give it a little turret compatibility and my Vespa-Destroyer will look awesome!



    By the way, your Thors Hammer is awesome. Loved it during the stream the other day!
     
    Joined
    Jun 22, 2013
    Messages
    14
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I\'m curious to know if AltF4Dead\'s issue is because the page isn\'t ignoring the chunks which are missing from the chunk index table at the beginning of the .smd2 file.

    Here\'s the file format from the comments of my python based blueprint reader:






    start type

    0 int unknown int

    4 chunkIndex[16][16][16] chunkIndex struct (see below) arranged in a 16x16x16 array

    32772 long[16][16][16] chunk timestamp information arranged in a 16x16x16 array

    65540 chunkData[] 5120 byte chunks



    Note that there may exist chunk timestamps and chunks that are not referenced in the chunkIndex table and seemingly serve no purpose.



    chunkIndex is an 8 byte struct

    int chunkId Index into the chunkData[] array. If no chunk exists for this point in the array, chunkId = -1

    int chunklen The total chunk size in bytes (excluding the zero padding). Equal to the chunk\'s \"inlen\" field plus 25 (the chunk header size)



    chunkData is a 5120 byte structure

    long timestamp Unix timestamp in milliseconds

    int[3] q Relative chunk position

    int type Chunk type (?) usually 0x1

    int inlen Compressed data length

    byte data[inlen] ZLIB-compressed data of rawChunkData[16][16][16]

    byte padding[] Zero padded to 5120 byte boundary



    rawChunkData is a 3 byte bitfield

    Bits

    23-21 orientation

    20-13 hitpoints

    12 isActive

    11-0 blockID
     
    Joined
    Jun 25, 2013
    Messages
    403
    Reaction score
    11
    • Legacy Citizen 2
    • Legacy Citizen
    WebGL? I thought of going that direction. But since I was writing an editor and stuck to Java and made my web based viewer an applet. It has some advantages, but I think overall yours came out better.

    A feature I thought of adding that you might want would be to be able to concentrate on a particular system type. E.g. \"fade out\" everything except the weapon\'s system, or the shield system, or thrusters. That would enable you to study the design of the ship easily.

    If you are going to make the code public for others to use, PM me and I\'ll direct people to yours rather than mine. If you\'ve got this covered, I\'ll happily keep my focus on off-line viewing.
     
    Joined
    Jun 23, 2013
    Messages
    41
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    There is no doubt I am reading some part of it. I will take a look at your python comments and see if I can fix it.

    I will definitely going to upload the source to github when I get back home, away at a conference right now.