The long-awaited HDR Tutorial from sixtoes

  • Thread starter sixtoes
  • 36 comments
  • 11,789 views
336
sixtoes
sixtoes
HDR and Tone Mapping Tutorial by sixtoes

When I first picked up Gran Turismo 5, I knew that Photomode and Photo Travel would be big draws for me: as a real-life photographer, I enjoy playing with photo and replay modes in various games and I remembered that PD had done a pretty good job with in-game photos back in Gran Turismo 4. What I hadn't counted on was the amazing creativity and out-of-the-box thinking that so many of our GTP photographers demonstrate with their work. One of these bits of creativity that jumped out at me when I first joined GTP and started looking through the photo forums was the use of High Dynamic Range photography techniques.

In my real-world profession, I use HDR photography all the time - more than half of my business is architectural photography, where the use of HDR is a practical necessity. For some reason, though, I hadn't yet considered that the techniques I use in real-world photography would work well in a virtual environment like GT5. But then I came across the HDR photos thread and the light bulb went on - I started working in HDR almost immediately and have since developed a bit of a knack for the process. So much so, apparently, that I was asked to put together a tutorial to help folks learn a bit more about this technique. For those of you who haven't seen my gallery, here are a few examples of my HDR work:



So, even though it's been almost two months since SlipZtrEm asked me to put this together, it's finally here. I hope this will be a helpful resource for the GTPlanet community, and I look forward to seeing the images you all will create using this information. It's a long tutorial - I apologize, but I tend to give long explanations for things. Just ask my lovely and patient wife. :lol:


What is HDR?

HDR stands for High Dynamic Range - sometimes you'll see it referred to as HDRI, where the I stands for Imaging. At the risk of over-simplifying the matter, here's the condensed version: in real life, our eyes can see detail that even the most sophisticated cameras can't capture in a single exposure; by taking multiple exposures and using software to make adjustments, we're able to bring detail to a photograph that wouldn't ordinarily be possible.

Using a real-world example, I often have to take photographs of residential or office space interiors - where light sources, or even open windows with daylight, are in the frame. With light coming in from one side of the shot, I have to find a way to keep that portion of the photograph from being over-exposed - at the same time, I have to make sure there's detail in shadowed areas, all while maintaining at least a somewhat-realistic appearance. HDR is a tool that allows me to make this happen.

