Posts

Showing posts from December, 2018

Room packing

Image
Xmas has been about sketching up a setup for generation of house interiors. B ased on this but exterior being fixed. With pseudo code fleshed down, it's broken down to two parts, placement and growing. Picture is one closing in on completion. Sphere's are location inputs on which rooms are placed (here all 3x3). The algorithm then distributes while respecting constraints like -"room need at least one square of outer wall". Phase two is a kind of "pressure solving"- expanding the rooms to divide the space by need, described as rooms "pressure".