Hi,

Im trying to build a voxel renderer, however im going to need some help as I am a total beginner to this.

Im going to use the ray casting technique, and im going to cast through every pixel on my view plane. My question is given my 3D Array of pixel values (R,G,B) how do I cast the ray and find which voxel (element in 3d array) the ray hits?

Many Thanks
-Alex