Mikko Mononen
a87947cc3f
fix for Issue 98
2010-07-11 10:18:44 +00:00
Mikko Mononen
5070ca9fc4
Fix for Issue 95:rcIntArray still using new/delete
2010-07-10 08:51:35 +00:00
Mikko Mononen
377315641e
Updated win32 project.
...
Fixed allocation of rcRegions, use placement new per array object, not for the whole array.
2010-07-09 13:25:28 +00:00
Mikko Mononen
cd3a351f40
Custom allocator for Recast.
2010-07-09 12:55:14 +00:00
Mikko Mononen
fb369a2efd
Removed math.h dependancy from Recast.h, moved sqrtf to Recast.cpp.
2010-07-09 08:45:58 +00:00
Mikko Mononen
5d91c09e00
fix for Issue 94:rcBuildContours fails when small area is marked near tile edge
2010-07-08 14:38:53 +00:00
Mikko Mononen
fca9709196
fix for issue 85:Make getSpanCount accessible
2010-07-08 11:41:08 +00:00
Mikko Mononen
4ac6b64050
use breath first search when finding detail data so that we don't expand to wrong storey.
2010-05-28 06:31:43 +00:00
Mikko Mononen
11386cedcf
Added option to tesselate edges between areas. Fixed bug in orphan contour merging, which could create overlapping contour.
2010-05-26 09:20:57 +00:00
Mikko Mononen
87800abc28
Fix for Issue 73, Handle zero-height spans.
2010-05-05 13:15:40 +00:00
Mikko Mononen
4c1a122a91
Fixed bug where clicks went through GUI. Added a couple of consts into detail mesh code.
2010-04-20 07:35:40 +00:00
Mikko Mononen
10b330ffb4
Moved common functions behind name decoration.
2010-04-14 18:45:46 +00:00
Mikko Mononen
193f44a388
Issue 61: take 2, missing files.
2010-04-13 10:58:18 +00:00
Mikko Mononen
5119b5cb16
API CHANGE! Better serialization support.
2010-03-25 12:24:40 +00:00
Mikko Mononen
9cd943264e
fixes for Issue 56: Fairly minor bugs picked up by static analysis tool
2010-03-18 08:53:45 +00:00
Mikko Mononen
8291ceace2
Fix for Issue 54: Bug when a non-shared vertex is marked for remove
2010-03-18 08:42:45 +00:00
Mikko Mononen
d9d9fa85a5
Added more bits to compact neighbour indices, moved region id to rcCompactSpan to save memory.
2010-03-05 09:10:13 +00:00
Mikko Mononen
ababd28f59
Issue 51: crash when poly nvp is change to smaller after first build.
2010-03-02 10:05:04 +00:00
Mikko Mononen
af0d41f5ff
Compact heighfield dump and debug project to load it.
2010-03-01 08:22:50 +00:00
Mikko Mononen
dbf95000e6
fix for issues 48 and 49.
2010-02-20 17:53:04 +00:00
Mikko Mononen
095c9a544f
Changed null to 0, fix compilation on linux.
2010-02-16 08:49:32 +00:00
Mikko Mononen
ce338df394
More robust handling of detail mesh height values.
2010-02-12 14:41:42 +00:00
Mikko Mononen
dd5377a503
Moved rcAddSpan to public API.
2010-02-12 13:19:47 +00:00
Mikko Mononen
668484eb14
Better handling of contour problems.
2010-02-12 10:25:28 +00:00
Mikko Mononen
a715e9a5f7
Area progress: Pass area type and ability flags to recast. Convex Area tool. Mark chf with convex volumes. Better visualization of volumes.
2010-02-05 16:15:49 +00:00
Mikko Mononen
fa66b9a9f3
Compiles with -Wall (except stb_truetype)
2010-02-05 07:32:30 +00:00
Mikko Mononen
be4a807242
fix for Issue 40: RecastMesh.cpp : removeVertex bad indexing
2010-02-05 06:50:08 +00:00
Mikko Mononen
9035462e86
rcBuildRegionsMonotone works again too.
2010-02-01 14:57:26 +00:00
Mikko Mononen
9b881bde8c
NOTE: Changed the generation procedure, see samples! Erode walkable area before area is generated. Allow to mark areas on chf. Generate regions following areas (+ many fixes here and there to make it alwasy work).
2010-02-01 14:08:06 +00:00
Mikko Mononen
9bf68216a3
Better handling of low obstacles.
2010-01-29 11:37:14 +00:00
Mikko Mononen
5651b7c5dd
Changed many 0xffff:s to named consts.
2010-01-27 14:52:18 +00:00
Mikko Mononen
44b6c54c57
Fixed too large memory alloc in rcBuildPolyMesh.
2010-01-10 17:16:33 +00:00
Mikko Mononen
a73da5e966
Moved all debug draw utilities to DebugUtils folder. Added recast data to .obj dump functions.
2009-12-09 15:45:10 +00:00
Mikko Mononen
121807b601
Fixed Issue 27: RecastMeshDetail.cpp:buildPolyDetail: Unused parameter: reg
2009-12-07 09:53:41 +00:00
Mikko Mononen
8d146ade90
Fixed Issue 26: RecastMeshDetail.cpp: updateLeftFace: t parameter is unused.
2009-12-07 09:52:07 +00:00
Mikko Mononen
113ba0aaae
Fox for Issue 25: RecastMeshDetail.cpp:buildPolyDetail: Uneeded line of code.
2009-12-07 09:48:23 +00:00
Mikko Mononen
6a00efb936
Compile fixes for VC. Update VC project.
2009-12-03 16:28:27 +00:00
Mikko Mononen
d142754ad5
Fixed crash in rcBuildPolyMesh() when one of the contours had zero vertices.
2009-11-25 15:21:49 +00:00
Mikko Mononen
f77a7511ed
Detail mesh is calculated in tile local coordinates for better floating point accuracy.
2009-11-23 08:44:01 +00:00
Mikko Mononen
7b7f0e6fb9
Removed ununsed dialtion code from detail mesh getHeightData().
2009-11-23 08:34:39 +00:00
Mikko Mononen
753ebdc319
Issue 20: removed unused variable from mergePolys() function.
2009-11-20 13:47:15 +00:00
Mikko Mononen
b93bd10fa4
Fixed a couple of bounds checks in detail mesh height query.
2009-11-20 08:15:09 +00:00
Mikko Mononen
480063229d
Removed rcMarkReachableSpans(), added RC_LEDGE flag, made rcFilterLedgeSpans() to add RC_LEDGE flags instead of removing RC_WALKABLE flag. Voxel debugdraw colors voxels based on flags. Added debug draw interface.
2009-11-15 15:30:54 +00:00
Mikko Mononen
14d1c97f1a
Added RC_NOT_CONNECTED which is used to check the return value of rcGetCon()
2009-11-15 11:24:20 +00:00
Mikko Mononen
f29a51b612
Changed SDL_Opengl.h to SDL_opengl.h
2009-11-15 10:32:05 +00:00
Mikko Mononen
2ef0db50c0
Issue 16 in recastnavigation: RecastContour.ccp : removeDegenerateSegments() : Contour vertex list left in invalid state.
2009-11-09 17:57:19 +00:00
Mikko Mononen
ecb01d3441
Added functions to rasterize index mesh based in ushort indices and function which is equivalent to ogl drawArrays.
2009-10-23 13:41:48 +00:00
Mikko Mononen
aa62a15161
Rewrote the delaunay triangulation code of the detail mesh generation. Fixed some cases where detail mesh height was bad.
2009-10-23 13:02:10 +00:00
Mikko Mononen
6e8581400a
Fixed bug where removeVertex() would crash with certain meshes because vflags array was not adjusted properly.
2009-10-04 16:12:37 +00:00
Mikko Mononen
ed73b46308
- Changed gotos as cleanup mechanism to a scoped delete template.
...
- Removed unnecessary ptr casts to ints to allow to compile on 64bits systems.
- Added custom and portable qsort_r.
- Use gettimeofday() as performance timer on unix/bsd/osx
- Moved variables from rcCompactSpan to separate arrays.
2009-09-28 09:54:37 +00:00