[GRASS-dev] [GRASS GIS] #3600: m.nviz.image doesn't produce any output

GRASS GIS trac at osgeo.org
Wed Jul 4 09:14:35 PDT 2018


#3600: m.nviz.image doesn't produce any output
--------------------------+-------------------------
  Reporter:  guano        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Default      |    Version:  7.0.4
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by hcho):

 I think that this issue is platform dependent.
 {{{glGetIntergerv(GL_VIEWPORT, tmp)}}} returns an empty viewport, which
 should have been defined correctly in {{{Nviz_create_render_window}}}
 (lib/nviz/render.c). This function has three {{{defined}}} for X11, Aqua,
 and Windows. I cannot reproduce this issue on X11, but the issue is
 reported on Aqua and Windows. For Aqua, this routine calls
 aglCreatePBuffer to create a new rendering area using specified width and
 height. Maybe, we should check what value this routine returns.

 https://developer.apple.com/documentation/agl/1392693-aglcreatepbuffer

 If you can compile yourself, maybe you can try this. In
 {{{Nviz_create_render_window}}} in lib/nviz/render.c, line 145 (trunk) or
 find {{{aglCreatePBuffer}}} and print its return value with width and
 height just in case.

 {{{
 if (aglCreatePBuffer(width, height, GL_TEXTURE_2D, GL_RGBA, 0,
 &(rwin->windo    wId)) == GL_FALSE)
     fprintf(stderr, "aglCreatePBuffer failed: %d %d %d\n", width, height,
 aglGetError());
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3600#comment:13>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list