Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello forum
Operating Systems forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Internet of Things (IoT) blog
Operating Systems blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Graphics, Gaming, and VR forum
migration open gl es 2 in android 7
Jump...
Cancel
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
1 reply
Subscribers
138 subscribers
Views
25491 views
Users
0 members are here
Android OpenGL ES
Video
OpenGL ES
Smart Phone
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
migration open gl es 2 in android 7
boenryc
over 5 years ago
hi i'm porting my simple videogame based of open gl es 2 in a different smartphone (galaxy j7):
it works fine with Galaxy note 2 (open gl es 2 and android 4.2) , bad in Galaxy j7 (open gl es 3.1 and android 7)
when I draw two geometries 3D one above the other something goes wrong
I've posted the bad effect in this video youtube (look for with google) youtu.be/xJHfKASQ-7k
while this is a screeshot about note2 in youtu.be/ERljT0O3vW4
i use the code
glView = new GLSurfaceView(this);
glView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
and every 30 mills I call glView.requestRender()
Perhaps in android 7 `rendermode_with_dirty` doesn't work? or different settings/instruction open gl are needed?
1)in the draw method of the game loop
GLES20.glClearColor(0, 0, 0, 1);
GLES20.glEnable(GLES20.GL_DEPTH_TEST);
GLES20.glClearDepthf(1.0f);
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
(draw goemetries)
GLES20.glFlush();
2)for each geometry 3d I do
GLES20.glEnable(GLES20.GL_CULL_FACE);
GLES20.glDisable(GLES20.GL_BLEND);
GLES20.glDepthMask(true);
(load program -shader etc - etc..)
GLES20.glDisable(GLES20.GL_CULL_FACE);
Top replies
Peter Harris
over 3 years ago
+1
verified
Old issue. Closing.
Parents
+1
Peter Harris
over 3 years ago
Old issue. Closing.
Cancel
Up
+1
Down
Cancel
Reply
+1
Peter Harris
over 3 years ago
Old issue. Closing.
Cancel
Up
+1
Down
Cancel
Children
No data