[comp.graphics] Polygon filling, RenderMan Interface

maugis@enac9.enac.dgac.fr (maugis-IEEACS89) (12/08/90)

------- 1) I am interseted in fill-polygon routine sources, 
	that can perform:
		 - convex polygon filling
		 - gouraud or phong shading

	A polygon can be described as follows (in C-style) :
	It is a list of vertices, in counter-clock order,
	( right-handed coordinate system ), with no holes.
	the structure for polygons given below is given just
	for information.

    typedef struct {
	int 	p[2];	/* position, screen coordinates		*/
	double	P[3];	/* position, world space coordinates 	*/
	double  N[3];	/* normal vector, world space		*/
    } Vertex;		

    fill_poly(n,poly)
	int n;
	Vertex *poly;
    {
       /* 
	* my own fill polygon routine does not work well...
	* 
	*/	
    }

------- 2) I starting to implement a renderer, wich supports
	the RenderMan Interface. It is written in C, and works on
	sun stations, with X.
	Therefore if there is already such a renderer available,
	i would be very interested to see the sources, for efficiency
	problems. I haven't seen yet any article on RenderMan. It is
	a powerfull 3-D scene description language,  designed by
	Pixar (see Tin-Toy ....). It separates the shading process from
	the geometrical part. My renderer is fairly simple :
		Polygonal model: each object is approximated with polygons
			polygon
			spheres
			cones
			bicubic patch 
			bezier  patch
			polygon mesh
			bezier  mesh

		Wire-Frame model
		Z-buffer	   hidden surface removal	
		Newel, Newel&Sancha hidden surface removal
		
		Constant shading
		Gouraud  shading (interpolates color)
		Phong	 shading (interpolates normal)

		Gray-Scale 	pbm file format
		RGB		ppm file format
		
 so if you have sources, scenes, images or questions of ANY kind,
    please e-mail :  maugis@enac.dgac.fr

 Best Regards.	

	Maugis Lionnel      National School of Civil Aviation
		Toulouse, France.