🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.graphics
1 messages
1 total messages Started by nagata s Fri, 24 Nov 2000 05:01
trouble on O2 with an Indogo2, Octane's program
#184
Author: nagata s
Date: Fri, 24 Nov 2000 05:01
124 lines
6157 bytes
Hello! All

I am using a program with Gl on Indog2 or Octane, Irix 5.3, 6.3 and 6.5, a
part of which is a stencil function shown in the end of this mail.

This does not however run well at stencil function.
Appreciate any suggestion to fix it.

Thanks in advance

Nagata Shojiro

-----------the trace of messages from O2
komo2 4% xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x3000009 "Binocular-Stereo-Fusion-Test-Chart by
NAGATA,Shojiro(InterVision)/NHK Ver.6 1993,1998"

  Absolute upper-left X:  490
  Absolute upper-left Y:  94
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1264
  Height: 984
  Depth: 8
  Visual id: 0x20
  Visual Class: PseudoColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x39 (installed)
  Bit Gravity State: StaticGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +490+94  --474+94  --474--54  +490--54
  -geometry 1264x984+482+62

komo2 6% glxinfo
display: :0.0
server glx vendor string: SGI
server glx version string: 1.1 Irix 6.3
server glx extensions (GLX_):
    EXT_import_context, EXT_visual_info, EXT_visual_rating,
    SGI_make_current_read, SGI_swap_control, SGI_video_sync,
SGIS_multisample,
    SGIX_dm_pbuffer, SGIX_fbconfig, SGIX_pbuffer, SGIX_video_resize,
    SGIX_video_source.
client glx version 1.1
client glx extensions (GLX_):
    EXT_import_context, EXT_visual_info, EXT_visual_rating,
    SGI_make_current_read, SGI_swap_control, SGI_video_sync,
SGIS_multisample,
    SGIX_dm_pbuffer, SGIX_fbconfig, SGIX_pbuffer, SGIX_video_resize,
    SGIX_video_source.
OpenGL vendor string: SGI
OpenGL renderer string: CRIME
OpenGL version string: 1.0 Irix 6.3
OpenGL extensions (GL_):
    EXT_abgr, EXT_blend_color, EXT_blend_logic_op, EXT_blend_minmax,
    EXT_blend_subtract, EXT_convolution, EXT_copy_texture, EXT_histogram,
    EXT_packed_pixels, EXT_polygon_offset, EXT_subtexture, EXT_texture,
    EXT_texture3D, EXT_texture_object, EXT_vertex_array, SGI_color_matrix,
    SGI_color_table, SGI_texture_color_table, SGIS_texture_edge_clamp,
    SGIX_interlace, SGIX_texture_scale_bias.

   visual  x  bf lv rg d st  r  g  b a  ax dp st accum buffs  ms
 id dep cl sp sz l  ci b ro sz sz sz sz bf th cl  r  g  b  a ns b
---------------------------------------------------
0x20  8 pc  .  8  . c  .  .  .  .  .  .  .  .  .  .  .  .  .  . .
0x21  8 pc  .  8  . c  .  .  .  .  .  .  . 24  8  .  .  .  .  . .
0x23  8 tc  .  8  . r  .  .  3  3  2  .  .  .  . 16 16 16 16  . .
0x24  8 tc  .  8  . r  .  .  3  3  2  .  . 24  8 16 16 16 16  . .
0x25  8 pc  y  8  1 c  .  .  .  .  .  .  .  .  .  .  .  .  .  . .
0x26 12 pc  . 12  . c  .  .  .  .  .  .  .  .  .  .  .  .  .  . .
0x27 12 pc  . 12  . c  .  .  .  .  .  .  . 24  8  .  .  .  .  . .
0x28 12 pc  . 12  . c  y  .  .  .  .  .  .  .  .  .  .  .  .  . .
0x29 12 pc  . 12  . c  y  .  .  .  .  .  . 24  8  .  .  .  .  . .
0x2a 15 tc  . 15  . r  .  .  5  5  5  .  .  .  . 16 16 16 16  . .
0x2b 15 tc  . 16  . r  .  .  5  5  5  1  .  .  . 16 16 16 16  . .
0x2c 15 tc  . 15  . r  .  .  5  5  5  .  . 24  8 16 16 16 16  . .
0x2d 15 tc  . 16  . r  .  .  5  5  5  1  . 24  8 16 16 16 16  . .
0x2f 24 tc  . 24  . r  .  .  8  8  8  .  .  .  . 16 16 16 16  . .
0x30 24 tc  . 24  . r  .  .  8  8  8  .  . 24  8 16 16 16 16  . .
0x31 24 tc  . 32  . r  .  .  8  8  8  8  .  .  . 16 16 16 16  . .
0x32 24 tc  . 32  . r  .  .  8  8  8  8  . 24  8 16 16 16 16  . .
0x34 24 tc  . 24  . r  y  .  8  8  8  .  .  .  . 16 16 16 16  . .
0x35 24 tc  . 24  . r  y  .  8  8  8  .  . 24  8 16 16 16 16  . .
0x36 24 tc  . 32  . r  y  .  8  8  8  8  .  .  . 16 16 16 16  . .
0x37 24 tc  . 32  . r  y  .  8  8  8  8  . 24  8 16 16 16 16  . .
0xffffffff -1 ??  .  8  . r  .  .  8  .  .  .  .  .  .  .  .  .  .  . .
0xffffffff -1 ??  . 16  . r  .  . 16  .  .  .  .  .  .  .  .  .  .  . .
0xffffffff -1 ??  . 64  . r  .  . 16 16 16 16  .  .  .  .  .  .  .  . .
komo2 7%----end

----from here, my program
void
lpatdraw(){  
  static   int gid2, j;
  static   long   vert1[2],vert2[2], xscrmax=1000, yscrmax=1000;

     prefposition(0.0, xscrmax, 0.0, yscrmax);
     gid2= winopen(" stencil pattern");
     ortho2( 0.0, xscrmax, 0.0, yscrmax);
     stensize(1);  sclear(0x00);     subpixel(1);
     stencil(TRUE, 0x1,SF_ALWAYS,0x1,ST_REPLACE,ST_REPLACE,ST_REPLACE);
     zfunction(ZF_NEVER); cpack(0x00); clear();
     vert1[0]= 0.0;  vert2[0]= xscrmax;
     for(j= 0; j<yscrmax; j+=2){  vert1[1]= vert2[1]= j;
          bgnline(); v2i(vert1); v2i(vert2); endline();
     }
    winclose(gid2); 
}
void stencilmask(int eye){
   if(eye==0){
     stencil(TRUE,0x1,SF_EQUAL,      0x1, ST_KEEP, ST_KEEP, ST_KEEP);}
   else if(eye==1){
     stencil(TRUE,0x1,SF_NOTEQUAL,0x1, ST_KEEP, ST_KEEP, ST_KEEP);}
} /* end*/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads