Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:31:41+00:00 2026-05-30T23:31:41+00:00

I made an Android App in which I render everything with OpenGL-ES 2.0 and

  • 0

I made an Android App in which I render everything with OpenGL-ES 2.0 and C++ over JNI and it all works fine except for one thing. It seems as if the Renderbuffers somehow get out of order and the image looks like its trailing a shadow. Somehow like motion blur and I don’t know whats causing this.

I only create an Activity with a GLSurfaceView that has a Renderer class in which the render calls for drawing are. What could be causing this strange behaviour ?

The Java code (minus some irrelevant things) that creates all things looks like this:

public class Main extends Activity  
{   static  MainLoop    mloop   = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) 
    {   super.onCreate(savedInstanceState);
        mloop = new MainLoop()
        setContentView(mloop);
    }
    .
    .
    .
}

The Java code that renders looks like this (again minus some irrelevant things):

public class MainLoop extends GLSurfaceView
{   .
    .
    public MainLoop()
    {   super(parent);
        setEGLContextClientVersion(2);
        setEGLConfigChooser(8, 8, 8, 8, 0, 0)
        //
        this.getHolder().setFormat(PixelFormat.TRANSLUCENT);
        //
        setRenderer(new Renderer());        
    }
    .
    .

    private static class Renderer implements GLSurfaceView.Renderer 
    {   public void onDrawFrame(GL10 gl)
        {   JNIRender();
        }
        public void onSurfaceChanged(GL10 gl, int width, int height)
        {   JNIChanged();   
        }
        public void onSurfaceCreated(GL10 gl, EGLConfig config)
        {   JNICreate();
        }
    }
}

The whole rendering is done with the JNIRender call in C++ and looks fine except for the out-of-order thing where all looks as if its trailing a shadow. Is there something I have to take into account or that I am doing wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:31:42+00:00Added an answer on May 30, 2026 at 11:31 pm

    I checked and found that I have a swapbuffer command in my c++ code which is bad when used in java because the buffer is being displayed automatically anyway and this confuses things.

    I encased my swapbuffer command in an ifdef that its never being used when compiling with the gcc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an android app which working fine. I implemented the Login functionality
I made an app which is just working fine. It displays the number of
I made a custom title bar for my app which works. However, when the
I made an android app which writes to a file in an activity. The
I made an android app in which I am taking the date of birth
My first paid Android app was mercilessly cracked within 1 day, which made me
I have made small app for Android mobile. In one situation I am not
I have an Android app project that contains all of my code. I've made
Greets, Made some app on android. I for the life of me can't get
I'm working my way through APress's Beginning Android 2 and I've made it all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.