KT to TMI?
424 2 2- gordig
- Member
- 43 posts
- Joined: Sept. 2019
- Offline
I'm used to being able to easily dial in a color temperature in Kelvins in C4D, but I don't see a way to do that in Houdini. I can take a Kelvin temperature and read the TMI values in C4D, but TMI values are far from intuitive. The current situation is that I've got a set of planes set to various Kelvins that I'm trying to set up as lights in the Stage, with a single material for the emission. As I've already discovered, I can't just use a geomprop VOP to grab the Kelvin from the @name and plug that into emissive color, because it needs to be translated. I pulled a table of Kelvin to RGB values from here [andi-siess.de], saved that as a CSV and imported it with a Table Import SOP, and I've been TRYING to create a dictionary with K as the key and the RGB vector as the value, but I haven't worked out a way to pull that off. Does anyone have any insight into how I could pull this off? Or am I better just grabbing the RGB values straight from the chart and manually applying them according to Kelvin temperature?
- FaitelTech
- Member
- 105 posts
- Joined: July 2019
- Offline
If you'd like to use just kelvins without luminance, you can apply them using Color Picker.
If you have Kelvins + Luminance Chart [physicallybased.info], you can make a VEX wrangle to convert Temperature + Luminance to XYZ universal color space and then to linear sRGB;
If you have Kelvins + Luminance Chart [physicallybased.info], you can make a VEX wrangle to convert Temperature + Luminance to XYZ universal color space and then to linear sRGB;
int temperature = chi("Temperature"); int luminance = chi("luminance"); vector blackbody = blackbody(temperature, luminance); vector rgb = xyztorgb(blackbody); @Cd = rgb;
- tamte
- Member
- 8798 posts
- Joined: July 2007
- Online
Have you tried MtlX Blackbody? [www.sidefx.com]
Edited by tamte - Nov. 27, 2024 09:45:42
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links