Week 4
Week 4
In this week I reworked the building generation process to allow for the creation of different building styles in the future.
In this version, when gen_buildings() is called, the function creates a list of tuples containing X and Z coordinates. The final line in the function calls the member function create() with the new coordinate list as the argument. The create function then loops over these tuples, creating new buildings and moving them into place.
I made a change to the function calling order so now the gen_buildings() function returns the building list. This will allow me to use the function later for other purposes. The create() member function now call the gen_buildings() function rather than the other way around.
Next I created the street functionality. This function first creates a ground plane and some extrusions on the buildings. This imitates a pavements around the bottom of the buildings.
Here is the outcome using my generator:
To Do:
- Link pavements to make more believable roads.
- Add function to populate city with cars.
- Fix ground plane transforms in street function.
Maya Scripting - City Generation
Status | In development |
Category | Other |
Author | up2115462 |
Leave a comment
Log in with itch.io to leave a comment.