Playing around with Global Illumination

Posted on:October 27 2006

Currently, I don't have a lot of free time, because of some changes in my private life. That's why I don't have much time to work on Irrlicht, answer mails, blog, etc. Sorry for that. But yesterday (national holiday) I grabbed some few free hours to play around with Global Illumination: I implemented Radiosity into irrEdit. The following screen shot shows the first result:
A scene lighted with a single point light, calculated with two different lighting algorithms

It doesn't look very impressive yet, I know. Especially if you compare the calculation times: The scene on the left image needed 0.3 seconds to be calculated, the right one about 40 seconds. And this gets even less impressive if you think that you can produce nearly the same result by using the fast version with a shadow opacity value of about 0.8 (which is the default value in irrEdit currently and has been changed to 1.0 here to make the difference more obvious). In addition, I'm not very sure if the result is 100% correct. I didn't make a lot of tests yet. But it's a first step.

I still have to play around and adjust some stuff in the radiosity renderer, but it works. The cool thing about it: It already theoretically can do nice things like color bleeding and area lights. Another cool feature: Everything is currently implemented in software, everything is running on the CPU, and I already prepared the renderer to run in multiple threads, on multiple cores. But I also prepared it to utilize the GPU for its calculations, just a few dozen lines need to be added to let the renderer use those crazy fast graphics hardware available today.





Comments:


Wow, looks great!

And the things you plan to implement sounds like very fun and cool stuff ;)
bicunisa
Quote
2006-10-28 00:48:00


WOW! that's very impressive!
cmoibenlepro
Quote
2006-10-28 03:54:00


Nice. Get it to run off a GPGPU, and your set to go :) Just have to wait 'till Vista hits...
Josh
Quote
2006-10-28 04:55:00


great work!! but i have a question: why the render quality of irrlicht is so different from the render quality of OGRE? I hope that this question is no offensive :-)
white tiger
Quote
2006-10-28 15:32:00


Nice work, especially for a short amount of time to work on it. I think the results are much better than scaled direct lighting, personally. I noticed some very common issues in the result, such as spurious light bleeding where geometry joins, I'm guessing this is probably because the method you're using to calculate involved rendering from the surface's point of view (that would certainly gel with a GPU accelerated version later), which because of the near plane, or lack of backfaces, you're 'seeing through' geometry from the surfaces point of view when in fact the view should be blocked. One nice little hack for this is to render backfaces for solid objects with a simple black colour to take that out of the equation - this can result in darker corners than intuition might suggest, but it can actually look similar to the way ambient occlusion does.

Just my 2c :)
Steve
Quote
2006-10-28 18:33:00


Actually, that is a clever trick, Steve. I'll have to give that a shot in my little GPU-radiosity experiment :)

--EK
Eternl Knight
Quote
2006-10-29 01:21:00


hmmm....
The Direct Lighting would do well in some horror movie
while the Global Illumination is good for some movie filled with machine guns & lots of screaming...

So... When are you going to openly challenge Gile[s]?
RustyNail
Quote
2006-10-30 06:46:00


hehe :)
@white tiger: define quality. :)
@steve: good idea, I'll try this out. just did some tests, going to blog it soon.
niko
Quote
2006-10-30 20:19:00


Add comment:


Posted by:


Enter the missing letter in: "Int?rnational"


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons