question

Bruce Davidson avatar image
Bruce Davidson asked

Are there any code samples of using GLES3 on a FireHD?

I have a firehd10 (2017), and per https://developer.amazon.com/docs/fire-tablets/ft-feature-specifications.html, it supports ES3.1

But when I run the AndroidStudio code sample 'gles3jni', it just dies on the device, and I don't see anything show up in logcat.


I am able to run both the 'HelloGL2' and 'SanAngeles' demos from AndroidStudio without issue, it just seenms to be the GLES3 sample.


Are there any code samples of using GLES3 on a FireHD?


fire tablet
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I found the error, it looks like it wants different parameters, but this demo works in the emulator and on my phone, both also on Lollipop :

05-01 14:57:03.462 19499-19499/com.android.gles3jni E/VendorContextExt: Failed to register system service "com.amazon.client.metrics.AndroidMetricsFactoryImpl". The class was not found for the provided classloader.

05-01 14:57:03.561 19499-19519/com.android.gles3jni E/GED: Failed to get GED Log Buf, err(0)

05-01 14:57:03.575 19499-19519/com.android.gles3jni E/IMGSRV: :0: PVRSRVLoadLibrary: dlopen failed: dlopen failed: library "libPVRDebugger.so" not found

05-01 14:57:03.594 19499-19518/com.android.gles3jni E/AndroidRuntime: FATAL EXCEPTION: GLThread 1674

Process: com.android.gles3jni, PID: 19499

java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG

at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1192)

at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1183)

at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1033)

at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1400)

at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)


0 Likes 0 ·
Levon@Amazon avatar image
Levon@Amazon answered

Hi Bruce,

Thanks for that info. I have forwarded your message to the Fire OS team to investigate. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi Bruce,

This repo https://github.com/JimSeker/opengl has working examples of OpenGL ES 3.1 on Fire HD 10 (2017). Does that answer your question? Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.