new Physx

Re: new Physx

Postby CybeREX » Thursday, 26.June 2014, 19:41

Thx guys! I use web interface to download zip file on github. Don't use any client or software for it =)
CybeREX
Demomaker
Demomaker
 
Posts: 154
Joined: Thursday, 03.April 2014, 07:44

Re: new Physx

Postby ikam » Thursday, 26.June 2014, 20:15

thanks. see my notes.

Skinnytorus wrote:Or even better: allow RigidBoby to have just one Collider input if a primitive collider is output (box, sphere, plane)


yes good idea, and easy, but need to inverse the operator inputs order because optional cannot be first, ok for that.
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby Skinnytorus » Thursday, 26.June 2014, 21:06

1)
yes good idea, and easy, but need to inverse the operator inputs order because optional cannot be first, ok for that.

Great, but I think I have a more radical proposal. See below.

2) I think I know what's wrong about Physx. Collider operator seems to be redundant. IMHO it might be cooler if it was combined with RigidBody operator thereby facilitating visual perception of the entire physx stack. What do you think? Too radical? ;)

3) Bug? I noticed that physx stack doesn't work for some time if built from scratch (the first showing of the PhysX operator causes no simulation - only some time after playing with params or even after reloading the saved file. Can't pin that down yet...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby ikam » Thursday, 26.June 2014, 21:20

2) you mean, no collider operators, but some colliding parameters inside rigidbody ? but it will limit collider to only one collider, interest of building stack colliders is to generate precise colliders around a complex mesh, for a simple mesh like cube or sphere it's ok, but imagine a really complex mesh, goal is to build bounding shapes with basic colliders geometry to match the overall shape of the complex mesh.

3) no simulation ? or crash or freeze ?

[edit] other idea, it is possible to create another rigidbody operator (simple collider body) that will take only a mesh on input and generate only one collider, a bit like the physx debris operator but without needed a chunked mesh and with a choice for the collider geometry instead of the hull by default for shards in debris.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby Skinnytorus » Thursday, 26.June 2014, 21:29

2) I think I see what you mean: more flexibility in building colliders. Fair enough - since mesh and mesh hull collision modes have limitations, it makes sense. So, OK... That was just an idea. ;)

3) No simulation. Dynamic rigid body won't move. No crash or freeze.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby CybeREX » Friday, 27.June 2014, 05:35

Maybe allow "E" xchange operators like transform and multiply from green to physX with some hotkey?
Like now we can "E" on green transform or multiply to yellow operators.
CybeREX
Demomaker
Demomaker
 
Posts: 154
Joined: Thursday, 03.April 2014, 07:44

Re: new Physx

Postby ikam » Friday, 27.June 2014, 06:40

yes very good idea.
you can now exchange with shift+e (exchange2) colliders <-> scene (yellow, because you can put other things that mesh, but you can also use 'e' and 'shift+e' to convert from mesh to scene, and scene to collider...)
thanks ;)

note : you need a full rebuild to get wire shortcut works correctly. (and colliders operators have changed, so create new ones)
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby Skinnytorus » Friday, 27.June 2014, 08:36

[edit] other idea, it is possible to create another rigidbody operator (simple collider body) that will take only a mesh on input and generate only one collider, a bit like the physx debris operator but without needed a chunked mesh and with a choice for the collider geometry instead of the hull by default for shards in debris.

Yep. A very cool idea! That would simplify stack thus making things much clearer. I would be happy if you could add such SimpleCollider (SimpleRB) operator. :D
Edit: SimpleRB seems a more adequate name.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby ikam » Friday, 27.June 2014, 09:05

in practice the large number of parameters (collider + rigidbody) give this operator not really friendly to use, so don't know if it is such a good idea. however as it is just a design issue, I prefer to work on more usefull features for now like joints and after particles. I'll see later for this potential operator...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby Skinnytorus » Friday, 27.June 2014, 09:31

OK, OK... This is all up to you. There's no rush at all. :)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby Skinnytorus » Friday, 27.June 2014, 20:42

Using physx Debris now crashes wz4. :(
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby ikam » Friday, 27.June 2014, 21:52

fixed.
warning, your sliced mesh have too many shards and generate too many physx actors in the same small area that collides at the same times (it dies perf), play with min and max size in sliceandice to reduce nb of debris
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby ikam » Saturday, 28.June 2014, 06:49

a little scene with most of elements workings in last update
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new Physx

Postby Skinnytorus » Saturday, 28.June 2014, 07:48

OK. I built a small scene from scratch. Physx functioning seems still unstable - occasionally simulation won't run on pressing F6 at all. After reopening the file several times, it may still work. Can't pin down the culprit. Physx stops to playback sim unexpectedly... Typically, sim doesn't work before saving the file for the first time. Once it stopped simulation after I pressed one of the Desc params in PhysX op. It's not clear what's the matter...
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new Physx

Postby Skinnytorus » Saturday, 28.June 2014, 07:57

And another weird thing: Scrubbing the timeline seems to add acceleration to physx kinematic bodies. An Interesting effect, but do we actually need it?
To repro try to scrub the timeline in my above example.
Edit: On the other hand I realize that physics is calculated in real time, and probably nothing can be done about it...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Development and contribution



Who is online

Users browsing this forum: No registered users and 1 guest

cron