Hi,
I'm trying to replicate ground shadow in this video. However, I couldn't get it to work in the simulator.
My scene looks like the following which is rendered as an immersive space:
The rocket object has the grounding shadow component with "cast shadow" set to true:
but I couldn't see any shadow on the plane beneath it.
Things I tried:
using code to add the grounding shadow component, didn't work
re-used the IBL from the helloworld project to get some lighting for the objects. Although the IBL worked, I still couldn't see the shadow
tried adding a DirectionalLight but got an error saying that directional lights are not supported in VisionOS (despite the docs saying the opposite)
A related question on lighting: I can see that the simulator definitely applies some scene lighting to objects. But it doesn't seem to do it perfectly. For example in the above screenshot I placed the objects under a transparent ceiling which is supposed to get a lot of lights. But everything is still quite dark.
Explore rendering for spatial computing
RSS for tagDiscuss the WWDC23 Session Explore rendering for spatial computing
Posts under wwdc2023-10095 tag
2 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
Hi,
I'm aware that the EnvironmentResource has to be put into a folder ended with ".skybox", because Xcode need to compile the image at build time.
But why? Is it possible to load the EnvironmentResource on demand?