As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [srgb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Correct palette vs player color RGB combination

I'm trying to replicate a RTC game as a pet project. The thing is, the units have a .BMP palette. From index 0 to 63, palette colors will be combined to the player color, since that parts of the unit ...
sm1l3yZzZ's user avatar
1 vote
1 answer
502 views

What is a correct approach to gamma correction in OpenGL?

I'm currently reading about the topic of gamma correction and am a bit confused about what should I, as a game developer, do about it. There seem to be a few options here: Don't do anything at all ...
val is still with Monica's user avatar
0 votes
1 answer
752 views

How to create a texture SRV with different sRGB format from a render target in DX11?

Is it possible to bind a texture with a different format as render target and as shader resource view? Specifically with a different _SRGB suffix. My goal is to render a shader into an R8G8B8A8_UNORM ...
thalm's user avatar
  • 217
4 votes
2 answers
3k views

Why is enabling GL_FRAMEBUFFER_SRGB making the colours brighter?

My understanding of gamma correction is as follows: We want to do colour math in linear space so we can lerp etc. between colour values and get the results we expect. But human eyes don't have a ...
Ryan1729's user avatar
  • 714
2 votes
1 answer
565 views

Additive Blending and Gamma Correction

Should one do additive blending (aka lightmapping) in linear space? I tried doing it in linear space, and it became, well, linear and bland, losing that cool HDR-style bloomy effect. Is there some ...
SmugLispWeenie's user avatar
-1 votes
1 answer
243 views

Fastest Software Gamma=2.2 for RGB?

With gamma=2.0 you can use that Carmack's inverse sqrt hack or a lookup table. Yet all standard graphic formats mandate the use of gamma=2.2, and SVGA framebuffer also requires it. Unfortunately, for ...
SmugLispWeenie's user avatar
1 vote
1 answer
335 views

What does the alpha channel on a back buffer do?

I see that e.g. in OpenGL it is possible to create a back buffer with an alpha channel (RGBA8888). What's the effect/advantage over having an RGB888 back buffer?
tyrondis's user avatar
  • 113
2 votes
0 answers
775 views

Linear color workflow with render to texture - Banding in alpha channel?

In OpenGL, I am using GL_SRGB8_ALPHA8 for the OpenGL internal texture format for my textures and render targets. This eliminated some banding I was seeing in dark ...
Tim R.'s user avatar
  • 268
1 vote
1 answer
200 views

Creating colour spectrum by light flux values

I am using radiosity method to compute the inter-reflected light within a room. The room is gridded into small patches and the light flux in lumen is calculated for each. This part is done. Now I want ...
ali's user avatar
  • 167
3 votes
4 answers
8k views

Optimized linear to sRGB GLSL

I'm currently using a simple implementation of linear to sRGB transform: ...
Alexsey Shestacov's user avatar
0 votes
1 answer
276 views

Is it possible to store diffuse and normal maps in the same texture area and preserve SRGB/linear space?

Usually, one would want to upload texture data to OpenGL with GL_SRGB* for the internalformat of a texture, and ...
ocharles's user avatar
  • 125
2 votes
1 answer
2k views

Why am I not getting an sRGB default framebuffer?

I'm trying to make my OpenGL Haskell program gamma correct by making appropriate use of sRGB framebuffers and textures, but I'm running into issues making the default framebuffer sRGB. Consider the ...
Aaron Rotenberg's user avatar