Learn by doing!
A simple ray tracer, which implements basic render operations:
- Generate ray
- Intersection
- Shading
The shading model is Blinn-Phong model.
The final render result is final.png.
Using 2*2 matrix to rotate or scale a picture.
Implementing the basic viewing transformation, which include:
- camera transformation
- projection transformation(orthographic projection, perspective projection)
- viewport transformation
If you want to run it on your own machine, please download EasyX. Why use EasyX? Because it is the simplest to see the result.
My compile environment:VS 2017