Kawe Mazidjatari
c116479c37
Fix naveditor compiler error
...
Use the global variant instead, as the std variant requires a locale.
2023-04-09 23:52:25 +02:00
Kawe Mazidjatari
a79ed2f52f
Fix bug in navmesh tool caused by transforming string
...
Value passed into 'std::tolower' must be unsigned.
2023-04-03 14:50:30 +02:00
Kawe Mazidjatari
5551909ac7
Explicitly cast to types to suppress warnings in navmesh tool
2023-04-03 14:49:18 +02:00
Kawe Mazidjatari
e9cbe34a95
Remove dead code from navmesh tool
2023-04-03 14:48:38 +02:00
Kawe Mazidjatari
9a1343b231
Fix symbol shadowing warnings in navmesh tool
2023-04-03 14:47:41 +02:00
Kawe Mazidjatari
f9c5986245
Upgrade Dear ImGui to 1.89.4
...
Upgrade and light restructure of ImGui directory.
2023-03-29 00:19:19 +02:00
Kawe Mazidjatari
d2369af46e
NavEditor: Move "Save" button below "Load"
...
Minor UX improvements.
2023-03-25 12:24:09 +01:00
Kawe Mazidjatari
dd48093c23
Add experimental switch header
...
This header allows us to properly switch between experimental/finished STD implementations without having to adjust the source code (required for compiling on older versions of the Visual Studio 2017 compiler).
2023-03-20 00:17:29 +01:00
Kawe Mazidjatari
c06f9cfe60
Fix naveditor compiler warning
...
Use correct format specifier for size types, and return a value in 'sdl_init'.
2023-02-26 19:35:33 +01:00
Kawe Mazidjatari
491e28f9a8
Initialize 'NavMeshPruneTool::m_hitPos'
2023-02-21 18:03:24 +01:00
Kawe Mazidjatari
0e14ea6592
Increase common settings max values
...
Have to be increased due to the scale of the maps.
2023-02-21 18:02:51 +01:00
Kawe Mazidjatari
4e396728c3
Fix typos
2023-02-21 17:56:56 +01:00
Kawe Mazidjatari
89978d795e
Add missing include guards
...
Last few files which do not have include guards.
2023-02-12 19:50:45 +01:00
Kawe Mazidjatari
1e24e34519
Remove unnecessary memset
2023-01-25 22:15:27 +01:00
Kawe Mazidjatari
306211a1b4
Fix naveditor log when invoked using commandline
...
Log must be reset pre-build, and dump post-build in order for logging to work.
2023-01-25 22:14:46 +01:00
Kawe Mazidjatari
1e76624c9b
Increase viewport scroll speed for the recast editor
...
Due to the large scale of the Apex maps, and the modifications done to the library, this had to be increased significantly.
2022-11-25 00:08:10 +01:00
Kawe Mazidjatari
f0f6a096b8
Final header files rename from sample -> editor
2022-10-22 22:55:22 +02:00
Kawe Mazidjatari
6ef89a19ba
Final sample -> editor rename
2022-10-22 22:51:39 +02:00
Kawe Mazidjatari
9289356794
Rename "Sample" enumerants to "Editor"
2022-10-22 22:51:39 +02:00
Kawe Mazidjatari
61ff7e5079
Remane NavMesh "Sample" files to "Editor"
2022-10-22 22:51:39 +02:00
Kawe Mazidjatari
28299b4c59
NavMesh rename from "Sample" to "Editor"
...
This commit only contains a rename, the logic has not been modified.
Renamed everything named "Sample" to "Editor" as its no longer a sample.
2022-10-22 22:34:47 +02:00
Kawe Mazidjatari
56dd3802f8
Recast & Detour XZY left overs to XYZ
...
Height should be set on the z axis.
2022-10-22 21:47:07 +02:00
Kawe Mazidjatari
e92b5d1300
General cleanup
...
Use c++ methods, remove unnecessary casts, unnecessary use of auto, etc..
2022-08-09 15:19:12 +02:00
Kawe Mazidjatari
418bd2d679
Improve NavMesh poly blue tone color
2022-08-04 15:41:45 +02:00
Kawe Mazidjatari
05f2888716
fix error log
2022-07-28 15:51:34 +02:00
Kawe Mazidjatari
9eeaebaf6a
Even More XZY->XYZ changes
2022-07-28 15:45:02 +02:00
Kawe Mazidjatari
cbaf10478a
More XZY->XYZ changes
...
* dtIntersectSegSeg2D: Calculate over zy-plane instead.
* dtOverlapPolyPoly2D: Calculate over zy-plane instead.
* dtNavMeshQuery::findRandomPoint: z = h.
* dtNavMeshQuery::raycast: Invert hit normals.
* Update all comments to use xyz vector instead (previously xzy (xz-plane z-height)).
2022-07-28 14:24:29 +02:00
Kawe Mazidjatari
c7d61e8b77
Switch neighborhood deltas
2022-07-28 12:49:42 +02:00
Kawe Mazidjatari
0f8f1a4860
Increase smooth path step size and slop
...
This increases the size of the path lines (this had to be increased due to the scale of the maps in this engine, recast was originally not scaled for it).
2022-07-28 12:34:20 +02:00
Kawe Mazidjatari
4ada4cef72
NavMeshTesterTool XZY->XYZ
2022-07-28 12:14:35 +02:00
Kawe Mazidjatari
34076142ba
More XZY->XYZ changes
2022-07-28 03:21:20 +02:00
Kawe Mazidjatari
ce28ea2691
Even more offMeshConnections debug draw fixes
2022-07-28 02:07:13 +02:00
Kawe Mazidjatari
8af97beb57
Fix offMeshConnections debug draw
2022-07-28 01:48:17 +02:00
Kawe Mazidjatari
6a1b6c580a
Increase debug arow size
2022-07-28 00:52:12 +02:00
Kawe Mazidjatari
37637bc56a
Properly fix cylinder, circle and arrow debug draw for Recast.
2022-07-28 00:41:47 +02:00
Kawe Mazidjatari
f0eecc80ff
Flip vertex order for convex hull properly
2022-07-27 21:13:36 +02:00
Kawe Mazidjatari
87a42efd72
Uncomment and fix crowd anticipate turn debug draw
...
Moved internal functions to their own translation unit.
2022-07-27 21:05:27 +02:00
Kawe Mazidjatari
88a29f2770
Improve crowd speed/acceleration/braking
...
Changed to values comparable to game.
Added sliders for acceleration and speed.
2022-07-27 20:08:17 +02:00
Kawe Mazidjatari
03698a4a5f
Fix DetourCrowd
...
XZY -> XYZ.
Crowd agents now traverse over the poly surfaces properly.
2022-07-27 17:48:51 +02:00
Kawe Mazidjatari
6d4b2ea7ef
Increase convex volume alpha and height
2022-07-27 15:12:47 +02:00
Kawe Mazidjatari
677d993403
Draw ground convex points red as well
2022-07-27 14:56:11 +02:00
Kawe Mazidjatari
369c92e358
Improve convex volume creation/drawing
...
* Improved ground convex visibility (changed to red as this acts as deletion).
* Default m_areaType to SAMPLE_POLYAREA_GROUND.
2022-07-27 14:44:42 +02:00
Kawe Mazidjatari
92ecdcf698
Increase default height for NavMesh convex hulls
2022-07-27 10:53:57 +02:00
Kawe Mazidjatari
8757d0a43f
NavMesh convex volume drawing somewhat working
2022-07-27 03:50:11 +02:00
Kawe Mazidjatari
ba97662c99
Recast editor cleanup and improvements
...
* Removed Samples button and dialogue.
* Removed SoloMesh.
* Removed TempObstacles.
* Limit 'Verts Per Poly' to 6 (DT_VERTS_PER_POLYGON).
* Moved hulldef constant and handler to TileMesh.
* Set m_tileSize based on hull (small = 32, med_short = 32, medium = 32, large = 64, extra_large = 64).
2022-07-26 15:45:40 +02:00
Kawe Mazidjatari
112a530d5a
Improve Recast & Detour and NavMesh generation
...
* Add missing dtQueryFilter field (some flag used in the engine but not sure yet what it does).
* Set tile->polysEnd and tile->offMeshConsEnd to end of polys and offMeshCons array pointer (if ever needed).
* Set camera perspective to 75 (previous 50).
* Improve theme.
* Lowered the climb height for all hulls (this improves NavMesh generation around low obstacles, previously it would create a poly connecting the ground on the side with the surface of the object around where it connects with the ground, causing AI to take this route instead and kind of 'glitch' onto the surface).
2022-07-26 14:23:02 +02:00
Kawe Mazidjatari
5b9b0164b1
Remove 'bool* is_tf2' from class 'Sample'
2022-07-20 16:44:28 +02:00
Kawe Mazidjatari
4f0e4eae04
Remove extraneous fclose call
2022-07-20 15:22:11 +02:00
Kawe Mazidjatari
7481cefd78
Ability to load navmeshes from game directory
...
Load navmeshes from '..\\maps\\navmesh\\' first before attempting to load from root.
2022-07-20 15:21:21 +02:00
Kawe Mazidjatari
68440361cc
Rename IMeshLoader members
2022-07-20 15:18:34 +02:00