Skip to content

android port of the iPhone Ray Picking gluUnProject sample by novabox

Notifications You must be signed in to change notification settings

endyman/RayPickingAndroid

Repository files navigation

android Ray Picking gluUnProject sample

This is an android port of the Ray Picking gluUnProject sample described in the excellent Blog Post and sample code by Nova Box.

If you would like to understand the concept behind recognizing touch events on OpenGL objects using Ray Picking I can only recommend the mentioned Blog Post.

This code has been tested on Android 4.0.3 and 2.3.7 and is provided without any warranties as is.

For convenience reasons I included a Fragment hosting the GLSurfaceView so you need to include the Support Library (android-support-v4.jar).

Known Bugs and Limitations:

  • Portrait Mode - I have not yet figured out what causes the Portrait mode to fail so the Activity is forced to Landscape

Working with the Sample:

most likely you would like to add other objects so feel free to change the code. a good starting point to add custom objects are the initObjects and drawModels Methods in the RayPickerRenderer class.

About

android port of the iPhone Ray Picking gluUnProject sample by novabox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages