Tree Rendering using prman:
Scott Douglas

Download renderman.cpp to view the C code that outputs the RIB file to generate these images. I have not included the shaders. It's a cpp file because of a quirk with Visual Studio, which is where this code was developed.