Bullet physics implementation and other stuff

   300164   385   4
User Avatar
Member
215 posts
Joined: July 2007
Offline
Test is done with old odforce vornoi script with h10.
i dont know about sim time…
WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
fsimerey: sorry, source code is only for me eyes


From linux I am really crazy :shock: , ok I release win and them I will see 8)
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
52 posts
Joined: July 2007
Offline
cybermax
fsimerey: sorry, source code is only for me eyes


From linux I am really crazy :shock: , ok I release win and them I will see 8)
for linux is much easier than windows.If your build is h11.xx.gcc4.3 , than u only need gcc 4.3 install with ur system.open ur bash shell, type “source houdini_setup_bash”, so all environment variable is set up. then type “hcustom bullet.C”

and I believe Linux64 is commonly used.
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
Release v0.5
In this moment only for win64 :?

Its only bullet_solver, without plugin for automatic generation constraints and without convex decomposition!!!
This plugins I release within few days.

Documentation is very basic, but example file should be work.
Try to create your own simulation (destruction) and let me know your ideas for the future development.

If houdini crash, please send me the scene with crash description.

Attachments:
bullet_free.zip (375.2 KB)

https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
110 posts
Joined:
Offline
cybermax
Release v0.5
In this moment only for win64 :?

Its only bullet_solver, without plugin for automatic generation constraints and without convex decomposition!!!
This plugins I release within few days.

Documentation is very basic, but example file should be work.
Try to create your own simulation (destruction) and let me know your ideas for the future development.

If houdini crash, please send me the scene with crash description.

What version of houdini 11 was this built for?

Usually custom operators work to the version that it was compiled for.
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
Houdini 11.0.446.9

Sorry I didnt know this. Next version will be for last production build.
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
215 posts
Joined: July 2007
Offline
nice work cybermax

some test i made on my laptop core 2 duo, found some model on internet

3200 parts….

very interesting for now and fast

Attachments:
bulletSOP_rnd.mov (3.7 MB)

WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
CeeGee: nice test, but I think that building fracture objects has intersection, becuse explode. If you using voronoi, you must set some “cut plane offset”!!!

Today(90%) I release plugin for automatic generating constraint and your building stay together :shock:
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
215 posts
Joined: July 2007
Offline
cybermax i know that problem, buidling was some model that i found on interent prefractured allready, now i am trying to find better model with texture to make another test… more parts
WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
215 posts
Joined: July 2007
Offline
one more test just difrent model, fracture with vornoi 2000parts total
core 2 duo, 4g ram - 10sek frame

Attachments:
bulletSOP_rnd2.mov (3.4 MB)

WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
New bullet v6.0 with multijoints.

I dont have time for writing manual for multijoints, but in example file is few scene which describe this coooool features.

And I made some changes in sop_bullet.dll so copy this library again!!!


CeeGee: I am waiting for new videos, Objects fracture is really natural with constraints


So make noise and lots of FUN !!!

Attachments:
bullet_free_project.zip (411.3 KB)

https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
215 posts
Joined: July 2007
Offline
Cybermax i made one example for gound, and if i dont use cut offset in vornoi set to bigger value, object break exploode.

i made also example with dop just to see.

If you can look this scene and tell me how i can solve this, i whant to do some cool test.

And for now is there any chance to have active group for bullet, maybe to active with color or box????

Thanks

Attachments:
bullet_ground.hipnc (294.3 KB)

WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
CeeGee: problem is in “add_x_z_noise”. If you bypass, The simulation is OK.

Problem is that this node does NOT create convex objects, but concave and you using convex collision hulls(read bullet documentation, how convex collision work). So mistake is on your side.

Problem is that you can not set concave collision hulls because this setting is working fine only for static object.

And convex decomposition node(which solved this problem) is WIP.

So my advice is go to the “foreach_properties” node and set colmargin to “-0.1”, what create little inaccuracy but its fine.

and finally You made many mistakes when you created constraints.


In Attachment is fixed scene.

Attachments:
bullet_ground_100.hipnc (298.1 KB)

https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
52 posts
Joined: July 2007
Offline
to work this great solver with h11' new dynamic fracture feature is the tricky!
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
horizon1231
to work this great solver with h11' new dynamic fracture feature is the tricky!

Ha Ha, I work on it every second while 2days.

I am preparing v0.9 which include:

- new simpler GUI (faster setup)
- quick loading objects on first frame
- animated parameters (mass, friction, …)
- my own bacis convex decomposition
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
horizon1231
to work this great solver with h11' new dynamic fracture feature is the tricky!

Ha Ha, I work on it every second while 2days.

I am preparing v0.9 which include:

- new simpler GUI (faster setup)
- quick loading objects on first frame
- animated parameters (mass, friction, …)
- my own bacis convex decomposition

great news….Is a chance to have a Linux GCC 4.2 64 bits compilation (mac would be the best but you haven't mac…) ?
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
fsimerey: After I complete v0.9 I try it. I want to support Linux community .


Next Features:
- No “Only Triangles”, you can create Poly3,4,5,6,….
- The concave body doesnt support( because I have convex-decomp, Its wasted code )
- little bit faster update object within simulation
- all plugins not change your geometry data, so your attribute( UV, color, …) stay in scene from start to end graph.
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
215 posts
Joined: July 2007
Offline
great updates cybermax…
nice stuff…
WEB
http://www.igorfx.com/ [igorfx.com]

Vimeo
https://vimeo.com/igorzanic [vimeo.com]
User Avatar
Member
255 posts
Joined: Aug. 2009
Offline
CeeGee
great updates cybermax…
nice stuff…
thx, check example file and shoot some next video


v0.9 is here!!!
in exam file are only two new scene, but I made a lot of stuff, so If you open old scene you will see that there is about 60% less nodes and result is same :shock: , so In this version My Goal was easier GUI for you.

On documentation I will work.

If you had some errors or question, just ask.

Attachments:
bullet_free_project.zip (278.9 KB)

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.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)
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
  • Quick Links