|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Loading Textures in Trenchbroom |
| 4 | +nav_order: 5 |
| 5 | +parent: Beginner's Guide to Qodot |
| 6 | +--- |
| 7 | + |
| 8 | +# Loading Textures in Trenchbroom |
| 9 | + |
| 10 | +This guide covers managing textures between Godot and Trenchbroom, to allow brushes to build with textures. |
| 11 | + |
| 12 | +Read the Trenchbroom manual to learn more about applying textures to brushes in Trenchbroom. |
| 13 | +- [Applying textures in Trenchbroom](https://trenchbroom.github.io/manual/latest/#working_with_textures) |
| 14 | +- [Managing texture collections in Trenchbroom](https://trenchbroom.github.io/manual/latest/#texture_management) |
| 15 | + |
| 16 | +1. TOC |
| 17 | +{:toc} |
| 18 | + |
| 19 | +# Using Generic |
| 20 | + |
| 21 | +This assumes you want to setup textures as fast as possible for use in Qodot by overwriting the Generic game definition in Trenchbroom. |
| 22 | + |
| 23 | +You'll need a `res://textures` folder to hold map textures. These textures will be read from both Godot and Trenchbroom. |
| 24 | + |
| 25 | +1. Open Trenchbroom |
| 26 | +2. Click "New Map" |
| 27 | +3. Go to "Preferences" |
| 28 | +4. Click "Generic" |
| 29 | +5. Set Game Path to your Godot project directory |
| 30 | +6. In your Trenchbroom map, enable the texture collection `/textures` |
| 31 | +7. In Godot, set the Textures Dir of your QodotMap node to your /textures folder |
| 32 | +8. Click Build Map to see the results |
| 33 | + |
| 34 | +Note |
| 35 | +{: .label .label-blue } |
| 36 | +Both the file path and texture name cannot contain UTF-8 characters or spaces. |
| 37 | + |
| 38 | +# Using a Game Definition |
| 39 | + |
| 40 | +This is effective if you have multiple projects using Qodot, or if you need to use any entity definitions. |
| 41 | + |
| 42 | +1. Create a [Game Definition](../entities/cfg.html) |
| 43 | +2. Open Trenchbroom |
| 44 | +3. Click "New Map" |
| 45 | +4. Go to "Preferences" |
| 46 | +5. Click your game's name |
| 47 | +6. Set Game Path to your Godot project directory |
| 48 | +7. In your Trenchbroom map, enable the texture collection `/textures` |
| 49 | +8. In Godot, set the Textures Dir of your QodotMap node to your /textures folder |
| 50 | +9. Click Build Map to see the results |
| 51 | + |
| 52 | +If you need more guidance on these steps, consider reading the page on [Game Definitions](../entities/cfg.html) to create a personalized Trenchbroom setup for your project. |
| 53 | + |
| 54 | +# The Next Step |
| 55 | + |
| 56 | +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. |
| 57 | + |
| 58 | +Here are some common next steps for developers: |
| 59 | + |
| 60 | +| Next step | Link | |
| 61 | +| :------------------------------------------------------------------ | :------------------------- | |
| 62 | +| Apply materials and shaders to brushes: | [Textures](../materials.md) | |
| 63 | +| Place Godot scenes using Trenchbroom: | [Entities](../entities.md) | |
| 64 | +| Prepare a project for scaling up: | [Best Practices](../best-practices.md) | |
0 commit comments