how could i know if it run correctly with linux server no graphic

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

how could i know if it run correctly with linux server no graphic

Post by parapoohda » Fri May 31, 2019 6:37 am

I want to use bepuphysic for my game server which i couldn't view screen for now. I want to test it before use it. I want to asked where to console log when collision. Or there are other way to know it work correctly on dotnet core sdk in my server.
Thank you for answer.
And sorry fo my bad English. It is not my mother tongue

Norbo
Site Admin
Posts: 4661
Joined: Tue Jul 04, 2006 4:45 am

Re: how could i know if it run correctly with linux server no graphic

Post by Norbo » Fri May 31, 2019 11:49 pm

One option would be to just pipe the pose of all bodies over to a remote visualization process. For the sake of testing, efficiency wouldn't matter, and you could get a very accurate idea of what's going on.

You could also just monitor the pose of a few objects in a simulation with Console.WriteLines to see if they're reasonable. There are contact callbacks (see DemoNarrowPhaseCallbacks for a simple example implementation used in the demos) that you could write from too. Doing so in production would be a really bad idea due to the performance sensitivity of those callbacks, of course, but for simple testing it would be fine.

For what it's worth, my test runs on linux have gone fine. It passed the FountainStressTestDemo determinism test which covers a great deal of functionality.

parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

Re: how could i know if it run correctly with linux server no graphic

Post by parapoohda » Sat Jun 01, 2019 3:30 am

thank you for the answer i will try writeline out.

parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

Re: how could i know if it run correctly with linux server no graphic

Post by parapoohda » Tue Jun 04, 2019 4:40 am

i want to know if i writeline in function allow contact generation with parameter CollidableReference a and b with demo planet. Would it writeline when collision. Thank you.

Norbo
Site Admin
Posts: 4661
Joined: Tue Jul 04, 2006 4:45 am

Re: how could i know if it run correctly with linux server no graphic

Post by Norbo » Tue Jun 04, 2019 10:22 pm

AllowContactGeneration(CollidableReference a, CollidableReference b) runs for every overlapping AABB pair found by the broad phase. It tells the narrow phase which pairs to actually work on. If you want information about actual collisions (and their associated contacts), you would need to use the ConfigureContactManifold functions. There's one for convex collisions, nonconvex collisions, and convex subpairs associated with nonconvex collisions.

parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

Re: how could i know if it run correctly with linux server no graphic

Post by parapoohda » Wed Jun 05, 2019 4:10 am

thank you very much

parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

Re: how could i know if it run correctly with linux server no graphic

Post by parapoohda » Wed Jun 05, 2019 6:53 am

If I want to test run on docker do I have to remove graphic. Do I have to do the same with linux server.Thank you. I'm very appreciate your help.

Norbo
Site Admin
Posts: 4661
Joined: Tue Jul 04, 2006 4:45 am

Re: how could i know if it run correctly with linux server no graphic

Post by Norbo » Wed Jun 05, 2019 9:25 pm

I'm not sure I understand the question. Physics and graphics are completely independent; the physics do not depend on any graphical libraries or concepts. If you want to use the physics in a serverlike use case, then you probably would not include any graphics.

If you're asking specifically about the demos application, the renderer requires DX11 support so it would not run on linux. I'm not familiar enough with the subtleties of docker and GPU-using applications to say whether the demos on Windows in a docker container would work well.

parapoohda
Posts: 6
Joined: Fri May 31, 2019 6:30 am

Re: how could i know if it run correctly with linux server no graphic

Post by parapoohda » Wed Jun 05, 2019 11:53 pm

Thank you. I want to test demo in docker but i fail to do so. I try to remove graphic from demo because I think problem is it can't render graphic in docker.

Norbo
Site Admin
Posts: 4661
Joined: Tue Jul 04, 2006 4:45 am

Re: how could i know if it run correctly with linux server no graphic

Post by Norbo » Thu Jun 06, 2019 10:43 pm

The SimpleSelfContainedDemo might be helpful for that purpose- it strips away all demos infrastructure, leaving a single file that can run a simulation. You could take that and place it into a console application (plus the library dependencies, of course) and it would work without any graphical dependencies.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests