Jump to content

Assigning material per primitive of instances


Recommended Posts

Greetings!

I have a branch that I have scattered instances of leaves on. So a branch consists of about 20 points of leaves. I pack the leaves.  I then pack the branch with the leaves before I copy the branch(now with the leaves packed with it) onto the tree. Now I get about 1000 branches with 1000 sets of leaves. 
I have made a leaf material that works good if each leaf is its own instance/point. However in this case where one instance of leaves consists of 20 leaves/points I get weird results. How would I go about to assign my material so it effect each primitive instead of set of points?

treeTeststuff.hip

Edited by hampuseh
Link to comment
Share on other sites

hi,

1. if you post a hipfile demonstrating the issue it will be easier to help you. 

2. do you have any special reason to pack things in a way you do? i mean, having multiple packed levels isn't typically a great idea. can you pack leaves and branches separately? alongside that, unless your branches are duplicate geometries, there is no benefit from packing them.

3. materials should work fine if assigned on primitive level before packing. if you need to assign them after packing use material stylesheets, or Packed Edit SOP (simpler but doesn't offer that much)

 

Link to comment
Share on other sites

Sorry my bad, I am not the best at explaining what issues I am having. 
I added a hip file that mostly shows how my setup is made. 
 

I am instancing hundreds of trees and I figured that instancing the branches and set of leaves per branch would make sense. I forgot to mention that I pack both the branches and leaves together for animation purposes. After the animation I use a unpack sop and I am then left with the branch instances and leaf instances separated. 


I will try using stylesheets and see if I can get something going :)

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...