[android-developers] Re: Mouse interaction on 3D object
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 corresponding source? @ Kostya Vasilyev I already started studying some basics but thanks for the advice. I'll consider your suggestions. I'm also going to search for non-android examples in this context. Is there a web source you can recommend? On 12 Aug., 23:38, Kostya Vasilyev kmans...@gmail.com wrote: 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 sample code you find, and make meaningful modifications. Without it, it's just copying and pasting while keeping your fingers crossed. -- Kostya Vasilyev --http://kmansoft.wordpress.com 13.08.2010 1:13 пользователь Indicator Veritatis mej1...@yahoo.com написал: 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 wh... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Mouse interaction on 3D object
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 implementations out there, and it's only about 20-30 lines of code. Just Google for gluLookAt source. -- Kostya 13.08.2010 19:36, souza пишет: @ Kostya Vasilyev I already started studying some basics but thanks for the advice. I'll consider your suggestions. I'm also going to search for non-android examples in this context. Is there a web source you can recommend? -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Mouse interaction on 3D object
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 specific code I guess. Is it this page you are referring to: http://developer.android.com/resources/samples/ApiDemos/src/com/examp... If not can you tell me which is the code file containing the corresponding source? @ Kostya Vasilyev I already started studying some basics but thanks for the advice. I'll consider your suggestions. I'm also going to search for non-android examples in this context. Is there a web source you can recommend? On 12 Aug., 23:38, Kostya Vasilyev kmans...@gmail.com wrote: 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 sample code you find, and make meaningful modifications. Without it, it's just copying and pasting while keeping your fingers crossed. -- Kostya Vasilyev --http://kmansoft.wordpress.com 13.08.2010 1:13 пользователь Indicator Veritatis mej1...@yahoo.com написал: 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 wh...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Mouse interaction on 3D object
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 done in OpenGL with GLUT but nothing about a OpenGL|ES solution. What I've figured out so far is that I have to work with the MotionEvent class but can anyone give me some further hint how to get started? I just started working with OpenGL|ES. thanks in advance, Sadi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Mouse interaction on 3D object
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 sample code you find, and make meaningful modifications. Without it, it's just copying and pasting while keeping your fingers crossed. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 13.08.2010 1:13 пользователь Indicator Veritatis mej1...@yahoo.com написал: 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 wh... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en