Description: Ray tracing program, the light emitted from light source reach the scene surface, generate reflection and refraction. Light to change direction, the direction of reflection and refraction along the direction to move forward until the face of new features. Light scene by scene several times between reflection, refraction is cast on the surface from the point of view the recent scene, eventually entering the human eye. As the actual ray tracing algorithm to track the direction of light propagation direction is opposite, so we can issue from the viewpoint to the screen a pixel ray, intersects with the first scene after the reflection and refraction in the direction of the track were to continue intersects with the second scene ... ... repeat the process until the light tracked injection depth of the screen or to track a set maximum recursion depth, stop the trace.
File list (Check if you may need any files):
RayTrace\Bmp2rgb.cpp
........\bmp2rgb.h
........\Debug\black.bmp
........\.....\brown.bmp
........\.....\RayTrace.exe
........\.....\场景NEW.bmp
........\.....\Thumbs.db
........\dibapi.cpp
........\Dibapi.h
........\Ground.cpp
........\Ground.h
........\Image.cpp
........\Image.h
........\Light.h
........\ListNode.cpp
........\ListNode.h
........\MainFrm.cpp
........\MainFrm.h
........\Material.cpp
........\Material.h
........\Matrix.cpp
........\Matrix.h
........\ProgBar.cpp
........\ProgBar.h
........\Quadra.cpp
........\Quadra.h
........\Ray.cpp
........\Ray.h
........\RayTrace.aps
........\RayTrace.clw
........\RayTrace.cpp
........\RayTrace.dsp
........\RayTrace.dsw
........\RayTrace.h
........\RayTrace.ncb
........\RayTrace.plg
........\RayTrace.rc
........\RayTraceDoc.cpp
........\RayTraceDoc.h
........\RayTraceView.cpp
........\RayTraceView.h
........\res\RayTrace.ico
........\...\RayTrace.rc2
........\...\RayTraceDoc.ico
........\...\Thumbs.db
........\Resource.h
........\RTList.cpp
........\RTList.h
........\RTObject.cpp
........\RTObject.h
........\Scene.h
........\SetDlg.cpp
........\SetDlg.h
........\Sphere.cpp
........\Sphere.h
........\SphereLight.cpp
........\SphereLight.h
........\Stack.cpp
........\Stack.h
........\StdAfx.cpp
........\StdAfx.h
........\Texture.cpp
........\Texture.h
........\Vector.cpp
........\Vector.h
........\Scene.cpp
........\RayTrace.opt
........\Debug
........\res
RayTrace