Jump to content

Instancing and stamping


Recommended Posts

Hi,

I'm trying to learn how to use instancing but would also like to have the same control you get with the stamp function of the copy sop.

I have tried using the instancepoint() function, but I was wondering if custom attributes can be used as well to drive the variation.

Here's a simple example of what I'm trying to achieve: instancing.hipnc

Cheers

Michael.

Link to comment
Share on other sites

take a look at this thread, maybe it'll clear some things up for you

http://forums.odforce.net/index.php?showto...p;hl=instancing

if not just note that you cannot vary sop geometry per instance(unless it is done by displacement shader)

you can however instance subnet with two box objects inside and one of them will have scale affected by the $CR attribute as you have done in sops by copystamping

to get access to $CR you can use point() expression with instancepoint() (look at the file in thread i posted above)

you can also use attributes which will be automatically adapted by instances, like float3 attribute "scale" which can be used for varying height

for list of attributes you can use: http://www.sidefx.com/docs/houdini10.0/copy/instanceattrs

for all your custom attributes use point() with instancepoint()

and do not forget to read the documentation

http://www.sidefx.com/docs/houdini10.0/copy/

and maybe this as well

http://www.sidefx.com/index.php?option=com...&Itemid=216

Link to comment
Share on other sites

You can not modify stuff inside sop with instances. Thats copySOP's district.

Instances are used if You need a huge amount of objects. the memory footprint is very low, as mantra only needs the object descriptrion once. As soon as You individulize the instances this advantage would be gone. thats a job for the copySOP. But You can individualize it on the object level.

keep in mind if You do a subdivision surface or a displacement of the instance the advantage is gone, too.

Hi,

I'm trying to learn how to use instancing but would also like to have the same control you get with the stamp function of the copy sop.

I have tried using the instancepoint() function, but I was wondering if custom attributes can be used as well to drive the variation.

Here's a simple example of what I'm trying to achieve: instancing.hipnc

Cheers

Michael.

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...