Hello all!
I was wondering how to add dynamic shadows for Cesium 3D so the shadow "moves"when time passes according to position of the sun.
I unfortunately could not find it how to do it by myself.
The base (start) scenario has been used to keep things simple.
Best Regards and keep Using Cesium!
You should be able to change the time of day when pressing key “t” in runtime if that is what you mean? It looks like you have the Cesium SunSky actor in order so shadows is rendered but im not sure if the shadows in the pictures is from the texture itself.
Thans for the reply
Pressing T works smooth for me and yes I can use the pop up slider.
However I wanted to implement dynamic shadow.
Meaning the shadow moves accordingly to the position of the sun.
Is that possible?
Aha, maybee you could use UE5 Now() function in a blueprint and update SunSky every second. This would probably take a hit on performance though.
I’m actually interested in this functionality myself so if I find any better solution I’ll reach out
It looks like you might be using Google Photorealistic 3D Tiles. By default, that particular tileset doesn’t receive shadows because it specifies the use of an “unlit” mode. You can override this by setting the Ignore KHR_materials_unlit
property on the tileset. Note that this will require generation of normals (the Google tileset does not include them), and the generated normals will have a small artifact at tile boundaries caused by the “skirts” between tiles. It might be acceptable for your use-case, though.
3 Likes
Thanks!
This worked perfect
See the reply of the moderator underneath.
This worked for me!