#Any way to convert a polymesh geometry (bedrock) to java

29 messages · Page 1 of 1 (latest)

pine sonnet
#

title

near lavaBOT
#
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.

leaden granite
#

not with a normal resource pack

pine sonnet
leaden granite
#

!faq forge-obj

near lavaBOT
# leaden granite !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.

leaden granite
#

for example

pine sonnet
#

what does that do

#

without a mod?

leaden granite
#

lets you load obj models

pine sonnet
leaden granite
#

yes

pine sonnet
leaden granite
#

an option that doesn't require forge would be https://github.com/Godlander/objmc
It's basically a pyhton script and some shader files.
The python script converts the obj into a texture file, where each pixel is a point of information, and the shaders read the color values to determine the shape (and texture) of the model.

GitHub

python script to convert .obj files into Minecraft java edition models, rendering them in game with a core shader. - Godlander/objmc

pine sonnet
#

that that works without any mod

leaden granite
#

yes

pine sonnet
#

can i also animate my blocks?

#

or is that not possible

#

i think i can do that with a plugin

leaden granite
#

afaik objmc works for items, not sure if it works for blocks too

pine sonnet
#

like i can just use multiple states right

pine sonnet
#

will see whether i can handle that

leaden granite
#

k, block model seems to work too

pine sonnet
#

Like when I update the model every tick

#

as i want them to be animated

leaden granite
#

objmc has support for animations

pine sonnet
#

oh nice, ok thank you very much