Progress on ray tracer is being made.
Posted: May 2, 2019 8:00 PM
Last Edited:
May 2, 2019 8:00 PM
I now have both basic text and a vector visualization working in the ray tracer. The text is implemented as a textured quad. The texture is generated using a Java BufferedImage painting a string with Graphics2D. It uses FontMetrics to make the texture the right size, and to render multiple lines with the right spacing. I made a test image to show that they work properly. The reflective cylinder around the scene is to show that the text and ray are in fact 3d objects within the scene and just to prove that the text wasn't an overlay onto the screen after rendering.