Commit Graph
60 Commits
Author SHA1 Message Date
Domenico Albani ef3ea40f7a Add more camera movement key bindings (#259)
Q/E and Page up/page down to move vertically.
Arrow keys in addition to WASD to move normally.
2017-02-06 02:09:49 +01:00
Ben Hymers f44e151556 Fix crashes and odd behaviour in RecastDemo on geometry load failure
Would crash if selecting a test with geometry then a test with missing geometry
Would use the previous sample type if selecting a sample that doesn't exist in the list
Two of the test cases had an incorrect sample name
2016-02-22 22:24:48 +00:00
Ben Hymers aac9ae6e11 Remove SlideShow, and stb_image 2016-02-17 13:14:34 +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
Graham Pentheny 66c6060e95 Fix a bunch of compiler warnings
* Removed some unused vars
* Fixed some signed/unsigned comparison mismatch warnings
* Cast some int's to size_t when appropriate
* Removed some redundant casts
* silenced warnings about implicit conversions that lose precision
* changed origMousePos to an array of ints to match mousePos
2016-01-10 22:41:38 -05:00
Graham Pentheny e5f9f21b30 Removed FileList class and replaced it with std::vector<std::string> in RecastDemo 2016-01-07 18:34:18 -05:00
Graham Pentheny 512ec1fdfd Unit testing framework.
* Tests live in a "Tests" folder alongside the other components.  Inside the "Tests" folder, tests are split into folders by the component they test.  For example, the example unit test of "rcVdot" (which is implmemented in Recast/Recast.h) lives in "Tests/Recast/Tests_Recast.h".
* Uses the Catch testing framework
* One example test of "rcVdot"
* Tests are run on Travis and Appveyor after every build.  Failing unit tests will fail the build in both case.
* Added instructions on running unit tests to the readme
2016-01-06 18:22:39 -05:00
Graham Pentheny 2eb3abfb60 Updated RecastDemo to SDL2
* Renamed a bunch of variables in main.cpp to be more descriptive.
* Removed unnecessary SDLMain.h and SDLMain.m OSX objective-c class as well as the plist, strings, xib and icns files, which are not needed.
* included cstdio in imguiRenderGL since SDL2 doesn't do it for us.
* Updated premake5 script to support SDL2 and to set the debug directory, as well as copy the SDL2.dll to the target directory on Windows.
* Updated readme with more descriptive, platform-specific demo project setup instructions
* Updated appveyor build script to build vs2015 as well.
* Updated Travis build script to build SDL2 from source, because they use Ubuntu 12.04 which doesn't have the libsdl2-dev package in its repositories.
2016-01-04 18:56:51 -05:00
Jonathan Adamczewski c98c31f33b Constrain the window's aspect ratio 2014-03-23 23:53:57 -07: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 e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +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 76444aa747 - Updated win32 project
- Fixed VC compile errors
2011-03-25 10:13:27 +00:00
Mikko Mononen 9f2390e196 Added mipmaps to the grid texture. Removed obsolete SoloMeshTiled sample. 2011-03-06 16:00:04 +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 d1dde08d35 Added delay to make sure the app does not hog all CPU. 2011-02-25 08:24:30 +00:00
Mikko Mononen e70a4664c9 Added multisampling. Moved obstacle avoidance to DetourCrowd. 2011-01-29 15:39:42 +00:00
Mikko Mononen 4a81213b3b Refactored and cleaned up CrowdManager and moved it to DetourCrowd. Update tool UI layout, context sensitive help is now rendered as overlay. 2011-01-29 15:28:28 +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 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 c701f583da Fix for Issue 128 2010-10-10 10:14:52 +00:00
Mikko Mononen f5bb64a375 Fix for Issue 123. 2010-09-17 07:25:19 +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 5f7ac70cba win32 compile and project fixes, made tool UI more clear 2010-08-17 18:30:58 +00:00
Mikko Mononen cbc47f4ddf Fix for Issue 99:Separate Detour mesh queries in to a different class from mesh data 2010-08-17 15:10:32 +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 49f2b03cd8 Presentation mode tweaks. Fix for Issue 74: added FileIO interface, Fix for Issue 76: added pure virtual destructor for duDebugDraw. 2010-05-07 07:14:42 +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 07c5750e8a A couple of changes for Issue 52. 2010-04-15 07:46:50 +00:00
Mikko Mononen b21e854c9a Display total build in GUI for demo purposes. 2010-04-14 18:22:35 +00:00
Mikko Mononen 7f11a61066 Updated VC project, fixed W4 warnings in slideshow stuff. 2010-04-13 13:18:40 +00:00
Mikko Mononen d6d51b73ee Slideshow stuff for demo purposes. 2010-04-13 11:11:22 +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 a988697cc1 fixes for Issue 56: Fairly minor bugs picked up by static analysis tool, redux 2010-03-18 08:57:16 +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 359f15b11c Moved pointers from dtMeshHeader to dtMeshTile, allows mixing build/use 32/64 bit builds. Bumbed Detour version number. 2010-03-02 09:24:24 +00:00
Mikko Mononen af0d41f5ff Compact heighfield dump and debug project to load it. 2010-03-01 08:22:50 +00:00
Mikko Mononen 5ade5a3052 More robust path iteration code. 2010-02-12 13:04:55 +00:00
Mikko Mononen fa66b9a9f3 Compiles with -Wall (except stb_truetype) 2010-02-05 07:32: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 bd2e60a008 Humble beginnings of test cases. 2010-01-28 15:04:01 +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 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
Mikko Mononen 4934dc2065 Refactored sample code. Separated navmesh test code to a tool class. 2009-12-30 08:49:46 +00:00
Mikko Mononen e4239a3bdf Removed stat and tile navmeshes. Fixed examples. 2009-12-04 07:27:53 +00:00
Mikko Mononen a47e3436c9 Changed static navmesh samples to use new navmesh. Renamed Stat samples to Solo. Added moveAlongPathCorridor() to dtNavMesh. 2009-12-03 13:16:25 +00:00