Real-Time RayTracer

 
Details
     
 
Author
Jean-René Bédard
Language
C++
Platform
Windows 9x, NT
API
MFC and OpenGL
Year
2004
   
Source
source
Binary
binary
 
 

Back to home


Abstract
     
 

Real-time ray tracer hardware-accelerated using OpenGL and C++. It supports materials, refraction, reflection, optimized ray/sphere, ray/box and ray/plane collisions detections. The camera is interactive and can be rotated using left-click and translated using right-click.

 
 


Description
 


This software uses an OOP C++ architecture. Where every objects that is part of the scene derive from CObjectRT and contains a virtual method Intersects. CScene holds a reference vector of all the elements presents in the scene. CScene also holds the camera(s) and light(s).

 
 
Architecture
 

This application is contained inside a MFC SDI doc/view based dialog. The rendering loop thread is controlled by a timer.