demOOn
Hi!
I want generate object instances for rendering in prman.
If adding Instance properties to points it generate rib like
ArchiveBegin “/obj/teapot
obj/points:0”
…..Instance geometry…
ArchiveEnd
….
ReadArchive “/obj/teapot
obj/points:0”
….
but needed
ObjectBegin 101
….Instance geometry….
ObjectEnd
….
ObjectInstance 101
….
I found declaration ObjectInstance in RIBapi, but
not found way how use it. Please help.
You can use the RenderMan Delayed Read Archive SHOP.
1) Put down an instance object.
2) Turn on point instancing
3) Assign the DRA SHOP to the object you are instancing
An alternative to (3) is to put down a material SOP in your instance
object, and set its “Attributes” to “point” (assigning a material per
point), then assign the DRA material onto the points. This would let
you change the DRA on a per-point basis (if you didn't want to
instance teapots at all instances.
Oh, for numeric instance id's, you'll have to turn off the
“stringhandle” feature (see the SOHO python files).