slapin Posted September 10, 2017 Share Posted September 10, 2017 Hi all!Does Torque3D integrate Detour library? How hard would be to add DetourCrowd plugin?Thanks! Quote Link to comment Share on other sites More sharing options...
LukasPJ Posted September 10, 2017 Share Posted September 10, 2017 Well it's included:https://github.com/GarageGames/Torque3D/tree/c83efa59e0a11fc15c68afaf106807643191ac6f/Engine/lib/recastBut 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/tree/c83efa59e0a11fc15c68afaf106807643191ac6f/Engine/source/navigationAnd navMesh.h includes various Detour libraries:https://github.com/GarageGames/Torque3D/blob/c83efa59e0a11fc15c68afaf106807643191ac6f/Engine/source/navigation/navMesh.h#L38-L41 Quote Link to comment Share on other sites More sharing options...
Duion Posted September 10, 2017 Share Posted September 10, 2017 My bots use it, so I guess it is working. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted September 10, 2017 Share Posted September 10, 2017 DetourCrowd will take a rewrite. Sourcecode for the navmesh system interop can be found https://github.com/GarageGames/Torque3D/tree/development/Engine/source/navigationhttps://github.com/GarageGames/Torque3D/blob/development/Engine/source/navigation/navMesh.cpp#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. Quote Link to comment Share on other sites More sharing options...
slapin Posted September 10, 2017 Author Share Posted September 10, 2017 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... Quote Link to comment Share on other sites More sharing options...
Duion Posted September 10, 2017 Share Posted September 10, 2017 When I add 100 bots sure the FPS go down a lot but far from slideshow. Quote Link to comment Share on other sites More sharing options...
slapin Posted September 11, 2017 Author Share Posted September 11, 2017 Dunno, I use i7 2600K + GTX660 on Linux. Quote Link to comment Share on other sites More sharing options...
Duion Posted September 11, 2017 Share Posted September 11, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.