Slashdot Mirror


High Dynamic Range (HDR) Technology Analysis

THG writes "CoolTechZone.com has published an analysis of Valve's High Dynamic Range, or HDR, technology that enhances graphics in video games. This new video/gaming graphics technology is expected to debut soon with Valve's Half-Life 2: Lost Coast title. According to the article, 'HDR, or High Dynamic Range, is a lighting process that's been designed to emulate in-game or artificially generated lighting to closely mirror the changes we see in the real world. In simpler terms, HDR allows you to make the objects brighter by allowing them to use the full brightness capabilities of the monitor and not just the brightness level at which they have been shot with (or rendered with) in the scene.'"

29 of 231 comments (clear)

  1. AnandTech's review from a month ago was better... by MLopat · · Score: 5, Informative

    Personally, I liked AnandTech's review from a month ago better. If you're interested, its available here.

  2. Lets do the time warp again... by irc.goatse.cx+troll · · Score: 5, Informative

    "This new video/gaming graphics technology is expected to debut soon with Valve's Half-Life 2: Lost Coast title."

    Its okay to post old news, but Lost Coast is already out, as is DoD:S which also uses HDR.

    --
    Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
  3. HDR Wizards by Anonymous Coward · · Score: 5, Informative

    http://debevec.org/ lots of info here

  4. Wish List by debilo · · Score: 4, Funny

    My wish list for Christmas 2005:

    - Ending world hunger
    - Finding a cure for AIDS
    - Making objects brighter by allowing them to use the full brightness capabilities of the monitor

    Only two more to go! Thanks, Slashdot, for bringing this to my attention!

    1. Re:Wish List by idlake · · Score: 4, Funny

      The cure for both AIDS and world hunger already exists: condoms.

    2. Re:Wish List by david.given · · Score: 3, Funny
      The cure for both AIDS and world hunger already exists: condoms.

      But I couldn't find one that fit my monitor.

  5. "Debut soon"? by micpp · · Score: 5, Informative

    For one thing, Lost Coast is already out, and has been since last week.
    For another, the first Valve game to use HDR is DOD:Source, and that's been out quite a while already.
    And finally, Valve didn't actually invent HDR, so other stuff has already used it.

  6. More than what was intended? by joeflies · · Score: 3, Interesting
    Isn't adding more brightness than what the author originally intended somewhat akin to pressing the "Mega-Bass" button on your stereo to get more bass than the musician originally intended? Is that a good thing?

    I think that striving for accuracy and balance of the elements is probably more important than striving for the maximum ____ your system can deliver.

    1. Re:More than what was intended? by Nirvelli · · Score: 5, Informative

      The "Mega-Bass" button doesn't usually give you "more bass than the musician originally intended," it usually just gives you about the same level they intended because the types of stereos with that button generally don't reproduce as much bass as the $1,000/piece reference monitors in the studio that the musicians mastered from.

    2. Re:More than what was intended? by OblongPlatypus · · Score: 5, Insightful

      You've missed the point - though I can't blame you, judging by the blurb the article was less than pedagogical when trying to explain HDR.

      This isn't about altering what any "author" intended. On the contrary, HDR is a new tool which lets the "author" do what's intended more easily, assuming what's intended is to achieve realistic lighting in the rendered scenes. Try Anandtech's recent article on the topic, they explain it very well.

      --
      -- If no truths are spoken then no lies can hide --
    3. Re:More than what was intended? by yoyhed · · Score: 5, Insightful
      It's not adding more than the author intended. HDR levels in Source have to be made for HDR; Half-Life 2 and Counter-Strike: Source don't just work with HDR now that Source supports it, the levels still have to be made for it.

      It's a lot more than just a bass boost, since it's not just a brightness increase, but an increase in the range of brightness, allowing for very high contrast. If you go back and look at a Source game without HDR after seeing HDR for awhile, it looks like it has a dark film over it, similar to a digital camera picture looks before being run through auto-contrast in Photoshop.

      --
      WHO NEEDS SHIFT WHEN YOU HAVE CAPSLOCK/ DAMN1
    4. Re:More than what was intended? by signore+pablo · · Score: 3, Insightful

      except that the authors are the ones using and implementing hdr. If it was a mod to a game already released I would agree, but the case for most games is going to be to add this as a feature. So I guess to include your example, maybe if Trent Reznor released some track that had mega bass activated through effects that would make sense, but really, im not sure that its the greatest analogy. ;/

    5. Re:More than what was intended? by rm999 · · Score: 4, Insightful

      Think of it this way:

      When you wake up at night and you can see the room in nearly pitch black, things appear to be as bright as your room in the morning with the shades closed. Actually, the room in the morning is 1000 times brighter. The "author" of the real world (God?) "intended" the room to be 1000 times brighter by slamming 1000 times more protons onto your retina, but your brain normalizes things to make the world easier to comprehend.

      Now, when you are playing a video game, and you go into a dark room with almost no light, current algorithms don't make it easier to see anything - they present you with a black screen. When you walk out into the sunlight, you get a white screen. This is now the way our brain sees the world, and makes the experience less realistic.

      Audio, on the other hand, can be presented to us nearly perfectly. My headphones can range from 20 Hz to 20 KHz, all the frequencies our ears can hear. The mega-bass thing is therefore useless if you have a decent pair of speakers.

      I guess my point can be summed up with this example: you can make a really good set of speakers as loud as an airplane if you want. Your monitor, however, cannot shine the sun in your eyes.

  7. THANK YOU by Capt'n+Hector · · Score: 3, Interesting

    Brightness values should have NEVER been bounded above in the first place (and now that I think of it, bounded below, either). The video card should be charged with computing everthing and only then "flattening" the image into something the monitor can display. It could even add some bloom automatically. HDR and motion blur will do wonders for realism...

    --
    Quid festinatio swallonis est aetherfuga inonusti?
    Africus aut Europaeus?
    1. Re:THANK YOU by donscarletti · · Score: 4, Informative
      Brightness values should have NEVER been bounded above in the first place

      Ah, I see you have never designed any graphics related software or hardware whatsoever. While it is not possible to make truly unbounded colour brightness levels in graphics, it can be approximated with floating point arithmatic, clever gamma curves or just really big integers (32 bits per channel or so). All of which take a lot of processing power, a lot of memory or both. It has only been a recent thing that graphics card manufacturers have had the powerful technology at their disposal to even think about this, let alone implement these techniques. If we had not had the hack known as 24 bit colour for the last twenty years we would have had nothing.

      Now I come to think about it, the author of that artical doesn't know much better: Radiosity is a way of rendering a scene using only visible light sources WTF? Radiosity is a way of rendering a scene by taking into account light bouncing between surfaces, being absorbed by surfaces and emitted at different wavelengths etc. Pretty much the oposite of what it describes since real radiosity will create an effect similar to ambient lighting. The artical is written by idiots for idiots.

      --
      When Argumentum ad Hominem falls short, try Argumentum ad Matrem
  8. HDR and Lost coast by signore+pablo · · Score: 5, Informative

    After playing Half Life 2: Lost Coast with Full HDR at 1280x1024 and settings all the way at max, I came away with the impression that HDR is really quite nice. Comparing screens with normal filters and HDR, HDR is much more realistic. When you look at water reflections HDR is invaluable. Sun reflections especially looked impressive. Where normal filters made the bright spots look gray, HDR made everything shine and bleed a bit. It was quite accurate as far as the water went. Now, what I didn't think was realistic, was HDR used in the distance. There was that seem bleeding effect across open windows and such. Also, the effect is sampled every so often, I don't know what the sampling rate was there, but a couple times i noticed a slow sampling rate that wasnt entirely realistic. Towards the end of the Lost Coast level, I was impressed by the light coming in from the windows (you'll know what im talking about if you've played it). They were stained glass windows and first there was a dull light in them, but when you shot them out, a big blast of white/yellow light shines through that looks quite good. My conclusion is that HDR is good, but they should up the sampling rate in HL2LC and also change how its viewed in the distance. But what do i know... anyway, thats how i saw it.

  9. Inaccurate definition by Tidal+Flame · · Score: 4, Informative

    The provided definition of HDR isn't very accurate. From Game Developer magazine's August 2005 issue:

    "High Dynamic Range (HDR) rendering is a technique used to retain color precision of a rendered scene as it goes through the rendering pipeline...

    For applications, especially games, this means that our scenes will be rendered in a more realistic manner in terms of lighting. Using high dynamic range rendering we can add a great deal of detail to our applications by retaining as much light information as possible. This will then cause our objects and surfaces to be displayed in a way that comes closer to resembling real life than ever before.

    The problem with non-HDR games is that traditionally, the color precision of a rendered scene is lost, and the rendered display is limite to a low dynamic range of color values between 0 and 255. In the past, this limitation was mainly a result of PC or console hardware only supporting integer buffers, which has a limited range of precision when compared to floating point buffers. Thus, to perform HDR rendering we will need to render our scene to an off-screen floating-point surface, so that the data can be manipulated and made ready to be displayed on the screen."


    Also, it's not Valve's technology. They've implemented it in the Source engine now, but they didn't invent it and I'm pretty sure they're not the first to use it.

  10. Not Valve's HDR... by Jerry+Talton · · Score: 5, Insightful

    I think, if you want to be precise, what Valve did in Lost Coast should be called Paul Debevec's High Dynamic Range.

  11. HDR is used similarly in film/digital photography by Buran · · Score: 5, Informative

    High Dynamic Range is also a useful tool in photography, especially for digital photographers who find that the useful dynamic range of a digital camera is less than that of an equivalent film camera. Multiple-exposure bracketing can be combined with the use of special processing software in order to yield images that would be difficult to obtain with a digital camera, or sometimes even a film camera.

    Photoshop CS2 includes this technology out of the box (Photoshop CS2 HDR) -- in the demo page, notice that the sky is properly exposed as well as the vegetation on the hill in the foreground; this would be impossible to capture with many cameras. As the article linked by the original post states,

    "HDR, or High Dynamic Range, is ... designed to emulate ... lighting to closely mirror the changes we see in the real world."

    And indeed that's what the photographic equivalent does. Unlike a camera, our eyes can properly "expose" the ground as well as they can the sky in the same scene. In fact, this is mentioned on pages 2 and 3 of the linked article in the original post.

    More:

    HDR - High Dynamic Range Compression - a Photoshop plugin

    The Future of Digital Imaging - High Dynamic Range Photography (HDR)

    Aizu University's Atrium High Dynamic Range Source Images

    High dynamic range imaging - Wikipedia, the free encyclopedia

    Stitched HDRI

    If you would like to try this yourself, many digital cameras have a bracketing feature. I'd suggest at least five exposures, separated by one half stop or one full stop. However, it does not work well for moving objects since there will be a short amount of time that elapses between exposures.

    Here is my first attempt:

    High Dynamic Range Candy Corn

    This particular shot was taken with a Canon EOS 1Ds MkII camera and manual bracketing, although I've made other successfull attempts with the bracketing feature of my Nikon D70.

  12. Re:Sounds better than "turning up the contrast" by GameMaster · · Score: 4, Interesting

    Actually, HDR rendering has nothing to do with the contrast limits of the physical display device. Even the best display devices have limits on how bright they can get. To some extent this is a good thing, if monitors ever became capable to representing something like the sun at true brightness then we'd have to worry about in-game bugs causing eye damage by setting the display brightness too high.

    HDR is a technique that uses floating point values rather than integers to represent luminance values within the pre-rendered scene. These values are then compared to each other before the scene is actually rendered and the luminance of the individual portions of the rendered scene are assigned based on the relative brightness of each light source when compared to each others. Basically, if you have a bright floodlight and a small flashlight visible to the camera the floodlight should vastly overpower the flashlight and should probably max out the brightness of the physical display device. However, if you move the camera angle up a little bit and include the sun in the scene, then HDR would dynamically darken all the other lights in order to make the sun look like the brightest light source and the sun would then have taken the highest brightness setting of the display device.

    Another effect that is created using HDR is glare. An example of this in the real world is when you look directly at a bright light source, like the sun (I don't really recommend trying this out with the sun because it might cause eye damage but a flashlight or a light bulb should work too). The light source tends to look larger than it actually is because the light drowns out anything around it.

    HDR rendering has been hardware accelerated on the new last few generations of video cards, but only recently has performance been acceptable enough to actually implement into a commercial game.

    -GameMaster

    --

    Rules of Conduct:
    #1 - The DM is always right.
    #2 - If the DM is wrong, see rule #1
  13. HDR in action by roxtar · · Score: 3, Interesting

    One of my friends has a Geforce 7800 GTX. Here are some screenshots of Farcry with HDR enabled.

  14. Fundamental definition by FromWithin · · Score: 3, Insightful

    The major part of HDR (excluding glare and all that), is that it is a way to model the way that the iris (the black bit in the middle of your eye) opens and closes at different brightness levels.

    There is something missing though, which I think would be beneficial. Basically, the eye has rods and cones for luminance and colour respectively. The rods are far more sensitive than the cones, with the result being that in very low light conditions, we see in greyscale. I have never seen this effect in a game (or film), and I think it would really enhance the realism, especially in darker games like Doom3. It would be even better if the display could become slightly blurry and noisy as the rods are not as high resolution as the cones.

  15. Re:Article text, non-paginated, for your convenien by Fallingcow · · Score: 4, Funny

    In a game like NFS, replicating this realistic phenomenon is difficult and nearly impossible for the lack of the ability to specify whiteness beyond level 1, but with HDR, you can accomplish just that, which is why it's important to gamers that demand realism from their games.

    So you're saying that this one goes to eleven?

  16. Re:Monitor burnout by Ascay · · Score: 3, Funny

    > The problem I see with this is phosphor burnout.....
    > running very high brightness areas on screen is going
    > to seriously reduce the lifespan of crts.

    So I should rather play Doom 3 than reading Slashdot on that evil white background?

  17. Re:HDR is a hack by famebait · · Score: 4, Insightful

    HDR is no more a hack than showing natural video on a TV. Sure, the screen has less dynamic range than reality, and you need a mapping function (exposure settings when working with natural light) to display it in a sensible way, but it still pays off hugely to do all the lighting in the scene without regard for that, just as reality dioes.

    The alternative (the traditional 8-bit path) corresponds to a reality where no light can be brighter than the white of the monitor", including when adding up light from several sources! Trying to get real photorealism that way is a lost cause. There's a reason why even holywood CG until recently always looked really 'flat', except in very dark scenes (lower dynamic range to model)

    And for the record: those blooming effects are not part of HDR. They are simply post-process SFX, emulating scattering and other effects in the eye and in cameras. Sure, you couldn't do them really well without HDR, so they're a nice poster child for what it lets you do. But they are not what makes the process HDR.

    Volumetric effects are of course not inherently HDR either; they've eben around a long time, just too heavy to do for most games to bother with until now, and looking much better with HDR (and bloom).

    --
    sudo ergo sum
  18. Re:Article text, non-paginated, for your convenien by famebait · · Score: 4, Insightful

    That is the worst explenation of HDR I have ever seen. Clearly missed the point.

    --
    sudo ergo sum
  19. Re:Article text, non-paginated, for your convenien by yfkar · · Score: 5, Informative
    Indeed.

    "HDR allows you to make the objects brighter by allowing them to use the full brightness capabilities of the monitor."
    Pretty bad lie. By using a #ffffff color you already "use the full brightness capabilities of the monitor", unless you count turning up the brightness setting in yout monitor. As it has already been said, it lets the objects be brighter in the internal calculations, not on the monitor.

  20. And that would be inaccurate, too by Animaether · · Score: 3, Insightful

    Paul Debevec, through his papers on acquiring low dynamic range imagery and turning that into high dynamic range imagery - and a utility to go with it coded with help from others; HDRshop, has made HDR accessible and popular.

    However, 'HDR' as the storage format being used most frequently already existed in the rendering application Radiance for a long, long time before that.

    In fact, -most- rendering applications render in HDR - but are forced to clip values so that you can actually output it to a regular display (e.g. your TFT) or storage format (e.g. JPG).

    In fact, Valve's HDR isn't an HDR display technology. It's a partial HDR pipeline for rendering (making sure that glints of the sun are bright on water surfaces, and not dull), processing (bloom effects) and simple tone mapping a la a LUT (look into a room from a skylit outside, and the room may appear dark. Walk inside, and the room appears normal whilst the outside world will appear very bright indeed. Note that a more proper tone mapping algorithm would, besides being computationally very expensive, show the room normally and the outside world bright - but not so bright as to be blown out.)

    Once we've all got HDR displays (search on Slashdot for these - I've seen them, they're awesome), we can do away with all these basic gimmicks as the human visual perceptance system will simply do all the interpreting of what should be 'correct' HDR values coming from the display.

  21. Re:AnandTech's review from a month ago was better. by default+luser · · Score: 4, Informative

    You know, it masquraded as a good review, until I read stupid-assed commentary like this:

    Here, we see how the bloom effect starts to put a strain on the lower memory cards. The X800 and, in particular, the 6600 GT are the most memory-limited of these cards, but ATI's X800 does significantly better than the 6600 GT.

    Welcome to Video Rendering 101. Tell me class, which card will be faster, and by how much:

    The 12-pipe, 400 MHz core clock card (x800), or the 8-pipe, 500 MHz core card (6600 GT).

    This isn't hard. The x800, when core-limited, should produce speeds 20% faster than the 6600 GT...and lord almighty, it's a miracle: the x800 is 20% faster than the 6600 GT with full HDR enabled! It must be the EXTRA 128MB RAM, or the 40% FASTER MEMORY SUBSYSTEM. It couldn't be the damn raw pixel processing power advantage.

    And now class, why would the lower-end cards in this test show greater performance loss? Is it because Here, we see how the bloom effect starts to put a strain on the lower memory cards.

    HELL NO.

    It's called CPU-LIMITED. You can't measure true relative performance drops becuase the scene is CPU-limited to approximately 70fps. The 6600 GT is not even able to reach the 70fps mark without HDR, and suffers noticably with it on. The other cards scale as you would expect them to according to raw core clock speed, once you turn up the pixel processing requirements (full HDR), and the 7800 GTX is STILL CPU-limited.

    And then, after mentioning it CLEARLY in the breakdown above that Valve's HDR implementation supports FSAA, AND after seeing plain-as-day that the 7800 GTX is still CPU-limited, the author doesn't try out FSAA performance. A 5-year old could write the same review.

    I wouldn't be surprised at all if most of the language and pictures are verbatim from a Valve-supplied press pack.

    --

    Man is the animal that laughs.
    And occasionally whores for Karma.