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.
batch generating empty jpeg files
Moderator: GiD Team
batch generating empty jpeg files
- Attachments
-
- test.zip
- (1.79 KiB) Downloaded 376 times
Re: batch generating empty jpeg files
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.
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.
Re: batch generating empty jpeg files
I tried, works perfect. Thank you very much.