Point instance procedural
62250 69 12- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- stevenong
- Member
- 1634 posts
- Joined: July 2005
- Offline
- rafaels
- Member
- 700 posts
- Joined: March 2009
- Offline
yeah, I get an error saying mantra can't find the point object:
mantra: ptinstance couldn't find object ‘/obj/grid_object1’
mantra: Error initializing procedural ‘ptinstance’ on object /obj/geo1
Now, out of curiosity, why do it via shader rather than instance rendering parameters?
Cheers
mantra: ptinstance couldn't find object ‘/obj/grid_object1’
mantra: Error initializing procedural ‘ptinstance’ on object /obj/geo1
Now, out of curiosity, why do it via shader rather than instance rendering parameters?
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
Perhaps the simplest way is to apply a procedural on “Procedural Shader” parm (Render/Geometry Tab of Geometry Object). It is important to leave “Point Object” parm on a procedural shader blank. It will peak up the geometry from its parent object then.
@rafaels Using shader instead of Instance Object lets you apply cvex shaders to instances, control size of bounding box or apply multiply shaders to single object.
Note also, that fast instances seems to be currently partially broken with IPR rendering (bug 46800), as they don't get updated properly after changes.
@rafaels Using shader instead of Instance Object lets you apply cvex shaders to instances, control size of bounding box or apply multiply shaders to single object.
Note also, that fast instances seems to be currently partially broken with IPR rendering (bug 46800), as they don't get updated properly after changes.
- rafaels
- Member
- 700 posts
- Joined: March 2009
- Offline
SYmek
@rafaels Using shader instead of Instance Object lets you apply cvex shaders to instances, control size of bounding box or apply multiply shaders to single object.
I see, I've used CVEX shader with volumes, but I wasn't aware it worked with geometry now… I mean, I haven't figured out the workflow yet or why is it different than with volumes :?
Would you care to share some tips on how to use it in the case of delayed load or point instance? The documentation isn't really helping
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- halfdan
- Member
- 599 posts
- Joined: May 2011
- Offline
Here's a neopolitan set of examples on how to use the point instancing procedural with or without CVEX.
“ptinst_vanilla” is just plain point instancing. The procedural is on the point grid. For this to work, don't refer to a point object on the procedural. It'll simply pick up the points from the object it's applied to.
“ptinst_strawberry” uses a simple CVEX to set a random scale on each instance at render time.
“ptinst_chocolate” demonstrates how to do camera-facing instances at render time, through CVEX.
Try using a fairly recent build of 12.0 for these examples to work.
Hope this helps. Please feel free to post any followup questions, bugs etc.
“ptinst_vanilla” is just plain point instancing. The procedural is on the point grid. For this to work, don't refer to a point object on the procedural. It'll simply pick up the points from the object it's applied to.
“ptinst_strawberry” uses a simple CVEX to set a random scale on each instance at render time.
“ptinst_chocolate” demonstrates how to do camera-facing instances at render time, through CVEX.
Try using a fairly recent build of 12.0 for these examples to work.
Hope this helps. Please feel free to post any followup questions, bugs etc.
Halfdan Ingvarsson
Senior Developer
Side Effects Software Inc
Senior Developer
Side Effects Software Inc
- rafaels
- Member
- 700 posts
- Joined: March 2009
- Offline
Awesome! Thanks a lot, Halfdan, will give it a try tonight
Cheers
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- Alejandro Echeverry
- Member
- 691 posts
- Joined: June 2006
- Offline
Thank you very much!!!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
- zarti
- Member
- 330 posts
- Joined: July 2007
- Offline
- pbowmar
- Member
- 7046 posts
- Joined: July 2005
- Offline
Hi Halfdan,
Very helpful! I'd recommend some examples showing how to override materials etc.
I notice that adding an attribute of the correct type to the point does _not_ override the shader on the instance, is that expect? I seem to have to actually use the Material SOP's “Local Overrides” parms which isn't super procedural… but perhaps is just my mindset which needs adjusting
Cheers,
Peter B
Very helpful! I'd recommend some examples showing how to override materials etc.
I notice that adding an attribute of the correct type to the point does _not_ override the shader on the instance, is that expect? I seem to have to actually use the Material SOP's “Local Overrides” parms which isn't super procedural… but perhaps is just my mindset which needs adjusting
Cheers,
Peter B
Cheers,
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Here's a few whipped up and one from Silvina from sidefx > ( cvex fast pointinstancing) I have found using attributes to control everything is just way more simpler ! . When I get time I will jam up some details and more instance files on my site. Also the relative paths it would seem are broken. Bug submitted.
Hey Peter , per point yes using the material sop is the way to go > set to fast point instancing and local overrides. For the geometry from disk example you will need to bring your own bunny
Rob
Hey Peter , per point yes using the material sop is the way to go > set to fast point instancing and local overrides. For the geometry from disk example you will need to bring your own bunny
Rob
Gone fishing
- pbowmar
- Member
- 7046 posts
- Joined: July 2005
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Hi Peter,
This is for you “plague of bunnies” I figure to really see what the go is with speed. Ive written a bunny out to mantra archive and then delay loaded it into a geometry container which I have full point instanced with a N and Pscale thrown in for good measure. Grab a bunny from above as Ive not included it.
To be honest its rendering at a slow pace even on my duel 12 core xeon when the scene is pretty basic and the bunny geometry archive is 1.3 mg. Anyway its a starting point
Rob
This is for you “plague of bunnies” I figure to really see what the go is with speed. Ive written a bunny out to mantra archive and then delay loaded it into a geometry container which I have full point instanced with a N and Pscale thrown in for good measure. Grab a bunny from above as Ive not included it.
To be honest its rendering at a slow pace even on my duel 12 core xeon when the scene is pretty basic and the bunny geometry archive is 1.3 mg. Anyway its a starting point
Rob
Gone fishing
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Some point instancing of lights using instancepoint(), must say Ive point instanced geometry lights before and used a custom shader to get some nice effects using material overides. It would be nice though to override the default lights with more control as I take it a default light uses a light shader which seems to be inaccessible to create overrides per point in sops.
Rob
Rob
Gone fishing
- rafaels
- Member
- 700 posts
- Joined: March 2009
- Offline
I remember using the volume procedural, as well as a CVEX shader VOPs inside a material shader builder SHOP and it worked fine. Is there a rationale behind the choosing one method of building over another?
Why is there a SHOP point instance procedural and why is there a VOP-SHOP one?
Cheers
Why is there a SHOP point instance procedural and why is there a VOP-SHOP one?
Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
- Alejandro Echeverry
- Member
- 691 posts
- Joined: June 2006
- Offline
Hi!!!
Very nice topic!!!
I want to share a setup for a very basic crowd of spiders.
The animation is defined in CHOP's.
Finally all the spider rig is controlled with the instancepoint() function for each agent.
I'll upload the rendered animation in vimeo soon.
Very nice topic!!!
I want to share a setup for a very basic crowd of spiders.
The animation is defined in CHOP's.
Finally all the spider rig is controlled with the instancepoint() function for each agent.
I'll upload the rendered animation in vimeo soon.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Last one for good measure. Now all we need to top this thread off is a simple point instanced geometry with offset animation in chops …….
For this example you will need to make your own random point colours , delete the otl in the scene and replace with a colour sop set to random. Check out the custom light shader aswell
Rob
For this example you will need to make your own random point colours , delete the otl in the scene and replace with a colour sop set to random. Check out the custom light shader aswell
Rob
Gone fishing
- pbowmar
- Member
- 7046 posts
- Joined: July 2005
- Offline
Hi Rob,
Since you're much more in touch with the Instancing voodoo, please help with this real-world case (but using the bunny):
-materials are applied to geometry groups. Unfortunately, I have rarely found that a single object-level material is realistic.
-I then want to override parameters on a per-instance basis on a specific material.
I can't get this to work Not using Fast Point Instancing isn't an option as the real world case for this is models of millions of polygons per model. Other than the Materials override problem, this works brilliantly in Fast Point Instancing, I can do “billions” of (instanced) polygons with great results.
In the .hip file, I have a simplified example. The bunny has its ears in a group and body is everything else. Base materials applied.
Then I try to use the Material overrides, but it doesn't work
Cheers,
Peter B
Since you're much more in touch with the Instancing voodoo, please help with this real-world case (but using the bunny):
-materials are applied to geometry groups. Unfortunately, I have rarely found that a single object-level material is realistic.
-I then want to override parameters on a per-instance basis on a specific material.
I can't get this to work Not using Fast Point Instancing isn't an option as the real world case for this is models of millions of polygons per model. Other than the Materials override problem, this works brilliantly in Fast Point Instancing, I can do “billions” of (instanced) polygons with great results.
In the .hip file, I have a simplified example. The bunny has its ears in a group and body is everything else. Base materials applied.
Then I try to use the Material overrides, but it doesn't work
Cheers,
Peter B
Cheers,
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- pbowmar
- Member
- 7046 posts
- Joined: July 2005
- Offline
-
- Quick Links