Animated GL Sprite Gets Blurry...

Problems with Canvas, OpenGL, etc...

Animated GL Sprite Gets Blurry...

Postby IronChef253 » Sat Jun 19, 2010 7:07 am


I have been experimenting with mapping an animated sprite onto a quad and today I finally got it working. One irritation is that my sprite starts out sharp and then gets more and more blurry and weird over time.

Any ideas? I am using source from the NeHe android series tutorial 6 as the basis for this project...

Here are the settings I am using to render my textured Quad:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  2. gl.glEnable(GL10.GL_TEXTURE_2D);                        //Enable Texture Mapping ( NEW )
  3. gl.glShadeModel(GL10.GL_SMOOTH);                        //Enable Smooth Shading
  4. gl.glClearColor(1.0f, 1.0f, 0.0f, 0.0f);        //Yellow Background
  5. gl.glClearDepthf(1.0f);                                         //Depth Buffer Setup
  6. gl.glEnable(GL10.GL_DEPTH_TEST);                        //Enables Depth Testing
  7. gl.glDepthFunc(GL10.GL_LEQUAL);                         //The Type Of Depth Testing To Do
  8. gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); //enable transparency
  9. gl.glEnable(GL10.GL_BLEND); //enable transparency blending
Parsed in 0.014 seconds, using GeSHi
Junior Developer
Junior Developer
Posts: 11
Joined: Sun Jun 13, 2010 6:51 am


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

Who is online

Users browsing this forum: No registered users and 3 guests