Community Forum

[FS 22] Shadows in GE or game

Forum Overview >> Editor

CategoryEditor
Created23.12.2021 14:21


Mr Merzi (Merzi) 23.12.2021 14:21
Hello,
I have a little problem with the shadows.
See picture --> https://image.giants-software.com/index.php?hash=nLMYxWxA&codes=true

I see a dark black shadow in the distance. If I take out the hook on “Cast Shadow Map” in the sun, it’s gone. However, the shadows on the buildings are also gone. If I go with “Shadow Map Resoltion” from 2048 to 4096 then the shadow is gone but the shadows at the buildings are gone.

The problem occurs with 4 fold maps as well as with 16 fold maps.
Does anyone have a solution to that?

Jānis Strautiņš (strauts6) 23.12.2021 15:04
I found a solution for weird shadows in corners on 4x maps.
Open map in GE - select Sun in scenegraph - go to atributes - "Light" tab and scroll down to Fixed box min and max X,Y and Z and change change values from 1024 to 2048.

Mr Merzi (Merzi) 23.12.2021 15:07
Do you have the entries that are currently with me on -128 and 148 are also adapted?

See picture --> https://image.giants-software.com/index.php?hash=k2xRPo3r&codes=true

William Rowe (Bonger76) 23.12.2021 15:50
@Mr Merzi I ask the same question in another post --16x shadowBox-- if these entiers be increasted to,as with increasing the
“Shadow Map Resoltion” to 4096 effects FPS.
I'm still trying to figure out how to stop seeing that box reflect in the water.

Mr Merzi (Merzi) 23.12.2021 16:05
@Bonger76 On my 16 fold test map I made “Shadow Map Resoltion” on 2048 and the entries under Fixed box from 1024 on 4096 ( See picture --> https://image.giants-software.com/index.php?hash=BWpJTnez&codes=true)
And the problem with the shadows is gone. And the Performens is great in the game.

Shadow Map Resoltion but must stay on 2048 and not on 4096.Because otherwise the shadows will be gone from the buildings.

Jānis Strautiņš (strauts6) 23.12.2021 19:04
I didnt change "-128 and 148 " You might want to change them if you got high hills on map.
And dont change Shadow map resolution.

William Rowe (Bonger76) 24.12.2021 17:26
I changed the "-128 and 148 " to "-100 and 500" .Dont know if this is right ,did these number to what it it like in the 16x editor script.
I dont know what the "16 and 64" are for.When I did it this way the editor seamed to run smoother when moving around the map?


setAudioCullingWorldProperties(-4096, -100, -4096, 4096, 500, 4096, 16);
setLightCullingWorldProperties(-4096, -100, -4096, 4096, 500, 4096, 16);
setShapeCullingWorldProperties(-4096, -100, -4096, 4096, 500, 4096, 64);

And I fix the water reflection problem .you have to remove the

<Reflectionmap lodDistanceScaling="0.5" viewDistanceScaling="0.5" type="planar" scaling="1" refractiveIndex="1.03" bumpScale="0.1" shapesObjectMask="256" lightsObjectMask="16777216"/>


Mr Merzi (Merzi) 24.12.2021 17:57
@Bonger76 Thank you for the information.

Is this with you also so with the 16x map, which he needs forever when saving?


Note: Log in to post. Create a new account here.