Article View: comp.sys.sgi.graphics
Article #184trouble on O2 with an Indogo2, Octane's program
From: nagata s
Date: Fri, 24 Nov 2000 05:01
Date: Fri, 24 Nov 2000 05:01
124 lines
6157 bytes
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*/
Technical Details
Message-ID:
<8vksga$tl$1@strlnews.strl.nhk.or.jp>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!news.idc.ad.jp!giga-nspixp2!np0.iij.ad.jp!news.iij.ad.jp!news.strl.nhk.or.jp!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10268b,a830c82d2bb2ba50,start X-Google-Attributes: gid10268b,public X-Google-Thread: fc443,a830c82d2bb2ba50,start X-Google-Attributes: gidfc443,public X-Google-ArrivalTime: 2000-11-23 21:03:31 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!news.idc.ad.jp!giga-nspixp2!np0.iij.ad.jp!news.iij.ad.jp!news.strl.nhk.or.jp!not-for-mail From: "nagata s" <nagata@strl.nhk.or.jp> Newsgroups: comp.sys.sgi.graphics,fj.sys.sgi Subject: trouble on O2 with an Indogo2, Octane's program Date: Fri, 24 Nov 2000 14:01:31 +0900 Organization: NHK Science and Technical Research Laboratories, Tokyo, Japan. Lines: 131 Message-ID: <8vksga$tl$1@strlnews.strl.nhk.or.jp> NNTP-Posting-Host: hdhcp8.strl.nhk.or.jp Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300