In all other applications, like Photoshop, Illustrator, Paint, etc. the RGB values range from 0-255
But in Houdini, they range from 0 to 1.
How to do colour matching in Houdini for colours being used in other apps? Is there a way the colour SOP allows values from 0-255 and reinterprets them from 0 to 1 equivalent?
RGB values scale of 0-255 in Houdini?
1695 5 1- proceduralist
- Member
- 188 posts
- Joined: May 2021
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
or you can create a new spare vector parameter, name it `pscolor`, set it to range 0-255 and then apply the following expression to the color parameter:
that remaps the 0-255 values from your input into the 0-1 range used by Houdini
check the example file
fit(ch("pscolorx"), 0, 255, 0, 1)
that remaps the 0-255 values from your input into the 0-1 range used by Houdini
check the example file
Edited by Andr - Feb. 9, 2023 07:38:48
- jsmack
- Member
- 7770 posts
- Joined: Sept. 2011
- Offline
proceduralist
How to do colour matching in Houdini for colours being used in other apps? Is there a way the colour SOP allows values from 0-255 and reinterprets them from 0 to 1 equivalent?
The colors won't match anyway. Those values are for 8bit video space color, the values in Houdini and other CG apps are floating point linear color.
- proceduralist
- Member
- 188 posts
- Joined: May 2021
- Offline
Andr
or you can create a new spare vector parameter, name it `pscolor`, set it to range 0-255 and then apply the following expression to the color parameter:fit(ch("pscolorx"), 0, 255, 0, 1)
that remaps the 0-255 values from your input into the 0-1 range used by Houdini
check the example file
AndrThat seems to work! The hex values of the RGB values generated by your file are matching exactly! Thanks a ton!
If you click on the parameter to open the colour editor, you can copy/paste a hex color code like CCABDF
- proceduralist
- Member
- 188 posts
- Joined: May 2021
- Offline
jsmackproceduralist
How to do colour matching in Houdini for colours being used in other apps? Is there a way the colour SOP allows values from 0-255 and reinterprets them from 0 to 1 equivalent?
The colors won't match anyway. Those values are for 8bit video space color, the values in Houdini and other CG apps are floating point linear color.
They are matching indeed. Check the file.
-
- Quick Links