Hjalte, 1 month ago I'm working on #Szrot, a PS1-inspired car game about Yugoslavia. We really needed a way to quickly make tracks & roads. 🧵Here's what I came up with! #indiedev #gamedev #PS1 #PSX #lowpoly #pixelart video/mp4
I'm working on #Szrot, a PS1-inspired car game about Yugoslavia.
We really needed a way to quickly make tracks & roads. 🧵Here's what I came up with!
#indiedev #gamedev #PS1 #PSX #lowpoly #pixelart
video/mp4
Hjalte, 1 month ago It works by taking a strip of road and essentially duplicating it along the spline, but moving the vertices based on the tangent at that point. This was necessary to ensure we could maintain control over the mesh (see curb) video/mp4
It works by taking a strip of road and essentially duplicating it along the spline, but moving the vertices based on the tangent at that point.
This was necessary to ensure we could maintain control over the mesh (see curb)
Hjalte, 1 month ago You can also rotate points on the spline (I included an option to use world up to ensure flat road) video/mp4
You can also rotate points on the spline (I included an option to use world up to ensure flat road)
Hjalte, 1 month ago Since it's using Unity's splines, we can also use the included features, like spawning objects along the road video/mp4
Since it's using Unity's splines, we can also use the included features, like spawning objects along the road
Hjalte, 1 month ago Eventually I noticed there would sometimes be a little gap on closed tracks, so now it can generate an extra piece between first and last verts. So satisfying😌 image/png
Eventually I noticed there would sometimes be a little gap on closed tracks, so now it can generate an extra piece between first and last verts. So satisfying😌
image/png
Hjalte, 1 month ago Some links that were very helpful in understanding how to generate meshes along splines: https://medium.com/@lkuppers11/how-to-extrude-a-custom-mesh-along-splines-in-unity-833a97440c1b https://youtube.com/watch?v=ZiHH_BvjoGk https://assetstore.unity.com/packages/tools/modeling/splinemesh-104989
Some links that were very helpful in understanding how to generate meshes along splines:
Add comment