First week progress
Devlog #1 -- First week
Hi! im here, with some good news to share with all of you guys :)
This was the first week making Metropolitana, and a lot of things were maded in just a couple days, lets take a look.
The main objective this week: Curved roads
In this gif, you can see how the curved roads are maded, first, placing one point, then the other, and lastly a third one, which will be the "pivot point", the point who will be used to asign how curved the road will be, from where the curve will start, etc...
This will generate points to the left and right of the road. For now these points just spawn cubes to get a visual reference of how good the points are generating, and if there is any error. This points are saved as vertices, who later will be used to make triangles and then get a specific mesh for the specific road.
Thanks to this video the road curve was calculated, so if there is a programmer who wants to know how it was maded, just take a look at the video.
Also, there are some things that arent showing in that gif:
- Every point calculated shoots a ray to the floor, to calculate the distance, so when the time comes, the road will generate and move the earth below it, making it mantain a level so the road is not floating, or add a pillar to make a bridge if the distance between the road and the floor is too high.
- With a numerical value, we can adjust the distance between each point (this will be used to make more smooth curve for the players with a high end pc, and roads with less smoothness in low end pc´s)
Well, with al this said, thats what we were doing this week during the development. For a 1 person team i think its a great advancement and im happy with the way i made the code, triying to optimize everything i could, using names and writing the code in a way that any person who reads the code can understand, etc...
Take a look to some renders i made just for fun and to let you guys have a view of what i want for this game.
Have a nice day, see you soon ;)
Metropolitana
City builder game
Status | In development |
Author | North:Code |
Genre | Simulation |
Tags | 3D, City Builder, Creative, Moddable, Procedural Generation, Singleplayer |
More posts
- Road Meshes implementedNov 15, 2022
Leave a comment
Log in with itch.io to leave a comment.