朵x格 dolag
dolag233
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Texture look like Premultiplied 2025年11月3日22:48
I find out that you should unpremult the color you get like this:
And because the inner premult came before color space conversion, so you'd always sample it as linear, then unpremult, and finally convert to your color space like sRGB.
path = r"you/image/path"; vector4 cd = texture(path, v@uv.x, v@uv.y, "srccolorspace", "linear"); // note: always use linear @Cd = cd; @Alpha = cd.a; if(@Alpha > 0){ @Cd /= @Alpha; // unpremult @Cd = pow(@Cd,2.2); // if your color space is srgb, add this }
And because the inner premult came before color space conversion, so you'd always sample it as linear, then unpremult, and finally convert to your color space like sRGB.
How to read the help of the parm with python? 2024年6月21日12:11
For thoese who find this question, if you cannot get the help string by hou.parm("...").tuple().help(), try to use parm.tuple().parmTemplate().help().
Because the help string is stored in parameter template of the original parm.
Because the help string is stored in parameter template of the original parm.
How to Rotate the Viewport Camera About Itself in Python? 2024年1月28日9:28
I'm trying to understand how to rotate the default viewport camera about it's own pivot.
I understand the 'translation' and 'rotation' parameters of the hou.GeometryViewport object, but I'm confused about the 'pivot' parameter. Specifically, I want to rotate the camera around its own pivot without changing its translation position. Can anyone explain what the 'pivot' represents and how I could achieve a rotation about itself? Thanks for any reply.
I understand the 'translation' and 'rotation' parameters of the hou.GeometryViewport object, but I'm confused about the 'pivot' parameter. Specifically, I want to rotate the camera around its own pivot without changing its translation position. Can anyone explain what the 'pivot' represents and how I could achieve a rotation about itself? Thanks for any reply.