Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!inria!cenaath.cena.dgac.fr!cenatls.cena.dgac.fr!enac.dgac.fr!enac16!maugis From: maugis@enac9.enac.dgac.fr (maugis-IEEACS89) Newsgroups: comp.graphics Subject: Polygon filling, RenderMan Interface Message-ID: <1990Dec7.192429.13200@enac.dgac.fr> Date: 7 Dec 90 19:24:29 GMT Sender: alliot@enac.dgac.fr (Jean-Marc Alliot) Organization: Ecole Nationale de l'Aviation Civile Lines: 64 Originator: maugis@enac16 Nntp-Posting-Host: enac16 ------- 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.