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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:07:58+00:00 2026-05-13T02:07:58+00:00

In my 2D game I need textures that may be arbitrarily large, can be

  • 0

In my 2D game I need textures that may be arbitrarily large, can be NPOT and nonsquare.
They are only ever mapped to one kind of primitive: rectangles via GL_QUADS (the four QUAD corners are mapped to the four texture corners). Sometimes the texture matrix has been scaled before drawing.

I want my game to work everywhere, even on old/cheap videocards that only allow small and/or POT textures.
What solution should I use? It should…

  • Be easy to implement
  • Have very good performance.

Currently I know of the following options:

  • Use an extension like GL_TEXTURE_RECTANGLE_{EXT,NV,ARB} so NPOT works on cards that don’t support OGL2.0 native NPOT textures.

    • this doesn’t solve the “big texture” problem.
    • does it work on a maximal number of PCs? do videocards that support native OGL2.0 NPOT support those extensions as well?
    • which of the three variants EXT/NV/ARB to use?
  • Implement BigTextures as a bunch of small, POT texture slices, which are them carefully drawn on several adjacent QUADs. This both provides “big textures” and NPOT but it’s a bit difficult and limiting.

  • Implement my NPOT textures as POT textures padded with transparency to the right and bottom. Will waste memory and make texture tiling a bit more difficult, and it doesn’t solve the “big texture” problem.
  • Use some premade solution.

An example of a problematic videocard is the Mobile Intel® 945GM Express Chipset which doesn’t seem to support native NPOT.

Update: I ended up using the third option. The cool thing is, I was able to use glTexSubImage2D, rather than padding the texture manually. This is crazy fast. Yeah, it doesn’t provide “big texture” support, but I realized my target GPUs support up to 2048×2048 which is good enough for me. Oh, and GL_TEXTURE_RECTANGLE_EXT wasn’t even supported on the Mobile Intel® 945GM Express Chipset.

  • 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-13T02:07:59+00:00Added an answer on May 13, 2026 at 2:07 am

    If all your UV-coordinates are in the [0, 1] range you could pack your NPOT textures into a texture atlas.

    Since your textures can be arbitrarily large I would probably go with the suggestion to split up the NPOT textures (and corresponding quads) into POT pieces no larger than the hardware can handle. If you chose this solution remember to set the wrap mode to GL_CLAMP_TO_EDGE to minimize rendering artifacts at the edge (if you need minification, you’ll still get some).

    If a card doesn’t support OpenGL 2.0 NPOT textures, it’s unlikely that they will support GL_TEXTURE_RECTANGLE_{EXT,NV,ARB}.

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

Sidebar

Related Questions

No related questions found

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.