Michael1 Posted July 11, 2009 Share Posted July 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
anim Posted July 11, 2009 Share Posted July 11, 2009 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 Quote Link to comment Share on other sites More sharing options...
sanostol Posted July 11, 2009 Share Posted July 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
Michael1 Posted July 11, 2009 Author Share Posted July 11, 2009 Thanks to both of you for the fast replies, that's a big help thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.