Trenchbroom Setup
Using Generic
This assumes you want to setup as fast as possible for use in Qodot by overwriting the Generic game definition in Trenchbroom.
You’ll need a res://textures
folder to hold map textures. These textures will be read from both Godot and Trenchbroom.
- Open Trenchbroom
- Click “New Map”
- Go to “Preferences”
- Click “Generic”
- Set Game Path to your Godot project directory
- In your Trenchbroom map, enable the texture collection
/textures
- In Godot, set the Textures Dir of your QodotMap node to your /textures folder
- Click Build Map to see the results
Note
Both the file path and texture name cannot contain UTF-8 characters or spaces.
Using a Game Definition
This is effective if you have multiple projects using Qodot, or if you need to use any entity definitions.
- Create a Game Definition
- Open Trenchbroom
- Click “New Map”
- Go to “Preferences”
- Click your game’s name
- Set Game Path to your Godot project directory
- In your Trenchbroom map, enable the texture collection
/textures
- In Godot, set the Textures Dir of your QodotMap node to your /textures folder
- Click Build Map to see the results
If you need more guidance on these steps, consider reading the page on Game Definitions to create a personalized Trenchbroom setup for your project.
Textures
Read the Trenchbroom manual to learn more about applying textures to brushes in Trenchbroom.
The Next Step
Congratulations! You’ve completed the Beginner’s Guide to Qodot. From having completed this guide, you should be able to build maps in Qodot and apply textures from Trenchbroom to Godot geometry.
Here are some common next steps for developers:
Next step | Link |
---|---|
Apply materials and shaders to brushes: | Textures |
Place Godot scenes using Trenchbroom: | Entities |
Prepare a project for scaling up: | Best Practices |