Skip to content

Commit

Permalink
* Real demo of opengl. Did refactoring, cleaning, doc...
Browse files Browse the repository at this point in the history
  • Loading branch information
andresoviedo committed May 27, 2015
1 parent d4c64d6 commit 517834b
Show file tree
Hide file tree
Showing 23 changed files with 14,380 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin
47 changes: 47 additions & 0 deletions README.md
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 added assets/models/penguin.bmp
Binary file not shown.
Binary file added assets/models/penguin.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/models/penguin.mtl
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
Loading

0 comments on commit 517834b

Please sign in to comment.