🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.graphics
9 messages
9 total messages Started by nagata s Fri, 17 Nov 2000 03:20
Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#175
Author: nagata s
Date: Fri, 17 Nov 2000 03:20
12 lines
1381 bytes
Hello! all


I made a software using Gl in Irix 5.3, 6.5 and would like to make it run
on O2 irix 6.3,6.5.
But this does not run about stencil function for masking with a grid
pattern.

Appreciate any information which suggests to fix it.
Thanks all

Nagata Shojiro@NHK STRL
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#178
Author: David P. Gorgen
Date: Fri, 17 Nov 2000 00:00
20 lines
1585 bytes
nospam@oddhack.engr.sgi.com (Jon Leech) writes:
>  - Have you checked for any OpenGL errors generated during execution of
>    the program?

Helpful hint: a really easy way to do this on SGI's is to

    > setenv GLERRORABORT anything

(or the equivalent way to set an environment varible in non-csh
shells).

Then any time a GL error occurs, your program will abort(), and you can
use a debugger to get a stack trace.

Note, it is a terrible idea to use this in a production environment!
But as a diagnostic tool it's great.
--
David Gorgen     Principal Engineer     Silicon Graphics, Inc.
dgorgen 'at' sgi.com                    1600 Amphitheatre Pkwy.   MS 43-2-991
Voice:650-933-3493   Fax:650-932-3493   Mountain View, CA   94043-1351
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#176
Author: nagata s
Date: Fri, 17 Nov 2000 03:26
16 lines
1586 bytes
Corrected

> Hello! all
>
>
> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would like to
trabsplnat it to make it run on O2 irix 6.3 or 6.5.
> But this does not run about stencil function for masking with a grid
> pattern alternately for stereoscopic displays.
>
> Appreciate any information which suggests to fix it.
> Thanks all
>
> Nagata Shojiro@NHK STRL
>
>
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#177
Author: Jon Leech
Date: Fri, 17 Nov 2000 03:58
17 lines
1665 bytes
In article <8v28al$2m4$1@strlnews.strl.nhk.or.jp>,
nagata s <nagata@strl.nhk.or.jp> wrote:
>> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would like to
>trabsplnat it to make it run on O2 irix 6.3 or 6.5.
>> But this does not run about stencil function for masking with a grid
>> pattern alternately for stereoscopic displays.

    As first steps:

  - Are you sure that you're using a GLX visual which supports stencil
    buffers on the O2?

  - Have you checked for any OpenGL errors generated during execution of
    the program?

    Jon Leech
    SGI
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#179
Author: nagata s
Date: Mon, 20 Nov 2000 00:52
38 lines
2761 bytes
Thanks for advices

David P. Gorgen <dgorgen@annarbor.engr.sgi.com> wrote in message
news:8v3snp$bfu3$1@fido.engr.sgi.com...
> nospam@oddhack.engr.sgi.com (Jon Leech) writes:
> >  - Have you checked for any OpenGL errors generated during execution of
> >    the program?
>
> Helpful hint: a really easy way to do this on SGI's is to
>
>     > setenv GLERRORABORT anything
>
I am afraid this command changes the environment
When I finish to check this command, how should i set the prebious
environment ?
like >setenv ???????


Jon Leech <nospam@oddhack.engr.sgi.com> wrote in message
news:8v2adh$3t8o$1@fido.engr.sgi.com...
> In article <8v28al$2m4$1@strlnews.strl.nhk.or.jp>,
> nagata s <nagata@strl.nhk.or.jp> wrote:
> >> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would like
to
> >trabsplnat it to make it run on O2 irix 6.3 or 6.5.
> >> But this does not run about stencil function for masking with a grid
> >> pattern alternately for stereoscopic displays.
>
>     As first steps:
>
>   - Are you sure that you're using a GLX visual which supports stencil
>     buffers on the O2?
I don't know the wotd "GLX visual", i know GL for my programing.
How will i know I will be using it in my program.
The message of the program said "STENCIL available" at
getgdesc(GD_BITS_STENCIL).
Thanks again in advance
Nagata shojiro
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#180
Author: nagata s
Date: Mon, 20 Nov 2000 07:32
31 lines
2355 bytes
Very much thanks
I set "setenv GLERRORABORT anthing"
But no error message and also there is no "core" file as the program was
running without breaking.

thanks for other next advices

