Jump to content

Universal camera reaction slows down without major fps drop


hcmetal
 Share

Recommended Posts

Hello, everyone!

I have been struggling with some strange universal camera behaviors.

A simple scene with an arcRotateCamera in the air (left) and a universalCamera (right) on the ground, like this:

comb.thumb.jpg.3747608b3274a5b72b2469fa0962a3fc.jpg

The arcRotateCamera rotates very smoothly. No problem with that.

The universalCamera, on the other hand, behaves a bit wierd.

The walking (using arrow keys to move about) is pretty smooth, but the panning (click and drag mouse to look around) gets 'sticky' around the center of the screen, especially when looking at more objects, like the screen capture above.

By 'sticky' I mean the camera is reluctent to rotate, as if there is a big fps drop. However, engine.getFps() shows no obvious fps drop.

I am wondering:

1. If anyone has met similar situations and how to solve it?

2. Does the camera have some sort of inertia property that might result in this?

Hope someone can point me to the right direction.

Thanks a lot!

Link to comment
Share on other sites

@Deltakosh, thanks for your help. I tried and collision doesn't seem to be the problem.

I guess the camera seems 'sticky' because the amount of panning is more affected by the "speed" of the mouse drag, rather than the "distance".

So when trying to make small panning adjustments, the mouse is dragging slowly because I am trying to carefully aim at something, and the camera doesn't seem to be very responsive.

In other words, as I slowly drag the mouse for a long distance on the screen the camera isn't panning much, and as I loose patience and speed up the drag, the panning also suddenly speed up, resulting in a "jerking" effect. The sudden change from slow to fast makes the interaction feel "sticky".

Hope I am not sounding crazy here.:D

Is it possible to change the panning input from 'mouse-click-drag' to 'mouse-move', like in most FPS games? I would like to test and see if it makes things better.

Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...