Ticket #8233 (closed defect: obsolete)

Opened 7 years ago

Last modified 21 months ago

Mouse Behavior in OpenGL drawing area causes erratic behavior

Reported by: janderson Owned by:
Priority: critical Component: 3D support
Version: VirtualBox 4.0.2 Keywords: OpenGL Mouse
Cc: Guest type: Windows
Host type: Windows

Description (last modified by aeichner) (diff)

There appears to be an issue with VirtualBox 4.0.0 with OpenGL and mouse positions... I have been using it with a 3D application called DAZ Studio that contains an OpenGL viewport.

When the mouse is captured and mouse integration is turned off, the mouse disappears when it enters the OpenGL viewport. If you are able to put the mouse on a viewport control (i.e. to rotate the viewport) it does work properly... it is just that it is near impossible to do that with the cursor behind the OpenGL viewport.

One other thing to note... When mouse integration is turned on, the mouse does not disappear when entering the viewport. However, the viewport controls do not work properly. This is because DAZ Studio does some mouse trickery to prevent the user from hitting the edge of the viewport when trying use one of the viewport tools such as rotation.

The trickery it does is this:

When the mouse is clicked and dragged

  • Save the mouse position at the point of the click
  • Hide the mouse
  • Move the mouse to the center of the viewport
  • Calculate movement from the center to determine how to affect the viewport

When the mouse click is finished

  • Move the mouse back to the saved position
  • Show the mouse again

It seems like there is a difference in how mouse positions are handled when mouse integration is enabled and when it is disabled... The correct mouse position behavior is when mouse integration is off.

I would really like to see this issue addressed since it essentially renders my favorite 3D application useless in VirtualBox.

I am running a Win7 Guest on a Win7 machine. This is only for testing purposes... I was wanting to make sure that my apps would work on a Win7 Guest before I switch my host OS to something else.

Change History

comment:1 Changed 7 years ago by janderson

4 weeks and not even a confirmation or acknowledgment of the bug?

comment:2 Changed 7 years ago by conchyliferous

I have the same behavior in a Ogre based application that I made.

When mouse integration is OFF:

Mouse behavior is correct. But cursor disappears every time it goes in front of an OpenGL panel.

When mouse integration is ON:

Strange mouse behavior.

I would guess that this is because when mouse integration is ON, the position of the cursor cannot be set programmatically. Can anyone confirm that?

comment:3 Changed 7 years ago by conchyliferous


I'm running a Windows 7 guest on an Arch Linux host, using VirtualBox version 4.1.0.

comment:4 Changed 5 years ago by twipley

Related case of invisible pointer:

It is great to see that the current issue is set to "critical" priority, by all means.

comment:5 Changed 4 years ago by Aleric

I have the exact same problem with VirtualBox 4.3.12 and Daz studio 4.6 pro. I think janderson gave an incredibly good description of the problem, handing it to Oracle on a silver platter. I'm also glad to see it has been marked as critical... for 3 years now. Way to go. Just close this already ok? Don't be a coward, just close it.

comment:6 Changed 4 years ago by twipley23

Although I am fully sharing your interest in this bug being worked on, there is no need for such insults.

It is true, though, that this may well be one of the critical-marked bugs that is affecting such a widespread portion of users. Therefore, it may be worthwhile to put some efforts in the direction of its solving.

It is probably the case that programmers have been looking at it for quite some time, although currently clueless as to how for it to be properly solved. One should be comforted in that unpredicted strikes of ingenuity often go a long way in addressing all sorts of software issues!

comment:7 Changed 21 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use