Switch SOP with condition for viewport/render

   398   3   0
User Avatar
Member
15 posts
Joined: 9月 2024
Offline
I guess this is a very common use case in Houdini, but I couldn't figure out an automatic way. I need to switch between a low poly and a high poly model at the start of a network and want to use the low poly for display in the viewport and the high poly for rendering. I don't want to copy the whole SOP chain and use the display/render flags at the end. My approach was to have a switch right at the beginning of the SOP chain, but I couldn't figure out a script condition to find out whether it's for the viewport or for rendering.

How is this usually done?

Many thanks
Marc
User Avatar
Member
8778 posts
Joined: 7月 2007
Online
Put your high and low res geo into subnet with Render Flag on High res and Display on Low res geo

Then during interactive session that subnet will output low res (display flag) and during render or caching the high res (Render Flag) which will then flow through the same downstream Sop chain
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
15 posts
Joined: 9月 2024
Offline
Many thanks, that's it. I really appreciate your help.
User Avatar
Member
15 posts
Joined: 9月 2024
Offline
I didn't manage to make this work in Solaris. It always loaded the geometry with the display flag. I know use a "Configure Primitive" LOP in Solaris to set one version of the geo to "Proxy" and the other one to "Render".
Edited by gmarc - 昨日 02:42:51
  • Quick Links