[General] NavMesh Creation and Pathfinding menu

User Tag List

Results 1 to 6 of 6
  1. #1
    streppel's Avatar Active Member
    Reputation
    78
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [General] NavMesh Creation and Pathfinding

    Hello all,

    so i had some trouble myself to get some decent navigation in my bot, so i decided to release my Mapper and the Navigation Class i use.
    The Navigation Part itself is completely based on C#: A-Star is born - CodeProject® , where i did only change the Arcs and Nodes attribute of the Graph class to be a List<T> instead an ArrayList to allow parallel processing.

    The class will create a Point-Based Nav-Mesh,meaning that it will try to add the points you pass to it to a list of points, if there are no others in the specified range.
    after creating this file(NodeList file),you can create a mapfile(basically just a Graph-object that is serialized to a file).
    there also is a demo included aswell as the source of the navigation library i used.

    If you have any suggestions,please let me know.
    And ofc i know,there is recast and detour,but even tho it's a general approach on getting a decent navigation, there are situations,where you don't have the map files(at least not as easily as in wow), or for a small project where you just want some navigation that is better than waypoints,more flexible etc,but wouldn't want to write a wrapper for recast+detour or whatever reason there might be.
    For me the first one was the case and this was my solution to get around it and still have a good navigation

    Streppel

    PS:
    Virus Total Scan ofc, and if you still don't trust me,take the source and compile it yourself
    VirusTotal - Free Online Virus, Malware and URL Scanner

    Edit:
    Ok here are 2 Pictures to show you how the process works in general
    the points all have the same distance to the next one. as you run with your char ingame and pass those points to the class, it will add them(the red dot would be your char ofc)
    [General] NavMesh Creation and Pathfinding-navmesh-mapping-gif

    Now as you are done mapping,the CreateMapFromNodeFile method will connect all nodes around the current node in the nodes list, that are within the specified range. as distance in R³ is sqrt((x0-x1)²+(y0-y1)²+(z0-z1)²), and the distance when mapping was 2 yards(default values here,you can use your own of course) the distance would be sqrt(2²+2²+2²),what is equal to 3*sqrt(2),what i rounded to 3.5 just for lazyness reasons.
    wo the method will look for available nodes in a distance of 3.5 yards and,if there is one,connect them both.
    [General] NavMesh Creation and Pathfinding-navmesh-creation-gif

    If you have any questions,just let me know. i know the animations could be better,but as i'm a software developer i really can't do it any better
    Attached Files Attached Files
    Last edited by streppel; 12-18-2011 at 10:47 AM.

    [General] NavMesh Creation and Pathfinding
  2. Thanks yellow1982 (1 members gave Thanks to streppel for this useful post)
  3. #2
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea why this has 43 downloads but no replies. Very nice work, and thanks for releasing it to the public. I'll give you +rep

  4. #3
    ex0a's Avatar Member
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't have rep to give, but if I did, I would. Thanks!

  5. #4
    SkullFury's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just began implementing A* into my navigation and this is a lot of help. Thank you!

  6. #5
    Require's Avatar Sergeant
    Reputation
    2
    Join Date
    Dec 2011
    Posts
    40
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not skilled enough to use this yet, but every contribute needs a thank you So thanks

  7. #6
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    thank you for your contribution. I will take a look, could be useful. Rep+
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

Similar Threads

  1. Wotlk Repack- Working DK Creation- And More
    By LJN in forum WoW EMU General Releases
    Replies: 41
    Last Post: 01-05-2009, 09:13 AM
  2. [QUESTION] Continent Creation and related issues
    By insignia96 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 11-25-2008, 09:42 PM
  3. Replies: 2
    Last Post: 02-20-2008, 08:07 PM
All times are GMT -5. The time now is 03:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search