A simple ray tracing tutorial?

A few years ago in uni I wrote a ray tracer in C ++, but now I remember almost nothing. Just for fun, I decided to try writing a ray tracer again, this time in C #. But, unfortunately, I'm starting to start by translating from the camera coordinates to world coordinates.

Can anyone recommend me a good set of tutorials on writing rays from scratch? My knowledge of mathematics is quite simple, so I need to retrain the matrix multiplication involved in the development when the point on the screen is in 3D space to shed a ray through it.

Intersection with shapes and shading parts I think I can come up with, but I need to get back to the basics of translating the camera.

Thanks!

+4
source share
3 answers

I found http://www.siggraph.org/education/materials/HyperGraph/raytrace/rtrace0.htm useful. This does not all return to the basics, but it can still help (hint: if you see a broken font like me, this means that it is a point product).

+1
source

I made a very simple ray tracer, if you want to see an example of C ++ code, here is the link. tiny ray tracer

+2
source
+1
source

All Articles