Hello, everyone.
For some purposes in my skin design i have to switch fovtype setting from DFOV to MFOV after panorama is loaded and displayed
I do that using set function:
After that i need to recalculate field of view (otherwise one will see viewer bouncing) according to this explanation and it's easy for horisontal window:
Things get tricky with vertical stages (commonly used in mobiles) cause i don't get what to do with given formula:
For example in iPhone simulator while i use VFOV setting i have this values:
When i switch to MFOV without recalculation, the viewer assigns another one's and panorama bounces
I tried to trace values that i need and got
As i see hfov variable has got different value then in VFOV mode.
And i don't get how fov=96 appeared.
Is it possible to recalculate fov precisely? What shoul i put instead question marks?