Jump to content

Instancing Trees, or any Object?


Atom

Recommended Posts

Hi All,

I have a circle that I have scattered a few points on. I also have a tree as an object, one level up. Inside the circle I bring in the tree via an Object Merge and copy it to the points. This works, however, this is not "instancing" is it?

Is there an Instance Merge node I could drop in? Can I still use Copy with instancing?

How do I leverage instancing? I also read that there is instancing for Mantra as well. Does that mean there are two kinds of instancing? One at the scene/viewport level and one at the Mantra level?

post-12295-0-32072100-1445365384_thumb.p

Edited by Atom
Link to comment
Share on other sites

yes, using copy SOP is instancing. you can also use "Instance" object and specify a standalone geometry as an instance. technically it is the same thing as using packed geometry with copy SOP, but on object level rather than SOP level. performance should be very similar (as far as I tested it). 

Link to comment
Share on other sites

But worth to note that there are few things that works better/easier using standard Instancing. So just use Instance SOP, than inside scatter point and in object level select node you want to Instance.

 

This is the way to do it.

I just wanted to add this additional info:

 

Here are some attributes that work with instances, so you can randomize scale and orientation for example:

 

orient  - float4 (quaternion)
pscale  - float
scale   - float3
N       - vector
up      - vector
v       - vector
rot     - float4 (quaternion)
trans   - vector
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...