3d - Issue with Android OpenGLES lighting -


hey all, i'm writing little 3d engine android better learn platform , opengl. hope use base little 3d games.

i'm trying implement lighting right now, , following nehe opengl android port tutorials. have simple spinning cube , 1 light should not change position. upon rendering scene on device light appears "dim" , re-lighten cube rotates.

this swf video of behavior: http://drop.io/obzfq4g

the code "engine" located here: http://github.com/mlasky/smashout-android-3d-engine/

the relevant bits are:

http://github.com/mlasky/smashout-android-3d-engine/blob/master/src/com/supernovamobile/smashout/smashoutglrenderer.java
i'm initializing opengl , setting scene.

and

http://github.com/mlasky/smashout-android-3d-engine/blob/master/src/com/supernovamobile/smashout/smmesh.java code rotating / drawing cube mesh.

i wish formulate better question; i'm stuck/confused , can't think of intelligent question ask besides "does know might cause kind of behavior i'm seeing?"

thanks can provide.

edit: slowness / choppyness of animation in video result of screencap software. it's smooth throughout whole rotation on emu.

from video looks normals incorrect.

for axis-aligned cube normals in cube.xml seem off. should axis-aligned, not whatever are. did model?

this answer may related if mvnormalsbuffer empty.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -