SGI lighting model?

Archer Sully archer at elysium.SGI.COM
Thu Sep 1 06:40:04 AEST 1988


In article <181 at ai.etl.army.mil>, richr at ai.etl.army.mil (Richard Rosenthal) writes:
> <This package filled by volume not weight.>
> 
> 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 at 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 at sgi.com

--



More information about the Comp.sys.sgi mailing list