[GRASS-dev] Re: [GRASS-user] [bug #3041] nviz max resolution ppm image dump

Glynn Clements glynn at gclements.plus.com
Thu Aug 31 08:59:17 EDT 2006


Hamish wrote:

> > Are any of the image tiles coming out correctly?
> 
> No.
> 
> > If not than the fault (in your case) may be with GS_write_zoom.
> 
> ?

> I get a constucted image, but it is still full of random bits of
> yesterday's X. (GLX is enabled; GRASS_GLX* is not set)
> 
> 
> With off-screen rendering disabled, I get good results with either of
> the above var_i calculations.

The off-screen rendering draws to the back-buffer, GS_write_zoom()
dumps the front buffer. Also, Create_OS_Ctx() hides the Togl canvas
(presumably to prevent expose events from trashing the OpenGL state
during off-screen rendering), so it probably isn't usable for
rendering.

Does this help?

diff -u -r2.6 do_zoom.c
--- visualization/nviz/src/do_zoom.c	9 Jul 2006 08:58:40 -0000	2.6
+++ visualization/nviz/src/do_zoom.c	31 Aug 2006 12:58:16 -0000
@@ -325,6 +325,9 @@
     }
 #endif
 
+    if (!pbuffer && !glxpixmap)
+	    return 1;
+
     /* hide togl canvas before init_ctx 
      * This prevents bindings from re-initializing
      * togl */


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




More information about the grass-dev mailing list