Hello all!
Free Roam Racer Prototype
I picked up UE4 exactly a week ago after spending the summer trying to make a racing game in Unity and failing due to various hilarious engine bugs. However due to that I have various free models and textures as well as bits of code laying around. I have programmed before, but that was in Lua, and casts and types in C#/C++ get me all the time, so blueprints are a godsend for me.
To be frank, my rig is not a monster machine (Dell Vostro 3450 [Radeon 6630M] upgraded to 8 GB RAM) so I will not focus on graphics, instead working on procedural generation and AI.
Dev log - or what can be done in a week with UE4
I used [UPDATED 5/16] A.I. Templates - Bot, Car, & +Flying AI - Programming & Scripting - Unreal Engine Forums as a starting point.
I don’t have any spare money to spend, so I have to make my own functions or find free examples, so no road plugin or any of that stuff involved.
Links below lead to short webm clips.
Monday WIP, imported a road texture I had laying around
Yesterday evening, each AI has its own lane but they cut corners
FYI The lane points are generated based on the spline control points - it is all a single handplaced spline plus a bunch of blueprints
This morning - AI detecting turns. Blue debug text is because I was testing raycasting down at the same time
This evening, just before posting - the AI only brakes in turns and speeds up on straights
A reminder: all of the stuff is generated based on the single spline
Sharing & future
The game has a repo on gitlab, but set to private for now because I’m using assets from vehicle template. For the cars, I have that idea of using magicavoxel/voxelshop and making voxel cars with interchangeable bits and pieces (inside decor, brakelights, spoilers, door, window shapes etc.).
I understand that when (in the future) I manage to get rid of the template assets, I will be able to make the game open-source? Or does using blueprints make that impossible?
The plan for the nearest future is to procedurally generate static meshes along the road (test cubes for now, standing in for buildings, street lamps etc.). The AI also needs collision avoidance, and of course the game needs more roads. After that, the game needs actual races in addition to free roaming.
Any feedback is welcome! If you ask, I can also share screenshots of blueprint parts that you’d like to see.