Real Time Raytracer (Improved Version)

There were a number of issues with my real-time raytracer that have presented themselves.  Some things only showed up when testing in debug build, such as multiple threads all contending for use of a single static variable.  I also made the mistake of creating variables on the stack which I then passed to each thread.

A friend from work also ported the code over to linux, and suggested some ways to improve the performance using SSE optimisations provided via GCC, which is awesome.

I have decied to post a revised version of the code with all of these corrections and fixes.  Also thrown into the mix is freznel attenuation for the mirrored surface, as well as light falloff, making things look prettier still.

rt_raytrace.cpp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s