njSetDepthQueue Japanese
<-|INDEX|->
Sets depth queue.

FORMAT

#include <Ninja.h>
void  njSetDepthQueue( near, far )
Float  near
Float  far

PARAMETERS

near
Sets depth queue.
far
back Z value

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

njInitSystem( NJD_RESOLUTION_640x480, 1 );
njInitMatrix( matrix, 128 );
njInit3D( vbuf, 4096, abuf, zbuf, 32 );
njInitView( &view );
njCreateLight( &light, NJD_DIR_LIGHT );
njSetView( &view );

njControl3D( NJD_CONTROL_3D_DEPTH_QUEUE );
njSetDepthQueue( -9000.f, -10000.f );
njClipZ( -10.f, -10000.f );

while(1) {
  njClearMatrix();
  njTranslate( NULL, 0.f, 0.f, -10.f );
  njRotateXYZ( NULL, xx,yy,zz );
  njDrawObject( object );
  xx += 257;
  yy += 179;
  zz += 193;
  njWaitVSync();
}
The degree of transparency is changed when Z value is -9000 thru -10000.
If the far values for both Z clip and depth queue are set the same, clipping will be done when it becomes completely transparent.

NOTES


RELATED TOPICS

njDrawModel()
njDrawObject()
njControl3D()

njSetDepthQueue
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997