Nagata Shojiro
>
> Jon Leech <nospam@oddhack.engr.sgi.com> wrote in message
> news:8v2adh$3t8o$1@fido.engr.sgi.com...
> > In article <8v28al$2m4$1@strlnews.strl.nhk.or.jp>,
> > nagata s <nagata@strl.nhk.or.jp> wrote:
> > >> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would
like
> to
> > >trabsplant it to make it run on O2 irix 6.3,.
> > >> But this does not run about stencil function for masking with a grid
> > >> pattern alternately for stereoscopic displays.
> >
> >     As first steps:
> >
> >   - Are you sure that you're using a GLX visual which supports stencil
> >     buffers on the O2?
> I don't know the wotd "GLX visual", i know GL for my programing.
> How will i know I will be using it in my program.
> The message of the program said "STENCIL available" at
> getgdesc(GD_BITS_STENCIL).
> Thanks again in advance
> Nagata shojiro
>
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#181
Author: nagata s
Date: Tue, 21 Nov 2000 04:10
25 lines
2028 bytes
Thanks again
How do i know if I am using a GLX visual ?

Shojiro

Jon Leech <nospam@oddhack.engr.sgi.com> wrote in message
news:8v2adh$3t8o$1@fido.engr.sgi.com...
> In article <8v28al$2m4$1@strlnews.strl.nhk.or.jp>,
> nagata s <nagata@strl.nhk.or.jp> wrote:
> >> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would like
to
> >trabsplnat it to make it run on O2 irix 6.3 or 6.5.
> >> But this does not run about stencil function for masking with a grid
> >> pattern alternately for stereoscopic displays.
>
>     As first steps:
>
>   - Are you sure that you're using a GLX visual which supports stencil
>     buffers on the O2?
>
>   - Have you checked for any OpenGL errors generated during execution of
>     the program?
>
>     Jon Leech
>     SGI
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#182
Author: nagata s
Date: Wed, 22 Nov 2000 06:48
124 lines
6141 bytes
Thanks Jon san

I got the information
Jon Leech <nospam@oddhack.engr.sgi.com> wrote in message
news:8v2adh$3t8o$1@fido.engr.sgi.com...
> In article <8v28al$2m4$1@strlnews.strl.nhk.or.jp>,
> nagata s <nagata@strl.nhk.or.jp> wrote:
> >> I made a software using Gl in Irix 5.3, 6.5 on a Octane and would like
to
> >trabsplnat it to make it run on O2 irix 6.3 or 6.5.
> >> But this does not run about stencil function for masking with a grid
> >> pattern alternately for stereoscopic displays.
>
>     As first steps:
>
>   - Are you sure that you're using a GLX visual which supports stencil
>     buffers on the O2?
>
I got the information and this does not support stencil buffers on the O2 as
the last text shows

How can i fix it ?
thanks in advance very much



>   - Have you checked for any OpenGL errors generated during execution of
>     the program?

No other errors

>
>     Jon Leech
>     SGI

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%
Re: Help to transplate a software of Ocatne,Indigo2 to O2 on Irix 6.5
#183
Author: nagata s
Date: Wed, 22 Nov 2000 07:15
52 lines
3137 bytes
Here is my program using stencil() runing on Indigo2,Ocatne, but not on O2.
Appreciate very much Any suggestions to fix it.

----from here
void stencilmask(int eyer){
   if(eyer==0) stencil(TRUE,0x1, SF_EQUAL,   0x1, ST_KEEP, ST_KEEP,
ST_KEEP);
   else if(eyer==1) stencil(TRUE,0x1, SF_NOTEQUAL,0x1, ST_KEEP, ST_KEEP,
ST_KEEP);
}
void
cilpatdraw(){  
static   int gid2, j;
 static   long   vert1[2],vert2[2];
 static   long   xscrmax,yscrmax;

     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, 1, 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); 
}/* end*/


David P. Gorgen <dgorgen@annarbor.engr.sgi.com> wrote in message news:8v3snp$bfu3$1@fido.engr.sgi.com...
> nospam@oddhack.engr.sgi.com (Jon Leech) writes:
> >  - Have you checked for any OpenGL errors generated during execution of
> >    the program?
> 
> Helpful hint: a really easy way to do this on SGI's is to
> 
>     > setenv GLERRORABORT anything
> 
> (or the equivalent way to set an environment varible in non-csh
> shells).
> 
> Then any time a GL error occurs, your program will abort(), and you can
> use a debugger to get a stack trace.
> 
> Note, it is a terrible idea to use this in a production environment!
> But as a diagnostic tool it's great.
> --
> David Gorgen     Principal Engineer     Silicon Graphics, Inc.
> dgorgen 'at' sgi.com                    1600 Amphitheatre Pkwy.   MS 43-2-991
> Voice:650-933-3493   Fax:650-932-3493   Mountain View, CA   94043-1351
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