Detour?

There are no stupid questions, just stupid answers.
8 posts Page 1 of 1
slapin
Posts: 24
Joined: Thu Aug 10, 2017 12:56 am
by slapin » Sun Sep 10, 2017 3:19 am
Hi all!

Does Torque3D integrate Detour library? How hard would be to add DetourCrowd plugin?
Thanks!
LukasPJ
Site Admin
Posts: 358
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Sun Sep 10, 2017 12:39 pm
Well it's included:
https://github.com/GarageGames/Torque3D ... lib/recast

But I don't know how much of it is actually integrated. At least I know Detour has been included at some point. The navigation code can be found here:

https://github.com/GarageGames/Torque3D ... navigation

And navMesh.h includes various Detour libraries:
https://github.com/GarageGames/Torque3D ... .h#L38-L41
Duion
Posts: 844
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Sun Sep 10, 2017 3:33 pm
My bots use it, so I guess it is working.
Azaezel
Posts: 385
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Sun Sep 10, 2017 9:04 pm
DetourCrowd will take a rewrite. Sourcecode for the navmesh system interop can be found https://github.com/GarageGames/Torque3D ... navigation

https://github.com/GarageGames/Torque3D ... L859-L1097 for example.

Done a bit of looking on and off, and unless I'm misreading the system, at minimum we'll be needing to eyeball converting it to use the detourtileCache example vs the detourTile one to play nice with agents, then hook up the agent management protocols to aiPlayer/cook up a source side aiManager.
slapin
Posts: 24
Joined: Thu Aug 10, 2017 12:56 am
by slapin » Mon Sep 11, 2017 12:45 am
Well it is definitely worth it as with Urho3D 100 physical characters spawned did give about 10-20 FPS and with 100 agents via DetourCrowd was quite well with 100+ FPS on the same machine. Need to learn source code first though.

Currently with Torque3D 100 aiplayers heavily drop FPS to slideshow level so I wonder...
Duion
Posts: 844
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon Sep 11, 2017 1:36 am
When I add 100 bots sure the FPS go down a lot but far from slideshow.
slapin
Posts: 24
Joined: Thu Aug 10, 2017 12:56 am
by slapin » Mon Sep 11, 2017 2:02 am
Dunno, I use i7 2600K + GTX660 on Linux.
Duion
Posts: 844
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon Sep 11, 2017 9:08 am
Linux gives some additional performance loss for some reason.
Especially if there are too many decals, which happens soon with 100 bots, so try disabling decals.
8 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest