Meshlibrary and Gridmap errors

Godot Version

godot-4

Question

So I have several blender files that I’ve saved within my game. I’ve named the objects within these blender files with the -col suffix to automatically generate the collision and meshes. I’m now trying to create a meshlibrary of all of these blender scenes in order to use them in a gridmap.

However, since the autogenerated meshes are all named “cube” or “plane” the meshlibrary will only contain one of each these meshes. I could create a local copy of the blender scene within the tileset scene and rename them by hand, but if I ever change the blender file and want to reimport then I would have to redo the tileset scene and meshlibrary all over again.

I’m wondering if there’s a better way to use the meshlibrary and gridmap system with blender files. I know that a lot of people in the past have exported their blender files as .glb or whatever it’s called, but I want to use the new blender support and I don’t want to have to export the .blend files into some other format.

Attached screenshots for visual references

All of my blender inherited scenes within the tiles scene that I am exporting as a meshlibrary

Only one cube appears, since both wood_wall_1 and wood_wall_2’s meshes are named cube

I’m using godot for the first time this week, and this is the first roadblock that I’ve run into. The gridmap and meshlibrary system seems a bit odd to me, and I would love if there was a more intuitive system like the 2D tileset system that godot has but for 3D.

Thank you so much in advance to anyone who responds and helps me with this issue!

I’m also wondering if anyone knows of any videos or has any advice for a more efficient blender asset creation to godot workflow. I’m currently creating each tile in it’s own blender file, adjusting the procedural materials, baking the textures, and then adding it to a tileset scene in godot. I’m wondering if there’s a different, more efficient way to create 3D model tilesets; for example, if I should be creating all of my tiles within the same blender file or something.

I figured out the solution finally. You just have to rename the mesh within blender to be something other than cube or plane. I can’t believe it was that simple.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.