Page MenuHome

BGE: the movement of the mouse doesn't works well in the standalone player
Closed, ResolvedPublic

Description

System Information
Windows 7, GTX 570

Blender Version
Blender 2.72

Short description of error

Apply a mouse look actuator at a camera and start the standalone player. The movements aren't always detected,.

To fix the bug i enable "Show Framerate and Profile".

Event Timeline

Danyl Bekhoucha (linko) raised the priority of this task from to 90.
Danyl Bekhoucha (linko) updated the task description. (Show Details)
Danyl Bekhoucha (linko) edited a custom field.

please attach a sample file (as simple as it may be)

Please use .blend, .zip or simple save the .blend with the compressed option. The 7zip file is not opening correctly here.

The issue is due to the following:

bge has a way to get/set the screen resolution using integers. This way when you want obtain the middle of the screen (i.e 1024x768 --> 512x384) from an odd resolution the final result is rounded (i.e 1025x769 --> 512.5 x 384.5 --> rounded to 513x385). Then you have to add an internal offset to avoid the effects of this rounding. Due to this it seems that the movements are not detected.

I'm trying to find a fix for this.

Bug to be merge with T42097

Fix added to differential: D946

Jorge Bernal (lordloki) changed the task status from Unknown Status to Resolved.Jan 6 2015, 7:15 AM
Jorge Bernal (lordloki) claimed this task.

Closed by commit: rBee58d449455d