The Crystal lighting

2010-08-07

The Crystal lighting

Permalink 14:19:43, Categories: GSoC 2010  

Finally, after a lot of efforts and a lot of hardwork, lighter2 is able to produce caustics. Also a lot of bugfixes have been made in the original code, the major one being the one with lighting produced with the photons. The power of photons had to be scaled to match the illumination of raytracer, there is no need for that now.

Ok, enough of talking here is something pleasant for your eyes.

(This image was generated without any scaling of photons, and with only photon mapping enabled for direct as well as indirect lighting)

Now, regarding the intricacies of getting photon mapping working.

1.) Added a tag into the world file regarding the material, about whether it can produce caustics or not, also if it can produce caustic, what is the refractive index of the material. (For air the refractive index is considered to be 1, also if it is not mentioned for a caustic producing material, it is assumed to be 1. So, the caustics might not be that accurate, if one doesn't mention the refractive index.)

2.) While parsing the scene, the positions (Bounding spheres) of all the meshes which contain the material which can produce caustics are stored in a list. This list is used in the photon emission stage. The point light is considered to be like a spotlight which emits photons only in the direction of these meshes while emitting caustic photons.

3.) The photon tracing is facilitated with refracting these caustic photons, these photons are traced till the time they hit a diffuse surface, and instead of reflecting these photons in random direction they are refracted using simple laws of refraction (this is the point where refractive index is required).

4.) Finally in the final gathering stage it is not just the normal photon map which is used but also the caustic photon map.

(A lot of debugging and reworking also went into this process, which took all this time)

As for the future, I am trying to gt support for direction and spotlight lights for photon mapping and caustics, and also area lighting. I plan to get these working before the submission date for GSoC, and then it would be time for optimizing lighter2, in my opinion the memory optimization should be of higher priority than time optimization.

Trackback address for this post:

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Comments, Trackbacks, Pingbacks:

Comment from: Jordan 4 Varsity Red [Visitor] Email · http://www.jordan4fireredonline.com
http://www.jordan4fireredonline.com Creativity is essential, however it is not sufficient. It's fatal to believe that creative imagination by itself justifies or ensures company successes. http://www.jordan4fireredonline.com
PermalinkPermalink 2012-07-30 @ 10:03
Comment from: trying to conceive tips [Visitor] · http://clswest.campsite.org/wiki/index.php?title=User:Cecila281
Thanks for an concept, you sparked at thought from a angle I hadn_t given thoguht to yet.
Now lets see if I can do something with it.
PermalinkPermalink 2013-04-16 @ 13:17
I'm not capable of view this web site properly on opera I think there is a drawback
PermalinkPermalink 2013-04-18 @ 17:40
Comment from: pregnagt [Visitor] Email · http://howlongdoesittakeforbirthcontroltowork.com
Assalamu alaikum Brother http://howlongdoesittakeforbirthcontroltowork.com interesting blog a brothers just trying to make a living.
PermalinkPermalink 2013-06-05 @ 16:19
Comment from: pregnagt [Visitor] Email · http://howlongdoesittakeforbirthcontroltowork.com
nice blog well done
PermalinkPermalink 2013-06-05 @ 18:41

Comments are not allowed from anonymous visitors.

December 2014
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories

Archives

Misc

XML Feeds

What is this?

powered by
b2evolution