Point instance procedural

   60093   69   12
User Avatar
Member
7025 posts
Joined: July 2005
Offline
rafaels
Such RFE, if implemented would be a dream come true!
Thanks
I dreamed of this last night…
User Avatar
Member
183 posts
Joined: Nov. 2008
Offline
Copy Stamping technique to modify shader parameters on the instance points.

As jeff said - It's easily doable with Material SOP, No problem at all.
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
User Avatar
Member
383 posts
Joined:
Offline
I ve got some question about the use of attribute and variables in SOP level

let's say I create a attribute“number”.
I can now use it to open a specific object when I create the “instancefile” attribute. The value could be something like:
$HIP\myobj`$NUMBER`.bgeo

I tried to do the same with material SOP to change the material itself.
In the path of the material to assign. I write something like :
../shopnet1/vopmaterial`$NUMBER`

But it doesn't work ( with the build 660).
It is possible to use different material per instance ?
Or Have to overide parameters via material SOP ?

If Overide is the only way, maybe, fsimerey, could you upload your hip file with the for each trick for me please.
I am trying to fill an arena. I have now combination of animated characters and the shading is the last part of this little project.

Thanks for your help and this thread guys. More than welcome IMHO.
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
279 posts
Joined: Dec. 2009
Offline
Here my hip file. Hope that can help you

Attachments:
pts_instance_public.hip (4.3 MB)

User Avatar
Member
383 posts
Joined:
Offline
thx !

P.S.
I added on my vimeo a instance anim test.

https://vimeo.com/45917004 [vimeo.com]

It 3 instancers combined. The color is just a litle test to begin to see how the override works with material sop.
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
10 posts
Joined: Sept. 2008
Offline
Hello all.

This is a great thread.

I have set up instancing a volume from a delayed read and really need
To read from a random file.
Eg.
Box1.bgeo
Box2.bgeo
Box3.bgeo

These instances with all share the same Material overrides
And the volume shader to be used.
I have got everything working apart from the random file instancing.
Is this possible through stamping a file from disk to random points?


Many thanks.
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
I believe you can add a string attribute to your points in SOPs called:

instancefile

and it should contain a path to the geometry on disk that you wish to instance on that point.

You currently can't write/edit this point string attribute in the CVEX procedural.
There's at least one school like the old school!
User Avatar
Member
10 posts
Joined: Sept. 2008
Offline
Thanks for the response Jeff.
I will give this ago when I get a chance.
User Avatar
Member
10 posts
Joined: Sept. 2008
Offline
Jeff thanks :wink:

After a nice coffee and a few reads of this very informative thread. I got my head into the many and wonderful ways of instancing geometry.

instancefile works fine for what I need.


Thanks again.

User Avatar
Member
1 posts
Joined: March 2012
Offline
Hi Guys

bit late to the party but…

how do you add cvex displacement alongside a volume procedural whilst instancing using the “instancefile” attr?

If anyone has done this and has a solution or any advice that would be great and hugely appreciated.

It is fairly easy to do all of this if your volumes to instance are within your hip scene. However once you are only referencing them from disk I am struggling to run the cvex over each instanced volume (of which I am using 20 different variations hence using the “instancefile” attr.) I am also trying to volume sample each instance to pull in surface, rest etc primitives into the cvex context to drive my displacement.

many thanks

tom
  • Quick Links