APPLESEED integration: Write a small C/C++ program in BRL-CAD that renders an image (task #2 of 5)
BRL-CAD is looking to integrate with appleseed for rendering. This task gets you familiarized with how to shoot rays via BRL-CAD's raytracing library.
For this set of tasks, you'll need to download and install BRL-CAD from source (there's a Task for that). Create a sphere in mged by running "make sph sph" on the mged command line. You can use the same .g as in task #1 of 5. Next, look at this API documentation:
Write a simple C/C++ program like the rt_shootray example but that shoots a grid of rays instead of just a single ray. Have it write out a PPM or other simple image format as a black-and-white image to confirm it's working (should see a circle (white) surrounded by misses (black)). There are lots of places in BRL-CAD that shoots a grid of rays. You can find these places by searching on rt_shootray() or looking in the src/rt directory.
SUBMIT your C/C++ source code, your .g file, and your image file.