So I have on several occasions tried to use Gridmap to build maps in Godot before, and it usually ends up with me pulling my hair out because of how little ability for customization it has. Like for basic block aesthetic its fine but as soon as i want it to look better or have even the slightest bit of complexity it immediately falls apart for me.
So since I have more knowledge of Bender I just model out the game play area in there and then import it to Godot to varying degrees of success, though I again was at the crossroads for this and I’m confused because its pretty hard to find information about workflows and how to create levels in 3D anyway.
Does anybody know of more 3D map building information and what the best tools are for the job?
If you also have info on workflows and stuff that would be greatly appreciated!
Good for initial testing and quick’n’dirty changes
Importing 3D meshes built in third-party modelling software (e.g. Blender)
You could argue that making a prototype level using CSG nodes, and then polishing the level later in Blender is the better workflow. However, it’s just as easy to use Blender from the get-go given Godot’s capability to configure the way files are imported – both out-of-the-box and through import plugins.
Without ever needing to hit export in Blender, Godot will automatically import the model data and construct a somewhat appropriate node tree for it if you include the Blender file in your project. Whenever changes occur in the original Blender file, Godot updates the model automatically.
I’m paraphrasing here, but when Blender Studios tried to make a game they opted to use a different workflow involving the extensive use of glTf model files over Godot’s “automated pipeline” because they were working in a larger team (see Blender’s blog post). They even went so far as to develop custom Godot and Blender tooling to handle collection instance referencing to make sure the data stayed consistent between the programs.
Personally, I’ve just used Godot’s built-in suffix modifiers, along with my own import script, to configure how the model is built when imported. It works pretty well. There are some minor workflow annoyances on the Blender side; suffixes are slow to type which makes the level creation process a little tedious at times – but hey, it works.
I saw a Blender plugin recently that’s supposed to improve on this workflow (setting object node types, linking objects etc.).
Ultimately, the best 3D level creation workflow depends on how you like to work, but I’d say Godot’s automated system with .blend files is a good starting point.
If you store your .blend file in the Godot project directory, and you create basic materials for your Blender models with texture files from the Godot project directory, Blender behaves pretty much like a second window of Godot.
If you modify a .blend file that is stored in the Godot project directory and save it, the Godot editor detects that change and automatically updates that model everywhere it is used in the project without you having to do anything.
Shaders work somewhat different in Godot than in Blender, so the best approach here seems to be to simply UV map and assign a simple image file texture to a model in Blender, and then create any shaders in Godot. Any kind of lighting can be done there as well.
The one part where I see Godot’s own mesh creation tools being more useful is when planning the layout for an area with CSG shapes just to get a sense of scale quickly. It’s even possible to take that CSG mesh into Blender to use it there as a template. (I’ve not tried it, but there are guides on how to do it.)
If an object’s name in Blender ends with -noimp, then Godot will not import that object in the model file. This is useful for any meshes that are used to create holes with Boolean modifiers and things like that, since Godot will still automatically apply the modifier using the shape. It just won’t appear as its own object in Godot.
If an object’s name in Blender ends with -col, then Godot will automatically create a collision shape for it. And if you noticed you forgot to do that and the object has no collision in the game, you can just open the .blend file in Blender, add -col to the object name, and save, and then Godot will just automatically reimport it and add collision everywhere the object appears in the game.
It’s a way. It may be the most effective way for you. But it comes with its own set of drawbacks:
You have to through the whole export/import process every time you make a little change and want to test it.
You can’t export non-mesh collision shapes (e.g. capsules) from Blender.
Although Blender has a system for linking objects between Blender files, these links are broken on export. Instead of having a dozen levels all with the same tree, you will get a dozen levels with their own copy of the tree. That’s going to increase your file size, and it means that if the tree has a script, you need to manually attach the script to each copy of the tree.
There are a whole lot of Blender features that don’t export correctly, even if Godot has equivalent features.
If your maps consist mostly of custom static geometry with no shared elements between maps, then building maps directly in Blender is great. If you want to build your maps from reusable pieces, even if you don’t want to use GridMaps, then you’re usually better off building the resuable pieces in Blender and assembling the maps from them in Godot.