[GRASS-user] NVIZ max res ppm = reboot!

Glynn Clements glynn at gclements.plus.com
Thu Apr 19 01:37:20 EDT 2007


Glynn Clements wrote:

> > I don't get a reasonable output though. 21 different size black ppm
> > squares  instead of a picture. Is this as expected?
> 
> That's what I get when using GLX Pixmaps (using pBuffers gives me an
> GLXUnsupportedPrivateRequest error).

I think that I may have a fix for the GLX Pixmap case:

Index: visualization/nviz/src/do_zoom.c
===================================================================
RCS file: /grassrepository/grass6/visualization/nviz/src/do_zoom.c,v
retrieving revision 2.10
diff -u -r2.10 do_zoom.c
--- visualization/nviz/src/do_zoom.c	19 Sep 2006 12:08:56 -0000	2.10
+++ visualization/nviz/src/do_zoom.c	19 Apr 2007 04:50:13 -0000
@@ -247,7 +247,6 @@
 	GLX_GREEN_SIZE, 1,
 	GLX_BLUE_SIZE, 1,
 	GLX_DEPTH_SIZE, 1,
-	GLX_DOUBLEBUFFER,
 	None
     };
     GLXContext ctx;

For all I know, the pBuffer case might work; I don't think we've
actually had anyone test it on an OpenGL implementation which supports
pBuffers.

Also, I've committed a fix to not try to use pBuffers if the GLX
version is < 1.3. That should eliminate the need to to use
GRASS_NO_GLX_PBUFFERS (although I don't know why glXCreatePbuffer()
can't check this itself before it sends the GLX request).

> I'm curious as to whether or not either of the off-screen drawing
> methods have ever worked for anyone. It's entirely possible that the
> new GLX context isn't being initialised correctly.

The fact that I can get GLX Pixmaps to work suggests that this part is
okay, at least.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list