View Issue Details

IDProjectCategoryLast Update
0024274AI War 2GUIDec 27, 2020 10:45 am
ReporterRingor Assigned ToChris_McElligottPark  
Severityminor 
Status assignedResolutionopen 
Product Version2.709 Obedient Engineers 
Summary0024274: Galaxy camera doesn't zoom out far enough
DescriptionBy playing with the option "Text By Planets Hides At Distance" I could measure the maximum distance I can zoom out of the galaxy map to be 1.2. That is way below the maximum value of 10 for this option, and not enough to display an 80 planet galaxy completely.

It would be nice to be able to zoom out farther to get an overview of the complete map.

TagsNo tags attached.

Activities

Chris_McElligottPark

Dec 26, 2020 1:49 pm

administrator   ~0060159

The maximum zoom is dynamically calculated based on the extents of the galaxy map, if I recall correctly. So the maximum zoom is meant to be calculated such that every planet is visible at far zoom, plus some border around the edges. As you might imagine, this is a bit tough in a few ways because of the translation from 2D (screen) to 3D (map) coordinate space, with some very slight distortion from the view frustum and a few other complexities thrown in.

I thought I had this solved, but evidently you've found at least one case where this is not so. Or if you are routinely seeing all of your galaxy maps not fit, then probably it's the screen resolution you're playing at (that's the other half of the equation). If you upload an example save and let me know what your screen resolution is, I can look into it.

Having a fixed maximum zoom doesn't work well, because maps vary a LOT in terms of how much space they take up, and there would always be some outliers that let us not zoom out far enough, and tons of other cases where max zoom shows most of the planets as taking up the center 1/6th of your screen, which is also not useful. So hence the dynamic max zoom approach. But there are occasionally bugs with that.

Thanks!

Ringor

Dec 26, 2020 2:20 pm

reporter   ~0060160

Thanks for your explanation!

I tested several map sizes to see this dynamic calculation and I can see what you mean. I guess it worked perfectly (on my resolution of 3440x1440 full screen) until you added the GUI elements for planet search and Edit/Ping/F Stat. Those cover the lower left part and made me expect to be able to zoom out more.

Another observation: the fixed configuration options to hide text and/or icons don't work well with this dynamic approach. The same configuration has different effects on an 80 planet galaxy compared to a much bigger map. Maybe those options should be relative values (percentages) instead?

Ringor

Dec 27, 2020 10:45 am

reporter   ~0060162

80 planets - with fullscreen resolution 3440x1440 the map's height is too big when completely zoomed out (even if you ignore the overlapping GUI elements for search, edit and ping).

Without text and icons the map nearly fits (minus a few pixels).
MapHeightZoomedOut.save (355,570 bytes)

Issue History

Date Modified Username Field Change
Dec 26, 2020 1:43 pm Ringor New Issue
Dec 26, 2020 1:49 pm Chris_McElligottPark Note Added: 0060159
Dec 26, 2020 1:49 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 26, 2020 1:49 pm Chris_McElligottPark Status new => feedback
Dec 26, 2020 2:20 pm Ringor Note Added: 0060160
Dec 26, 2020 2:20 pm Ringor Status feedback => assigned
Dec 27, 2020 10:45 am Ringor File Added: MapHeightZoomedOut.savemet
Dec 27, 2020 10:45 am Ringor File Added: MapHeightZoomedOut.save
Dec 27, 2020 10:45 am Ringor Note Added: 0060162