DESCRIPTION

Mesh2Craft is a mod that lets you import 3D models using stock parts, meaning the crafts themselves don't require any mods. It rebuilds triangulated models face-by-face using fuel tanks or structural panels.

What is this supposed to do?

The goal of this mod is to make complex and intricate designs easier to make. For example, instead of adjusting tiny parts for hours to get a logo just right, you can simply trace the logo in a program like Blender in a few minutes, and let the mod recreate it in-game for you. The benefit of this approach is that the crafts are 100% stock. They don't require any mods to use, because the models are rebuilt using stock parts.

Usage

The models must be in .obj format for this mod to work. Put your .obj files into SimpleRockets 2\UserData\Mesh2Craft\Models and they will appear in the menu. There are a few options to change, then just press "Import" and the mod will do it's thing. Make sure you're paying attention to part count. High-poly models will mean many parts are generated. When positioning the model, there is a part named [ObjName]_handle in the center, that you can use to move and rotate the model. This is the part that you should attach to the rest of the craft. Note that there is another part called [ObjName]_root inside it, which is the part all the faces are attached to.

Model Requirements:

  • Models must be triangulated (every face has 3 sides). Any 3D application has this as an export option/modifier that you can apply easily.
  • Export orientation should be -Z forward, +Y up. This is Blender's default behavior.

Again, models must be triangulated, or they won't work.

If you want to try this out, but don't know how to make 3D models, the source code has a folder with some .obj files in it.


Change Log

Update 1.2.2
  • Adds heatShield and maxTemperature property
  • Fixes bug that would cause fuselages to lose their texture
Update 1.2.1
  • Disables unused attachment points
  • Removes FuelTank element
Update 1.2
  • Now uses fuel tanks by default
  • Adds an advanced options panel
Update 1.1
  • Fixes the issue of parts having very high drag
  • Adds options to disable drag, mass, and collisions for every part

Planned features

  • Button to select the root of a model when a face is selected
  • A wireframe mode for faces with only 2 points

Known Issues/Bugs

  • When dragging the model directly after importing, the designer bugs out. When this happens, just reload the craft manually.
  • Some faces will have the z component of the offset flipped, and won't line up correctly. For now, just switch the sign (+ or -) of the z component of the part's offset using overload or through XML.

If you have any suggestions, or find any bugs, please let me know!


Huge thanks to everyone in the Complex Rockets Discord!

GENERAL INFO

  • Mod Version: 1.2.2
  • Required SR2 Version: 0.9.508
  • Published: 12/19/2020
  • Downloads: 662

DOWNLOADS

TAGS


Comments

  • Log in to leave a comment
  • Profile image
    2,554 LofiTurtle

    @CLESworkstation if by "archive file" you mean the craft file, it's supposed to automatically load it. It also should be visible with the regular crafts. The fact that it isn't means something is wrong, which is why I want to see if there are any errors in the dev console.

    +1 one month ago
  • Profile image

    @LofiTurtle You are right, I can indeed check it. But when I click on import, no window or prompt appears, although I can press the button.
    I would like to check with you if the archive file created by the import can be found directly on the read archive page in the game.
    I can't find it on my computer

    +1 one month ago
  • Profile image
    2,554 LofiTurtle

    @sam132424 that should work, as long as your computer can handle 5000 parts. Just to confirm, you can see the OBJ in the list in-game, and are selecting it before importing right?

    First, open the dev console before importing and see what it says. There shouldn't be any errors. Then, to work out what's wrong, can you try importing a different model, like one of the examples in the source code? There might be an issue with how rhino exports.

    one month ago
  • Profile image

    @LofiTurtle I have a model made with Rhino 6 that has been triangulated, can I use it in your work?

    +2 one month ago
  • Profile image

    @LofiTurtle I put a triangulated obj model with 5000 faces into the mod folder and turned on the module in the game. I use the default settings to import, but nothing happens.

    +2 one month ago
  • Profile image

    I put a triangulated obj model with 5000 faces into the mod folder and turned on the module in the game. I use the default settings to import, but nothing happens.

    one month ago
  • Profile image
    4,781 Thorne

    Thanks for the tip, sounds awesome @LofiTurtle

    3 months ago
  • Profile image
    2,554 LofiTurtle

    @Kennnnnnnnnnnnnnnnneth not sure if you meant "I" or "you", but if you're up for porting this to SP, go ahead. It should be pretty simple, all the logic will be the same. I don't plan on porting it myself though

    3 months ago
  • Profile image
    2,554 LofiTurtle

    @Thorne I believe @mrmaraunet is working on a tool to export crafts as an obj. I don't plan on putting that into this mod

    +1 3 months ago
  • Profile image
    4,781 Thorne

    Can you make it export as an obj as well? That’s one feature SimplePlanes has but SimpleRockets needs

    3 months ago
  • Profile image

    can i port this to simpleplanes?

    +1 3 months ago
  • Profile image
    2,554 LofiTurtle

    @Pashog I think you might be right, that should be a lot more reliable. I'll look into changing that when I'm up for it.

    +1 3 months ago
  • Profile image
    124 Pashog

    Why rotate the offset vector if you can just project it on the local axes? Should remove all the special cases and probably fix the flipped z component.

    3 months ago
  • Profile image
    6,255 Vedhaspace

    @Kepler452B ok

    4 months ago
  • Profile image
    1,130 Kepler452B

    @Vedhaspace the first thing i ever did in blender was catch a monkey on fire

    +1 4 months ago
  • Profile image
    6,255 Vedhaspace

    @Kepler452B what?

    4 months ago
  • Profile image
    1,130 Kepler452B

    does anyone else only remember catching the monkey on fire while learning how to make a donut

    4 months ago
  • Profile image
    6,255 Vedhaspace

    @Tweedle_Aerospace ok

    4 months ago
  • Profile image

    @Vedhaspace he might have uploaded it from his computer to his phone

    4 months ago
  • Profile image
    6,255 Vedhaspace

    @LofiTurtle ok. But FalconAerospaceFAS he used Android for uploading craft.
    Only so I asked.

    4 months ago
  • Profile image
    2,554 LofiTurtle

    @Vedhaspace mods arent available for mobile, sorry

    4 months ago
  • Profile image
    6,255 Vedhaspace

    @LofiTurtle can we download it in android. If we can how to do it?

    4 months ago
  • Profile image

    @LofiTurtle thank you for notice me. 😀😀😀

    4 months ago
  • Profile image
    2,554 LofiTurtle

    @FalconAerospaceFAS the model probably has too many faces. Remember that every face will become a part, so you could be trying to generate thousands of parts. That could be enough to use up all your system memory

    4 months ago
  • Profile image

    @FalconAerospaceFAS it crash when I trying to load it.

    4 months ago
  • Log in to see more comments

63 Upvotes

Log in in to upvote this post.