google-code-export / openeve

Automatically exported from code.google.com/p/openeve
0 stars 1 forks source link

3D textures does not render on GW620 #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are problems with textures in 3D games with my Etna. You can try it 
yourself with those apps:
Mistique episode 1 (free)
Neocore benchmark (free)

Just run the game/benchmark and see - in Mistique there are colored lines 
instead of textures, in Neocore only Halos are rendered. Interesting is that 
other 3D stuff (Gallery, Sygic Aura, Tank Hero, ..) works properly.

Original issue reported on code.google.com by schmaker...@gmail.com on 16 May 2011 at 9:28

GoogleCodeExporter commented 9 years ago
I heard about that Android 3.0 is able to render real 3D.

Original comment by Katzen...@gmail.com on 16 May 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Thats not the case. For example, Neocore benchmark WORKS (just a little bit 
slow) on openetna froyo firmware, so this is a real bug in OpenEVE firmware

Original comment by schmaker...@gmail.com on 16 May 2011 at 10:40

GoogleCodeExporter commented 9 years ago
@schemaker // Nexus also known that necore bench did not work.
so it is not OpenEVE or CM7 bug.

this is compatibility issue i think.
and currently there is no known way to workaround this issue.

Original comment by wkp...@gmail.com on 16 May 2011 at 10:53

GoogleCodeExporter commented 9 years ago
and.. Aututu bench or Quardrant standard are well known 3D benchmark app.
these are work perfectly with CM7.

Original comment by wkp...@gmail.com on 16 May 2011 at 10:55

GoogleCodeExporter commented 9 years ago
I kinda feel you dont get it. Ive tried Neocore on Froyo release of OpenEtna 
and it worked pretty nice (with 10~15FPS) with no graphic issues. So there 
actually is some problem in OpenEVE GPU driver as Adreno 130 IS featured enough 
to run that benchmark (it's OpenGL ES 1.1). Im not sure about Mistique tho, 
that may be (or may be not) working on our phones, but since it just does 
texture rendering artifacts, im pretty sure it should work as well.

Original comment by schmaker...@gmail.com on 17 May 2011 at 4:59

GoogleCodeExporter commented 9 years ago
@schmaker // please read my prev msg carefully.

Original comment by wkp...@gmail.com on 17 May 2011 at 5:36

GoogleCodeExporter commented 9 years ago
Yeah, i actually misunderstood you (sorry then, im not native English speaker). 
I guess youre right and it may be compatibility issue. Did some research and i 
noticed people having issues with Mistique when Cyanogenmod or Gingerbread is 
used. I guess i just filled invalid bug.

Original comment by schmaker...@gmail.com on 17 May 2011 at 12:30

GoogleCodeExporter commented 9 years ago
See also
http://www.youtube.com/watch?v=jJE3wa3VSAY (Quadrant advanced old version on 
Nexsus S)

http://wn.com/Nexus_S_Benchmarks (Nexsus S benchmark)
 - neocore works perfectly.

Original comment by wkp...@gmail.com on 17 May 2011 at 3:07

GoogleCodeExporter commented 9 years ago
I have found something. It works but no source code found.

http://www.neopeek.com/viewtopic.php?f=24&t=6500&p=11565#p11565
by Faryaab

we just need only two libs.
 * libEGL.so
 * libGLESv1_CM.so

these are just wrapper libs of to support hardware openGL.

you can copy it manually by following

 adb push libEGL.so /system/lib/
 adb push libGLESv1_CM.so /system/lib/
----
without sound, about ~26.5 fps obtained.

----
it will not be included into OpenEVE GB without source code.

Original comment by wkp...@gmail.com on 17 May 2011 at 11:09

Attachments:

GoogleCodeExporter commented 9 years ago
libEGL.so / libGLESv1_CM.so of OpenEtna also works fine.

its more faster than prev libs.
without sound, about ~29 fps.

Original comment by wkp...@gmail.com on 18 May 2011 at 6:06

Attachments:

GoogleCodeExporter commented 9 years ago
3d gallery runs a little slow if you open and change of direction that locks 
the screen and exits. Place these files and now the gallery 3d screen changes 
without binding even though it shows a little at a time to move on the screen.

Sorry for my English. I am using a translator  :P

Original comment by DavidGF....@gmail.com on 18 May 2011 at 7:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Using the files in the package egl.zip
Because the package etna-egl.zip fails and locks the 3d gallery

Original comment by DavidGF....@gmail.com on 18 May 2011 at 7:53

GoogleCodeExporter commented 9 years ago
OK. I have found solution to work texture correctly with Neocore.

diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index ffb3189..6a29b01 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -1468,6 +1471,7 @@ __eglMustCastToProperFunctionPointerType 
eglGetProcAddress(const char *procname)
     }
 #endif

+    return NULL; // XXX workaround to make texture work correctly with neocore
     // this protects accesses to gGLExtentionMap and gGLExtentionSlot
     pthread_mutex_lock(&gInitDriverMutex);
-----------

this patch simply disable the following commit.

https://github.com/CyanogenMod/android_frameworks_base/commit/3944eab21c4e951185
0d8743da498c2cf886d8a6#L1L1372

Original comment by wkp...@gmail.com on 18 May 2011 at 10:03

GoogleCodeExporter commented 9 years ago
this is patched libEGL.so

http://code.google.com/p/openeve/downloads/detail?name=update-gb-libEGL-110518.z
ip

Original comment by wkp...@gmail.com on 18 May 2011 at 10:24

GoogleCodeExporter commented 9 years ago
Yup, neocore works fine now (21.9 FPS out here), but Mistique is still messed 
up. Anyways .. good job and really great bugfixing speed - keep a good job.

Original comment by schmaker...@gmail.com on 20 May 2011 at 5:33

GoogleCodeExporter commented 9 years ago
Neocore is regarded as reference app made by Qualcomm.

and this workaround hack does not guarantee all other openGL apps work 
correctly.

but we can say that
"reference app like as Qualcomm's Neocore works but your app does not work.
please fix it"

Original comment by wkp...@gmail.com on 21 May 2011 at 5:27

GoogleCodeExporter commented 9 years ago

Original comment by wkp...@gmail.com on 29 May 2011 at 1:02