NVIDIAGameWorks/kaolin

How to render shadow on the ground?

XiongFenghhh opened this issue · 1 comments

Hello, I try to render glb file following this tutorial.

However, I found that the shadow on the ground cannot be rendered. For example, the first pic is rendered by blender, the shadow on the ground can be seen. In the second pic rendered by nvdiffrast, the shadow on the cloth can be seen but the shadow on the ground disapears
blend
test_view3

The shadows are currently not supported, as our differentiable rendering pipeline is purely rasterization-based (so no tracing of light in the scene). There are various differentiable ray-tracing and shadow-mapping implementations out there, but we would not be able to suggest one.

If it's still useful without shadows, note that the glb/gltf rendering is now consistent with usd and obj types and is exposed as a function kaolin.render.easy_render.render_mesh. Please see Easy Mesh Render Tutorial.