adding a new render global parameter

   2222   2   0
User Avatar
Member
1694 posts
Joined: March 2020
Offline
Hi,

I want to create a parameter that would be shared between all my shaders in the scene. It is basically a sampling quality parameter, so the first obvious choice is to place it on my mantra output node.

Now what I'd need is my shaders to be able to access that parameter from the mantra node, and I wasn't able to succeed yet. (I know about attr inheritance – that output node/geometry/primitive priorities, but for some reason I can't get it to work in this instance)

i'd appreciate any ideas, thanks

imre
Imre Tuske
FX Supervisor | Senior FXTD @ Weta FX

qLib -- Houdini asset library
http://qlab.github.io/qLib/ [qlab.github.io]
https://www.facebook.com/qLibHoudini [www.facebook.com]
User Avatar
Member
8625 posts
Joined: July 2007
Offline
what is sampling quality parameter?
are you trying to create pure custom parameter?
or are you refering to some of the Rendering Parameters?

if you are adding vm_shadingquality to ROP driver it will not work because every object has it allready
but you can use vm_shadingfactor which will multiply this value (or remove it from objects)

as for custom parameter, i do not know whether they are propagated or not but i guess not, so you probably need to use expressions for them
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1694 posts
Joined: March 2020
Offline
sorry, i forgot to mention that this would be a spare (or ‘pure custom’) parameter. i've already done this using expressions, but i'm looking for something more appropriate.
Imre Tuske
FX Supervisor | Senior FXTD @ Weta FX

qLib -- Houdini asset library
http://qlab.github.io/qLib/ [qlab.github.io]
https://www.facebook.com/qLibHoudini [www.facebook.com]
  • Quick Links