Search - User list
Full Version: Create Lighting Variations across multiple lights using vex
Root » Solaris and Karma » Create Lighting Variations across multiple lights using vex
longedesigns
Hello,

So i am wondering if it is possible to randomise specific attributes in the lighting settings across multiple lights using VEX in Solaris. Instead of using the lighting mixer to individually tweak each light.

I want to be about to randomise the lighting exposure or colour across multiple lights using vex. Jus not sure which attributs to pull in to control that function in vex.

Is this possible in Solaris?
Hamilton Meathouse
There is a glimpse at doing some of that in this pixar video: https://youtu.be/hyxh0cp7y9Y?t=585 [youtu.be]
goldleaf
That video demonstrates how to do it on the source points, when generating reference-copies of lights, and works great. You can also do it with a Wrangle in LOPs. Note that in the USD version that ships with H19, light parameters have an "inputs:" prefix, as they will soon be connectable for light shaders.

Just point the prim pattern at the lights you want to affect, and away you go!

@inputs:exposure = fit(random(@elemnum),0,1,0,3);
v@inputs:color = hsvtorgb(set(random(@elemnum),1,1));
@inputs:width = fit(random(@elemnum),0,1,0,1.5);
@inputs:height = fit(random(@elemnum),0,1,0.5,2.5);

HTH!
longedesigns
Hey guys thanks for that im going to give it a try now in my scene.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB