Updated ray tracer

Started by
2 comments, last by george7378 9 years, 11 months ago

I've been working on my ray racer recently, and I've changed it in a few ways:

- It now supports multicore rendering

- It can parse external text files and import scenes

- It can handle soft shadows

- It can handle textures

Here are a few pics I though I'd share:

http://imgur.com/a/sDGaz

To do: It would be nice to add the ability to render via path tracing so that I can add caustics, etc... but I haven't really found a good explanation of exactly how to do this. I understand that rather than spawning recursive reflection/refraction rays at each hitpoint, you spawn a single probabilstic ray, but I'm still a bit hazy on how to actually determine the final pixel color.

Thanks for looking smile.png

Advertisement

You ray tracer is for use with Directx?

How long does it take to render one of those images?

No, it's standalone and runs on the CPU. I think it would be a lot harder to make it run with DirectX. It took about 2 minutes to make the images on there, but it depends a lot on the resolution and the way the shadows are calculated. Without the soft shadows it would take about 15 seconds.

Updated it to do path tracing too, looks decent!

http://imgur.com/a/q6LtF

This topic is closed to new replies.

Advertisement