Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!oliveb!ames!sgi!archer From: archer@elysium.SGI.COM (Archer Sully) Newsgroups: comp.sys.sgi Subject: Re: SGI lighting model? Message-ID: <20878@sgi.SGI.COM> Date: 31 Aug 88 20:40:04 GMT References: <8808252117.aa03442@SPARK.BRL.MIL> <20761@sgi.SGI.COM> <181@ai.etl.army.mil> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics Inc, Mountain View, CA Lines: 44 In article <181@ai.etl.army.mil>, richr@ai.etl.army.mil (Richard Rosenthal) writes: > > > I tried to compile and load the provided code on 4D/60T ... > > /usr/bin/ld: > Undefined: > lsetdepth > czclear > bgnpolygon > n3f > v3f > endpolygon > *** Error code 1 > > Stop. > $ > > Oh, well ... > -- > Richard Rosenthal Internet: richr@ai.etl.army.mil You were probably using 2.2. The provided code is specific to 3.0. It should be fairly easy to port, however. lsetdepth is just like setdepth, except that it takes 24-bits of information instead of 16, so you can just use setdepth instead, with the appropriate values. czclear clears the zbuffer to a specified value, while clearing the color planes at the same time, so just use a clear and zclear instead. n3f is just the 'normal' routine. bgnpolygon(); v3f()...; endpolygon; is the new way of doing polygons in 3.0. Each v3f command represents a vertex of the polygon. You should be able to use pmv and pdr to do the same thing. Archer Sully archer@sgi.com --