Assigning geometry on different coloured primitives.

   3715   6   0
User Avatar
Member
9 posts
Joined: 1月 2012
Offline
Hello, I'm new to this forum and I'm new to Houdini as well I need some of you experience concerning a project I'm doing. I'm trying to build a procedural city in houdini 11 and so far I have created the city pattern. This pattern consists of many primitives (or faces) and I have assigned a colour sop, giving each primitive a different random color.
My question is how do I assign buildings ( I have them as a digital assets) to its individual color? For example green color will have building01 and yellow color will have building02 and so on.

Thank you in advance.
User Avatar
Member
512 posts
Joined: 7月 2009
Offline
here's one way of doing it, enjoy

cheers,

Manu

Attachments:
Building_stamping_Manu.hipnc (99.2 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
9 posts
Joined: 1月 2012
Offline
you sir…you are magnificent! thank you so much.
User Avatar
Member
9 posts
Joined: 1月 2012
Offline
if I try to add more than one building asset they go into the same primitive, I'm trying to figure out your expressions in the nodes but having a hard time being a newbe with houdini. If I want more buildings to go into different colored primitives do I mess with the partition node?
User Avatar
Member
9 posts
Joined: 1月 2012
Offline
I have attached a picture of my city patern. Each node has a different color. So far I have 3 digital assets, big building, small houses and medium houses.
For example I want to put the big building in blue colored primitives, medium house to yellow colored primitives and small house into green colored primitives.

I'm sorry if ask to much.

Attachments:
patern.JPG (164.6 KB)

User Avatar
Member
512 posts
Joined: 7月 2009
Offline
I set something up for you, dealing with specific colors now in this case, this way you handle the assignment of buildings!
I'm sure there are better way to do this but I'm kind of busy right now

Attachments:
Building_stamping_Manu_02.hipnc (162.6 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
9 posts
Joined: 1月 2012
Offline
my friend I appreciate the time you devoted for me. Thank you very much
  • Quick Links