batch generating empty jpeg files

Moderator: GiD Team

DennisR
Posts: 4
Joined: Fri Oct 12, 2018 1:18 pm

batch generating empty jpeg files

Postby DennisR » Tue Dec 04, 2018 8:11 am

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 2 times
User avatar
escolano
Posts: 1489
Joined: Thu Sep 18, 2014 3:31 pm

Re: batch generating empty jpeg files

Postby escolano » Tue Dec 04, 2018 3:28 pm

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: 4
Joined: Fri Oct 12, 2018 1:18 pm

Re: batch generating empty jpeg files

Postby DennisR » Tue Dec 04, 2018 4:05 pm

I tried, works perfect. Thank you very much.

Return to “Postprocess”

Who is online

Users browsing this forum: No registered users and 2 guests