Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: HDR without shaders - It can be done the lamers way

  1. #1
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    HDR without shaders - It can be done the lamers way

    The use of HDR lighning without shaders. It's possible!

    Since our engine still has no shader support I tryed to make a HDR test. So here is the result.

    I still need to blur the image to the lighning is not so "cubic".


    And some other results I from tweaking it:
    http://necrodome.homeftp.net/zooi/hdr.jpg
    http://necrodome.homeftp.net/zooi/HDR2.jpg
    http://necrodome.homeftp.net/zooi/HDR3.jpg
    http://necrodome.homeftp.net/zooi/Hdr4.jpg
    http://necrodome.homeftp.net/zooi/hdroverkill.jpg

    How it's done:
    1. Render scene to texture (SceneTextre)
    2. Render SceneTexture to a small texture (256x256) with some blending
    - FDevice.SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ZERO);
    - FDevice.SetRenderState(D3DRS_DESTBLEND, D3DBLEND_SRCCOLOR);
    3. Render the SceneTexture to the screen
    4. Add the 256x256 texture to the screen

    ps. Sorry for the BIG image
    NecroSOFT - End of line -

  2. #2

    HDR without shaders - It can be done the lamers way

    i'm not sure you understand what HDR really is...

    http://en.wikipedia.org/wiki/High_dy...ange_rendering

    hdr is not blurring the final picture, it is very specific lightning effect, which tries to simulate human eye iris and eye adaptation to dark and bright light when passing from bright to dark regions and the other way round.

    Say you are looking into dark from bright area, you will see it totally dark, when you come there the lightning will begin to equalise and you will see it more clearly.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #3
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    HDR without shaders - It can be done the lamers way

    Well, it's not realy HDR, it's faked. But the result is nice.
    NecroSOFT - End of line -

  4. #4

    HDR without shaders - It can be done the lamers way

    As Delfi said, its not HDR but it surly is a nice effect

    How are you planning to handle the transition between normal render and the ‘fake-HDR’ render?
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

  5. #5

    HDR without shaders - It can be done the lamers way

    Hm.., are you going to archive something alike Tron 2.0 rendering?
    http://www.gamasutra.com/features/20...james_03.shtml
    There are only 10 types of people in this world; those who understand binary and those who don't.

  6. #6

    HDR without shaders - It can be done the lamers way

    So, is it possible to do HDR without shaders?

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Re: HDR without shaders - It can be done the lamers way

    Quote Originally Posted by NecroDOME
    ps. Sorry for the BIG image
    np.

    Cool effect btw!
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8

    HDR without shaders - It can be done the lamers way

    Quote Originally Posted by grudzio
    So, is it possible to do HDR without shaders?
    Why not?
    Read Delfi's post.

    Edit - I just remembered a few years ago I made a program that presented 12bit grayscale scan (NDT scanner we developed) to the screen (8 bit). With bias and gain you can ‘pen’ your intrest view => you have 12bit of data but only 8bit of data displayed.

    Not your typical HDR in a sense that you might imagine it but HDR non the less.
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

  9. #9
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    HDR without shaders - It can be done the lamers way

    How are you planning to handle the transition between normal render and the ‘fake-HDR’ render?
    I can only enable/disable it. No other settings can be changed. thats basicly it.
    NecroSOFT - End of line -

  10. #10
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    HDR without shaders - It can be done the lamers way

    Hm.., are you going to archive something alike Tron 2.0 rendering?
    Well, I could do some glowing it I want. I can ajust the texture to some verry bright colors. That way it looks like its glowing. (not tryed it yet, but i'll think I do that soon)
    NecroSOFT - End of line -

Page 1 of 2 12 LastLast

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
  •