406 Commits

Author SHA1 Message Date
jackpoz
77ebf64353 Fix rcMergePolyMeshes() ignoring portals of input meshes.
Copy the portals from input meshes on border to the output mesh.
2014-02-19 21:00:14 +01:00
Mikko Mononen
19e2d8dbe6 Fixed pos-over-poly case for finding nearest polygon 2014-02-16 11:27:45 +02:00
Mikko Mononen
6702143bc1 Fix for broken raycasts, changes how findNearestPoly works, slight API change
- test case supports raycasts
- changes how findNearestPoly works directly over polygons
- API change: findNearestPoly has additional parameter
2014-02-11 20:32:00 +02:00
Mikko Mononen
e117234170 Merge pull request #15 from axelrodR/master
bugfix: divPoly caused a stack overrun by producing an 8th point
2014-01-21 22:41:10 -08:00
axelrodR
adcd4f472e bugfix: divPoly could produce an 8th point after several calls because some of the old clipPoly code on which it was based
can add the same point twice consecutively (interpolation+adding the point).
Rather than raising the buffer I rewrote divPoly to avoid adding the same point twice.
2014-01-21 22:05:40 +02:00
Mikko Mononen
bc964f9994 Fix for U-turn path case 2014-01-21 19:15:08 +02:00
Mikko Mononen
cbab6a3825 Merge pull request #14 from axelrodR/master
Bugfix: A typo in dividePoly can cause stack overrun when several vertices happen to fall exactly on cell boundaries
2014-01-19 22:13:44 -08:00
axelrodR
f60468abcb Merge branch 'master' of https://github.com/memononen/recastnavigation
thrown away the fix I made to Recast/Source/RecastMeshDetail.cpp in favor of the upstream code.
2014-01-20 01:28:33 +02:00
axelrodR
4d657b9561 changed remarks 2014-01-20 00:55:40 +02:00
axelrodR
0c40165908 bugfix in RecastMeshDetail: in some rare dense cases the polygon simplification moves the polygon to a point where the center is very far from the region. For now we just fall back to the old code (flood-fill from the vertices) 2014-01-20 00:54:18 +02:00
axelrodR
b4204ba9a2 bugfix: minor typo caused stack overrun when several vertices happen to fall exactly on cell boundaries 2014-01-20 00:12:53 +02:00
Mikko Mononen
29db8cde1b Fix for detail mesh corner cases
- fix case where thing long poly center may not be on the region
2014-01-19 17:49:40 +02:00
Mikko Mononen
65da694f50 gitignore meshes starting with underscore 2014-01-19 16:47:47 +02:00
Mikko Mononen
ad7a13cbf3 Small formatting change to dividePoly() 2014-01-19 16:47:26 +02:00
Mikko Mononen
1b04dc9c80 Merge branch 'master' of https://github.com/axelrodR/recastnavigation into axelrodR-master 2014-01-19 15:32:47 +02:00
Mikko Mononen
6469a99f11 Fixed item type in PolyRefArray from int to dtPolyRef 2014-01-19 15:32:09 +02:00
axelrodR
98f2f02c2b Optimization of of the mesh detail construction: replaced the first of the 2 flood-fill algorithms (the one used to find the span corresponding to the center of the polygon) with a search of span at the center with the region matching the polygon. 2014-01-19 14:02:41 +02:00
axelrodR
e063ba6f5a Rasterization optimization: replaced clipping for each individual cell. the clipping line/plane between two adjacent cells is common so data from former cell can be reused if we keep track of the "remaining polygon". 2014-01-15 14:14:08 +02:00
axelrodR
8e4633c64b Performance optimizations:
1. Triangle rasterization: replaced loops over all the grid cells of the AABB with looping over the area of the triangle itself (i.e. bounds are set per row).
2. Region expansion: instead of sweeping through all the cells at each expandRegion() and finding the right level - sweep once per few levels and divide among several stacks. Left over are appended.
2014-01-08 12:02:00 +02:00
Mikko Mononen
b3d27bdb46 Fix for Issue #12
- fixed errors reported by valgrind
2014-01-02 21:03:05 +02:00
Mikko Mononen
64828488b1 Fixed docs of maxSimplificationError units. 2013-12-22 18:24:58 +02:00
Mikko Mononen
a08258d9dd Merge pull request #11 from flippy84/master
Update DetourNavMeshQuery.h
2013-12-22 08:02:47 -08:00
Mikko Mononen
6a7f5268ab Added define to compile Detour with 64bit dtPolyRefs 2013-12-22 18:01:06 +02:00
flippy84
3f8c0506fb Update DetourNavMeshQuery.h
Changed existing and existingSize parameters of finalizeSlicedFindPathPartial to @param[in]
2013-12-21 13:49:38 +01:00
Mikko Mononen
7308f91d80 Merge pull request #8 from grahamboree/unused_warnings
Fix for google code Issue 108
2013-10-16 09:38:48 -07:00
grahamboree
dc7e248de6 Removed header dependency between Detour and Recast due to addition of rcIgnoreUnused. Added dtIgnoreUnused. 2013-10-15 17:29:14 -04:00
grahamboree
683acbb11c Silenced double->float conversion warning. 2013-10-14 16:38:03 -04:00
grahamboree
35db2af872 Silenced additional unused parameter warning. 2013-10-14 16:36:49 -04:00
grahamboree
b493e7e6f6 Added rcIngoreUnused which can be called to ignore unused parameters. 2013-10-14 16:32:20 -04:00
Mikko Mononen
a04504f020 Merge pull request #7 from grahamboree/master
Added vim swap file exclusions to .gitignore
2013-10-14 12:56:50 -07:00
grahamboree
cca22c6082 Merge remote-tracking branch 'upstream/master' 2013-10-14 15:17:34 -04:00
Graham Pentheny
dbfed86b08 Added vim swap file exclusions to .gitignore 2013-10-14 13:41:17 -04:00
Cameron Hart
2d9033f3d4 Generate debug symbols in release builds and use fast floats. 2013-10-06 12:07:38 +11:00
Cameron Hart
e01b1ef3b6 Fixed bug where debug and release libs would have the same file path.
This broke make when switching between debug and release configs.
2013-10-06 10:45:10 +11:00
Cameron Hart
bbcb11fd14 Quick fix for Win32. Need to handle linking to SDL for x64 still. 2013-10-02 08:18:48 +10:00
Mikko Mononen
eec40309bc Updates for readme 2013-10-01 22:26:39 +02:00
Mikko Mononen
be4d6fc180 Updated build system to premake4 2013-10-01 19:53:18 +02:00
Cameron Hart
69d5548a9c Added Linux build exe to gitignore. 2013-09-29 15:06:10 +10:00
Cameron Hart
ee4fa30c73 Fixes for MSVC CMake build.
Look in the right place for SDL libs depending on arch.
Output exe's to RecastDemo/Bin, with output suffix so different
configs don't clash.
2013-09-29 14:38:44 +10:00
Mikko Mononen
15cd962073 Adjust result height for raycasting 2013-09-25 19:53:13 +02:00
Mikko Mononen
f6b11b18a9 Fix for google code Issue 209
- fixed clamping if indices used in getHeight()
2013-09-19 20:26:22 +02:00
Mikko Mononen
991c08f222 Fix for google code Issue 221
- fixed agent idx bound checks
2013-09-19 20:17:41 +02:00
Mikko Mononen
990b245179 Fixed google code Issue 228
- more defencive use of finNearestPoly() in dtCrowd
2013-09-17 21:29:51 +02:00
Mikko Mononen
c0d1efac27 Fixed google code Issue 232 2013-09-17 21:19:28 +02:00
Mikko Mononen
816c99aa3e Fixed google code Issue 233 2013-09-17 21:12:43 +02:00
Mikko Mononen
36a967ffcd Fixed google code Issue 234 2013-09-17 21:10:14 +02:00
Mikko Mononen
a8d1cba68c Fixed google code Issue 237
- check query status of moveAlongSurface() in path corridor
2013-09-17 21:07:41 +02:00
Mikko Mononen
5d3fd07074 Merge pull request #2 from mendsley/issue_ignored_qualifiers
Fix isolated cases that violate gcc's -Wignored-qualifiers
2013-09-16 13:51:15 -07:00
Mikko Mononen
00fcf075af Bitdeli badge 2013-09-16 21:29:57 +02:00
Mikko Mononen
8395e9fc8a Fixed typo 2013-09-16 21:15:35 +02:00