VirtualBox

Opened 13 years ago

Closed 8 years ago

#8233 closed defect (obsolete)

Mouse Behavior in OpenGL drawing area causes erratic behavior — at Version 7

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

Description (last modified by aeichner)

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 (7)

comment:1 by Justin, 13 years ago

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

comment:2 by conchyliferous, 13 years ago

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 by conchyliferous, 13 years ago

BTW.

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

comment:4 by twipley, 11 years ago

Related case of invisible pointer: https://www.virtualbox.org/ticket/11468

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

comment:5 by Aleric, 10 years ago

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 by twipley23, 10 years ago

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 by aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use