I cannot record a video of my GUI (with V shortcut). I get the following message when trying to do so:
[INFO] [VideoRecorderFFMPEG] Start recording to /home/andrea/projects/sofa/build/install/screenshots/caduceus__r60_0001.mp4 ( yuv420p, 60 FPS, 5120000 b/s) using /home/andrea/projects/sofa/build/bin/[Read more]
My scene is a priori rendered correctly. I see my forcefields and ogl models, and also the images acquired by a realsense camera (plugged to my computer).
The issue comes when using the component OpenCVProjectivePointSelector from the OpencvPlugin. In particular when I select markers on the current image with a mouse click, these markers…[Read more]
I also thought the problem might come from the GUI, but I use qglviewer for both python and runSofa.
When running my scene with python, this is the code that creates the root node and the GUI:
root = Sofa.Core.Node()
Sofa.Gui.GUIManager.Init(“Acquire and register”,…[Read more]
When I run
everything seems to work correctly. However, when I run
my visual is not correctly updated.
I am working with the v20.12 release (both for SOFA and SP3) and I am using some OpenCV functions (from the OpencvPlugin) that add some visual markers with a mouse click event.…[Read more]
Still not working. If I run what you suggested I get the following warning:
[SofaViewer] Could not create file 'path_to_my_image/img.png'
Valid extensions: dds<code>and there is no background image. But this time,</code>current_gui
is not None 🙂
If I only run
Thanks for your reply.
I also tried that, but
Sofa.Gui.GUIManager.GetGUI()returns None. Yet I have initialized the GUIManager by doing:
I am using quite recent versions of Sofa and SofaPython3 (December 2020) and the function setBackgroundImage is not working as before.
In python, when I run:
I get the following error:
TypeError: setBackgroundImage(): incompatible function arguments. The following…[Read more]