Wrong shadows after editing mapview.txt

Field of Glory II is a turn-based tactical game set during the Rise of Rome from 280 BC to 25 BC.
Post Reply
pinwolf
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 82
Joined: Fri Jan 27, 2017 9:32 pm
Location: Thuringia

Wrong shadows after editing mapview.txt

Post 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?
Attachments
fog2shadow.jpg
fog2shadow.jpg (109.77 KiB) Viewed 2002 times
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: Wrong shadows after editing mapview.txt

Post 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.
Richard Bodley Scott

Image
pinwolf
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 82
Joined: Fri Jan 27, 2017 9:32 pm
Location: Thuringia

Re: Wrong shadows after editing mapview.txt

Post by pinwolf »

Ok. Thanks again. :)
Patrick Ward
Slitherine
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

Post by Patrick Ward »

Yup its the pitch limit. Go below a certain threshold and it'll mess your lighting up.
............................

Pat a Pixel Pusher

............................
pipfromslitherine
Site Admin
Site Admin
Posts: 9934
Joined: Wed Mar 23, 2005 10:35 pm

Re: Wrong shadows after editing mapview.txt

Post 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
follow me on Twitter here
pinwolf
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 82
Joined: Fri Jan 27, 2017 9:32 pm
Location: Thuringia

Re: Wrong shadows after editing mapview.txt

Post 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.
Attachments
fog2mapview1_1.jpg
fog2mapview1_1.jpg (104.07 KiB) Viewed 1932 times
fog2mapview2_2.jpg
fog2mapview2_2.jpg (105.77 KiB) Viewed 1933 times
pipfromslitherine
Site Admin
Site Admin
Posts: 9934
Joined: Wed Mar 23, 2005 10:35 pm

Re: Wrong shadows after editing mapview.txt

Post 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
follow me on Twitter here
Post Reply

Return to “Field of Glory II”