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 6060823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:52:09+00:00 2026-05-23T08:52:09+00:00

I’ve coded a engine which is able of drawing with OpenGL ESv2 or OpenGL

  • 0

I’ve coded a engine which is able of drawing with OpenGL ESv2 or OpenGL 3 Core Profile API.
But recently the OpenGL 3 part got broken and I can’t remember what I changed nor can I look in the svn commitlog, cause I did host it at bountysource which is down now and I carried it over to Google (but with broken OGL3 port).

With OpenGL ESv2 everything works fine, but with OpenGL 3 everything is stretched and mirrored horizontally. Both even use the same matrices and vertices.

Do not be confused. The OpenGL ESv2 and OpenGL 3 renderers use different ways to render it.

OpenGL ESv2 uses VBO.
OpenGL 3 uses VAO and VBO.

My engine is open source, so, you can look into it here: Source Code.

These should be the important parts: Sprite Class, Base Window Class, GL3 Window Class, GL ESv2 Window Class

Shaders:

GLv2: frag, vert

GL3: frag, vert

Here are some example pictures:
OpenGL 3 - Menu
OpenGL 3 - Ingame
OpenGL ESv2 - Menu
OpenGL ESv2 - Ingame

I would be really, really glad and thankful if someone would deliver me the solution to this problem and maybe I would give a small reward for it.

edit:
with a 480×800 window, gldebugger shows this matrix:
modviewmat
{1, -0, 0, 0}
{0, 1, 0, 0}
{0, 0, 1, 0}
{5, 770, 0, 1}

projmat
{2, 0, 0, 0}
{0, 2, 0, 0}
{0, 0, -1, 0}
{-1, -1, -0, 1}

  • 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-23T08:52:09+00:00Added an answer on May 23, 2026 at 8:52 am

    I’m so dumb..it was cause I have 2 class.
    1 base class and 1 plattform specific implementation which derived from the base class.
    All variables were created in the base class AND in the other.

    So, I had handles for the matrices in the base class and in the other class.
    The OpenGL handles were initialized in the base class. In the gl3 class there are handles too but they arent initialized, since its the job of the base class.

    tl;dr pseudocode:

    base class: glhandle projmatrix
    gl3class: glhandle projmatrix

    baseclass::init(): (baseclass).promatrix.init
    gl3class::update(): (gl3class).projmatrix.update

    :/

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have a text area in my form which accepts all possible characters from

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.