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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:11:03+00:00 2026-05-26T13:11:03+00:00

(This is actually a crosspost from gamedev , but I thought you guys and

  • 0

(This is actually a crosspost from gamedev , but I thought you guys and girls might be helpful too!)

Edit: I elaborated about what I mean with overlay. After some sleep I have found that my call to glGenerateMipmaps is useless, since I use null as pointer to glTexImage2D.

On OpenGL 3.3, Ubuntu 11.04, nVidia drivers 280.13, GeForce GT240.

I’m making a deferred shader and wants to display my G-buffer in small overlays in the lower part of the screen. Overlays in this case meaning no z-test, textured screen aligned quads, and rendered last.

When rendering (one at a time) the G-buffers (FBO textures ) in full window they shows up correctly.
When rendering to these overlays I get trash (seemingly random GPU-memory as static interference, but different between runs, sometimes clear picture).

If I create a different texture, say from file, it shows without trash in the overlays, so that code should be OK.
Can anyone explain why? I have used glGenerateMipmap for the textures in the G-buffer.

I know this might be not enough information, but starts with this. Please ask about any relevant information.
Can the problem be related to FBO-rendering and mipmapping? Surely my code wants to show unreserved/uninitialized memory, but I don’t know why.
The four textures below have trash data in them.


The full-window green picture is my current result from the lighting stage, in resolution (256*256) to save GPU memory because of fat G-buffer.
Also, in the material shader (generating the G-buffer) I use “out vec4 fragment[3]”, and the textures are of different internal formats. Can that be a problem?

PS.
The lights are at (-30,0,0) and (30,0,0) but seems to be “nearer”. Can that be a precision problem? I use GL_RGBA16F for the normals, GL_RGBA32F for the positions, GL_DEPTH_COMPONENT24 for depth and GL_RGBA for the albedo (Yes, an enormous waste, but I will optimize later).

  • 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-26T13:11:04+00:00Added an answer on May 26, 2026 at 1:11 pm

    OK, I found the problem. I generated mipmaps before any meaningful data was in the memory. Turning off mipmapping for the relevant textures solved the problem. Thank you anyway for your attention!
    enter image description here

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

Sidebar

Related Questions

How does this actually work? I thought Main was supposed to be called. But
I am trying to get coordinates from GPS (this actually gives the values for
I understand that 2 options are available: Non-persistent Persistent But what does this actually
This is actually a three-part question, which I'll explain below, but the questions are:
This is actually a non-critical question, but I get this warning most of the
This actually stems from on my earlier question where one of the answers made
How does this actually come about? I am working in one repo by myself
Not too sure if the title to this actually explains what I really need
This actually corresponds to my other question but things get more complicated. I have
An Rspec test like this (actually taken from RefineryCMS' own test suite) require File.expand_path(File.dirname(__FILE__)

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.