Forum Replies Created
-
AuthorPosts
-
SaleemBlocked
I forgot to mention that’s alphabet O not zero.
SaleemBlockedIn SOFA simulation window press “O” and that will create 2 files in your current directory(the folder where your .scn file was) open those files with notepad and one of them will show all the vertices and other values related to vertices of the object. Change the name of those files, run your simulation and at whatever time during simulation you need deformed vertices, stop the simulation, press “O” the 2 files will be created again, change their name if you need to get more new positions of vertices.
C:\Users\User\Documents\GitHub\sofa\examples\Demos\simpleshere.scn
I used this scene there is just one sphere in it with 12 vertices, I deleted constraints from the scene and made the object fall under gravity when I press “O” in simulation at initial position and after some time, temp1_0000.MTL and temp1_0000.OBJ files were created in same directory both times(file name remains same that’s why changing name is important otherwise the same files are just updated), then I plotted those points with alphabet v in start in MATLAB to confirm this using scatter3(x,y,z) command and the results seem right.Zargham
SaleemBlockedsorry, I think I should elaborate what I mean by STRETCH, like when it is stretched it will elongate but it can show just a little bit of retraction but it shouldn’t go to it’s original position, it should stay deformed as how ever caused by the gripers or something.
SaleemBlockedOkay, thanks for that and sorry I had to go somewhere.
Anyway, can anyone tell me which components do i need to create an object which can stretch and deform but maintain its volume and can interact(collide and can be grabbed) with other objects? Doesn’t really matter what shape it has.BTW really thank you for all the help people 🙂
SaleemBlockedModeler keeps crashing when I try to change the values(/GitHub/sofa/examples/Tutorials/StepByStep/FullObject/8_FullObject I’m changing gravity in Object node). It happened before too(in another tutorial) but I ignored it that maybe system got overloaded. So I chose “debug the program” and that’s what it shows in the output
“Unhandled exception at 0x000007FEEEEF7AC4 (SofaSimulationCommon_1_0.dll) in Modeler.exe: 0xC0000005: Access violation reading location 0x0000000000000008.”
so what should I do?
SaleemBlockedOkay so I compiled it in release and it still needed .dll files from sofa/tools/qt4win/bin. Anyway, I copied all those .dll files for release(ones without the alphabet ‘d’ at the end) and pasted them in buildfolder/bin and then it worked fine.
Also there was no Modeler.exe so I started over and then I compiled the Sofa.sln, copied the .dll files in bin folder and then runsofa.exe and Modeler.exe worked fine.Thank you so much for you patience and help Mr. Forest and Mr. Talbot.
Okay one last question now, which software(s) is the best to make .obj, .msh(.mesh and .mtl files are also used but they are all for meshes so I think any format should work but if there is more to it then please, do tell), .bvh, and .sph files?(there were some more files too but I haven’t used them yet so I don’t know even if I need them) Which software(s) do you people use for that creating these files?
I did read that other thread about .obj and .msh files, creating .obj from one software and then using sofa for meshing, I’ll try that but if there is some better way to deal with all this I would like to know.Once again, thank you people, you were a huge help.
SaleemBlockedI also tried with 32bit configurations and files, followed all the steps but for that when I execute runsofa.exe it says “libgcc_s_dw2-1.dll” file is missing.
I found the dll file in cloned git (C:\Users\User\Documents\GitHub\sofa\extlibs\SuiteSparse\cholmod\Lib) and added it to bin folder in build directory but now “QtCored4.dll” is missing.
I added that too from the cloned git (C:\Users\User\Documents\GitHub\sofa\tools\qt4win\lib) but it says “The procedure entry point _Z10qvsnprintfPcjPKcS_ can not be found in the DLL QtCored4.dll.” when I try to execute runsofad.exe
So I’m stuck again, I don’t know how to fix it and even google doesn’t have anything on that.
SaleemBlockedOkay so I used QT for 64 bit and everything worked fine while compilation(1 build was skipped though==> ***Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ——
1>Project not selected to build for this solution configuration ***) and a bin folder was created and there was a “runsofad.exe” file there. I tried to execute the .exe file but “Qt3supportd4.dll” was missing, so I tried to download it from here==> http://www.opendll.com/index.php?file-download=qt3supportd4.dll&arch=32bit&version=4.6.2.0&dsc=#
and copied it in “bin” folder and when I tried executing runsofad.exe file again, it gave 0xc000007b error, probably because .dll file is for 32 bit systems, so what should I do?
I tried finding a .dll file for 64 bit system but they were all for 32 bit and some were saying to just copy it in C:/windows/sysWOW64 for 64bit system.
SaleemBlockedThese errors appeared after compilation(running Build Solution), also there is still no runsofa.exe file so I think these errors must be fixed for that. So how do I fix these errors?
*****************************************************************************************
Error 55 error LNK1112: module machine type ‘X86’ conflicts with target machine type ‘x64’ E:\sofaforestbuild\extlibs\qwt-6.0.1\src\QtGuid4.lib(QtGuid4.dll) Qwt(project)Error 3120 error LNK1104: cannot open file ‘..\..\..\..\lib\Qwt_1_0d.lib’ E:\sofaforestbuild\applications\sofa\gui\qt\LINK SofaGuiQt(project)
Error 3121 error MSB6006: “link.exe” exited with code 1104. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 611(line) 5(column) SofaGuiQt(project)
Error 3125 error LNK1104: cannot open file ‘..\..\..\..\lib\SofaGuiQt_1_0d.lib’ E:\sofaforestbuild\applications\sofa\gui\SofaGuiMain\LINK SofaGuiMain(project)
Error 3129 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ E:\sofaforestbuild\applications\projects\runSofa\LINK runSofa(project)
****************************************************************************************There are 3124 warnings too, most of them are like:
*****************************************************************************************
Warning 1438 warning LNK4099: PDB ‘zlib.pdb’ was not found with ‘zlib.lib(deflate.obj)’ or at ‘E:\sofaforestbuild\bin\zlib.pdb’; linking object as if no debug info E:\sofaforestbuild\modules\SofaMiscTopology\zlib.lib(deflate.obj)Warning 106 warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss (C:\Users\User\Documents\GitHub\sofa\framework\sofa\core\MultiMapping.cpp) C:\Users\User\Documents\GitHub\sofa\framework\sofa\core\BaseMapping.h
Warning 931 warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘unsigned int’, possible loss of data (C:\Users\User\Documents\GitHub\sofa\modules\SofaSphFluid\ParticleSink.cpp) C:\Users\User\Documents\GitHub\sofa\modules\SofaBaseTopology\TopologySubsetDataHandler.inl
Warning 1334 warning C4800: ‘int’ : forcing value to bool ‘true’ or ‘false’ (performance warning) (C:\Users\User\Documents\GitHub\sofa\modules\SofaBaseCollision\MinProximityIntersection.cpp) C:\Users\User\Documents\GitHub\sofa\framework\sofa\core\collision\Intersection.inl
Warning 2453 warning C4661: ‘void sofa::component::mass::MeshMatrixMass<DataTypes,TMassType>::TetrahedronMassHandler::applyDestructionFunction(const sofa::helper::vector<T> &)’ : no suitable definition provided for explicit template instantiation request C:\Users\User\Documents\GitHub\sofa\modules\SofaMiscForceField\MeshMatrixMass.inl
********************************************************************************************Almost 70% of the warnings are “warning C4267” So kindly also give them a look if any or all of those need to be fixed.
Sorry, I know I’m asking a lot but I tried working with “SOFA 1.0.4”, it is not capable of what I want and it was released in 2010 if I’m not wrong, so it’s not up to date and it did feel like new plugins and components are much more advance. I really appreciate your help.
SaleemBlockedNo no, there is nothing to be sorry about.
On step7 there were 3 warnings(that same old This warning is for project developers. Use -Wno-dev to suppress it.)
CMake Warning (dev) at:
1. cmake/postProject.cmake:58
2. extlibs/miniFlowVR/CMakeLists.txt:41
3. extlibs/newmat/CMakeLists.txt:52The whole generation was full of warnings like
*********************************************************************************
CMake Warning (dev) in applications/tutorials/oneTetrahedron/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run “cmake –help-policy CMP0043” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
*********************************************************************************then I opened runsofa.sln and it started “parsing the files” then “scanning #inculdes for additional files” then “parsing included files” then “scanning #inculdes for additional files”… after several times of scanning and parsing files the solution is ready but I don’t know how to compile the solution, can you guide me about that too, please?
SaleemBlockedSorry but I don’t know how to check that variable.
When I configure sofa using cmake, nothing named QT_QTCORE_INCLUDE_DIR appears.I downloaded QT 4.8.5 from http://mirrorservice.org/sites/download.qt-project.org/archive/qt/4.8/4.8.5/
and used qt-win-opensource-4.8.5-mingw.exe file to install it. Also I downloaded qt4.8.5 (64-bit) binaries from sofa site and extracted them in source directory. Which QT headers do I need to install and where can I get them from?If you want me to start from scratch, just follow your instructions, download and install everything from wherever you say I can do that too(If you think that’ll be better than debugging everything over here)
SaleemBlockedThese files weren’t found during configuration
*************************************************************
Looking for Q_WS_X11
Looking for Q_WS_X11 – not found
Looking for Q_WS_WIN
Looking for Q_WS_WIN – found
Looking for Q_WS_QWS
Looking for Q_WS_QWS – not found
Looking for Q_WS_MAC
Looking for Q_WS_MAC – not found
*************************************************************
this warning was shown 3 times during configuration
***************************************************************
CMake Warning (dev) at cmake/postProject.cmake:58 (target_link_libraries):
Policy CMP0039 is not set: Utility targets may not have link dependencies.
Run “cmake –help-policy CMP0039” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.Utility target “eigen” should not be used as the target of a
target_link_libraries call.
Call Stack (most recent call first):
extlibs/eigen-3.2.1/CMakeLists.txt:11 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
*******************************************************************After that during generation, there were just this kinda warnings and then it showed generation done.
*****************************************************************
CMake Warning (dev) in applications/tutorials/oneTetrahedron/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run “cmake –help-policy CMP0043” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
********************************************************************There was no runSofa.exe generated.
Should I go forward for compilation and what are the steps for it? (No, I couldn’t launch the compilation before, there was no option for it)
I was just testing BlenderSOFA using it’s given examples that it might work better but when I tried to export that “marbles” example in it, the scene was totally different and the objects had different constraints and if i can recall correctly there was just one marble in the exported scene.
-
AuthorPosts