A SERIOUS SURGICAL simulation!

Share with us how are you using the powerrrr of the force

Moderator: Alain

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Wed Mar 18, 2020 7:50 pm

Hi Julio,
How's it going about the elastic? :D
FYI, pay attention to the coronavirus, it could be almost anywhere nowadays.
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Julio Jerez » Wed Mar 18, 2020 8:22 pm

Oh I have not touch the engine since last we were here, there has been lot of stuff going the the place I work and doing relocation of people around. So doing stuff after has not been in my mind.

I see if I can do it this weekend.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Wed Mar 18, 2020 9:09 pm

Julio Jerez wrote:Oh I have not touch the engine since last we were here, there has been lot of stuff going the the place I work and doing relocation of people around. So doing stuff after has not been in my mind.

I see if I can do it this weekend.


Understand, that's all right. :D
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Fri Mar 27, 2020 8:53 pm

Hi Julio,

Would you have time this weekend to help me with the elastic of the rod? We are really close there. :D
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Julio Jerez » Wed Apr 01, 2020 12:29 pm

ok, I made the demo using custom spring/ damper

I reverted the changed that I made to the stock ball socket and implement the funtionality in teh
dFlexyPipeSpinner joint.
there is no reason to mak ethe base joint more complex for a unique funtionality when we can subclass the joint and make anyway we want. beside you knwo hwo to add that kind of funtionality.

anyway the funtion you should look at is
void ApplyElasticConeAction(const dMatrix& matrix0, const dMatrix& matrix1, dFloat timestep)

the spring/ damper and relaxation hard code tweaked until the look right. you can make them expose to the gui interface.
in general a spring damper onel has tow parameter, but here we have three: damper, spring and relaxation.
I will explain the theory of hwo the come about later today if you are interested in knwo why is this.

anyway of you sync and try teh demo tell me is this is better.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Thu Apr 02, 2020 7:56 pm

Thanks Julio, glad to see you are here, I will try that. :D
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Tue Apr 07, 2020 7:59 pm

Hi Julio,
What do you think of the physics engine market? The PhysX and Havok are open source now, how can the others survive such as Bullet, Project Chorono, IBM, SOFA etc?
Last edited by Charles on Sat Apr 11, 2020 2:58 am, edited 2 times in total.
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Dave Gravel » Sun Apr 12, 2020 3:52 pm

All physic engines are different but can do similar things it depend more on the tools and features and the users utilisation.
If the creators or contributors do it only for money maybe they is better to start to think differently or use existing solutions.

In my mind when you do a physic engine it is more by passion that a money historia. The goal is more about learning and search on how reproduce real life behaviors.
If a physic engine is make only for money it is at risk to have a lot of lack about real physics representation.

They is surely better to think to make money with the final result from what the engine can do and show.

In a physics engine the speed and the objects count is not always the best factor of success.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Sun Apr 12, 2020 8:11 pm

Dave Gravel wrote:In my mind when you do a physic engine it is more by passion that a money historia. The goal is more

Glad to here from people.

One is very lucky if he or she is motivated by passion. :D Could you share some more deep details about these industry?

Oh, a tech question, how can you keep a rod move inside another rod ensuring that , the inner one is never goes out of the outer one ?
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby Charles » Tue Apr 14, 2020 8:32 pm

Hi Julio,

I want one rod move inside the other one. The old method i use is that using colliders. But in real application environment, this method works not well.

So i use constrain method. Constrain the inner rod always move along the center line of the outer rod.
I add following code in the "SubmitConstrains" of "BallAndSocket" class.
https://drive.google.com/open?id=18N9rV ... mJHMNvNKfh

It works but with problems. Seems have conflicts with origin constrains:
https://youtu.be/dQCKrqC2BH4

Could you please provide any idea to solve this?
Charles
 
Posts: 43
Joined: Thu Jan 16, 2020 12:58 am

Re: A SERIOUS SURGICAL simulation!

Postby JoeJ » Thu Apr 16, 2020 12:34 pm

Charles wrote:Could you please provide any idea to solve this?


Quickly looking at your code i see you set velocities inside constraint callback.
This seems wrong, because the constraint solver solves for forces based on your set target acceleration, and velocities are calculated from that internally and then integrated.

So if you want to set velocities directly, you don't need a constraint for this.

There was a custom joint demo, where Julio made a rollercoaster with bodies constraint on a bezier spline, this might be a nice template for you. But if it is no longer activated in the demo sandbox, you could look up older versions of Newton to find it with some luck.

I did not follow this thread and are not sure what you try to do. (I'm confused if you try to constrain along a known fixed path, or to keep inside a lesser strictly defined shape of an human organ.)

I hope Julio is well and can reply himself...
User avatar
JoeJ
 
Posts: 1453
Joined: Tue Dec 21, 2010 6:18 pm

Re: A SERIOUS SURGICAL simulation!

Postby Julio Jerez » Thu Apr 23, 2020 10:48 am

Hi guys.
I was out of commission for a while because a very serious health problem. I even was on intensive care for four days. But I recovering now.
This was not the virus, but given how crazy thing are now it made far more dramatic.

Anyway, I see if I can read the thread and answer some questions.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: A SERIOUS SURGICAL simulation!

Postby JernejL » Thu Apr 23, 2020 12:38 pm

It is good to hear that you are feeling better! I wish you a good and speedy recovery!
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: A SERIOUS SURGICAL simulation!

Postby Slick » Thu Apr 23, 2020 3:55 pm

Good to hear that you are back. All the best.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: A SERIOUS SURGICAL simulation!

Postby Sweenie » Fri Apr 24, 2020 2:07 am

Welcome back Julio. :D Good to hear you're ok.
Sweenie
 
Posts: 498
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Previous

Return to User Gallery

Who is online

Users browsing this forum: No registered users and 12 guests