Improve Truck Town model, fix issues, use OMI glTF Physics #1110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the Truck Town demo, fixing many issues, and making use of the updated OMI glTF physics in Godot 4.3. Now, instead of the physics information being defined in the
.import
file, instead the physics is defined inside of the.gltf
file itself. This means that theoretically anyone can grab the Truck Town model and use it in another project or even another game engine without setting up all the physics again.For the sake of allowing users to learn about the glTF extensions, I kept the model as a
.gltf
text file instead of a.glb
binary file, so that anyone can open it in a text editor.The model is now centered on the map, such that the outer ground mesh has a rectangle cut out of its center. I moved the CSG racetrack into a separate scene to preserve the source geometry in case someone wants to edit it, but I put it in the .glb file so that I could fix some issues with the textures (see below).
This PR also fixes several problems with the meshes and materials. I fixed a lot of cases of weird texture stretching. I fixed some of the doors not being yellow (as it seems was intended). I removed the (2, 2, 2) scale on the UV map, instead baking the UV map scale into the UV map itself. Here are some comparison screenshots, where the left side is the old demo and the right side is this PR.