Page 1 of 1

Wrong shadows after editing mapview.txt

Posted: Fri Jul 27, 2018 8:53 am
by pinwolf
I changed my mapview.txt to get better camera zoom and pitch:

PITCH 45
PITCHLIMIT 35 // 25
ZOOM 400
ZOOMLIMIT 1200 // 200
ZOOMINLIMIT 100 // 10
ROTATE 30
FOV 30

But now I get some strange shadow if I view from certain angles. Is there a way to adjust this?

Re: Wrong shadows after editing mapview.txt

Posted: Fri Jul 27, 2018 10:25 am
by rbodleyscott
Not sure.

The standard values are

PITCH 45
PITCHLIMIT 15
ZOOM 400
ZOOMLIMIT 1200
ZOOMINLIMIT 200
ROTATE 30
FOV 30

(The numbers after the "//" comment marks in the file are ignored).

Your changed ZOOMINLIMIT should work fine. So I guess you need to reduce the PITCHLIMIT until the shadows work normally.

Re: Wrong shadows after editing mapview.txt

Posted: Fri Jul 27, 2018 10:37 am
by pinwolf
Ok. Thanks again. :)

Re: Wrong shadows after editing mapview.txt

Posted: Fri Jul 27, 2018 11:53 am
by Patrick Ward
Yup its the pitch limit. Go below a certain threshold and it'll mess your lighting up.

Re: Wrong shadows after editing mapview.txt

Posted: Fri Jul 27, 2018 2:57 pm
by pipfromslitherine
The shadows are optimised for the default view. Going too low would not work in any reasonable way with the implementation we have, it would need shadow partitions for closer vs farther units. Yet another reason we don't default to allowing this kind of view. :) For more information look up CSM (Cascaded Shadow Maps).

Cheers

Pip

Re: Wrong shadows after editing mapview.txt

Posted: Sat Jul 28, 2018 4:11 pm
by pinwolf
I tried some different numbers for the pitch limit and 22 is the highest I can go without destroying the shadows.
The default pitch of 15 I find sub-optimal because at max zoom it is not possible to see the enemy front line. Makes fast orientation just to unhandy for me.

Re: Wrong shadows after editing mapview.txt

Posted: Sat Jul 28, 2018 9:10 pm
by pipfromslitherine
I don't know what else to say other than none of the game systems or assets are designed for it be played from that viewpoint. You would likely find other issues that low down (things like unit selection etc).

Cheers

Pip