"Great driving. You've qualified to roll"
In a prior racing adventure, I used modular track segments-this proved more complicated than it would seem. As such, I drew a course in a vector graphics program and imported the SVG file into Blender. Solely for proof-of-concept purposes, I based it on the Fujiyama Speedway as depicted in Namco's "Pole Position II".
In Blender, the file showed up as a coplanar vertices and edges, so getting two additional dimensions required
- Converting the path to a Mesh, so that I could work with it
- Extruding the mesh vertically, creating a set of zero-thickness faces in the shape of the outline
- Solidifying these faces, making boxes of varying length and orientation, but uniform width and height
The "solidify" operation, BTW, helps one avoid the "front but no back" problem when the game engine has to render a side of an object
There came other artistic challenges, and matters with the Navigation Mesh, that led me to separate the walls from the roadbed.
The next step was setting waypoints on the roadbed so that the engine's pathfinder ("movement AI") would always move in a forward direction. This made it easier to set an AI destination that was ahead of the player.
I ran into a problem when the camera ended up outside the course, but was aimed at the car, and got around it by making the walls chain-link fences with transparency.
So far, I think highly of the Universal Rendering Pipeline, as I seem to get higher framerates with the graphics chip dealing with rendering.
Get GEMTrak
GEMTrak
Grand Prix-style racing in Ground-Effect Machines
Status | In development |
Author | fljohnson3 |
Genre | Racing |
More posts
- Desktop Ahoy!Oct 15, 2021
- To the Phillytron, Robin!Oct 11, 2021
- Now THAT'S a proof of concept!Sep 28, 2021
- A lesson in how NOT to solve itSep 27, 2021
Leave a comment
Log in with itch.io to leave a comment.