Uriopass / Egregoria

3D City Builder without a grid
http://douady.paris/blog/
GNU General Public License v3.0
1.52k stars 52 forks source link

Add roofs #35

Closed Uriopass closed 3 years ago

Uriopass commented 3 years ago

Buildings roofs are a bit weird right now being all gray. Maybe keep the gray roofs for the supermarkets/companies (with an outline) but make actual "3D" roofs for the buildings.
I've tried coding the straight skeleton algorithm in Rust but I gave up. Might try again some day.

Uriopass commented 3 years ago

houses https://i.imgur.com/7oQZdqL.png

Made a house+roof generator using python and the polyskel lib. :-) I think I'm just going to generate like a hundred houses and use that data as exteriors.

Uriopass commented 3 years ago

After a day of hard work and debugging translating the python straight skeleton algorithm to Rust. I'm proud to say that it works ! I can ditch the python dependency and still keep a 100% Rust codebase :heart_eyes:

image

image

the roof of florida