Commit Graph

68 Commits

Author SHA1 Message Date
Graham Pentheny
f529408d8d Removed more unused matrix parameters 2025-08-24 15:19:26 -04:00
Graham Pentheny
d9fc64af7d Removed more unused matrix parameters from UI drawing methods 2025-08-24 15:18:32 -04:00
Graham Pentheny
e64932116a rename handleUpdate to update 2025-08-24 15:12:22 -04:00
Graham Pentheny
3ecd326e11 Renamed handleRender and handleRenderOverlay to render and renderOverlay 2025-08-24 15:11:04 -04:00
Graham Pentheny
5fc4886780 Switch static array definition to extern to prevent unused variable warnings 2025-08-22 01:39:14 -04:00
Graham Pentheny
2e3977426e Renamed tool methods 2025-08-07 15:10:40 -04:00
Graham Pentheny
bfd963893e Split out mesh data into its own struct 2025-08-06 11:28:58 -04:00
Graham Pentheny
e6fd678ad8 Removed unnecessary accessors for input geometry mesh bounds 2025-08-06 11:12:13 -04:00
Graham Pentheny
6ebbb12684 renamed handleCommonSettings to drawCommonSettingsUI 2025-08-05 13:52:37 -04:00
Graham Pentheny
a899c3cb0f rename handleSettings to drawSettingsUI 2025-08-05 13:51:20 -04:00
Graham Pentheny
06ea1be2ae rename handleTools to drawToolsUI 2025-08-05 13:50:14 -04:00
Graham Pentheny
a97ce303b8 Rename handleToggle to onToggle 2025-08-05 13:49:20 -04:00
Graham Pentheny
67e4ddfe34 Rename handleDebugMode to drawDebugUI 2025-08-05 13:48:40 -04:00
Graham Pentheny
a68186daaf Rename handleClick to onClick 2025-08-05 13:47:46 -04:00
Graham Pentheny
af4e86f32f Rename handleStep to singleStep 2025-08-05 13:47:18 -04:00
Graham Pentheny
5cc17b8a39 rename handleMeshChanged to onMeshChanged 2025-08-05 13:46:30 -04:00
Graham Pentheny
a954d7e9f0 rename handleBuild to build 2025-08-05 13:46:01 -04:00
Graham Pentheny
13f61a5747 rename handleUpdate to update 2025-08-05 13:45:16 -04:00
Graham Pentheny
434299ec5b Rename handleRenderOverlay to renderOverlay 2025-08-05 13:44:15 -04:00
Graham Pentheny
efd1401b6b Rename handleRender to render 2025-08-05 13:40:47 -04:00
Graham Pentheny
3a9c6ab3b3 Added RightAlignText helper function 2025-08-05 13:36:33 -04:00
Graham Pentheny
9359ddbf20 Convert common settings sliders to full-width old-style sliders 2025-08-05 13:27:00 -04:00
Graham Pentheny
a94dee954d More code cleanup
# Conflicts:
#	RecastDemo/Include/InputGeom.h
#	RecastDemo/Include/SampleInterfaces.h
2025-07-19 11:53:01 -04:00
Graham Pentheny
95a7b45c32 More WIP DearImGUI conversion 2025-07-13 12:43:10 -04:00
Graham Pentheny
d534b4dc14 WIP DearImGui conversion 2025-07-12 15:02:54 -04:00
Graham Pentheny
6b906538dc WIP DearImGui conversion 2025-07-10 11:11:54 -04:00
Graham Pentheny
d1e513aeaf Remove MeshLoaderObj class. Replace with parseObjModel function 2025-07-07 00:54:57 -04:00
Graham Pentheny
f3d2e4828d Fixed mesh loading bugs introduced by code cleanup 2025-06-03 00:42:02 -04:00
Graham Pentheny
1d40e3b7ab Rename parameter names for Sample::handleClick 2025-06-02 23:34:20 -04:00
Graham Pentheny
8a6c7ed8e1 removing hungarian notation from sample class field names 2025-05-30 01:58:52 -04:00
Graham Pentheny
6a92cd97f6 clang-format Sample 2025-05-23 00:08:54 -04:00
Graham Pentheny
cc7243eeee Inline field initializers in Sample class 2025-05-23 00:06:29 -04:00
Graham Pentheny
e4e06406fd Fixed includes that were breaking the build. 2025-03-31 01:05:05 -04:00
Graham Pentheny
a1d3fe8086 convert SampleToolType to enum class 2025-03-31 01:02:50 -04:00
Graham Pentheny
ad6b1ec2c6 Some better names for fields in Sample class 2025-03-31 00:26:19 -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
Graham Pentheny
5111139558 Fixes for many low-severity compiler warnings (#576)
* Fixes for many low-severity compiler warnings

Mostly a lot of pedantic things like end-of-file newlines and commas on the last enum value.  However some fixes like the weak v-tables warnings fixes might help with code gen.  It's unclear if the linker is able to elide multiple copies of the same type's v-table in different translation units, (sometimes it can) but these fixes ensure we don't have to rely on it.
2022-11-11 21:03:03 -05: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
Jakob Botsch Nielsen
fb49ccf83a Change ground and road colors slightly (#256)
Ground color is changed back to the previous default color, and the road
color is changed to a dark shade of brown that is a bit easier to
differentiate with normal input geometry.
2017-02-04 15:19:06 +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
Jonathan Adamczewski
2bc06ef314 Change initializer list to match declaration order 2017-01-12 16:58:26 +00:00
Jonathan Adamczewski
12e8950bac Add toggles for heightfield filtering 2017-01-12 16:58:26 +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
Mikko Mononen
a89bb843d7 Added new method to partition heighfield
- added layer based heighfield partitioning
- the method is a bit slower than monotone partitioning, but does not
suffer from the long thin ploys
- the method partitions the heighfield into non-overlapping areas, but
does not try to resolve holes
- improved contour hole merging so that it can properly handle all
kinds of holes
- improved polygon triangulation to handle overlapping segments
- improved small and long polygon detail mesh generation
- updated samples to include all 3 partition methods and little
documentation to help to choose between them
2014-06-13 13:25:01 +03:00
Mikko Mononen
336409d037 Added tool states, Crowd can be let run in the BG while changing mesh, Added off-mesh connection support for tile cache, Fixed tile cache area generation, Added debugdraw for tile cache build steps, Migrated to Xcode4. 2012-02-04 21:27:07 +00:00
Mikko Mononen
1b6ca5a94a Fixed findStraightPath() to return partial results. Fixed main.cpp FPS throttling. Added initial support for path replanning in DetourCrowd. 2011-08-01 10:48:56 +00:00
Mikko Mononen
e84d563bfe Added boxmapped texturing to input mesh, helps visualize it better. Added polymesh generation for layered heighfields. 2011-03-06 15:40:33 +00:00
Mikko Mononen
2f47c29336 Added lean heighfield to store minimal, easy to compress representation of the heightfield. Added temporary obstacle demo. 2011-01-14 10:55:37 +00:00
Mikko Mononen
ccf401d3da - added finalizeSlicedFindPathPartial()
- added handleStep()/handleToggle() to samples
- changed how crowds are rendered
- added path topology optimization step
2010-11-07 10:56:48 +00:00
Mikko Mononen
b429ee7304 Fix for issue 127. 2010-10-10 10:43:32 +00:00