Results 1 to 10 of 10

Thread: Tom's HDR Rendering Demo...

  1. #1

    Tom's HDR Rendering Demo...

    Tom Nuydens has been quiet for quite some time, but he's back and now with a great new HDR demo...
    <blockquote>

    I wrote a demo that does high dynamic range (HDR) rendering. It uses the EXT_framebuffer_object extension for its render-to-texture operations. The demo renders a scene into a floating point buffer, using a simple lighting model and some shadow mapping. The HDR portion of the image is then run through a separable gaussian blur filter and composited back onto the LDR portion, resulting in a fashionable-looking glow effect. You can get the demo right here. As usual, it may or may not run on anything other than a GeForce 6x00

    </blockquote>
    For a screen shot of the HDR effect visit Tom's Home Page : http://www.delphi3d.net/
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #2

    Tom's HDR Rendering Demo...

    You've got two links in that news post. One to Tom's email address (with anti-spam stuff), and the other direct to the zip file of the demo. You should also provide a link to his webpage, as he often puts screenshots of the demos on the front page of his site.

  3. #3

    Tom's HDR Rendering Demo...

    Done.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  4. #4

    Tom's HDR Rendering Demo...

    wont work on ati cards?

  5. #5

    Tom's HDR Rendering Demo...

    nope.. requires sm3.0 it has branches in it..
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  6. #6

    Tom's HDR Rendering Demo...

    This code can be compiled on HW without branches support (given enought instruction slots):
    Code:
    void main&#40;void&#41;
    &#123;
      vec4 color;
    
      // This test is there to kill reverse projections from the spotlights&#58;
      if &#40;tc_shadow.z > gl_DepthRange.near&#41;
      &#123;
        // Attenutation&#58;
        float a = 1.0 - clamp&#40;length&#40;L&#41;/75.0, 0.0, 1.0&#41;;
        // Diffuse&#58;
        vec4 I = max&#40;dot&#40;normalize&#40;N&#41;, normalize&#40;L&#41;&#41;, 0.0&#41; * brightness;
        // Sample the spotlight "gel" texture and the shadow map&#58;
        vec4 gel = texture2DProj&#40;t_gel, tc_shadow&#41;;
        vec4 s = shadow2DProj&#40;t_shadow, tc_shadow&#41;;
        // Final shaded color&#58;
        color = a * Kd * I * gel * s;
      &#125;
      else
      &#123;
        // Fragments behind the projector are black.
        color = vec4&#40;0.0, 0.0, 0.0, 1.0&#41;;
      &#125;
    
      // We write the LDR and HDR portions of the image to separate images.
      // LDR is the &#91;0, 1&#93; part&#58;
      gl_FragData&#91;0&#93; = min&#40;color, 1.0&#41;;
      // HDR is everything that's > 1&#58;
      gl_FragData&#91;1&#93; = max&#40;color - 1.0, 0.0&#41;;
    &#125;
    Main reason why Tom's demo is not running on ATI cards - is the lack of support of EXT_framebuffer_object extension. But it's rather new and people just have to wait for ATI to release new drivers (not sure maybe Cat 5.6 already supports it?)
    There are only 10 types of people in this world; those who understand binary and those who don't.

  7. #7

    Tom's HDR Rendering Demo...

    hmm at closer thought i must agree with you, clootie..
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  8. #8

    Tom's HDR Rendering Demo...

    Quote Originally Posted by Tom Nuydens
    As usual, it may or may not run on anything other than a GeForce 6x00
    Odd,.. while all demos are working nicely, this one is a no go for my 6800gt too :cry:

  9. #9

    Tom's HDR Rendering Demo...

    Traveler: Just download newest [unofficial] drivers
    There are only 10 types of people in this world; those who understand binary and those who don't.

  10. #10

    Tom's HDR Rendering Demo...

    I did try the newest, but not the unofficial version.
    I'll try though, thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •