All Projects → ppiastucki → Recast4j

ppiastucki / Recast4j

Licence: zlib
Java Port of Recast & Detour navigation mesh toolset

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Recast4j

04 battletank
An open-world head-to-head tank fight with simple AI, terrain, and advanced control system in Unreal 4. (ref: BT_URC) http://gdev.tv/urcgithub
Stars: ✭ 172 (+45.76%)
Mutual labels:  pathfinding, game-development
Astar
A fast 2D path finding library based on the A* algorithm. Works with both grids and graphs. Supports any .NET variant that supports .NETStandard 2.0 or higher. This library has no external dependencies. The library is licensed under the MIT license.
Stars: ✭ 215 (+82.2%)
Mutual labels:  pathfinding, game-development
09 Zombierunner Original
First person shooter with Unity terrain and AI pathfinding (http://gdev.tv/cudgithub)
Stars: ✭ 64 (-45.76%)
Mutual labels:  pathfinding, game-development
Dijkstra
Fastest golang Dijkstra path finder
Stars: ✭ 107 (-9.32%)
Mutual labels:  pathfinding
Dotgame
.GAME is a show hosted on Channel 9 that is dedicated to game development with a primary focus on .NET technology. Each episode will focus on tutorials, cover helpful tips/tricks, or feature an interview with an industry expert.
Stars: ✭ 107 (-9.32%)
Mutual labels:  game-development
Self Driving Vehicle
Simulation of self-driving vehicles in Unity. This is also an implementation of the Hybrid A* pathfinding algorithm which is useful if you are interested in pathfinding for vehicles.
Stars: ✭ 112 (-5.08%)
Mutual labels:  pathfinding
Unity 2d Pathfinding
A very simple 2d tile-based pathfinding for unity, with penalty supported
Stars: ✭ 117 (-0.85%)
Mutual labels:  pathfinding
Gdx Vfx
LibGDX post-processing visual effects
Stars: ✭ 105 (-11.02%)
Mutual labels:  game-development
Pico8 Api
Unofficial PICO-8 API with a lovely design ! ::
Stars: ✭ 115 (-2.54%)
Mutual labels:  game-development
Flutter Galaxy Game
2D Flutter Galaxy Game
Stars: ✭ 111 (-5.93%)
Mutual labels:  game-development
Entitas 2d Roguelike
Rewrite of the Unity 2D Roguelike example using the Entitas Entity Component System
Stars: ✭ 110 (-6.78%)
Mutual labels:  game-development
Any Angle Pathfinding
A collection of algorithms used for any-angle pathfinding with visualisations.
Stars: ✭ 107 (-9.32%)
Mutual labels:  pathfinding
Tove2d
Animated vector graphics for LÖVE.
Stars: ✭ 113 (-4.24%)
Mutual labels:  game-development
Awesome Gamedev
A collection of free software and free culture resources for making amazing games. (mirror)
Stars: ✭ 1,571 (+1231.36%)
Mutual labels:  game-development
Enu
A Logo-like DSL for Godot, implemented in Nim
Stars: ✭ 117 (-0.85%)
Mutual labels:  game-development
Sh3redux
SILENT HILL 3 Engine Remake in OpenGL and C++
Stars: ✭ 105 (-11.02%)
Mutual labels:  game-development
Edyn
Edyn is a real-time physics engine organized as an ECS.
Stars: ✭ 113 (-4.24%)
Mutual labels:  game-development
Awesome Opengl
A curated list of awesome OpenGL libraries, debuggers and resources.
Stars: ✭ 1,577 (+1236.44%)
Mutual labels:  game-development
Reflexityai
Provide a basic framework to build an Utility IA in Unity using the xNode editor of Siccity
Stars: ✭ 109 (-7.63%)
Mutual labels:  game-development
Lumberyard
Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Stars: ✭ 1,785 (+1412.71%)
Mutual labels:  game-development

Recast4j

Build Status

Java Port of Recast and Detour navigation mesh toolset.

screenshot of a navmesh baked with the sample program

Recast

Recast is state of the art navigation mesh construction toolset for games.

  • It is automatic, which means that you can throw any level geometry at it and you will get robust mesh out
  • It is fast which means swift turnaround times for level designers
  • It is open source so it comes with full source and you can customize it to your heart's content.

The Recast process starts with constructing a voxel mold from a level geometry and then casting a navigation mesh over it. The process consists of three steps, building the voxel mold, partitioning the mold into simple regions, peeling off the regions as simple polygons.

  1. The voxel mold is built from the input triangle mesh by rasterizing the triangles into a multi-layer heightfield. Some simple filters are then applied to the mold to prune out locations where the character would not be able to move.
  2. The walkable areas described by the mold are divided into simple overlayed 2D regions. The resulting regions have only one non-overlapping contour, which simplifies the final step of the process tremendously.
  3. The navigation polygons are peeled off from the regions by first tracing the boundaries and then simplifying them. The resulting polygons are finally converted to convex polygons which makes them perfect for pathfinding and spatial reasoning about the level.

Detour

Recast is accompanied with Detour, path-finding and spatial reasoning toolkit. You can use any navigation mesh with Detour, but of course the data generated with Recast fits perfectly.

Detour offers simple static navigation mesh which is suitable for many simple cases, as well as tiled navigation mesh which allows you to plug in and out pieces of the mesh. The tiled mesh allows you to create systems where you stream new navigation data in and out as the player progresses the level, or you may regenerate tiles as the world changes.

More information about Recast and Detour

Java Version

How To Use

The API is kept as close to https://github.com/recastnavigation/recastnavigation as possible so most of the information and hints apply to recast4j too. You can find a lot of examples in tests e.g.

Recast Demo

Java Version Enhancements

Recast

  • out-of-the-box support for multi-threaded builds

Detour-tile-cache

  • more compact file format due to reduced data structures and better compression with LZ4

Extras

Maven

Releases

Recast4j releases are available in Maven Central Repository. The project includes 4 artifacts:

<dependency>
	<groupId>org.recast4j</groupId>
	<artifactId>recast</artifactId>
	<version>1.2.0</version>
</dependency>
<dependency>
	<groupId>org.recast4j</groupId>
	<artifactId>detour</artifactId>
	<version>1.2.0</version>
</dependency>
<dependency>
	<groupId>org.recast4j</groupId>
	<artifactId>detour-crowd</artifactId>
	<version>1.2.0</version>
</dependency>
<dependency>
	<groupId>org.recast4j</groupId>
	<artifactId>detour-tile-cache</artifactId>
	<version>1.2.0</version>
</dependency>
<dependency>
	<groupId>org.recast4j</groupId>
	<artifactId>detour-extras</artifactId>
	<version>1.2.0</version>
</dependency>

Snapshots

Recast4j snapshots are currently available in Sonatype snapshots repository.

<repositories>
	<repository>
		<id>snapshots-repo</id>
		<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		<releases>
			<enabled>false</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

License

Recast & Detour is licensed under ZLib license, see License.txt for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].