[android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread souza
I have found the APIDemos example but I couldn't find the specific code I guess. Is it this page you are referring to: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/Animation2.html If not can you tell me which is the code file containing the

Re: [android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread Kostya Vasilyev
It's been over 10 years since last time I used GL, so my site list is not quite up to date, sorry :) Just Google for OpenGL, you're bound to find lots of useful sites. You mentioned GLU in your previous message, my guess is you were referring to gluLookAt. There are lots of working sample

[android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread Streets Of Boston
Search for 'gluUnproject' on this developer-group board. You'll find quite a bit of info on this topic (mapping 2dimensional mouse- coordinates into 3dimensional model-coordinates). On Aug 13, 11:36 am, souza sadita...@gmx.net wrote: I have found the APIDemos example but I couldn't find the

[android-developers] Re: Mouse interaction on 3D object

2010-08-12 Thread Indicator Veritatis
Have you looked at the OpenGL samples in APIDemos? On Aug 12, 7:49 am, souza sadita...@gmx.net wrote: Hi, given a 3D cube I want it to move when moving my mouse having pressed the left button (NOT working with OpenGL|ES 2.0). In the internet there are lots of tutorials explaining how it is

Re: [android-developers] Re: Mouse interaction on 3D object

2010-08-12 Thread Kostya Vasilyev
I'm sure there are a lot of samples for this, not necessary Android specific. But my first advice would be to understand the basic math involved in 3D graphics: model coordinates, viewport, clipping planes, projection matrix. Armed with this knowledge, you will be able to actually understand the