Bullet's SoftBody physics example

Share your helpful Urho3D code snippets, samples and tutorials here.

Re: Bullet's SoftBody physics example

PostPosted by George » 22 Sep 2015, 06:55

Hi,
This looks good. Works great.

I found a few issues.
Loading Jack.mdl will cause an error.
Mushroom disappear at numeric angles.
Large performance reduction when loading teapot.

disjointed vertices edges as vertices deform.
Regards
User avatar
George
Some active
Some active
 
Posts: 54
Joined: 02 Aug 2015, 05:49

Re: Bullet's SoftBody physics example

PostPosted by Lumak » 23 Sep 2015, 17:20

I will have to merge my changes to codemonkey's branch eventually, but my changes won't fix:
-performance issue with high poly count like teapot
-issues with skinned mesh, which also results in performance hit.

It can however, load jack.mdl, and fix disjointed verts or duplicate verts.
Frankly, while softbody dynamics look cool, I'm not sure if it's even applicable for games due to performance reasons.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Bullet's SoftBody physics example

PostPosted by suncore » 06 Aug 2016, 16:18

Hi! I'm trying to get started on softbody physics, but it's difficult since I'm not really familiar with the codebase (Urho3d).
So what happened to this work? Is there a branch on github I can look at?

-- Henrik
User avatar
suncore
New user
New user
 
Posts: 2
Joined: 06 Aug 2016, 16:11

Re: Bullet's SoftBody physics example

PostPosted by Lumak » 06 Aug 2016, 16:54

I was using codingmonkey's repo, https://github.com/MonkeyFirst/Urho3D/tree/sbtest
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Bullet's SoftBody physics example

PostPosted by suncore » 06 Aug 2016, 17:00

Thanks, but that link does not work any more.
User avatar
suncore
New user
New user
 
Posts: 2
Joined: 06 Aug 2016, 16:11

Re: Bullet's SoftBody physics example

PostPosted by codingmonkey » 07 Aug 2016, 07:19

>I was using codingmonkey's
)) but i remember when I start to figure out with this SB I'm use your code and mike's code and ogre's forum :D

>Thanks, but that link does not work any more.
Yes, probably i also dot have it even on my hdd (
but all code changes (sources) are in this theme - hided by code/spoilers tag.
I also remember last bug with my SB: i have huge offset between visual SB representation and it physic representation.
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Bullet's SoftBody physics example

PostPosted by Miegamicis » 10 Aug 2016, 12:19

This looks interesting. Will give it a go :)
User avatar
Miegamicis
New user
New user
 
Posts: 14
Joined: 19 Apr 2016, 10:19

Re: Bullet's SoftBody physics example

PostPosted by sabotage3d » 21 Oct 2016, 20:35

Hey guys have anyone tried the tetra based solids?
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: Bullet's SoftBody physics example

PostPosted by Sir Nate » 22 Oct 2016, 04:08

Just wondering if the "Remove Doubles" operator in Blender has a flaw that makes it not work for this case (I think it may have been added in a newer version of Blender, so perhaps that is why you wrote the mesh pruning algorithm)? (You just have to select the whole mesh in edit mode, and then Ctrl-V (or Mesh>Vertices) and select Remove Doubles, or just press space and type "Remove Doubles")
User avatar
Sir Nate
Some active
Some active
 
Posts: 64
Joined: 30 Apr 2015, 20:12

Re: Bullet's SoftBody physics example

PostPosted by Lumak » 23 Oct 2016, 14:41

Sir Nate wrote:Just wondering if the "Remove Doubles" operator in Blender has a flaw that makes it not work for this case (I think it may have been added in a newer version of Blender, so perhaps that is why you wrote the mesh pruning algorithm)? (You just have to select the whole mesh in edit mode, and then Ctrl-V (or Mesh>Vertices) and select Remove Doubles, or just press space and type "Remove Doubles")


That's not the problem. You can have a perfect model w/o any duplicate verts in a 3D modeling tool and you'll still get this problem.
The duplicate verts problem occurs whenever you apply a UV map to a 3D model (but not a 2D model).

Look at this image:
Image

The vertex V1 in the pic depicts having a UV pair, and this occurs if a vertex happen to be mapped to a uv point on the edge of the uv map. And when the entire column/row of verts become mapped to uv points on the edge, you'll get what looks like a tearing problem in softbody.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

PreviousNext

Return to Code Exchange

Who is online

Users browsing this forum: No registered users and 0 guests