This is done by shooting multiple exposures (sometimes as few as three, sometimes as many as nine) without moving the camera, changing the focal point, changing the aperture of the lens (which would change the depth of field), or changing the ISO. In real-life, the only thing that changes between exposures is the shutter speed. (In GT5's camera sim, however, shutter speed has no impact on the exposure of an image, so we use the Exposure Value [or EV] setting instead.) The following three real-world shots are an example: the dark and bright shots were the extreme ends (-5 and +5 EV) of a series of seven original exposures (-5, -3, -1, +1, +3, +5 EV), while the final image shows the result of proper blending: detail even in the brightest lit areas *and* detail in the shadows.



You'll notice that, in the darkest exposure, there is detail in the light - but everything else is practically pitch black. Then, in the brightest exposure, there is detail in shadowed areas - but everything else is overexposed. HDR enables me to combine all the images in a bracket and come up with the finished photo.

This same concept can be applied to photographs in GT5's Photomode and Photo Travel whenever the difference between the brightest and darkest areas of the image is too great to retain the desired detail in both. That means that sometimes a particular photograph that you want to take is not a good candidate for HDR. If you can keep detail in both the highlights and the shadows, then stick with a single exposure and go from there. Only if you cannot keep important detail in the brightest and darkest areas should you consider using this technique.


In-game Camera Setup

After you've settled on a composition, make sure you decide on all the other parameters before you begin taking a series of bracketed images. That means you'll want to make sure the following settings in the viewfinder and camera menu have been finalized:
  • aperture value (depth of field)
  • focal length
  • focal point
  • shutter speed
  • panning mode
  • aspect ratio
  • magnification (I recommend using 2x in Photo Travel, as the image quality is significantly better - but it is very time-consuming, as the images contain FOUR times as much pixel data.)
  • filters OFF (they're good for single exposures, but I wouldn't recommend them for an HDR shot)

Now, cycle the EV setting up and down to get an idea of how far you'll need to go in either direction to get the details you want. There is no inherent advantage in shooting a wider range (-5 to +5) if the visual data you want to capture is available in a narrower range (-2 to +2), so don't go overboard. Once you have your outer limits established, it's time to set your bracket and shoot. In real-life, I typically use 2-stop increments (e.g., -4, -2, 0, +2, +4), but I've found that in GT5 that doesn't always give the best results, so I'll use 1-stop increments if the range isn't too big. For example, if I can get all the highlight details by going down to -2 EV and all the shadow details by going up to +2 EV, I'll shoot a five-shot bracket: -2, -1, 0, +1, +2.

However you set your bracket, now's the time to capture the photos - shoot and save each one, changing ONLY the EV setting between shots. I won't bother telling you how to get your shots from GT5 to your computer - there are other tutorials for that. Next up, then, is making the actual HDR!


Creating the HDR image

For my examples and screenshots going forward, I'll be using Photomatix Pro v.3 (the new v.4 has the same sliders) as the software for processing the HDR. There are many other programs out there that have free versions - Picturenaut, Essential HDR and FDRTools - but Photomatix is, in my opinion, the best available option for either PC or Mac users ($99 for the Pro version, $39 for a lesser-featured version). Most importantly, the concepts that we'll be looking at as we walk through an HDR image are going to be similar regardless of the software you use, even if the names of the sliders and buttons aren't the same.

(For you Linux folks out there, dandroid13 has informed me of a solution available for you - Luminance HDR. I don't have time to learn that, but he also provided a link to an online tutorial for the software.)

Also, I'll be processing this HDR with an eye towards a more realistic approach. HDR is a very powerful tool, and you can definitely overdo the effect if you're not very careful. If your goal is to use HDR to create surrealistic, abstract, fantasy-type images, go ahead - but this tutorial's emphasis will be on creating realism. Seriously, some of the shots I've seen make my eyes bleed. :yuck: I know, I know - art is in the eye of the beholder. But when you take a blowtorch to my eyes with your photo, that makes it hard to consider "art". :irked:

First, I'm starting out with a folder of my source images:


You'll notice I renamed these image files; that's not absolutely necessary, but it does make the job easier when I'm working on five different HDR compositions, all shot in the same location. But creating a folder structure and naming protocol is beyond the scope of this tutorial. :P

Next up, launch Photomatix and select Generate HDR image - you'll be presented with a window where you can browse and select the images you want to choose.


Once you've selected your images and hit "OK", you'll see the following screen (or something like it):


Photomatix will try to guess the EV setting for each shot - but unlike a real camera with proper EXIF data, the GT5 camera sim sometimes doesn't give the correct information. That means you'll have to change the EV spacing and/or individual values to correspond to the EV settings you used when you took the bracketed shots. Once you've done that and hit "OK", you'll see something like this:


You should not need to keep "align source images" checked; this is important in real-life where even a tripod-mounted camera might move slightly between shots. Leave the checkmark to reduce chromatic aberrations; there shouldn't be any chromatic aberrations in a GT5-created shot since there's no actual physical lens involved - but it takes very little processing time and certainly causes no harm. Noise reduction is up to you - I often leave it checked, but sometimes (if I know the image will require heavy secondary processing in Photoshop) I don't check it, because I prefer to do my noise reduction in Photoshop. Reducing ghosting artifacts is absolutely necessary in some Photo Travel locations where background objects or people move (Kyoto - the trees and dropping leaves, people in both the small and large Italian plazas, etc.), but isn't needed in others (like my example in the Abbey). If it's the water or trees that are moving, leave the top radio button checked; if it's moving people you want removed, tick the bottom radio button and select "high" for detection. Leave the remaining settings as they are, and click Generate HDR.


And voila, you have this unappealing mess of a photograph. :odd: That's because you're viewing a 32-bit image on a monitor that's not physically capable of displaying a 32-bit image. Thus, we come to the process known as Tone Mapping. Hit the "Tone Mapping" button and you'll get to...


You'll be presented with a screen with lots and lots of sliders to adjust if you use the Details Enhancer for tone mapping. (There is also a Tone Compressor option, but this tutorial is limited to the Details Enhancer mode.) Because the look can change dramatically with just a few settings, I always start at a very basic and unprocessed look - you can see the settings that I have in this screenshot. This never is the finishing point, but it's a good starting point. Notice that it's a preset called "GT5Start" that I've created and saved - it is not the default Photomatix settings.

Now, to explain a little bit about each slider in the top portion of the controls:

- Strength controls the strength of the overall (general and local) contrast enhancements. Think of it as an overall "volume control" for the HDR effect. Depending on the image, I'll bump this up to 70 before I start working - typically, I end up in the 65-85 range.

- Color saturation is pretty self-explanatory. I strongly recommend leaving this lower than you might think - as this is probably the easiest setting to overdo. :banghead: I presume that most of you will process a tone-mapped image in Photoshop - if you're planning on doing that, it's far better practice to use the hue/saturation and vibrance adjustments in Photoshop where you have better control. I'll typically run between 40-50 on this setting.

- Luminosity controls the overall brightness of the image. (If you're familiar with the 'fill light' slider in Lightroom or Camera Raw, this has a similar effect.) The higher the strength slider goes, the higher this has to go - generally speaking.

- Microcontrast controls local details and textures; the higher this setting, the sharper the image and the stronger the local contrast and edges. Increasing this also tends to darken the overall image, so you'll balance this with Luminosity. For a more realistic look, keep this slider as low as you can while getting the look you want. For a more surreal image, go as high as you like.

- Smoothing is so important that we'll skip it for now and come back to it later, with visual examples.

- Tone Settings: white point, black point, and gamma are next. I never adjust these from my starting point, because I'll be making levels and curves adjustments in Photoshop, and I want to have maximum flexibility. However, if you aren't going to process the image after you finish tone mapping, then you'll want to make slight adjustments to white and black points. Gamma really shouldn't need to be adjusted at all - you're better off using Luminosity to achieve any general brightening.

- Color settings: temperature, highlight and shadow saturation are next. Again, because I'll be working on the image in Photoshop afterwards, I never adjust the color temperature. I might increase saturation in either the highlights or shadows, but never by more than +1.5 or so. Again, the tools for controlling saturation are much more powerful and flexible in Photoshop.

- The last settings, under Miscellaneous, are actually very important and shouldn't be ignored. Micro-smoothing acts, in a way, as a direct counterbalance to Microcontrast. It's also a very useful slider when you have a lot of sky in the image, as it has the effect of reducing noise and banding. It does tend to brighten the image somewhat, though. Highlight smoothness and shadow smoothness reduce contrast enhancements in their respective areas. Typically, shadow smoothness isn't a problem, but highlight smoothness often is: it most often shows up in problems like the white sun in a photo turning grey, or - worse - the halos that so often are seen in HDR photos. Again, :yuck:. This setting helps reduce those problems. Shadow Clipping should be ignored if you'll be processing in Photoshop later - but if not, you can use this to force shadow areas in your image to go pure black.

My typical slider adjustment workflow looks something like this:
  • Bump strength up to around 65 or 70 to get an overall feel of the image and to get a better look at the changes I'll make with other sliders.
  • Increase Microcontrast while looking at detailed areas in the photo, paying no attention to the fact that the overall image looks darker as I increase, or lighter as I decrease.
  • Increase Micro-smoothing, while making sure I don't lose detail and texture in important areas. I'll crank this up as high as necessary to reduce noise and banding if the sky is present in the photo. Usually, this also brings the image brightness level back after the Microcontrast adjustment.
  • Play around with the Highlight and Shadow Smoothness sliders to see if that improves the image - sometimes they do, sometimes they don't. In our current example, Highlight Smoothness was important to get the strong lighting in the background arches.
  • Adjust the Highlight and Shadow Saturation, if at all.
  • Adjust the Luminosity slider to impact overall desired brightness level.
  • Adjust the Strength slider up and down - typically up, ending around 75-85, depending on the image.
  • Re-adjust the Luminosity slider one more time, since the Strength slider impacts overall brightness.
  • Finally, I'll play with the different Smoothing modes (Min, Low, Mid, High, Max), usually settling on High or Max.

Now we come to the Smoothing control. This is the single most important adjustment you can make in the process of tone mapping, and will have the biggest overall impact on the 'look' of your finished photograph. Higher settings give a more natural look, while the lower values give a more artificial or surreal look. Here are two examples - note that, in both, ALL the other settings are the same, and only the smoothing option is different.

First, on Max:

And now, on Min:

I presume you don't need me to tell you which particular image I think looks better, do you?

Now, after hitting process, you'll see your finished image. From here, you can use the menu to save the image as a 16-bit or 8-bit TIF or as a JPG file. If you won't be doing any further editing, and you're going to go straight to your photo hosting service, than export as JPG. On the other hand, if you'll be doing more work in Photoshop, save it as a TIF. As a general rule, I'll only use 16-bit for images that I know I'll be doing extensive editing on; otherwise, 8-bit is perfectly fine.


Okay, you're done and you can upload your tone-mapped HDR image now! Or, you can go into Photoshop, do some work with curves, masks, sharpening and other adjustments. Here's our example after some minor tweaks:


Well, that's it for the HDR tutorial. If you have any questions, feel free to post them here, or PM me. And please take a look through my gallery to see some other examples of subtle, realistic HDR tonemapping. Now, get out there and bracket some shots - show us what you've got! :cheers:
 
Last edited:
Someone sticky this. Like raht now.
Amazingly well done and explained. My HDR's (I'm using photomatix as well) still come out quite dark though, and the Exposures never load correctly, its often 4 2 1 0 -1 -2 -2 or something stupid like that.

Oh, and, Avoid white cars. White is hard to get a good look in HDR, it often turns out gray, or with really dark shadows.
 
Last edited:
Thank you so much for putting this tutorial together for us. I've been messing around with photomatix for awhile but haven't made a good pic yet. This will definitely helps me a lot. 👍
 
Fantastic tutorial - thank you for taking the time to do this :)

One small question though - I note that you say using a 'real' camera outside of the virtual world you would bracket the exposures using shutter speeds - what kind of shutter speed increments would you use to bracket the exposure so precisely? :)
 
