What r_gamma value do you use?

Talk about anything related to Unvanquished.
User avatar
icaro440
Marauder
Posts: 183
Joined: Fri Mar 23, 2012 10:46 am UTC
Location: [SP]ain

Re: What r_gamma value do you use?

Post by icaro440 »

1.87

User avatar
illwieckz
Project Head
Posts: 730
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: What r_gamma value do you use?

Post by illwieckz »

killing time wrote: Sun Apr 30, 2023 6:36 am UTC

I guess there might be a problem with intermediate framebuffers. I assume all framebuffers have 8-bit position. The actual calculations in GLSL are floating-point so we should be fine, but stuff goes in and out of different framebuffers a number of times before going to the final output buffer.

Yes

So we would need to do the transformations every time stuff goes in or out of a framebuffer to preserve our precious precision.

But if we do OpenGL Blending framebuffers have to contain the linear values.

Edit:

It looks like we don't call glBlendFuncSeparate neither require ARB_draw_buffers_blend, in fact our engine supports hardware that are way older than that, so maybe we don't do OpenGL blending. If we do everything in GLSL I wonder if we can write the code in a way all GLSL fp is in sRGB in input and output…

This comment is licensed under cc ​​by 4 and antecedent. The Crunch tool is awesome!

User avatar
illwieckz
Project Head
Posts: 730
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: What r_gamma value do you use?

Post by illwieckz »

Yeah, that goodness comes from non-short light falloff and intense light bouncing. At least if the light blending is not physically correct, the light diffusion in space is more physically correct.

See Please compile your maps without -fast but with -fastbounce thread for details about this.

This comment is licensed under cc ​​by 4 and antecedent. The Crunch tool is awesome!

User avatar
icaro440
Marauder
Posts: 183
Joined: Fri Mar 23, 2012 10:46 am UTC
Location: [SP]ain

Re: What r_gamma value do you use?

Post by icaro440 »

icaro440 wrote: Mon May 01, 2023 1:20 am UTC

1.87

Also:
Image

User avatar
Sweet
Dretch
Posts: 30
Joined: Tue Dec 07, 2021 8:22 am UTC

Re: What r_gamma value do you use?

Post by Sweet »

I do not use a fixed value. Instead, I use this:

Code: Select all

bind n "math r_gamma * 1.05" 
bind m "math r_gamma / 1.05"

Well, I actually use the same button and modcase it, but you get the idea.

Post Reply