Semantic Pointing for Object Picking in Complex 3D Environments
by Christian Kössler and Felix Kreuzer
|
This Class Contains most of the Game Logic and Draw Calls. More...
#include <Scene.hpp>
Public Member Functions | |
void | updateCursorPosition () |
This method updates the position of our own visual mouse cursor according to the speed which is dependent on the distance to the nearest object. More... | |
void | updateObjectPicking (float timeDiff) |
Reads the Pickbuffer (or at least a part of it) from the GPU memory and calculates the nearest object. More... | |
void | drawObjectIDs () |
Draws the pickable objects into a FBO with objectIds as pixel values. | |
This Class Contains most of the Game Logic and Draw Calls.
The methods relevant for semantic pointing are updateCursorPosition and updateObjectPicking.
void Scene::updateCursorPosition | ( | ) |
This method updates the position of our own visual mouse cursor according to the speed which is dependent on the distance to the nearest object.
it uses mCursorFactor to calculate the speed
void Scene::updateObjectPicking | ( | float | timeDiff | ) |
Reads the Pickbuffer (or at least a part of it) from the GPU memory and calculates the nearest object.
It stores the nearest found object in mSelectedObject
timeDiff | is unused |