Fantastic tutorial - thank you for taking the time to do this :)

One small question though - I note that you say using a 'real' camera outside of the virtual world you would bracket the exposures using shutter speeds - what kind of shutter speed increments would you use to bracket the exposure so precisely? :)

Not to steal sixtoes' awesome HDR-ness, but apeture priority is a great way to bracket HDR Shots, and it's quite simple on DSLR's, but can be difficult on Point and Shoots.
But with DSLR's, turn the top dial to A, and it'll be pretty easy from there. There's ussually a -/+ button near the shutter on most cameras, i think. but if you hold that, then adjust a wheel (On my D5000, it's on the top right) it'll increase the exposure by 1/3rd So it's .3, .7, 1.0. I ussually do it like the tutorial, increments by 1.
 
Wonderful tutorial and recommendations of software - can't wait to give it a shot myself. 👍
 
Gtuned: Thanks; I'm glad you think this will be useful. If your HDRs keep coming out dark, it's almost undoubtedly the exposure settings that Photomatix thinks you used - just set it straight and you should be good. Oh, and you're absolutely right - white cars are notoriously difficult to get right because HDR has a tendency to amplify any color cast that's present in the image. (Of course, you can always mask a hue/sat layer in Photoshop and desat the car - but that's an advanced tutorial! :eek: )

HN7: You're welcome; truly happy to do it. There's a lot of depth to Photomatix (and the other HDR/tonemapping software out there), so don't be afraid to play around with the settings. Knowing what they do is half the battle.

grrlpurple: You're welcome; again, it's my pleasure to do something like this for the GTP community - it just shouldn't have taken me two months! :guilty:

As to your question regarding real-life HDR, I use either 1- or 2-stop increments in order to bracket the exposures. For example, if my camera tells me that a "normal" exposure at f/8 and ISO 100 is going to be 1/50 of a second, and I know I'll need to do -3, -1, +1 and +3 for bracketing, that would mean I'd shoot at 1/400, 1/100, 1/25 and 1/6 of a second. If you don't change the aperture or ISO, then each time you double (or halve) the shutter speed, you're going up or down one "stop" or 1 EV. Does that make sense? If not, I completely understand - in my workshops, it takes me about 90 minutes to fully explain the exposure triangle, so shrinking it down to one sentence may not make it very clear! :boggled:

Gtuned: You again?!? :) You're absolutely right, aperture priority is a great way to go - so long as your camera doesn't automatically try to change ISO on top of that, of course! I usually keep it in manual, but AV works just as well. What's important to remember in either case is to use full stop increments - since most cameras change the exposure by 1/3-stop increments, you just have to be careful.

