Stochastic Progressive Photon Mapping demo

Discuss stuff not about Indigo.
User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Thu Jun 03, 2010 10:00 am

straaljager wrote:
Just found this amazing demo while searching the web for "SPPM": http://graphics.ucsd.edu/~toshiya/gpusppm.zip It's written in GLSL and runs on ATI (R600 and up) and Nvidia (G80 and up) cards. It's really fast even on my feeble 8600M GT.

Caustics converge very fast! I now understand why this is considered superior to pathtracing. Having SPPM in SLG will be crazy awesome
http://graphics.ucsd.edu/~toshiya/sppm.pdf

You'll need glut32.dll in the same directory to run the GPU demo
http://www.xmission.com/~nate/glut.html

the rest of the page is here
http://graphics.ucsd.edu/~toshiya/


I get a peak of 9.46 million photons/sec on my system.
Radeon 4670, and i7 930 at 3.2ghz. GPU is overloaded, slow desktop frame rate, but CPU barely heats up. Everything is going GPU real soon :)

Scene clears out so quickly, even on my weak video card. Pretty much converged within 5.5 mins with 3100+ million photons

It does caustics really well. Better than Bidirectional PT, maybe, but it has the same kind of look.
I wonder if this method is better than MLT for caustics and other hard to render things like refracted caustics on rough surfaces underwater etc?

User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Re: Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Thu Jun 03, 2010 10:41 am

if you want to tinker a bit with the scene, like turning on the motion blur
There is no GUI control, but you can edit 'raytrace.fs' to change the scene description
while running the executable and reload 'raytrace.fs' by right clicking the window.

StompinTom
Indigo 100
Posts: 1825
Joined: Mon Sep 04, 2006 3:33 pm

Re: Stochastic Progressive Photon Mapping demo

Post by StompinTom » Thu Jun 03, 2010 11:17 am

Damn, I saw some examples and it makes me even more frustrated that I can't get my new GPU right now!

LuxRender is playing around with an implementation of SPPM in their GPU-driven renderer (SmallLuxGPU or SLG).

http://www.luxrender.net/forum/viewtopi ... &start=190

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Re: Stochastic Progressive Photon Mapping demo

Post by PureSpider » Sat Jun 05, 2010 4:09 am

Hm, I can't get any image to show up...
Every pixel and fragment shader compiles successfully, still nothing is showing up :?
What am I doing wrong?

€dit: Seems you need the obj and mtl files from http://graphics.ucsd.edu/~toshiya/cornell.zip in addition.
€dit 2: Nope, still black image :(
Last edited by PureSpider on Sat Jun 05, 2010 9:55 pm, edited 1 time in total.

ieatfish
Posts: 127
Joined: Sun Jan 31, 2010 5:29 pm

Re: Stochastic Progressive Photon Mapping demo

Post by ieatfish » Sat Jun 05, 2010 6:12 pm

60M+ Photons/sec with my 5870. :lol: So wonderful, I'm even more stoked for Indigo GPU rendering.
Intel Core-i7 @ 4.0 GHz | GTX 580 | 12 GB RAM

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Stochastic Progressive Photon Mapping demo

Post by CTZn » Sun Jun 06, 2010 12:33 am

// max bounce
#define MAX_PATH_LENGTH 4
I'm pretty sure that's a linear setting, four bounces are the strict necessary for refactive caustics (then basta).

I tried to hard code MAX_PATH_LENGTH and PATH_LENGTH in raytrace.fs (lines 252 & 365) and did got a cpu load (not multi-threaded) but the irradiance looks wrong then, it's into the cpp file and this one do not compile at runtime :/

Impressive numbers if I refer back to the 15mn for 1M photons with mental ray v~3... and that was pretty high, using bigger photons radius.
obsolete asset

User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Re: Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Mon Jun 07, 2010 4:38 pm

I made the glass sphere cover the other ones, not bad :)

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Re: Stochastic Progressive Photon Mapping demo

Post by PureSpider » Thu Aug 05, 2010 5:58 am

Did you see/try GPUSPPM2 yet?

User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Re: Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Thu Aug 05, 2010 12:39 pm

Looks funky, and they still haven't put in the glut32 with the archive

what has changed? I noticed a more multi-coloured look

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Stochastic Progressive Photon Mapping demo

Post by lycium » Thu Aug 05, 2010 12:42 pm

SPPM looks interesting and is surely worth trying at some point, though we have our doubts as to whether it can really be unbiased if it collects photon hits over a finite area - it makes many of the assumptions photon mapping does.

Anyway, I'm pretty keen to try that GPUSPPM2, will do at home :)

User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Re: Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Thu Aug 05, 2010 12:48 pm

The current version of the GPU Luxrender offshoot has SPPM support and it works pretty well. It does caustics faster than any other render method

If you could combine Path tracing wth SSPM somehow, and MLT for SSS then you have the best of all worlds :D

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Stochastic Progressive Photon Mapping demo

Post by lycium » Thu Aug 05, 2010 12:56 pm

We've been improving MLT in Indigo quite a lot recently 8)

Thanks again for your difficult test scene!
Attachments
Water_Pillars_Light new.png
improved MLT
Water_Pillars_Light old.png
old MLT

User avatar
CoolColJ
Posts: 1734
Joined: Mon Jun 25, 2007 1:47 pm

Re: Stochastic Progressive Photon Mapping demo

Post by CoolColJ » Thu Aug 05, 2010 1:02 pm

I look forward to trying it out :)

StompinTom
Indigo 100
Posts: 1825
Joined: Mon Sep 04, 2006 3:33 pm

Re: Stochastic Progressive Photon Mapping demo

Post by StompinTom » Thu Aug 05, 2010 2:04 pm

Will there be any way to use GPU + new MLT? I'd be sad if it was an either-or choice! Also, I'm getting smoothing issues: black faces on oblique angles. I'll email you about that though.

Back on topic: I can't run it, it says I need GLUT32.DLL... Any support files I need to download?

EDIT: Nevermind, need to learn to read. Technicolor fun, running at 14.9M Photons/sec, not bad!

StompinTom
Indigo 100
Posts: 1825
Joined: Mon Sep 04, 2006 3:33 pm

Re: Stochastic Progressive Photon Mapping demo

Post by StompinTom » Thu Aug 05, 2010 2:18 pm

ieatfish wrote:60M+ Photons/sec with my 5870. :lol: So wonderful, I'm even more stoked for Indigo GPU rendering.
60 million?! Geez, I'm getting 14.96 million with my GTX 480. Hrmmmm...

Post Reply
30 posts

Who is online

Users browsing this forum: No registered users and 5 guests