How to get the point normal direction from volume sampler in PCG?

When using surface sampler, it automatically calculates the normal direction for the generated points as seen here:

However if I do the same with a volume sampler, it won’t return the normal directions at all, making all the calculated points look upwards as seen here:

I understand that during that voxelization process some data get lost, but is there a way to copy the normal direction of the surface where the point is generated? Or Can I somehow generate a mesh from the points after the voxelization and calculate the normals of that surface?

2 Likes

Were you ever able to figure this out by any chance?

Bump. Same question.

Volume sampler is taking a 3D grid and run the intersection with your volume (can be a primitive like a sphere).
There is no concept of normal in that case just an intersection check.
To get the normal, you have the world Ray hit with the surface sampler as you already said.
If you need the full surface of the mesh, it will be with the mesh sampler, or try with the World Volumetric query