I have a collection of 3D assets and I want to do some automated test renders of them for quality control and I'm looking into PDG for that end. These 3D assets are NOT just bgeo.sc geometry caches but a houdini OBJ subnet with a hierarchy inside of nulls and geo OBJ nodes with their own matnets.
Explicit steps from what I grasp atm would be something like:
1 - Set on template points or primitives an attribute referencing which 3D assets network will be loaded and use them to generate work items with geometryimport TOP the work items per 3D asset to be processed.
2 - Load the designated 3D asset into /obj network or an OBJ network, using Python; hou.node("/obj").loadItemsFromFile().
3 - Fit the 4 cameras (Front, Top, Side, Perspective) camera to the 3D asset. This can be done by having the cameras rigged already waiting for a subnet to be passed to then fit to its contents.
4 - Render the 4 images. (Maybe generating 4 new PDG work items per render so it can be scaled if more views are needed)
5 - Composite those 4 rendered images into a single image contact sheet probably with ImageMagik TOP
I suspect I'll find enough material out there for the last two items, but it's the first two and especially step 2 is what I'm asking for some insight.
I did a quick test (attached) and was unsuccessful to use pyhton to create simple objects from scratch and render them individually.
I'm also wondering if it would be best to convert these OBJ networks to USD and if that would make this whole goal much simpler when it comes to PDG managing the variations of the render setup.
Thanks
prb
