VirtualBox

Ticket #8233 (new defect)

Opened 3 years ago

Last modified 14 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

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 3 years ago by janderson

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

comment:2 Changed 3 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 3 years ago by conchyliferous

BTW.

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

comment:4 Changed 14 months ago by twipley

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.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use