why_spyder: Thanks - oh, and there's even more software out there; I was just trying to recommend ones that have either a freeware or demo available. But just a quick google search for HDR software turns up all sorts of goodies. Looking forward to seeing what you can do!

All: Because each slider adjustment can have pretty radical effects, there's just not enough time or space to post a screenshot for every slider. So, I'll probably throw together a video tutorial (using iShowU HD, or some other video grabbing utility) that'll go a little more in-depth. When I do, I'll post the link here, of course.
 
Do you use the freeware version? I don't notice any sort of "watermark" in your shots, or do you just edit them out in photoshop?
 
Do you use the freeware version? I don't notice any sort of "watermark" in your shots, or do you just edit them out in photoshop?

Since I use HDR regularly in my real-world job, I purchased the fully-licensed version of Photomatix Pro. At only $99, it's paid for itself many times over - of course, that's a bit much if you're only going to use it for GT5 shots. :ouch:
 
This should be stickied!!!!

Good Job man, previously I used paint.net to do a "sort of" HDR image, I'll try out those apps mate and hope to be bringing new HDR's to the table.
 
Amazing tutorial! For someone who knows nothing about photography but has an interest in it, this tutorial is a great way to get started. Thank you for taking the time to put this together. Once I have enough spare time I'll try and put your techniques to work :)
 
