Hi all. I have finally got around to buying 'The Renderman Companion"
I have coded the first example program and had some errors, which I
reduced to 1, by including the full path to the ri.h header. I still
have one error regarding the RI_P string token.
Here is the XCode Run Log
[Session started at 2007-07-10 17:55:58 +0100.]
ZeroLink: unknown symbol '_RI_P'
rendermanProg has exited due to signal 6 (SIGABRT).
here is the program
#include </Applications/Graphics/3Delight-6.5.0/include/ri.h>
RtPoint Square[4] = {{.5,.5,.5}, {.5,-.5,.5}, {-.5,-.5,.5}, {-.
5,.5,.5}};
main()
{
RiBegin(RI_NULL); //start the render
RiWorldBegin();
RiSurface("constant", RI_NULL);
RiPolygon(4, RI_P,(RtPointer) Square, RI_NULL);
RiWorldEnd();
RiEnd(); //clean up
}


|