#2114: m.nviz.image does not work on Windows
--------------------------+-------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibOpenGL | Version: svn-trunk
Keywords: m.nviz.image | Platform: MSWindows 7
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Module m.nviz.image does not create valid image file on Windows. With tif
format, it crashes and with ppm it creates a file only with header. So
offscreen rendering doesn't seem to work. Has m.nviz.image ever worked on
Windows?
#2114: m.nviz.image does not work on Windows
--------------------------+-------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibOpenGL | Version: svn-trunk
Keywords: m.nviz.image | Platform: MSWindows 7
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Comment(by hamish):
Replying to [ticket:2114 annakrat]:
> Module m.nviz.image does not create valid image file on Windows.
> With tif format, it crashes and with ppm it creates a file only
> with header. So offscreen rendering doesn't seem to work.
was the wingrass version in question built with libtiff support?
see lib/ogsf/gsd_img_tif.c, nothing too complicated in there.
gsd_img_ppm.c is even simpler. If header part is ok but writing the rest
of the ppm image isn't, perhaps gsd_getimage() is returning bad values for
xsize and ysize?
> Has m.nviz.image ever worked on Windows?
I don't know if anyone ever tested that; does saving as tiff or ppm from
the G6 tcl/tk NVIZ on wingrass work?
#2114: m.nviz.image does not work on Windows
--------------------------+-------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibOpenGL | Version: svn-trunk
Keywords: m.nviz.image | Platform: MSWindows 7
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Comment(by annakrat):
Replying to [comment:1 hamish]:
> Replying to [ticket:2114 annakrat]:
> > Module m.nviz.image does not create valid image file on Windows.
> > With tif format, it crashes and with ppm it creates a file only
> > with header. So offscreen rendering doesn't seem to work.
>
> was the wingrass version in question built with libtiff support?
>
> see lib/ogsf/gsd_img_tif.c, nothing too complicated in there.
> gsd_img_ppm.c is even simpler. If header part is ok but writing the rest
of the ppm image isn't, perhaps gsd_getimage() is returning bad values for
xsize and ysize?
>
>
> > Has m.nviz.image ever worked on Windows?
>
> I don't know if anyone ever tested that; does saving as tiff or ppm from
the G6 tcl/tk NVIZ on wingrass work?
It worked I guess but I am talking here about off-screen rendering which
is different than just exporting image with opened window with (wx)nviz.
#2114: m.nviz.image does not work on Windows
--------------------------+-------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibOpenGL | Version: svn-trunk
Keywords: m.nviz.image | Platform: MSWindows 7
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Comment(by hamish):
> Replying to [comment:2 annakrat]:
> > Replying to [comment:1 hamish]:
> >
> > does saving as tiff or ppm from the G6 tcl/tk NVIZ on wingrass
> > work?
>
> It worked I guess but I am talking here about off-screen rendering
> which is different than just exporting image with opened window
> with (wx)nviz.
I asked because G6's tcl/tk NVIZ and m.nviz.image both use libogsf's
GS_write_ppm() which calls gsd_getimage() to get the image size. I was
trying to narrow down if the gsd_getimage() function was where the problem
lies.