Minesweeper in the RenderMan Shading Language
Friday, July 30th, 2010One of the things I attended at SIGGRAPH was the RenderMan Users Group Meeting. At the end of the meeting, they hold an event called Stupid RAT Tricks where people present silly things they’ve done with their tools.
This year, I gave a brief presentation about the silliest thing I’d ever done with it: implemented the game Minesweeper in the shading language. It’s a little trickier than you might think because all the shading language does is let you control the color of a given pixel so I had to come up with a way to display numbers and grid, in addition to a way to place the mines, etc.
If you happen to have a copy of RenderMan and Slim, you can check out the source code. The comments at the top show how to load it. Enjoy!