Page 1 of 2

Direct Light Integration using MIS

Posted: Thu Nov 27, 2014 9:21 am
by koiava
Image
For all time I couldn't fully understand how MIS actually works and finally I found enough time to think about MIS more deeply to make things totally clear.
So, from my opinion, things always is little bit unclear until actual implementation :)

Here is my shader on shadertoy:
https://www.shadertoy.com/view/4sSXWt

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 10:24 am
by lion
Very nice, small and understandable source)

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 11:20 am
by ultimatemau
Very nice indeed! :)

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 3:35 pm
by Dade
Beautiful, this is the way stuff should be taught at schools.

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 4:12 pm
by koiava
thanks guys! :) :) :)
Yeah, shadertoy is really good place to do some small experiments and share with community.
I will find more time to make code more small, readable and easy to understand.

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 5:31 pm
by zsolnai
Dade wrote:Beautiful, this is the way stuff should be taught at schools.
This is precisely what I'll use to demonstrate MIS the next semester. Great stuff indeed, thanks!

Re: Direct Light Integration using MIS

Posted: Sat Nov 29, 2014 6:32 pm
by koiava
This is precisely what I'll use to demonstrate MIS the next semester. Great stuff indeed, thanks!
Yeah, I showed this to my students and I think It is more clear to understand concept and basic idea of method, when you have small, lightweight, easy, real-time demo with full source code.
:)

Re: Direct Light Integration using MIS

Posted: Fri Jul 01, 2016 8:54 am
by koiava
Image
since then I updated it slightly changed phong with blinn, added stratified sampling, labels and more, refactored some stuff to make it more readable :)
https://www.shadertoy.com/view/4sSXWt

Re: Direct Light Integration using MIS

Posted: Fri Jul 01, 2016 8:58 am
by patlefort
Small typo in the code: search for salmpleLight.

Re: Direct Light Integration using MIS

Posted: Fri Jul 01, 2016 9:21 am
by koiava
ah, Thanks :D :)