Grounding Shadow/Shadow plane

My goal is to create shadows that apply to the ground via a shadow plane or even on an AR Plane generated from the ARPlaneManager. I noticed in the example in the documentation that the cupcake gives a shadow just onto the real world object in the simulator. Is their something native in PolySpatial that will let me do this or does it required a custom shader solution?

If you apply the visionOS grounding shadow to any mesh renderer it should apply a top down shadow to any physical surface like a desk or the floor. Note that the shadow is distance dependent so it might appear very faint or not at all if an object is too far above a surface.

1 Like

This makes sense thank you! I noticed distance was a big part of the shadow.

I was wondering though is the component able to handle more complex geometry and shadows like this plant? The plant is basically on the ground and I set all the materials to the same and set the VisionOSGroundingShadow onto the meshes. As you can see the bulkier items are able to display the shadows while the plant in the middle does not. I can’t seem to figure out the issue here.

That might be a question for Apple, I’d try to submit a feedback request to see if you could get more info. If I had to guess I’d say it’s related to the thickness of the geometry (or lack their of). Your plant looks to be just single faces (which only get rendered from one side due to RK limitations).

Please excuse my rough plant models to test but I can see a shadow on the version with more geometry but not the version made up of just planes

1 Like

Thanks for the extra explanation and example! This helps a ton.