-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Real demo of opengl. Did refactoring, cleaning, doc...
- Loading branch information
1 parent
d4c64d6
commit 517834b
Showing
23 changed files
with
14,380 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Android 3DModel Viewer | ||
====================== | ||
|
||
This is a demo of OpenGL ES 2.0. | ||
|
||
It is basically an android application with a 3D renderer (OpenGL ES 2.0) that can loads 3D model, | ||
|
||
The purpose of this application was to learn android and the OpenGL language | ||
|
||
|
||
Features | ||
======== | ||
- OpenGL ES 2.0 API | ||
- obj format supported (wavefront) | ||
- display of normals (not yet!) | ||
- display of bounding box | ||
- textures | ||
- colors | ||
- scaling, rotation | ||
- object picking | ||
- primitive collision detection (not yet!) | ||
- animation of sprites (not yet!) | ||
- touch support! | ||
* rotation gesture to rotate | ||
* pinch gesture to zoom | ||
- moving of objects (not yet!) | ||
|
||
|
||
Try it | ||
====== | ||
|
||
1. Compile project from your android IDE | ||
2. Connect your android device and run application | ||
3. You should see a 3D arrow and some triangles, squares and a teacup in the middle. Also a square with texture. | ||
|
||
|
||
Tests | ||
===== | ||
|
||
- Tested on Nexus 7 3G (2012) | ||
|
||
|
||
Final Notes | ||
=========== | ||
|
||
You are free to use this program while you keep this file and the authoring comments in the code. | ||
Any comments and suggestions are welcome. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# penguin.mtl | ||
# | ||
|
||
newmtl Material01 | ||
Ka 0.011765 0.752941 0.752941 | ||
Kd 0.909804 0.690196 0.905882 | ||
Ks 0.933333 0.933333 0.933333 | ||
Ns 445.312500 | ||
illum 2 | ||
map_Kd models/penguin.bmp |
Oops, something went wrong.