Radiosity in GPU

Discussion in 'Architecture and Products' started by ultrafly, Jul 22, 2004.

  1. ultrafly

    Newcomer

    Joined:
    Oct 9, 2002
    Messages:
    56
    Likes Received:
    0
    Location:
    ShenZhen,China
    This Demo is compute radiosity in GPU.version 0.0015

    The algorithms is:

    Use three 32bit fp texture store the patchs's attribute.
    Texture1: B,DeltaB,patch id,DeltaB*area
    Texture2: pos,area
    Texture3: normal,ref

    first,init the three textures.

    while (need iterative loop)
    {
    DownSample the Texture1 to 1X1 Texture find the max DeltaB*area value patch-the shoot patch.

    Use the shoot patch's pos and normal to Get the ShadowMap.//not implement in current version

    Compute radiosity in GPU,and set the shoot patch's DeltaB=DeltaB*area=0;
    }

    The current version is use three patchs to test algorithms.and not implement visible function.

    The next version's plan is add shadowmap to implement visible function in F.and use big scene replaced three test patchs.

    http://bbs.chinagamedev.net/attachment.php?attachmentid=1966
     
  2. Cryect

    Regular

    Joined:
    Jul 4, 2004
    Messages:
    674
    Likes Received:
    0
    Hmmm I'm confused what's the shadowmap for (I see its not implemented though) considering radiosity has built in shadows. Haven't seen the demo though but the algorithm seems a little more complex than the normal algorithm I've seen for computing radiosity on the GPU (where its just running around just rendering from the patch positions to calculate visibility of all other patches then iterating over light reflectance off the GPU once visibility is known for all patches). So curiousity asks me what is the advantage of this algorithm?
     
  3. ultrafly

    Newcomer

    Joined:
    Oct 9, 2002
    Messages:
    56
    Likes Received:
    0
    Location:
    ShenZhen,China
    I want to use shadowmap to do visible determinate,the other patchs with the shoot patch. It is the same as your mention.:)
     
  4. Cryect

    Regular

    Joined:
    Jul 4, 2004
    Messages:
    674
    Likes Received:
    0
    Ahh okay ^_^
     
  5. ultrafly

    Newcomer

    Joined:
    Oct 9, 2002
    Messages:
    56
    Likes Received:
    0
    Location:
    ShenZhen,China
    I have a question ablout use shadowmap to implement visible function.How to choose a appropriate size for shadowmap?
     
  6. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    ??? I'm lost, and the link sends me to a foreign language site with a login page...
     
  7. ultrafly

    Newcomer

    Joined:
    Oct 9, 2002
    Messages:
    56
    Likes Received:
    0
    Location:
    ShenZhen,China
  8. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Couldn't run it. No executable included and it didn't compile.
     
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...