29 July 2019 at 12 h 16 min #14019
I have created the cloth simulation of a circular disc. Now I would like to generate an executable file(eg: .exe). Can you please help me if there ways to generate an executable file from Sofa or Qt
Shiva29 July 2019 at 15 h 50 min #14023
Congratulations for your cloth simulation.
Did you write it as an XML scene file? a Python file? a C++ file?
Hugo29 July 2019 at 16 h 11 min #1402629 July 2019 at 16 h 14 min #14027
Several solutions then:
– you can open it with runSofa.exe
– or you can create a batch file launching directly
– or you can change the default scene of runSofa
– or modify the Main.cpp (C++) of runSofa so that it opens directly your xml file.
Hugo29 July 2019 at 16 h 29 min #14029
I am asking, just like runSofa.exe can we create a .exe for a xml scene like scene.exe, such that i can directly launch the scene.exe .
Shiva29 July 2019 at 17 h 18 min #1403130 July 2019 at 12 h 58 min #14044
My doubt is that, just like how you have created a option toDownload in your page, is there a way i can create a file.
I am trying to do the cloth simulation as a mini project in my college, so it would be easy for me if i could get the file as in the Download icon is pressed.
Shiva31 July 2019 at 8 h 54 min #140523 August 2019 at 20 h 44 min #14060Damien MarchalParticipant
- CNRS/Defrost Team
There is no “make an exe” button in the runSofa gui. This would be a nice addendum, not to hard to do, but right now there is none.
To achieve what you want to do you can:
– put the content of the .xml or a .scn or a .py as a big string in a .cpp file and use this string as the source of a scene loader. This would allows to load the scene without extra file in the filesystem.
– to visualize the scene, implement a minimalistic application with glut/freeglut/whatever. A good starting, yet not up-to-date, is the example in application/projects/glutOnePick
- You must be logged in to reply to this topic.