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?
Wrong shadows after editing mapview.txt
Wrong shadows after editing mapview.txt
- Attachments
-
- fog2shadow.jpg (109.77 KiB) Viewed 2002 times
-
rbodleyscott
- Field of Glory 2

- Posts: 28411
- Joined: Sun Dec 04, 2005 6:25 pm
Re: Wrong shadows after editing mapview.txt
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.
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.
Richard Bodley Scott


Re: Wrong shadows after editing mapview.txt
Ok. Thanks again. 
-
Patrick Ward
- Slitherine

- Posts: 1221
- Joined: Thu Sep 04, 2014 2:49 pm
- Location: A small island in the Outer Hebrides.
Re: Wrong shadows after editing mapview.txt
Yup its the pitch limit. Go below a certain threshold and it'll mess your lighting up.
............................
Pat a Pixel Pusher
............................
Pat a Pixel Pusher
............................
-
pipfromslitherine
- Site Admin

- Posts: 9934
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Wrong shadows after editing mapview.txt
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
Cheers
Pip
follow me on Twitter here
Re: Wrong shadows after editing mapview.txt
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.
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.
- Attachments
-
- fog2mapview1_1.jpg (104.07 KiB) Viewed 1932 times
-
- fog2mapview2_2.jpg (105.77 KiB) Viewed 1933 times
-
pipfromslitherine
- Site Admin

- Posts: 9934
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Wrong shadows after editing mapview.txt
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
Cheers
Pip
follow me on Twitter here