Finally you got it....amazing work and great for beginners 👍👍👍

So I am working with this topic now, too and it is great....more options, more control, better artworks.

Thanks a lot for your tutorial.....so I don´t need to make one :D
 
This is awesome! This answers all of my questions regarding HDR photo taking.Thanks for this Tutorial!!
 
Kingpin326: You're welcome, glad you find it useful!

gizmo1981: You're a far more patient man than me to use paint.net to do pseudo-HDRs! I'm glad you've found some useful info here, and I look forward to seeing what you can do with HDR now.

YiNG_YaNG_6o4: You're welcome; I hope that this will even be helpful for you if you decide to do HDRs in real-world photography. I wrote it with an eye towards that, after all. :)

SmokingCones: Kowalski, my old friend! :cool: (For the rest of you, I did a custom photo project for Kowalski in my gallery last month - check it out here.) I'm glad this will be useful for you, and I appreciate the +1... kinda hoping they sticky this or include it in the FAQ shortly.

Fido_le_muet: Glad it'll help, Fido!

Big Ron: Thanks - I was trying to make something that would be useful for beginners and for the more skilled among us who haven't yet dabbled in HDR. Kind of a tough challenge, but I hope it worked. Looking forward to seeing some great images from the community now!

Gamesta666: Wow, all of your HDR-related questions?! Even better than I expected. :sly:

s12ken: Thanks, I hope the tips work well for you!
 
thanks for sharing sixtoes!
If I have the time I´m going to try it and let u see how it worked out. ;)


fantastic job sir!!!!
 
👍

Being added to the FAQ & Tutorial Depot right now. Super handy for those who have never attempted HDR, as well as those of us who are familiar but want to know more. Thanks sixtoes!
 
bmxmitch: Happy to do my part to contribute to the GTP community; looking forward to seeing what you can do with it!

the Interceptor: As in Jensen Interceptor? 👍 Thanks; HDR can be awfully confusing for people when they first dig in, so trying to make everything clear was my primary goal.

SlipZtrEm: Woohoo, I'm in the FAQ & Tutorial Depot now! :D Glad to contribute what I can. :humble:

gizmo1981: Nicely done, gizmo - I might not dig the choice of chrome paint on the RS6, but you've clearly started to get a grasp on HDR tonemapping now!
 
Excellent tutorial - I'm a total HDR newbie, I tend to open my image in Photomatix and then play with the sliders until I get something which I think looks good, and then process to my heart's content in Photoshop, a playing field I'm more familiar with.

Next time I do it I'll have to come back here and take into consideration your detailled explanations and recommendations for each tool.

Great work!
 
Here's the style of HDR i'm more used to doing. The Surreal, Painterly look. Which i did 500+ of last year of cars, trucks, bikes and even 18 Wheelers, which I sold alot of :D
 
Nicely done, Gtuned and s12ken - be sure to post these in the HDR Photos thread, where they'll get more views! :)
 
Brilliant tutorial sixtoes 👍
I've been looking through a few of the HDR threads that've been put up, and love some of the photos people have come up with.
I really wanted to try it myself, but had no idea what to do, or how to do it.
So I definitely appreciate the time you took to put this out!

This is my first effort that I'm happy(ish) enough to post :nervous:

5495224200_512ba51fc5_b.jpg


Feedback would be very much appreciated thanks people :)
I'll definitely be spending more time learning the ins and outs HDR from here on in.
 
Great tutorial man! I always wanted to try doing HDR once i get free time and another urge to shoot a car I'll try this. Thanks again and great job! :)
 
Back