Semantic Pointing for Object Picking in Complex 3D Environments
by Christian Kössler and Felix Kreuzer
 All Classes Files Functions Variables Macros Pages
Public Member Functions | List of all members
Scene Class Reference

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.
 

Detailed Description

This Class Contains most of the Game Logic and Draw Calls.

The methods relevant for semantic pointing are updateCursorPosition and updateObjectPicking.

Member Function Documentation

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

Parameters
timeDiffis unused

The documentation for this class was generated from the following files: