Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

COFC: Middle mouse (to pan) causes camera to zoom out

Open Histidine91 opened this issue 12 years ago • 10 comments

Can be easily seen by pressing middle mouse repeatedly.

This makes panning very annoying.

Histidine91 avatar Nov 02 '14 04:11 Histidine91

Just tested, it's due to a bug with Smooth mesh scrolling. The middle mouse button (exclusively, left-click on minimap and arrow keys work fine) seems to get the location of the ground to start, then immediately moves to the smooth mesh location, which is higher.

dvr333 avatar Nov 02 '14 04:11 dvr333

It only happen when TiltZoom is ON.

I tried to find out the root cause, so far don't know yet, but I found weird output: When I put Echo in UpdateCam() function and echo the current camera-to->ground distance it says weird/wrong/fluctuating value when we zoom out using TiltZoom.

Its surprising that the camera didn't show this weird value during the actual zoom-out, but when you pan the camera using middle-mouse, it suddenly effected the camera in bad way.

xponen avatar Nov 02 '14 07:11 xponen

No, it happens with Tiltzoom off. Tiltzoom just happens to make it more obvious. It doesn't happen with Smooth Mesh Scrolling off.

Tiltzoom cursor correction needs to be reviewed thoroughly, and probably re-written. The main issue has to do with the fact that Spring.GetCameraState does not return an interpolated state. Spring.GetCameraFoo (where Foo is Position, Direction, Vectors, etc.; not State) does return the interpolated state.

dvr333 avatar Nov 02 '14 07:11 dvr333

I did not use smooth mesh scrolling.

The zoom effect is super severe. When we zoom out to maximum height, panning with middle-mouse cause instant zoom to near ground level.

We might saw different bug I think.

xponen avatar Nov 02 '14 07:11 xponen

List your Camera Control settings.

dvr333 avatar Nov 02 '14 07:11 dvr333

here: ["epic_Combo_Overhead/Free_Camera_(experimental)edgemove"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)enableCycleView"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)follow"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)followautozoom"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)followmaxscrollspeed"] = 2, ["epic_Combo_Overhead/Free_Camera(experimental)followminscrollspeed"] = 1, ["epic_Combo_Overhead/Free_Camera(experimental)followzoominspeed"] = 0.5, ["epic_Combo_Overhead/Free_Camera(experimental)followzoommaxdist"] = 3000, ["epic_Combo_Overhead/Free_Camera(experimental)followzoommindist"] = 1000, ["epic_Combo_Overhead/Free_Camera(experimental)followzoomoutspeed"] = 0.5, ["epic_Combo_Overhead/Free_Camera(experimental)fov"] = 45, ["epic_Combo_Overhead/Free_Camera(experimental)freemode"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)invertscroll"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)invertzoom"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)persistenttrackmode"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)rotateonedge"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)rotfactor"] = 0.010000000707805, ["epic_Combo_Overhead/Free_Camera(experimental)smoothmeshscroll"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)smoothscroll"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)speedFactor"] = 25, ["epic_Combo_Overhead/Free_Camera(experimental)speedFactor_k"] = 21, ["epic_Combo_Overhead/Free_Camera(experimental)targetmouse"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)thirdpersonedgescroll"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)tiltedzoom"] = true, ["epic_Combo_Overhead/Free_Camera(experimental)zoominfactor"] = 0.20000000298023, ["epic_Combo_Overhead/Free_Camera(experimental)zoomoutfactor"] = 0.20000000298023, ["epic_Combo_Overhead/Free_Camera(experimental)zoomoutfromcursor"] = false, ["epic_Combo_Overhead/Free_Camera(experimental)_zoomouttocenter"] = false,

Also, we had double smooth! 1 from smooth camera widget and 1 from COFC's @_@

xponen avatar Nov 04 '14 19:11 xponen

Hmm, those settings reflect some outdated parameters (like rotateonedge and edgemove). Also, was this on Engine 91 or 98.0.1+git?

How easily can you reproduce this? Is it on every map or just some? If it is just some, which ones?

dvr333 avatar Nov 06 '14 01:11 dvr333

Its on Spring 91.0. I usually tried on Aquatic Divide

But... Good news! I tried on different computer (which is clean from stuff), it doesn't happen as easily as before. Maybe it only happen to me because of some setting that I did, so it doesn't happen as often as I imagine :))

xponen avatar Nov 06 '14 09:11 xponen

Update: it did happen, I just haven't been in game much with those computers

xponen avatar Nov 07 '14 21:11 xponen

Assumed fixed with the changes since then.

GoogleFrog avatar Jun 08 '15 12:06 GoogleFrog