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

  • SEARCH
  • Home
  • 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 9130883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:02:49+00:00 2026-06-17T08:02:49+00:00

Hello my rendering is very glitchy on Tegra 3 devices.. any Idea how this

  • 0

Hello my rendering is very glitchy on Tegra 3 devices.. any Idea how this is possible?
Here are two screens. the first one is the glitchy one from an Asus A510 tablet and the second is the correct rendering on my galaxy nexus

glitchy Tegra 3

correct rendering on gnex

And here is my code of the render class:

public class ShowCaseRenderer {

GLGraphics glGraphics;
LookAtCamera camera;

AmbientLight ambientLight;
DirectionalLight directionalLight;
public float rotation = 0;
public static float rotationCamera = 0;

private Vector2 camDirection;

public static final int SWIPE_LEFT = -1;
public static final int SWIPE_RIGHT = 1;

public ShowCaseRenderer(GLGraphics glGraphics) {

    camDirection = new Vector2();

    this.glGraphics = glGraphics;
    camera = new LookAtCamera(67, glGraphics.getWidth()
            / (float) glGraphics.getHeight(), 0.1f, 100);

    ambientLight = new AmbientLight();
    ambientLight.setColor(0.2f, 0.2f, 0.2f, 1.0f);
    directionalLight = new DirectionalLight();
    directionalLight.setDirection(-1, -0.5f, 0);

    GL10 gl = glGraphics.getGL();
    gl.glViewport(0, 0, glGraphics.getWidth(), glGraphics.getHeight());
    gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
    gl.glMatrixMode(GL10.GL_PROJECTION);
    gl.glLoadIdentity();
    GLU.gluPerspective(gl, 67,
            glGraphics.getWidth() / (float) glGraphics.getHeight(), 0.1f,
            10.0f);

}

public void render(int swipe, float deltaTime) {

    GL10 gl = glGraphics.getGL();



    camDirection.set((float) Math.cos(rotationCamera * Vector2.TO_RADIANS),
            (float) Math.sin(rotationCamera * Vector2.TO_RADIANS)).nor();

    camera.getPosition().set(0, 0, 0)
            .sub(camDirection.x * 2.55f, -0.4f, camDirection.y * 2.5f);  

    camera.getLookAt().set(0, 0, 0);

    camera.setMatrices(gl);

    gl.glEnable(GL10.GL_DEPTH_TEST);
    gl.glEnable(GL10.GL_TEXTURE_2D);
    gl.glEnable(GL10.GL_LIGHTING);
    gl.glEnable(GL10.GL_COLOR_MATERIAL);
    gl.glEnable(GL10.GL_BLEND);

    ambientLight.enable(gl);
    directionalLight.enable(gl, GL10.GL_LIGHT0);

    if (swipe == SWIPE_LEFT && rotationCamera % 90 != 0) {

        rotationCamera = rotationCamera -= 1.5f;

    }

    if (swipe == SWIPE_RIGHT && rotationCamera % 90 != 0) {

        rotationCamera = rotationCamera += 1.5f;

    }

    if (rotationCamera == 360)
        rotationCamera = 0;
    if (rotationCamera < 0)
        rotationCamera = rotationCamera + 360;

    //eigenRotation der Autos
    rotation = rotation += deltaTime * 25;
    if (rotation > 360) {
        rotation = rotation - 360;
    }

    renderShowCase(gl);



    gl.glDisable(GL10.GL_TEXTURE_2D);

    gl.glDisable(GL10.GL_COLOR_MATERIAL);
    gl.glDisable(GL10.GL_LIGHTING);
    gl.glDisable(GL10.GL_DEPTH_TEST);
    gl.glDisable(GL10.GL_BLEND);
}

private void renderShowCase(GL10 gl) {

    Assets.ectoMobileTexture.bind();
    Assets.ectoMobileModel.bind();

    gl.glPushMatrix();

    gl.glTranslatef(0, 0.01f, -1.5f);

    gl.glRotatef(-rotation, 0, 1, 0);

    Assets.ectoMobileModel.draw(GL10.GL_TRIANGLES, 0,
            Assets.ectoMobileModel.getNumVertices());
    gl.glPopMatrix();

    Assets.ectoMobileModel.unbind();

    Assets.batMobileTexture.bind();
    Assets.batMobileModel.bind();

    gl.glPushMatrix();

    gl.glTranslatef(0, 0.01f, 1.5f);

    gl.glRotatef(-rotation, 0, 1, 0);

    Assets.batMobileModel.draw(GL10.GL_TRIANGLES, 0,
            Assets.batMobileModel.getNumVertices());
    gl.glPopMatrix();

    Assets.batMobileModel.unbind();

    Assets.mysteryMachineTexture.bind();
    Assets.mysteryMachineModel.bind();

    gl.glPushMatrix();

    gl.glTranslatef(-1.5f, 0.01f, 0);

    gl.glRotatef(-rotation, 0, 1, 0);

    Assets.mysteryMachineModel.draw(GL10.GL_TRIANGLES, 0,
            Assets.mysteryMachineModel.getNumVertices());
    gl.glPopMatrix();

    Assets.mysteryMachineModel.unbind();

    Assets.podRacerTexture.bind();
    Assets.podRacerModel.bind();

    gl.glPushMatrix();

    gl.glTranslatef(1.5f, 0.01f, 0);

    gl.glRotatef(-rotation, 0, 1, 0);

    Assets.podRacerModel.draw(GL10.GL_TRIANGLES, 0,
            Assets.podRacerModel.getNumVertices());
    gl.glPopMatrix();

    Assets.podRacerModel.unbind();

}

  }

thank you…

  • 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-06-17T08:02:50+00:00Added an answer on June 17, 2026 at 8:02 am

    ok solved the Problem. The glitch caused a guiElement, that had a strange blend config…

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

Sidebar

Related Questions

Hello I am trying to understand differences in the rendering of this page in
Given hello.php: <?php echo Hello; ?> rendering the page works fine and returns Hello
Hello I have like this 2 tables class User public int UserId{get;set;} { ....
I have the following Hello World code to try out TeX rendering with matplotlib
This is just a question to help me understand CSS rendering better. Lets say
Following some well-known OpenGL Haskell tutorial , I've made my first HOpenGL program. Here's
I have an XML document with some sample content like this: <someTag> <![CDATA[Hello World]]>
Hello this weekend I started to watch the 2011 WWDC videos. I've found really
I have a model class, with a property like this: [Display(Name = Phone, Description=Hello
I have a JSP page running in Tomcat that is not rendering properly. Here

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.