Sequential and parallel algorithms for ray tracing complex scenes