Page 1 of 3

What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 2:14 am
by NorthEGames
I'm facing some issues when I add lights to the scene I set the

Code: Select all

r_ShadowPoolMaxFrames
to 100 but still face flickering
Image

How to solve this issue? plus how to save all CVars to load automatically instead of typing them each time in the editor?

Any help is apprecieated.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 1:06 pm
by adrov19
If you have e_ShadowsMaxTexRes=1024, then set e_ShadowsPoolSize=2048 (for example)

You can set cvars in system.cfg
(CRYENGINE Launcher\Crytek\CRYENGINE_5.6)

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 1:20 pm
by NorthEGames
Image

Hi @adrov19 this is what I get please help with this. Can I set some Lights to static BAKED instead of dynamic to get around this?

Image

As for the Cvars I used the FlowGraph to set them on game start but your suggestion of using system.cfg is better I will try this.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 1:33 pm
by adrov19
Currently no more than 12 shadow casting lights, If I remember it right. I hope they fix this limit in 5.7

You can find system.cfg in engine folder.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 1:49 pm
by NorthEGames
Fantastic info but 12 Lights Cast Shadow only? that's very low so can we BAKE the shadows instead of making them dynamic?

You are right I lowered the lights that cast shadows and the flickering stopped but this ruined the look of the level a bit.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 2:12 pm
by adrov19
Fantastic info but 12 Lights Cast Shadow only? that's very low so can we BAKE the shadows instead of making them dynamic?
CryEngine does not bake shadows.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 2:23 pm
by NorthEGames
Fantastic info but 12 Lights Cast Shadow only? that's very low so can we BAKE the shadows instead of making them dynamic?
CryEngine does not bake shadows.
That is why I chose it over Unreal although I like unreal but I wanted everything dynamic, I guess I will work hard to design the levels with 12 shadow casting lights and search for a solution might be there.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 2:31 pm
by NorthEGames
Hey @adrov19 did you check this

Code: Select all

r_ShadowCastingLightsMaxCount
it was 12 I set it to 30 it worked there are 30 lights now that can cast shadows!

Keep it in your record it's handy.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 2:57 pm
by adrov19
Hey @adrov19 did you check this

Code: Select all

r_ShadowCastingLightsMaxCount
it was 12 I set it to 30 it worked there are 30 lights now that can cast shadows!

Keep it in your record it's handy.
I am using 5.6.2. version and for me this cvar does not work. Perhaps in new versions they fixed it.

Re: What is the best way to add tons of lights on a scene without flickering

Posted: Sat Jan 04, 2020 11:25 pm
by NorthEGames
I am using 5.6.2. version and for me this cvar does not work. Perhaps in new versions they fixed it.
I set it to 30 but whenever I restart the editor it gets back to 12, maybe there is something I should set somewhere.