Search - User list
Full Version: Primvar/attributes not being recognised in karma cpu
Root » Solaris and Karma » Primvar/attributes not being recognised in karma cpu
Milen Piskuliyski
Hello,

I'm experiencing an issue when trying to work between karma xpu and cpu regarding bringing primvars/attributes on curves from houding.
I have a groom where I have painted some primvars/attributes for the color of the fur. I'm then bringing them into the fur shader using a geometry property value to mix between the two values on the melanin.
The setup seems to work great in karma xpu, however when I try rendering the same shader with cpu, the attribute seems to be completely ignored and the shader only picks up the BG value on on the mix node
It's weird cause I would've though if something is not supported that would be under xpu rather than cpu, so that leads me to believe that I'm not doing something the way I'm supposed to.
Is there a different way to bring attributes on curves between xpu and cpu

I've attached images to showcase the difference as well as the way I'm hooking the attributes to the shader



Milen Piskuliyski
Should've spend some more time troubleshooting before postoing, think I found the issue.
I though the primvars were integers, however it turns out they are floats already
When I set everything to float in the geometry property value it works in both xpu and cpu
I find it very interesting that karma xpu was able to recognise the incorrectly set primvar whereas cpu was not
dlee
Yes, CPU is strict about matching type signature (float to int, vector to float, etc). I don't think MaterialX spec mentions how the conversion should be applied (if at all) on geomprops, but at the very least XPU and CPU should behave the same and we will definitely investigate.
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