Operating System:Ubuntu 12.04 amd64
IDE:Using Code::Blocks 10.05 for coding, Make for compiling and running
G++ Version:Ubuntu/Linaro 4.6.3-1ubuntu5
Github:https://github.com/ComboZhc/OpenGL
Please README on Github, it reads better than just plain text!
Commands:
cd src
make clean
make
./proj5
In case it doesn't work, I have submitted an executive file: proj5
Implement Ray-tracing with reflection and refraction.
Consider shadow-feeler.
The whole scene includes 4 squares that are 4 of 6 surfaces of a cube, 1 tetrahedron, 2 spheres.
1.Run proj5, the whole view would be like screenshot.png
2.Press Key p to print parameters
3.Press Key s to change parameters
format = %s=%d or %s=%f or %s=%f %f %f