TB2 - Week 3
This week I began working on trying to add cars, as well as thinking about how I would incorporate roads into the city. This caused a lot of challenges as the initial way I was creating the city was extremely random.
Here is a test of creating a basic car shape using a cube and selecting faces and moving them. This was way more tricky then I thought it would be as trying to find the right command for the tool I wanted to use was a challenge. Also getting the right values for how much a face should move purely through guessing and iteration was a time consuming pain.
I then thought about how I would expand the city, generate roads and buildings without clipping into eachother. I then settled on building the city in a tile like system. This would help keep my focus on building on randomly generated tile that can be multiplied as many times as the user needs/wants in the future.
I began by starting with a new file and creating a new ground plane. this would serve as a single tile, in which the buildings and the road would spring out from.
I spent a while trying to work out how to select the planes faces that I wanted to extrude, and after 20 minutes of forgetting a comma I finally managed it, this creates a plane that is 10x10 in size, then selects its faces 10-18, 20-28, 30-38, etc... and finally, extrudes them up by 1. Eventually this gap will be the curb to the road, and will be a low smaller, but it'll do for now.
Next I added the window that the user can interact with:
And then implemented a function that when clicked will generate a tile. This will eventually be what is called when the user wants to determine how many tiles the city is.
Here is a current view of what the code creates:
My Blog
Reading Time
Status | In development |
Category | Tool |
Author | up2122682 |
More posts
- TB2 - Week 10Mar 27, 2023
- TB2 - Week 9Mar 27, 2023
- TB2 - Week 8Mar 27, 2023
- TB2 - Week 7Mar 14, 2023
- TB2 - Week 6Feb 27, 2023
- TB2 - Week 5Feb 27, 2023
- TB2 - Week 4Feb 14, 2023
- TB2 - Week 2Jan 30, 2023
- TB2 - Week 1Jan 24, 2023
Leave a comment
Log in with itch.io to leave a comment.