[comp.sys.sgi] more multi-colored lighted polys

xxdon@monet.lerc.nasa.gov (Don Sosoka) (06/18/91)

Thanks to all who answered that in order to get lighted polygons 
with different colors at each vertex that I needed to preceed the following
code 

      call SHADEM (GOURAU)
      call BGNPOL
      do 10 i = 1,N
         icv(1) = IRED(i)
         icv(2) = IGREEN(i)
         icv(3) = IBLUE(i)
         call C3I (icv)
         vn(1) = XN(i)
         vn(2) = YN(i)
         vn(3) = ZN(i)
         call N3F (vn)
         v(1) = X(i)
         v(2) = Y(i)
         v(3) = Z(i)
         call V3F (v)
10    continue
      call ENDPOL

with a call to LMCOLO (LMCAD).  This indeed works.  Unfortunately LMCOLOR
works in Immediate Mode only and the application I have requires these polys
to be in a display list (object).  Anybody have any suggestions for this case?

Thanks.