I have build the lighting in my project and the objects in scene have shadows. But when I change the game mode, all the shadows disappeared, even when I change the game mode back, the shadow still not return. Changing the game mode will change the lighting building result in the map??
Hi Psycracker,
I’m not seeing the same issue on my end with the information you’ve provided.
Can you double check the Engine Scalability settings and make sure these are set to EPIC?
If this is not the issue, can you list your exact repro with a new blank project. This can at least rule out if something were corrupted in the project you currently have.
Let me know.
Tim
Hi, Tim. I am sure the Engine Scalability setting were set to EPIC.
But I have build my own plugin for some dynamic lighting utils, so the plugin need to be copied to new project and it need to be recompiled every time I started a new project. And the game mode was using some of my classes in the plugin. But it has no operation related with the static lighting.
I have a very large scene.
Before I change the game mode, the scene looked like this.
http://7vzqzx.com1.z0.glb.clouddn.com/before.jpg
all the shadows worked well.
After I changed the game mode, all the shadow in the scene started disappearing “object by object”. Like shadow maps are being cleared by something. And finally there is no shadow in the scene. Like below
http://7vzqzx.com1.z0.glb.clouddn.com/after.jpg
Actually I tried to work on a totally blank project and created a new game mode and change it on after light building, it didnt have the same problem.
I think it’s my project specific. I tried migrate all the resources into a blank project and retry the same process, the problem remains.
After I click on changing the game mode, the Engine Editor will get stuck for a while.
Maybe I should try a smaller scene first?
So just to be clear, by your own Plugin for lighting, is this custom code you’ve written to taken advantage of something not already possible?
If so, when you’re not using this plugin, everything works as intended?
With your scene, is everything a single object or have you build the scene out of individual meshes inside the editor? The reason, I ask this specifically is that if this is a single mesh for everything I would expect there to be some issues to crop up for static lighting.
You do mention this is a larger scene. If you try just a smaller scene like the default one with a couple of basic meshes added, or one of the template maps for First Person or Third Person do you see the shadows disappear in the same fashion?
With this last test, at least then you could rule out if its the gamemode plugin that is causing issues, or if its the scene in the other. If it’s the scene then we can start to look at the mesh and where the issue may lie. If it’s the gamemode it could be something setup in there.
Let me know.