Will you explain how HDR is rendered?

Discussion in 'Console Technology' started by BenQ, Jul 14, 2005.

  1. reptile

    Newcomer

    Joined:
    Oct 7, 2004
    Messages:
    56
    Likes Received:
    6
    For example, i'm doing it by converting the rgb value of the light contribution to a 'greyscale' scalar, modulating it with a user-tweakable parameter and passing it to the alpha component of the fragment. This way, destalpha will hold the accumulated lighting contribution factor, which is of course less precise than a real hdr buffer, but enough for 'more correct' glows.
     
  2. ShootMyMonkey

    Veteran

    Joined:
    Mar 21, 2005
    Messages:
    1,177
    Likes Received:
    72
    If you have some sort of blending operation that involves partially adding and partially subtracting, you can instead of using multiple segmentations of a mesh and texture, you can just use one signed texture.

    Also, with signed color data, you can store normal maps without having to bias and scale them to fit in a positive-valued format (e.g. 0 is actually 0 instead of 0.5).
     
  3. Inane_Dork

    Inane_Dork Rebmem Roines
    Veteran

    Joined:
    Sep 14, 2004
    Messages:
    1,987
    Likes Received:
    46
    Black hole rendering without changing state.

    Also, I'll bet several algorithms that do not specifically deal with color might use the negative numbers. The penumbra wedge algorithm comes to mind.
     
  4. SMarth

    Newcomer

    Joined:
    Feb 7, 2002
    Messages:
    43
    Likes Received:
    0
    And all this time I though there was an infinite range between 0 and 1.0, damn, I need to go back to school :)
     
  5. darkblu

    Veteran

    Joined:
    Feb 7, 2002
    Messages:
    2,642
    Likes Received:
    22
    ok, that could deliver higher precision than scaling/rescaling as you don't get to tinker with your original RGB ranges. i.e. you do it only once. still, how do you handle transparencies in this case? if you have a pixel with HDR info and you alphablend it with another such pixel, you need to carry the whole HDR factorisation right there, therefore alphablending becomes a rather expensive op, no?
     
  6. darkblu

    Veteran

    Joined:
    Feb 7, 2002
    Messages:
    2,642
    Likes Received:
    22
    better late than never! ; ) range and power/cardinality are fairly different things.
     
  7. reptile

    Newcomer

    Joined:
    Oct 7, 2004
    Messages:
    56
    Likes Received:
    6
    Right, the alpha portion (the "hdr info") will be correctly blended, but the rgb not - this is something i'll just have to live with. The point is, this is only to get correct glows, im not using it for anything else (no tone mapping). Kind of hack-ish, i know, but realtime graphics always is :)
     
  8. SMarth

    Newcomer

    Joined:
    Feb 7, 2002
    Messages:
    43
    Likes Received:
    0
    That's not what I meant. 1.0 is not different then 3.4, 7.3x10^6745 or infinity. 0-1.0 alone doesn't give you a small or large range.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...