How to make a json file from a gltf file?

Started by FalumS on

Topic category: Advanced modding

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a json file from a gltf file?

To work with 3D models, I use Blockbench, but it can only use json format models, and the models I need are in gltf format. Tell me, how can I complement them in the format I need? And if you can explain in an easier language and way. Thank you very much in advance.

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! In order to get your…
Fri, 07/15/2022 - 18:36

Hello! In order to get your gltf file in the game as a block, you will have to import it as an .obj (which comes automatically with an .mtl)

 

In order to do that, you may have to download Blender OR use an internet converter (though be careful with online converters, as they may make the block not work properly).

 

I have used Blender's converter and it works pretty well most of the times - just import in Blender your gltf file and export it as .obj and then import it in MCreator as .obj and .mtl (DO NOT export the .obj as a file which contains any spaces or uppercase characters, as it will probably render as missing texture)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot! But I also…
Fri, 07/15/2022 - 19:29

Thanks a lot! But I also need to set up the models themselves in the blockbench. Please tell me if there are plugins for blockbench, mcreater or blender that allow you to do this? Thanks again.