Leave a comment

Lighting revamp progress

I’m gradually making progress in my lighting revamp. This involves the following:

  • Making my textures have real-world albedo values
  • Doing the appropriate gamma correction throughout the pipeline
  • Coming up with a better ambient lighting model
  • Taking another look at my less-than-satisfactory HDR implementation

I’m trying to make all my rendering “gamma correct”. This means doing my lighting calculations in linear color space. Well, they’ve always assumed linear color space, but my input textures (and thus my albedo G-buffer) were in sRGB. So I am now correcting the source textures (sRGB to linear), operating in linear space in my light accumulation buffer, and then doing the final gamma correction (sRGB to linear) before presenting to the screen.

I really don’t like the gamma-correct look though. I’m still in the early stages, so it’s possible I have some bugs I need to work out. But everything comes out very washed-out.

The following set of images show before (top) and after (bottom).

 

A canyon at dusk.

A canyon at dusk.

 

Compare2

Desert at midday

 

 

Snowy stream with birches.

Snowy stream with birches.

 

In general, snowy sunny scenes look a little better though:

 

Nice

 

For those implementing a properly gamma-correct pipeline, how do you prevent your lighting from getting so washed out?

(EDIT: It turns out my directional light shader was missing the gamma decoding step, and the directional light is the main source of light in these images. So these images are the result of a bug!).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Space Quest Historian

Adventure game blogs, Let's Plays, live streams, and more

Harebrained Schemes

Developer's blog for IceFall Games

kosmonaut's blog

3d GFX and more

Halogenica

Turn up the rez!

bitsquid: development blog

Developer's blog for IceFall Games

Game Development by Sean

Developer's blog for IceFall Games

Lost Garden

Developer's blog for IceFall Games

Memories

Developer's blog for IceFall Games

Casey's Blog

Developer's blog for IceFall Games

Blog

Developer's blog for IceFall Games

Rendering Evolution

Developer's blog for IceFall Games

Simon schreibt.

Developer's blog for IceFall Games

Dev & Techno-phage

Do Computers Dream of Electric Developper?

- Woolfe -

Developer's blog for IceFall Games

Ferrara Fabio

Game & Application Developer, 3D Animator, Composer.

Clone of Duty: Stonehenge

First Person Shooter coming soon to the XBOX 360

Low Tide Productions

Games and other artsy stuff...

BadCorporateLogo

Just another WordPress.com site

Sipty's Writing

Take a look inside the mind of a game developer.

Jonas Kyratzes

Writer, game designer, filmmaker.

%d bloggers like this: