Results 1 to 7 of 7

Thread: Updated radiosity for Delphi.

  1. #1

    Updated radiosity for Delphi.

    I've updated program. Now it renders Cornell Box:


    source code:
    http://www.cnt.ru/users/coding/glrnew.zip

    Attemptions to make it realtime (without source):
    http://www.cnt.ru/users/coding/rtrad.zip
    http://www.cnt.ru/users/coding/rtradnew.zip

    Any ideas to make it faster and look better?

  2. #2

    Updated radiosity for Delphi.

    Very impressive!

    I'm afraid the samples provided don't look at all like the images you've posted here, I assume you're using the GFX card? (I tried it on a radeon 7000)

    Could you provide some information to the how and why of this program?

    I can't really help you with your question though.

  3. #3

    Updated radiosity for Delphi.

    Calculation time: about 15 seconds
    Video card: GeForce 2 MX/MX400 CPU: 2.4Ghz
    desktop colordepth: 32bpp (!!! not 16)

    screenshots in PNG format without scale (1:1):






    [pascal]Idea:
    1) Polygon[i] -> Lightmap[i]
    2) Lightmap[i] -> LigtmapPixel[u,v]
    3) Lightmap[i].Pixel[u,v] -> lightmap pixel world coordinates(x,y,z)
    4) gluLookAt -> eye position, view direction
    eye position:= lightmap pixel world coordinates
    view direction:= Polygon[i].normal
    6) render scene
    7) glReadPixels to RadiosityPointer[a,b]
    array RadiosityPointer[a,b] -> Color
    9) Lightmap[i].Pixel[u,v]:=Lightmap[i].Pixel[u,v]+Color
    10) goto 1[/pascal]

    p.s. opengl backbuffer may corrupt during the process (do not move window, do not press alt+tab, use 32bpp mode)

  4. #4

    pencil drawing

    new version released
    "Pencil drawing radiosity".
    Source code:http://www.geocities.com/tmtlib/download.html

  5. #5

    Updated radiosity for Delphi.

    Wow very cool indeed.
    <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 =-

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

    Updated radiosity for Delphi.

    Wow thats rather impressive. I love the really cool penciled effect.

    Hmm... do you think that you'd want to write maybe a small article on Radiosity effects? If you feel there is enough material you can derrive this work that you've done.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #7

    Updated radiosity for Delphi.

    That's awesome, I saw your post on GameDev as well. Coolest radiosity scene I've ever seen quite frankley.


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
  •