Jump to content
  • Advertisement
  • entries
  • comments
  • views

GPU-powered path tracing, take two

Sign in to follow this  


This image was generated with my GPU. I added minimal texture support, for the floor plane, and as an environment map (basically, when a ray does not intersect any object, its direction vector is used to sample the environment map and that is used as an approximate lighting value). I was impressed at the convergence rate, the noise disappeared in literally less than ten seconds thanks to the radiance contribution from the entire environment map.

If you are wondering why the sky looks overexposed, it's because I was using a low dynamic range environment map (so it was necessary to sort of fake the high dynamic range by raising the color values to some exponent, making the sky look weird). With a proper HDR image this would not occur as the sun in the environment map would naturally have a high radiance contribution whereas the rest of the image would have "standard" contributions, which would work better.

But high-resolution HDR images are hard to find and I need to find a way to parse them as well. Perhaps for the next entry!

A HQ (2048x2048) version of this render is available in my Gallery album. Beware - it's 10MB large!
Sign in to follow this  


Recommended Comments

Nice :-)

You're really making me want to write another photon mapping engine....

Share this comment

Link to comment
Thanks Apoch [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

I totally got HDR nailed down today, mostly thanks to the excellent free library [url="http://imaginglib.sourceforge.net/"]Vampyre Imaging[/url] - but I won't make another entry so soon - quality over quantity (and I need a code rewrite anyway). Just as a teaser... the caustics I'm looking at right this moment are amazing [img]http://public.gamedev.net//public/style_emoticons/default/happy.png[/img]

Share this comment

Link to comment
Agreed, that looks nice!

Though I've never written a tracer, I've always wanted to. Will be watching and reading.

Share this comment

Link to comment
This looks totally awesome. At first I thought it's a real photo.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!