Graham Pentheny
d534b4dc14
WIP DearImGui conversion
2025-07-12 15:02:54 -04:00
Graham Pentheny
d1e513aeaf
Remove MeshLoaderObj class. Replace with parseObjModel function
2025-07-07 00:54:57 -04:00
Graham Pentheny
c1674f805d
Replace file-loading MeshLoaderObj::load function with call to tryReadFile
...
to consolidate file IO
2025-06-29 21:50:27 -04:00
Graham Pentheny
d10e82d0c9
Rename rcChunkyTriMesh to just ChunkyTriMesh since it's a class that's part of the demo project, not Recast itself.
2025-06-02 01:22:24 -04:00
Graham Pentheny
67421b6091
cleanup mesh loading
2025-05-30 01:37:05 -04:00
Graham Pentheny
4a505c0afe
clang-format InputGeom.cpp
2025-05-19 23:26:19 -04:00
Graham Pentheny
20e3afbb03
Use vectors and methods in ChunkyTriMesh to simplify things
2025-05-05 15:34:18 -04:00
Graham Pentheny
9d90e162e1
Clean up InputGeometry
2025-04-09 01:15:49 -04:00
Graham Pentheny
b43c82c808
Removed _USE_MATH_DEFINES directive ( #596 )
...
Since none of the `M_` prefixed constants are used anywhere in the code, this is unnecessary. It's also Windows-specific, so these non-standard defines shouldn't be used anyway.
Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-170
2022-12-29 15:09:01 -05:00
Kyeongho Park
24230e8e8d
Bugfix/chunkytrimesh subdivide maxnodes ( #451 )
...
* minor redundant: dir
* bugfix: ChunkyTriMesh nodes array: out of bounds
2020-11-17 11:46:52 +01:00
Aurelien Rainone
4988ecbaf0
RecastDemo: add Load & Save buttons for SoloMesh Sample, and fix warnings ( #258 )
...
* Implement saveAll loadAll for Sample_SoloMesh
- Solo mesh sample is loaded and saved as a tiled mesh containing
an unique tile, so as to remain compatible with tiled mesh
- navmesh is saved to/loaded from `solo_navmesh.bin` binary file
- add and connect the corresponding 'Save/Load' GUI elements
* Fix `implit-fallthrough` gcc warnings
On linux with gcc 7.2.0+ and all warnings treated as errors,
implicit fallthroughs in case statements are considered as errors.
If the comment just below the next `case` or `default` matches
various strings, one of which is `falls through` the fallthrough
is then considered explicit.
2018-01-05 12:38:53 +01:00
Domenico Albani
03eb2f92f3
Make RecastDemo colors more meaningful ( #254 )
...
Implement a SampleDebugDraw which will color area types meaningfully, for example
color water as blue, grass as green and so on.
2017-02-02 20:27:43 +01:00
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