#Mesh into java

9 messages · Page 1 of 1 (latest)

torpid iron
#

hi i need a way for my really hard models to be added into java with mesh it must be possible wit coding or sth right?

gritty gorgeBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

junior lintel
#

wit coding or sth right?
that would be a mod then, no?

#

For a mod you'd probably do this:

#

!faq forge-obj

gritty gorgeBOT
# junior lintel !faq forge-obj
FAQ
Modded: Forge Obj

Forge does allow you to use .obj models in Minecraft, without making a mod.
Here is a step by step guide how to use that feature.

  1. Flip your model along the z axis, south and north are flipped in the exported obj models.
  2. Move your model by +8 on the x and z axis.
  3. Each cube and mesh, must have a unique name
  4. You can export the model now, default naming rules apply
  5. You'll have to edit the .mtl file, it has paths to your textures and those need to be adjusted for MC resourcpacks. Here is an example, map_Kd example.png it is recommended to replace that with map_Kd #example. The # defines it as a variable and simplifies things a bit.
  6. You'll have to create a JSON file for your model, with following content:
{
    "loader": "forge:obj",
    "model": "<path to your obj model>.obj",
    "flip-v": true,
    "textures": {
        "particle": "<path to particle texture>",
        "example": "<path of the another texture>"
    }
}

The example in the textures here, is the replacement for the variable we defined in step 5.
This makes it possible to use this .obj model for various different blocks now as you'd do with normal models.

That is basically it, it's not too complex once you get the hang of it.
You can also define display settings in the json file.

junior lintel
#

(or have a custom renderer of sorts)

torpid iron