oglu
im wondering what the real differnce between procedurals and instances are..?
isnt that the same thing...?

woulnt it be the same if i instace some alembic obejcts in maya around...
or doing the same with a procedural...?

and what is a DSO in renderman..?


its not cleatr to me...
https://renderman.pixar.com/resources/current/RenderMan/proceduralPrimitives.html
https://support.solidangle.com/display/ARP/Procedurals
noizfactory
Instances are primitive types that are essentially copies of a geometry (in Maya terminology "shape" node) that are just transformed differently - same as when you duplicate special something in Maya as an instance. All the instances share the same shape node. This makes the file considerably lighter and more efficient to handle. The same goes for the rendering context where the same geometry, when created once, can be re-used in memory and just shaded differently by the renderer without the need to dice or tessellate the geometry again.
Procedurals on the other hand are renderer plugins or sub-programs that end up creating whatever geometry you wish to at run-time thereby letting you use light weight scenes. These can include things like hair/fur (curves), polygon geometry (including lots of crowd) and even instances themselves. As a very crude example, think of creating a 100000/100000 grid of a tree geometry using instance mode in Maya manually, render it in your scene and then delete it after the render is done. Even with instances, the scene could get slower and slower as you increase the count, not to mention it can be a pain if you had to change a few parameters like some scale randomisation or color, etc. And now think of a MEL or Python script that actually creates all that for you based on input parameters like grid size, random scale, etc. but hook this up in the pre render MEL script and in post render MEL script write another one that deletes all the tree instances. So now even though there's nothing in your scene, when you hit render, it creates all these instances on the fly, renders them and post render your Mel callback deletes them so you're back to a lightweight empty scene. It's not the greatest example but I hope it illustrates the point. So similarly, in a renderer you can write a similar plugin program to do the same stuff at render time and scale complexity very quickly. Another example - you can just use an alembic procedural for renderman or Arnold along with the GPU cache node in Maya and now you don't have to deal with 1000s of shape nodes in Maya, render tons of these but still get faster viewport feedback. And in some cases depending on what your procedural does, you can even instance procedurals.
DSOs are not specific to renderman only. In rendering context, they can be full blown shaders, or helper plugins for shaders to generate some effect and return the result back to the shader, or output drivers that support a different file format, or procedurals, etc.
Reply 0 0
oglu
thanks for the detailed answer... now its much clearer...
Reply 0 0
Reply