PDA

View Full Version : OpenGL Android - Rotate objects other than a cube or triangle



androidDev
03-20-2016, 09:08 AM
Hi,

I 've already had access to Android code available on internet where a cube can be created and rotated on reply to events.

What I really need is to find a way to upload a png image file and be able to rotate it. The issue is how to set the cube behaviour to an image loaded from memory. An example is the Teapot project NHK available in project samples in Android Studio. But it uses an .inl file.


Regards,

androidDev
03-20-2016, 12:30 PM
Hi all,

I already know how to draw a cube and rotate and translate it on reply to events in Android.

Now I need something slightly different for an Android app: Instead of having a cube I would like to replace it with a 3D image. The same way it is done in C++ with .obj files where we have a Scene and 3D .obj files.

Any clues or examples on how to do this?


Regards,

Dark Photon
03-20-2016, 07:03 PM
Please read the Forum Posting Guidelines (https://www.opengl.org/discussion_boards/showthread.php/176139-Forum-Posting-Guidelines?p=1230021&viewfull=1#post1230021). In particular, don't cross-post. I've combined your threads here.