Capturing mental ray rays

I made a mental ray shader and small utility program to capture and display rays during rendering. It’s just a proof of concept (and a proof that I can still code, if I need to…). The shader operates as environment shader, so it sees all fired rays. It uses a named pipe to send ray data. The program waits in the other end of the pipe and draws the rays as lines.

This image shows the system in action. The ray sources are an area light on top and camera on the right. There is also a wall and a ball, put those are a little hard to see here.

screencapture of real-time visualisation of mental ray rendering




Leave a reply (Check my Comment Policy)