Tile/roof builder

   3097   2   2
User Avatar
Member
6 posts
Joined: July 2005
Offline
Hi,
I'm trying to build a procedural tile roof builder for geometry tiles.
This is to add geometry tiles to existing models rather than create new roof shapes from scratch.
At the moment I have 3 different tiles that are copy stamped onto a grid using a switch to randomly place them.
I can randomly control transforms using expressions but I'm struggling with offsetting each row of tiles from the row above/below.
I also don't know how to add half tiles for the edge of the roof.

I'm guessing this has been done before for tiles or bricks so I'm hoping someone can help.


Thanks
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
Offsetting:
http://forums.odforce.net/topic/24371-calculating-roof-tile-angles-for-a-curved-roof/ [forums.odforce.net]

Edges:
In case you let lines run across your roof, you could identify the start and end of a line by counting how many points are connected to any given point. The points that only have one neighbour are end points. The VEX function's called neighbourcount.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
6 posts
Joined: July 2005
Offline
Thanks for the pointers. I also found this which could be useful..

https://www.youtube.com/watch?v=QbOgluIVSa8 [youtube.com]
  • Quick Links