Repository navigation
|
Dear Glvis Community, I have the following mesh and gridfunction files produced by MFEM, However, I always get a black png when I try to screenshot it with a script like this I wonder if anyone knows how to resolve the issue here. |
Replies: 3 comments 1 reply
|
For me the script works fine on macOS. One thing to remember is that when the GLVis window opens, it stops reading the script after the "solution mesh-file sol-file" command, so it will not automatically execute the following commands. To do that, one needs to press the space key in the GLVis window. I suspect you are already doing that, otherwise you will not get the file "result.png". One thing you can try is to test if screenshots work for you without using a script. Can you try running the command glvis -m A.mesh -g A.gfand then take a screenshot by pressing the |
|
Thanks for confiming it for me. I hope you don't mind me asking another related question here. I could not find a manuel that describes commands for GLVis script. |
|
You can use the Lines 650 to 657 in 92595f9 |

For me the script works fine on macOS.
One thing to remember is that when the GLVis window opens, it stops reading the script after the "solution mesh-file sol-file" command, so it will not automatically execute the following commands. To do that, one needs to press the space key in the GLVis window. I suspect you are already doing that, otherwise you will not get the file "result.png".
One thing you can try is to test if screenshots work for you without using a script. Can you try running the command
glvis -m A.mesh -g A.gfand then take a screenshot by pressing the
Skey. Is the generated file (GLVis_s01.png) a black png as well? If that is the case, can you give us more details about h…