Your command looks correct. What is the output of “wb_command -version”?
When you captured an image of the scene inside of wb_view (File Menu -> Capture Image), were you able to save the captured image to a PNG file? You could try a different image format (.jpg) with wb_command -show-scene.
There is a newer command for capturing images that you can try, wb_command -scene-capture-image.
John Harwell
From: Linn Christin Bonaventure Norbom <linnn...@gmail.com>
Date: Monday, November 14, 2022 at 8:35 AM
To: HCP-Users <hcp-...@humanconnectome.org>
Subject: [hcp-users] -show-scene gives empty/black image
* External Email - Caution * |
--
You received this message because you are subscribed to the Google Groups "HCP-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
hcp-users+...@humanconnectome.org.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/c5bd5fa5-b665-42df-b55a-e9b2d98fcdf5n%40humanconnectome.org.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/BL3PR02MB900920077D74F62FEDE929F4CA059%40BL3PR02MB9009.namprd02.prod.outlook.com.
If you compiled the Workbench source code, it is probably a problem with your computer’s Mesa OpenGL library. wb_view uses the (hardware) OpenGL libraries that are part of your graphics drivers. So that wb_command -show-scene can be run without a display, it uses the Mesa OpenGL (software) libraries for generating the images.
When you run ‘cmake’ to configure the Workbench source code, it will list the Mesa libraries found after “OSMESA:”. Check that output to see what libraries were found. You may want to check for updates to the Mesa package.
“-scene-capture-image” may not be in 1.5.0.
.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/CAMVZBM%3D8mYUd77GA4F_5Bi_uyvdRoehdmOaytKL%3DfNdoVgp1Yg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/BL3PR02MB900947AC99A937A53435B730CA059%40BL3PR02MB9009.namprd02.prod.outlook.com.
Hello again,
I am sorry for not being able to investigate this immediately, but I have now run a new cmake command (see first line in attached screenshot) and have attached the cmake output. I am a little unsure of what to search for here in regards to possibly having an outdated Mesa package, but could the “GLEW: No” be an issue?
Any input on whether anything looks suspicious or any clues regarding outdated Mesa in the information attached would be greatly appreciated!
Thanks so much for all the help!
Kind regards Linn
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/BL3PR02MB900947AC99A937A53435B730CA059%40BL3PR02MB9009.namprd02.prod.outlook.com.
GLEW:no is ok. You should not need to specify GL and GLU in the linker flags. I have never seen the GLVND vs Legacy warning but you might try each of them.
One thing you can try is to use “ldd” on the wb_command binary executable. Ldd will show the shared object libraries used by wb_command and in particular, which OpenGL libraries are used.
John Harwell
.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/CAMVZBMkEDLYyKQOQFWQ70e-%2BeLwtQGwSmBDcW57mwuaWKc_-dw%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "HCP-Users" group.
To unsubscribe from this topic, visit https://groups.google.com/a/humanconnectome.org/d/topic/hcp-users/OeTCqxmZs00/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hcp-users+...@humanconnectome.org.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/BL3PR02MB90098B7915F9C06656E6BE03CA139%40BL3PR02MB9009.namprd02.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/CAMVZBM%3DJo8vJcAGcH-DnFQJ4e5c%3De5p_XWV-Rgm-SbKC63-yWA%40mail.gmail.com.