You'd think the kma_ray_import would offer some type of 0-1 output value you could use to drive the bias on a mtlxMix. Can't figure it out yet. Some way to fetch the sign of the magnitude of ray:direction then remap that into 0-1?
Using Houdini Indie 20.0 Windows 11 64GB Ryzen 16 core. nVidia 3050RTX 8BG RAM.
Enivob You'd think the kma_ray_import would offer some type of 0-1 output value you could use to drive the bias on a mtlxMix. Can't figure it out yet. Some way to fetch the sign of the magnitude of ray:direction then remap that into 0-1?
Enivob Getting close with your suggestion. I see some purple, but I need red on one side and blue on the other.
What is the input range of the remap set to? it should be something like -0.000001, 0.000001 to 0, 1 and clamped to simulate a switch. The ifgreater would be a better choice.
Enivob I just wonder if the ray_import is actually working?
hmm, it's possible that's the issue. There are presets in the menu that should work for getting the ray direction though. I recently used it for making a fresnel blend, since one is missing in the factory node set.
There's a simpler way other then using 2 rayimport and dot product. You can directly using ray:backface to get a bool. This is listed in the documentation of the rayimport node, but don't know why it's not listed in the drop down menu probably is a bug.