Coder Social home page Coder Social logo

mq2nav's Introduction

MQ2Nav

Build Status

NavMesh based navigation and pathfinding plugin for MacroQuest2. Navigation is based on the RecastNavigation library. The plugin also includes an ingame overlay to display navigation meshes as well as a debugging UI provided by imgui.

This project consists of two parts: The MQ2 Plugin (MQ2Nav.dll), and the Mesh Generator (MeshGenerator.exe)

The MeshGenerator tool is used for generating and editing the properties of navmeshes

Screenshots

  • See the wiki for some screenshots and features

Building

Requirements
  • Visual Studio 2019

MQ2Nav is a unique plugin. You do not want to add it to your solution. Instead you will build it in a separate solution apart from MacroQuest2.sln.

  1. Check out the sources into /MQ2Nav. MQ2Nav should be next to MQ2Main, etc.
  2. Open MacroQuest2.sln and build
  3. Open MQ2Nav\MQ2Nav.sln and select the configuration (most people will want Release)
  4. build MQ2Nav.dll: select the Win32 architecture and build
  5. build MeshGenerator.exe: select the x64 architecture and build

The first time you build, you'll download some NuGet packages.

The outputs will go into your Release (or Debug, depending on your selected configuration) folder.

Third Party Libraries

This plugin makes use of the following libraries:

Contributing

Contributions are welcome! Feel free to open pull requests or report issues.

TODO

Usage

See the wiki for more info

Notes

Loading into a zone with MQ2Nav loaded will generate a config file with a list of dynamic objects that can be consumed by MeshGenerator to add that extra geometry to the navmesh. These kinds of objects include some POK stones, for example. Doors are filtered out of the list, but there may be some false positives.

TODO List

Some things to do. Eventually move these to issues...

  • Split overlay code out into its own plugin
  • Better path planning
  • Switch to TileCache implementation (for dynamic obstacle support)
  • Render paths with MQ2Map
  • Improved door opening behavior
  • Some tiles generate incorrectly using MeshGenerator (duplicate or missing)

mq2nav's People

Contributors

brainiac avatar xowis avatar drwhomphd avatar dannuic avatar dewey2461 avatar jdowling avatar plure avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.