Search found 122 matches

by mobeen
Tue Jan 12, 2016 6:29 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: [SOLVED] Position Based Elastic Rods implementation

Hi Korzen, As expected this was the reason. You are not checking for division by zero in line 88 to 92 in file PositionBasedElasticRod.cpp. These lines float p2pm_mag = p2pm.norm(); p2pm *= 1.0f / p2pm_mag; lambda = (p2pm_mag - ghostEdgeRestLength) / wSum * edgeKs; should be float p2pm_mag = p2pm.no...
by mobeen
Mon Jan 11, 2016 1:50 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: [SOLVED] Position Based Elastic Rods implementation

Korzen, I think there is at least one place in your code where u r not testing for division by zero which might be the reason the solution diverges. Let me finish my implementation and then I will let u know.
by mobeen
Mon Jan 11, 2016 9:29 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: [SOLVED] Position Based Elastic Rods implementation

Check the readMe file in Demos/ElasticRodDemo: "IMPORTANT: The OpenMP is not supported in this release! By default, the CMake generated ElasticRodDemo project has OpenMP turned on. Deactivate it to run the demo, otherwise to rod will explode." Sorry for the inconvenience Yep sorry I didn'...
by mobeen
Mon Jan 11, 2016 7:46 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: [SOLVED] Position Based Elastic Rods implementation

Hi korzen, Sorry to revive this thread again but I think there are still some problems with the current implementation. The solution diverges in the release build and apart from the first two nodes, the rest of nodes disappear to infinity. The debug build works fine but is awefully slow. I am runnin...
by mobeen
Fri Jan 08, 2016 5:47 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: Position Based Elastic Rods implementation

Korzen, Just for completeness since you have already found the problem, could you let us know what was wrong? or perhaps highlight how PB elastic rods are implemented for the rest of us? It would be a good idea placing your source code on github (if possible) as a reference for others who might fall...
by mobeen
Wed Jan 06, 2016 2:09 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: [SOLVED] Position Based Elastic Rods implementation
Replies: 32
Views: 65077

Re: Position Based Elastic Rods implementation

The zip files contain only the readMe file, similarly as the GitHub repo. Anyways, I have managed to solve the problem. Will update the source files soon. . Really sorry I had not seen the zip contents. I really don't understand why people create git repos but don't add sources? Whats the point of ...
by mobeen
Wed Dec 30, 2015 11:33 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: How to use bullet in my own elastic body simulation
Replies: 1
Views: 5110

Re: How to use bullet in my own elastic body simulation

There is a comprehensive demo with the bullet sdk which has a number of examples of using deformables. Check those first and if you cant get it working, post your issues here.
by mobeen
Sat Jun 06, 2015 7:43 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Regarding strain based dynamics [DONE]
Replies: 16
Views: 32086

Re: Regarding strain based dynamics [DONE]

Hi johnson, Thanks for the interest. I have a lot of things to change in the next release of OpenCloth. I am currently looking into how to accomplish rudimentary collision and self collision detection using ozcollide library. Once this part is done, I will update the OpenCloth github repository. I n...
by mobeen
Tue May 26, 2015 4:09 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: how can i seam cloth piece use bullet
Replies: 2
Views: 7382

Re: how can i seam cloth piece use bullet

For adding seams, you should insert additional distance constraints (with a high stiffness) at the adjacent edges of the two cloth pieces. This will ensure that the two cloth pieces stick together.
by mobeen
Thu May 14, 2015 8:31 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Regarding strain based dynamics [DONE]
Replies: 16
Views: 32086

Re: Regarding strain based dynamics [DONE]

Some more update. I have also managed to implement Barycentric mapping on top of strain based dynamics to apply the tetrahedral deformation to the surface mesh.
sbd_mapped.png
sbd_mapped.png (24.47 KiB) Viewed 24670 times
sbd_mapped_2.png
sbd_mapped_2.png (49.35 KiB) Viewed 24670 times
by mobeen
Wed May 13, 2015 5:11 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Regarding strain based dynamics [DONE]
Replies: 16
Views: 32086

Re: Regarding strain based dynamics [DONE]

That's nice korzen303. Keep me informed with ur developments.
by mobeen
Wed May 13, 2015 1:51 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Regarding strain based dynamics [DONE]
Replies: 16
Views: 32086

Re: Regarding strain based dynamics [DONE]

OK thanks to help by JP, I was able to implement strain based dynamics both for triangular and tetrahedral objects. Here is the snapshot of using strain based dynamics with tetrahedral mesh sbd_tetra.png And here is the snapshot of using strain based dynamics with triangular mesh sbd_cloth.png I wil...