Hi there,
I’m working on a project based on Cesium.
In my world, I have few issues that I was not able to resolve:
- I cannot enable collision. My flying object can go through the ground and buildings, how do I fix that?
- The sunlight is not blocked by the buildings (not generating shadows), I believe it’s related to the first issue.
- There are shadows on the ground, but it looks like these cannot be changed as they are part of the map (talking about the natural shadows that were there while taking the earth footage and so on). Is there a way to get rid of them? They are in a different direction from my sub position.
Thanks in advance.
- I cannot enable collision. My flying object can go through the ground and buildings, how do I fix that?
Collision should work by default, unless you’ve unticked the CreatePhysicsMeshes
option on the Cesium3DTileset.
- The sunlight is not blocked by the buildings (not generating shadows), I believe it’s related to the first issue.
Probably not related. You haven’t told us what tileset you’re using, but many photogrammetry tilesets, such as the Google Photorealistic 3D Tiles, use “unlit” mode by default, which disables shadows. To disable unlit mode and enable shadows tick the IgnoreKhrMaterialsUnlit
option on the tileset.
- There are shadows on the ground, but it looks like these cannot be changed as they are part of the map (talking about the natural shadows that were there while taking the earth footage and so on). Is there a way to get rid of them? They are in a different direction from my sub position.
No, this is not possible. Removing shadows is a challenging computer vision problem (which is why whatever tileset you’re using hasn’t removed the shadows already). It’s not something that Cesium for Unreal can realistically do at runtime.