From: Michael Logan (mlogan++at++mail.arc.nasa.gov)
Date: 02/05/2002 09:53:26
Hi Zhaowei,
I always verify that a visual with enough bits is
available with "findvis" first.
Then, using GLUT, I sometimes use this function:
glutInitDisplayString( "rgb~8 double=1 stencil=2" );
I don't know if the above works on an Onyx2 or not.
But check the man page for all the customizations..
ml
Zhaowei Fan wrote:
> Thanks,
>
> I have used "GLUT" to create display x-win. So could I get the pointer to current DISPLAY * , which needed by glXChooseVisual ?
>
> Thank you a lot,
> Zhaowei Fan
>
> ¡¡¡¡
>
> ======= 2002-02-04 17:12:00 In the email you wrote :=======
>
> >see the man page on glXChooseVisual.
> >You select the size of the stencilbuffer with the token GLX_STENCIL_SIZE in
> >the attributes array,
> >followed by the number of planes you want, usually 1 or 8.
> >
> >See also /usr/share/src/OpenGL/teach/[xlib | glx_based | glx_based] for
> >examples how to structure a basic OpenGL program.
> >
> >Hope this helps,
> >
> >Dick.
> >
> >-----Original Message-----
> >From: Zhaowei Fan [mailto:zwfan++at++cad.zju.edu.cn]
> >Sent: Monday, 04 February, 2002 14:27
> >To: "info-performer++at++sgi.com <info-performer++at++sgi.com>
> ><info-performer++at++sgi.com" <info-performer++at++sgi.com.info-performer
> >Subject: Problem : How to change the bits number of stencil buffer using
> >OpenGL On Onyx2
> >
> >
> >Hi pfAll £¬
> >
> >
> >I am programming an application using opengl on Onyx2. When the stencil
> >buffer was used, I found the number bits plane of stencil buffer is set
> >1(default). But I must use more than 2 bits plane on it. So how to modify
> >the number of bits plane about stencil buffer using OpenGL function? I
> >found a fucntion "stensize()" can change that, but it is a IrisGL function.
> >What should I do if only can use OpenGL function ?
> >
> >Thanks,
> >
> >Zhaowei Fan
> >
> >
> >
> >
> >¡¡¡¡
> >
> >
> >---------------------------
> >Zhaowei Fan
> >Ph.D Candidate for Computer Application
> >State Key Lab of CAD&CG
> >Zhejiang University, P.R.C
> >..+-?S÷?w?!¶Úÿ0??¢oì¡ûpj·¿¥êߢ¹?¯ó©zpÞ½éh¦g§´úè?ç-?Ûiÿ?²È"r?¿¦º#yËlþ-«~Sæ
> >z¿Ò¹¹¢²È¨?ȧ~S^ú+?êì,'(?fSzު笶ȧ~S^ú+?êëz«?²Û ?Ê&
>
> = = = = = = = = = = = = = = = = = = = =
>
> ---------------------------
> Zhaowei Fan
> Ph.D Candidate for Computer Application
> State Key Lab of CAD&CG
> Zhejiang University, P.R.C
>
-- Michael Logan Task Manager/Chief Programmer, Visual Cueing & Simulation Raytheon ITSS NASA Ames Research Center,MS 262-6,Moffett Field,CA, 94035 (650)-604-4494 private: vonlogan++at++rcn.com http://users.rcn.com/vonlogan/index.htm
This archive was generated by hypermail 2b29 : Tue Feb 05 2002 - 09:54:09 PST