#Any way to convert a polymesh geometry (bedrock) to java
29 messages · Page 1 of 1 (latest)
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.
not with a normal resource pack
and how without a normal resource pack
!faq 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.
- Flip your model along the z axis, south and north are flipped in the exported obj models.
- Move your model by +8 on the x and z axis.
- Each cube and mesh, must have a unique name
- You can export the model now, default naming rules apply
- 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.pngit is recommended to replace that withmap_Kd #example. The # defines it as a variable and simplifies things a bit. - 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.
for example
lets you load obj models
but i need forge right
yes
oh and there is really no way in vanilla minecraft
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.
that that works without any mod
yes
can i also animate my blocks?
or is that not possible
i think i can do that with a plugin
afaik objmc works for items, not sure if it works for blocks too
like i can just use multiple states right
ill just use a plugin that renders the item on the ground then, and adds like a htibox
will see whether i can handle that
k, block model seems to work too
but does it lag?
Like when I update the model every tick
as i want them to be animated
objmc has support for animations
oh nice, ok thank you very much