Re: [android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-09 Thread Thiago Lopes Rosa
Lesson 48 ported to Java (still needs some OpenGL ES adjustments): http://www.java-tips.org/other-api-tips/jogl/arcball-rotation-nehe-tutorial-jogl-port.html Thiago On Tue, Sep 7, 2010 at 21:04, Thiago Lopes Rosa thiago.r...@gmail.comwrote: Thanks! =) Thiago On Tue, Sep 7, 2010 at

[android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-09 Thread Robert Green
To switch to ES - Create an array of verts and normals and use those to replace the immediate mode drawing. You will need to replace the GLU sphere and torus creation with perhaps a known algorithm to create them - or if you can find a glut es implementation of those that would work too. On

[android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-07 Thread alan
your first stop for all opengl questions should be NeHe open gl lessons: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=48 On Sep 6, 9:58 pm, Thiago Lopes Rosa thiago.r...@gmail.com wrote: This is a 3D Minesweeper. Instead of searching mines on that rectangular field, you must search

[android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-07 Thread Robert Green
I was going to suggest doing what they outline in that lesson. In short - keep a rotation matrix for the current orientation of your cube. Process input and keep a rotation matrix that you apply the user input to, then multiply the cube matrix by and store the result as the cube matrix, then

Re: [android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-07 Thread Thiago Lopes Rosa
Thanks! =) Thiago On Tue, Sep 7, 2010 at 14:25, Robert Green rbgrn@gmail.com wrote: I was going to suggest doing what they outline in that lesson. In short - keep a rotation matrix for the current orientation of your cube. Process input and keep a rotation matrix that you apply the

[android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-06 Thread Droid
Suggest dragging for x, y and tapping for z axis movement. But its not clear exactly what your end-game is You could also use accelerometer for tipping (see Breakout Legend in the App in mkt) :) Droid On Sep 6, 7:04 pm, Thiago Lopes Rosa thiago.r...@gmail.com wrote: Hi, I have a cube on

Re: [android-developers] Re: OpenGL - 3D rotation from a 2D input

2010-09-06 Thread Thiago Lopes Rosa
This is a 3D Minesweeper. Instead of searching mines on that rectangular field, you must search them on several 3D fields (8 in total) by looking in all faces/planes. So you must rotate the objects to see all sides. (search for: *3D Mines*) I got the idea about different movements for each axis,