force render proxy purpose geo

   2046   5   0
User Avatar
Member
31 posts
Joined: July 2015
Offline
Im trying to figure out if its possible to switch a component to force render the proxy purpose instead of render while rendering with karma.

The goal is to be able to switch parts of the environment for example to render as purpose proxy when they are in phantom. Escpecially when they are reference instance as in the example below.

Does somebody now if this is possible, or would solve it in another way with creating variants from the proxy puropse or inherits perhaps?

Attachments:
purpose_proxy.png (295.8 KB)
purpose_render.png (339.8 KB)
purpose_scenegraph.png (17.6 KB)
purposes.hip (2.1 MB)

cg supervisor @goodbyekansas
User Avatar
Member
273 posts
Joined: Nov. 2013
Offline
Variants are probably the easiest way to go if you want to force an asset to a particular representation irrespective of what purposes the renderer is utilizing. Variants mean the user doesn’t need to worry about the details of what prims need to be configured, they can just flip the switch.
User Avatar
Member
31 posts
Joined: July 2015
Offline
Yes sound like probably the way to go. I wonder if its possible with the component builder to make a variant out of the purposes. The problem now is that we need to do both. One variant setup with the *component geometry variants* node and iniside as purpose. Would be cool if we can get a proxy variant out of the purpose output. Cant really wrap my head how to do that though
cg supervisor @goodbyekansas
User Avatar
Member
273 posts
Joined: Nov. 2013
Offline
There's a handy node called "component geometry variants" that works in conjunction with the component builder that allows you to plug in multiple component geometries as input and it creates variants automatically. So a second component geometry that just grabs the proxy geo from the first and plugs it into the render geo seems to work ok.
Edited by antc - April 5, 2022 11:55:52

Attachments:
purpose.hipnc (467.1 KB)

User Avatar
Member
8555 posts
Joined: July 2007
Offline
to answer the original question it is definitely possible
since you are in control which prims have which purpose
so for your render pass where your geo is rendered as phantom you can flip proxy/render purposes for those prims for example
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
31 posts
Joined: July 2015
Offline
Unfortunately i cant when they are reference instances like in the hip file i included i only have access to the top/component prim which i can attach variants as suggested by antc
cg supervisor @goodbyekansas
  • Quick Links