Ben Hymers
3eb9c808c1
Fix many cases of return values from ftell and fseek being ignored
...
These could lead to undefined behaviour if e.g. a negative value from ftell
was used to allocate memory.
Also store result of ftell in a long;
The result may previously have been truncated on some platforms
2016-03-15 08:02:06 +00:00
Jakob Botsch Nielsen
a31da928ba
Add settings storage to geometry sets
...
This adds the ability for geometry sets to store build settings that can
be automatically applied when they are loaded. This should allow sharing
of .gset files to demonstrate problems with certain settings on certain
files. It also allows people to diagnose problems more easily by being
able to dump their own triangle meshes and settings and load them in the
demo, with all of its visualization options. .gset files can be created
from the current mesh and settings by pressing the 9 key, which will
generate it in the same folder as the input mesh.
Also converts more of the demo to use STL.
2016-01-17 20:31:09 +01:00
grahamboree
0482a3104c
Fixed potential memory leak deserializing an InputGeom.
2014-12-24 15:35:36 -05:00
Jonathan Adamczewski
1d05c18c00
Used read length (and suppress warning)
2014-03-24 00:16:35 -07:00
Mikko Mononen
e6b1d141d2
Fixed warnings when compiling with -Wshadow.
2012-02-22 17:25:46 +00:00
Mikko Mononen
1be9de72d8
Detour version change! Added user ID per off-mesh connection. Fixed off-mesh connection draw flags after using off-mesh con tool.
2010-11-07 15:21:38 +00:00
Mikko Mononen
43a79f600f
Fix for earlier raycast speed up and another speedup.
2010-10-15 13:00:18 +00:00
Mikko Mononen
c83be9f214
Sped up input geom raycast
2010-10-15 12:19:44 +00:00
Mikko Mononen
5abddbf0cd
Refactored rcBuildContext to be more customization friendly, changed name to rcContext.
2010-08-24 17:53:38 +00:00
Mikko Mononen
55360f6ee5
Missing files for R197
2010-08-19 09:55:12 +00:00
Mikko Mononen
7d8fe75de1
The ugly and humble beginnings of path following and multi-agent navigation code.
2010-08-12 12:54:00 +00:00
Mikko Mononen
10b330ffb4
Moved common functions behind name decoration.
2010-04-14 18:45:46 +00:00
Mikko Mononen
9bb95ef45b
Issue 61: Everything compiles now without errors in warning level 4.
2010-04-13 09:39:33 +00:00
Mikko Mononen
5119b5cb16
API CHANGE! Better serialization support.
2010-03-25 12:24:40 +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
f839fb080a
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). Part 2
2010-02-01 14:58:30 +00:00
Mikko Mononen
1753297fd5
Humble beginnings of box volume too. Allow to save and restore GeomInput state.
2010-01-29 13:58:36 +00:00
Mikko Mononen
a56bf3ec2d
Off-Mesh connections across tile boundaries. Fixed getPolysAround(). Detour links per poly use linked list. Adjusted off-mesh connection tool.
2010-01-26 12:48:58 +00:00
Mikko Mononen
3abbfe006d
Changed Detour header var names more to verbose. Pass params as a struct to dtCreateNavMeshData. Named Off-mesh links to Off-mesh connections. Cleaned up Off-mesh connection code and samples. Added connection radius and direction to Off-mesh connections. Agent dimensions passed store in navmesh header.
2010-01-19 14:22:48 +00:00
Mikko Mononen
a81223f3bb
Update path iterator code to cope with off-mesh links. findStraightPath() returns now more info so that off-mesh links can de detected.
2010-01-13 21:25:07 +00:00
Mikko Mononen
4ad8dafa40
Off-Mesh link progress (not fully working).
2010-01-10 17:21:01 +00:00
Mikko Mononen
eb6b215d23
Changed the sample stuff to support extra link tool. Added simple tool to create eextra links (no detour support yet).
2010-01-05 14:26:40 +00:00