Re: garbled display window in vis5d since x11-2.3.1
Re: garbled display window in vis5d since x11-2.3.1
- Subject: Re: garbled display window in vis5d since x11-2.3.1
- From: Ted Mansell <email@hidden>
- Date: Mon, 22 Jun 2009 16:11:40 -0500
Jeremy,
Yes, the code does have support for stereo display. I think the
application checks automatically for stereo support (which I don't
have). I'm not a C programmer (just Fortran), but two subroutines
(excerpt below) use the GLX_STEREO variable.
-- Ted
On Jun 22, 2009, at 3:00 PM, Jeremy Huddleston wrote:
Ted Mansell wrote:
I use an older 3D data visualization software package called Vis5d+
(http://vis5d.sourceforge.net/) and something in X11 after version
2.2.3 causes wild behavior in the background of its output window.
When vis5d launches, the background of the output window, which
should be just black, is getting seemingly random bits of images
from other parts of the screen. It can even get parts of documents
that were displayed previous to the last reboot. And these random
image bits are scattered and flickering within the window. Vis5d
can still draw its objects in the window, but redrawing does not
remove old images.
I had not upgraded from 2.2.3 (xorg-server 1.3.0-apple21) because
it was working fine, but the recent 10.5.7 update must have
included some X11 updates (XQuartz 2.1.6, xorg-server 1.4.2-
apple33). This problem appears on my MacPro (dual quad 3.2GHz),
but seems not to have affected my MacBook Pro. I downgraded my
MacPro to 2.2.3, and it is fine again. One more curiosity is that
using screen sharing from the macpro to a MacbookPro does _not_
show the problem. (i.e., the flickering display window on the
MacPro looked normal via screensharing.) Furthermore, screenshots
(fullscreen, window only, and picture dump from vis5d) show only
what is supposed to be drawn on the window, so I took a picture
with my iSight to show the problem.
Any ideas??? Could it be that X11 might be working correctly but
that Vis5d has old/unsafe code that no longer behaves correctly?
I think it's a graphics driver problem. Does your application have
support for stereoscopic ("3D goggles")?
int make_big_window( char *title, int xpos, int ypos, int width, int
height)
{
int attrib_list[] = {
GLX_RGBA,
GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_DEPTH_SIZE, 1,
GLX_DOUBLEBUFFER,
None };
int size_attrib_list = sizeof(attrib_list)/sizeof(int);
int stereo_attrib_list[(sizeof(attrib_list)/sizeof(int))+1];
int i;
Window root;
XSetWindowAttributes win_attrib;
XSizeHints sizehints;
XVisualInfo *visualinfo=NULL;
unsigned long mask;
Screen *screen = DefaultScreenOfDisplay( GfxDpy );
root = DefaultRootWindow(GfxDpy);
/*********************/
/* Choose the visual */
/*********************/
for(i=0;i<size_attrib_list-1;i++)
stereo_attrib_list[i] = attrib_list[i];
stereo_attrib_list[size_attrib_list-1] = GLX_STEREO;
stereo_attrib_list[size_attrib_list] = None;
visualinfo = glXChooseVisual( GfxDpy, GfxScr, stereo_attrib_list );
if(visualinfo){
printf("Stereo Mode Enabled\n");
GfxStereoEnabled = 1;
}else
{
visualinfo = glXChooseVisual( GfxDpy, GfxScr, attrib_list );
if (!visualinfo) {
printf("Error: couldn't get RGB, Double-Buffered, Depth-Buffered
GLX");
printf(" visual!\n");
exit(0);
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden