self-made ray tracer for BART