Hardware RayTracing Demo for IrrSpintz 3D Engine - DirectX 10 Version
License
=======
Hardware Ray Trace Demo (DirectX 10)
Copyright (C) 2007 Keith Harrison
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Description
===========
Email : sio2 'at' users.sourceforge.net
Website :
http://sio2.g0dsoft.comThis is a demo of hardware ray tracing using the IrrSpintz 3D Engine. It is a modified version of the original nVidia demo. This version makes use of the enhanced capabilities of Shader Model 4.0 under DX10. In addition to the hard-edged shadows of previous DX9 versions, this version also has support for softer shadows.
The scene is rendered by drawing a viewport-sized quad (two triangles) and "tracing" a ray from the viewpoint through each pixel in the viewport. The Pixel Shader calculates the intersection of each ray with primitives in the scene, determines the "closest hit" and then calculates the colour of the given pixel. Reflections are handled by tracing another ray from the intersection point into the scene. The hard-edged shadows of previous versions are calculated by tracing another ray from the intersection point to the light to determine if any other object is blocking the light source. Softer shadows are calculated using a linear approximation of the amount of light that a given point could possibly receive from the scene (a very simple form of radiosity).
Shadows can be switched on and off at runtime and switched between hard-edged and software shadows. This is achieved by sending "bool" values to the pixel shader enabling different execution paths withou the need for a separate shader for all of the possible combinations of shading.
Usage
=====
Move mouse to alter viewpoint.
WASD keys to move camera.
Alt-F4 or Escape key to exit.
F1 - Toggle shadows on/off.
F2 - Toggle between hard-edged and softer shadows.
Requirements
============
OS:
Windows Vista.
Drivers:
Latest DirectX 10.0 drivers (August 2007 or later) [
www.microsoft.com/directx]. Latest DirectX 10.0 drivers for your graphics hardware [from your HW vendor].
Graphics hardware with support for:
DirectX 10.0
Supported cards:
DirectX 10.0 (such as nVidia 8 series)
Notes
=====
1. This demo may require the Visual Studio 2005 Redistributable Files installed on your machine. These can be obtained from
http://www.sio2.g0dsoft.com in the "Misc" section of "Downloads" or from the Microsoft web site.
2. In previous versions (DX9) Shader Model 3.0 used a "brute force" approach requiring a massive 4083 instruction slots. This Shader Model 4.0 version (DX10) is considerably more efficient in terms of instructions.
3. This demo should run on all DX10.0 hardware.
4. Note the requirements: Windows Vista, a DX10.0 level graphics card and you must have at least the "August 2007" DirectX drivers.
Credits
=======
1. IrrSpintz 3D Engine :
http://irrspintz.sourceforge.net2. Notice: The Irrlicht 3D Engine is based in part on the work of the Independent JPEG Group, the zlib, and libpng.