batch generating empty jpeg files

Moderator: GiD Team

Post Reply
DennisR
Posts: 9
Joined: Fri Oct 12, 2018 1:18 pm

batch generating empty jpeg files

Post by DennisR »

Hi, I have a problem under MS Windows. Files attached.
1. When I run GiD as batch with 'gid_offscreen -n -offscreen 1000x1000 -b GidPrintBatch.bch' the generated mesh.jpeg is an empty file.
2. When I start GiD and then run the batch file with 'Utilities' - 'Tools' - 'Read batch file' the generated mesh.jpeg is not empty (it contains a picture of the mesh)

Under Linux it goes ok both in batch mode and interactive mode. Help. Thank you.
Attachments
test.zip
(1.79 KiB) Downloaded 356 times
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: batch generating empty jpeg files

Post by escolano »

To get screen images without any window, use gid_offscreen and the flag -offscreen, but don't set the -n flag.
Use this:

'gid_offscreen -offscreen 1000x1000 -b GidPrintBatch.bch'

Note: gid_offscren in Windows is an special gid_offscreen.exe, compiled with the 'mesa library' instead OpenGL, to allow draw in an offscreen buffer. In Linux it is always linked with the mesa library.
DennisR
Posts: 9
Joined: Fri Oct 12, 2018 1:18 pm

Re: batch generating empty jpeg files

Post by DennisR »

I tried, works perfect. Thank you very much.
Post Reply