Never heard of BBC BASIC before this but it looks like a really simple language. Obviously OP knows how Ray tracing/path tracing works. The math is mostly (if not exclusively) trigonometry/pythagoras' theorem.
You don't know exactly what the code is gonna be when you start - it's an iterative process: Draw a triangle. Draw a pyramid. Make a light. Put them in a box. Make the light move. Etc.
Ray tracing is a pretty fundamental concept in graphics programming. Only recently has hardware become powerful enough to do nice looking 3-dimensional light ray tracing in real time, so that's probably what you'll find if you Google the topic.
I've heard about raytracing ages ago in a French magazine called PC Team. They had POV (Persistence of Vision) tutorials. Do you know any good resources for beginners about how this thing really work?
Ray tracing is used for more than just pretty graphics, especially in 2D, eg. calculating line of sight and drawing shadows.
There are tons of material online explaining the topic. Just Google it.
If you plan to get into this sort of thing, I highly recommend starting with 2D. Graphics programming is a pretty heavy topic, and it gets unimaginably more complex in 3 dimensions.
View all comments
Show parent comment
32
u/RIcaz Jul 18 '20 edited Jul 18 '20
Never heard of BBC BASIC before this but it looks like a really simple language. Obviously OP knows how Ray tracing/path tracing works. The math is mostly (if not exclusively) trigonometry/pythagoras' theorem.
You don't know exactly what the code is gonna be when you start - it's an iterative process: Draw a triangle. Draw a pyramid. Make a light. Put them in a box. Make the light move. Etc.
Ray tracing is a pretty fundamental concept in graphics programming. Only recently has hardware become powerful enough to do nice looking 3-dimensional light ray tracing in real time, so that's probably what you'll find if you Google the topic.