I have a grid and an SDF VDB sphere. I want to make a shader for the grid whose color is based on the sphere's SDF value.
When building a simple VOP network in SOPs that takes a volume sample and applies it as Cd onto the grid, everything works fine. However, when I take this exact same network and use it as a shader, it does not work.
I reference the volume via op
obj/sphere1, and I read elsewhere that /mat/ can't handle op referencing this way. But even when wrapping the shader into a material network and feeding it the op path via an exposed parameter it still doesn't work. Mantra keeps saying something about “unable to resolve geometry op
obj/sphere1. Please ensure the object is included for rendering.”I tried using a point cloud instead: I scattered points into the volume and stored the SDF values on the point cloud. Again, colorizing the grid in SOP land by using a point cloud open and pointing it to op
obj/sphere1 works fine. But the same nodes fail in MAT land. Does anybody know how to get this to work?


