Bullet physics implementation and other stuff

   300957   385   4
User Avatar
Member
279 posts
Joined: Dec. 2009
Offline
cybermax
v0.92 features:
- calculate mass from volume and density
- accurate calculation of centroid
- warning message when object size is under 0.1 (bullet dont like it)

I'm sure you have a lot of stuffs to do, but do you compile a linux version before v1.0 ?
User Avatar
Member
1 posts
Joined: Sept. 2010
Offline
fsimerey
cybermax
v0.92 features:
- calculate mass from volume and density
- accurate calculation of centroid
- warning message when object size is under 0.1 (bullet dont like it)

I'm sure you have a lot of stuffs to do, but do you compile a linux version before v1.0 ?

or just release the source so we can compile and learn from it

this is AWESOME btw! keep it up!
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
I promise, next version will be for linux(gcc4.2)

Add next features:
- merge properties and merge geometry for better organize network scene


Anyway,
I discovered that the bullet has the support of thread, so I am testing and reached twice speed :shock: ( I have 4core CPU). But even so, I can not overload CPU above 60precent .
But Its faster, so COOOOL.

PS: testing some OpenCL demos and Its smoooth
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
279 posts
Joined: Dec. 2009
Offline
cybermax
I promise, next version will be for linux(gcc4.2)

cybermax
PS: testing some OpenCL demos and Its smoooth

Great news !
User Avatar
Member
1769 posts
Joined: Dec. 2006
Offline
Awesome Milan!

For which version is this compiled for? latest production build?

Forget, found it in the thread.
daniel bukovec | senior fx td | weta digital
qLib -- http://qlab.github.io/qLib/ [qlab.github.io]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
v0.95 !!!

features:
- little new workflow (faster, versatility)
- collision matrix (object collide only with object with same group - one object can by in more group)
- kinematic body (with negative mass, and you can animate, so its possible morf dynamic->static->kinematic, etc…)
- new constraint node, which create only one constraint between objects
- merging example

I am still testing some cloth(soft body) and fluid stuff so Its not in this version.
And Sorry I still testing linux version, so this version is win64 only and H11.0.446.9(maybe older)

Documentation is WIP, so test example file and upload your sim.


In next few weeks I have to work on my bachelor work and I want to attend this challenge: http://forums.odforce.net/index.php?/topic/11709-odforce-challenge-2010/ [forums.odforce.net]

Attachments:
bullet_free_project.zip (352.3 KB)

https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
334 posts
Joined: July 2007
Offline
WOW!!!!

This is so awsome! Getting insane fast simulations here! Why isnt this in Houdini by default???
Greate work! Hope you will continue to make updates

Thanks!
www.gimpville.no
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
Ok, I try destroying large huge building(20 000 objects, 200 000constraints) and I discover few critic bugs, but mainly Generation structures(and constraints) at first frame is really very slow and during simulation I get times like this:
stepBullet: 20s
updateGeometry: 25s
so update objects transformation is slow too, Bullet is faster :shock:

So I decided for drastic changes, so next version will be 5x faster(at a guess) and less memory needed. But I must create all new GUI, but speed will be awesome!!!

I write this for you, who plane large destruction. Dont use actual plugin, wait for next version.
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
303 posts
Joined: May 2007
Offline
thank you cybermax!waitting for next version

would you please compile a new version as H11.0.469 or latter?i found there are some bugs in H11.0.446,
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Staff
4170 posts
Joined: Sept. 2007
Offline
Exciting to see all of this; cant wait for the linux version to try out your tools. Hope you can use build 499 or later as well! Thanks!
I'm o.d.d.
User Avatar
Member
52 posts
Joined: July 2007
Offline
cybermax
Ok, I try destroying large huge building(20 000 objects, 200 000constraints) and I discover few critic bugs, but mainly Generation structures(and constraints) at first frame is really very slow and during simulation I get times like this:
stepBullet: 20s
updateGeometry: 25s
so update objects transformation is slow too, Bullet is faster :shock:

So I decided for drastic changes, so next version will be 5x faster(at a guess) and less memory needed. But I must create all new GUI, but speed will be awesome!!!

I write this for you, who plane large destruction. Dont use actual plugin, wait for next version.

have a look at this thread,u might build this with H10, and compare speed
http://forums.odforce.net/index.php?/topic/11750-houdini-11-vs-houdini-9-5/ [forums.odforce.net]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
luoqiulin: ok, 469.

goldleaf: I using only production build, because daily includes bug(s).

horizon1231: thx, but my problem is in looping over groups(points, prims), maybe H11 is slower, but this is I can not change.
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
19 posts
Joined: March 2010
Offline
Looking forward to seeing a compiled version for Linux! groups are a problem. primitive attribute is the way to go. good luck on the changes!
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
larsvdb: I am working on linux version, I had some memory issue, which I solved, but now (I dont know why) I have some compiler issue(some -fPIC error). So dont afraid I work on this.



New version test:
ok, I create some optimalisation and create new Sort node, which sorting objects according primitive group. And speed is awesome.

I test on scene with 5700 boxes

Old version: convert node(33s) + properties node(62s) = 95s
New version: sort node(42s) + properties(11s) = 53s

so It is 179% speed,

BUT If you know that your objects are sorted(I copied boxes, so It is), you dont need sort node, so the final time is only 11s and It is 863% speed :shock: :shock: :shock:

Now I optimize multijoints…

edit PS: actually Its 6seconds :? not 11s and because I dont use point groups, It need less memory :!:
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
ok, I get a lot of question PM from you and I was hungry so finally I made some multijoints optimize and here is result:

I generate 133 760constraint(toler distance algoritm) on 5700boxes .

Old version: multijoins(30s) = 30s
New version: multijoins(1s) = 1s

3 000% increase speed. I love it.

now its time for solver …
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
Ok, everything is almost done. And its very very fast. I add few new examples.

I know only about one bug with kinematic body, which I fix soon.

So today v0.97 will be release!!!

PS: I go to sleep
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
v0.97

- compile only for H11.0.469(last production build) and Win64
- fix some bugs
- faster and clean code


If you have question or find a bug. Let me know.

Your videos are welcome !!!

Attachments:
bullet_free_project.zip (356.6 KB)

https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
1769 posts
Joined: Dec. 2006
Offline
This is totally awesome Milan!

Speed is really increased today.
Does the solver generate some attributes like impact, i only miss that.
daniel bukovec | senior fx td | weta digital
qLib -- http://qlab.github.io/qLib/ [qlab.github.io]
User Avatar
Member
303 posts
Joined: May 2007
Offline
cybermax

!! very very fantasic
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
thx


buki: not yet, but I have plane for many attribute for output. Sim driven by sim(like a dust or shattering many windows etc…)
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
  • Quick Links