psomers replied to the topic ModuleNotFoundError … 'Sofa.Helper' with Binary install v21.06.02 in the forum Getting Started 2 days ago
I believe the downloadable Sofa binaries are compiled for python 3.7. So if you just downloaded them, that could be the problem.
I think the problem only occurs when using the Sofa.GL python bindings (not through runSofa). But I am very curious as to how this Blender tutorial will work. Will it retain standalone SOFA in python capabilities or will it need to be used with runSofa?
I don’t think the problem here is how to get a hexahedral mesh. I think the end goal is to have a voxelized cube “image” of the simulation environment as if it was a MRI image, correct? In that case, maybe take a look at this project:
They may do something similar.
As a…[Read more]
I personally use pyqt for viewing and have written things to control the camera with the keyboard (so you can look around). If that is something you want to try, here is an example:
I’m pretty sure your camera just isn’t pointing in the right direction. I’m not sure what your model is, so I can’t say what numbers to use, but try setting the the position and lookAt values for the camera such that it is outside your model, but pointing at it. Check the pygame example from the link I shared and see how it is done for the…[Read more]
I’m not sure which example you’re following, but what I said still stands as it makes no sense to create a new camera everytime the scene is drawn. Have you tried it?
If you’re not getting errors and just a black screen, I assume the code is rendering a camera view that isn’t pointing at your model.
Have you been able to run the GUI examples in SofaPython3?
I think you’ll need to update to the latest master branch version of Sofa so that you can use the version of SofaPython3 that has Sofa.GL. And then you will likely run into the problem that SoftRobotics is not quite updated to work with these versions yet… It is just a guess, but I think you may need to wait a bit before a python GUI will work…[Read more]
I haven’t used github discussions before, but the ability to flag helpful comments/discussions with upvoting sounds like 2021 😉
And I know it doesn’t affect me at all, but I can imagine not having to worry about supporting a forum’s mechanics would probably be nice for all of you focusing on Sofa development…
+1 for moving to github
Thanks for clearing this up. For the convenience of those that find this thread and want to do their own hack before someone adds proper bindings, here is what I did:
in SofaPython3bindingsSofasrcSofaPython3SofaSimulationSubmodule_Simulation.cpp add
Hi Sofa team,
I saw that the python3 bindings for implementing the pygame example mentioned in this thread were removed shortly after the conversation here took place (glewinit() and draw()). Is there a plan to re-implement them or replace them? Or maybe I’m missing the replacement. Since Sofa can be driven entirely from a python environment, it…[Read more]
psomers started the topic Python3 Windows build – Controller results in segfault in the forum Building SOFA 1 year, 3 months ago
Hi, can someone confirm a combination of a build on Windows 10 with sofa and python3 for the different versions of pybind, python, etc…? I have successfully built the newest commits for both sofa and python3 without errors. Everything seems to work fine, but when I try to create a Sofa.Core.Controller object from python I get a segfault and…[Read more]