Help on 3D image drawing

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Help on 3D image drawing

Postby Tanuja » Thu Oct 30, 2008 7:22 am

Hi all........
i m very new to this android.i created a 3D cube.now my next job is to move the cube to the palce where the
mouse is clicked.i am not getting how to do it.please help me.


Thanks in advance
Tanuja
Junior Developer
Junior Developer
 
Posts: 15
Joined: Thu Oct 30, 2008 7:13 am

Top

Postby MrSnowflake » Thu Oct 30, 2008 10:04 am

You can push and pop matrices from the stack, which means, if you push a matrix to the stack, all objects drawn after this matrix was pushed, will be translated, rotated, scaled, ... according to this matrix. This is what you should do, take a look at http://nehe.gamedev.net and try to figure out how to use these tuts on opengl es in java.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests