[Link] C++ Recast/Detour Wrapper menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Link] C++ Recast/Detour Wrapper

    Hey there,
    I was googling looking for a way to get Recast/Detour working, I stumbled upon this blog. Pretty interesting and the guy even posted source code for a wrapper for R/D in c++ and there is even an example of a navmesh for wow.
    So I thought I'd share it with you as it is pretty recent and some of you might not have seen it, and for those, it might help !

    Enjoy
    Navigation Mesh path finding in MMORPG Bots - Blog
    Last edited by Millow; 08-01-2011 at 10:59 PM.
    "What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens

    [Link] C++ Recast/Detour Wrapper
  2. #2
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Speaking of Recast&Detour I noticed there have been some updates to the WCell-Terrain project. I don't know if it's for 3.3.5a or 4.x though.
    https://github.com/WCell/WCell/tree/.../WCell-Terrain

    (This is C#)
    Last edited by miceiken; 07-28-2011 at 05:11 PM.

  3. #3
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wtf? Recast and Detour is already written in C...
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  4. #4
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    From what I saw he is abstracting away the internals of R+D to make the interface a bit more simplified.

  5. #5
    cvccbum's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    26
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone give an easy example like his, but in C#? I have been trying to create a wrapper for that native code but I am honestly awful at C++. If anyone has any pointers on a good article on wrapping unmanaged code for managed use please post it!

  6. #6
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

  7. #7
    cvccbum's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    26
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, thanks. my ol google skills are lacking it seems

  8. #8
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    lols i was jk, anyways some times google does not pick up everything.

  9. #9
    cvccbum's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    26
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so I've successfully made my own Navmesh wrapper for Recast/Detour.. now when I use the navmesh file given by the 1st post here, everything works fine. but if I try to make another one from recastdemo it errors out at (Object reference not set to an instance of an object.):

    at dtNavMesh.getTilesAt(dtNavMesh* , Int32 x, Int32 y, dtMeshTile** tiles, Int32 maxTiles)

    I am assuming I am saving my navmesh files wrong. anyone have any pointers?

    EDIT: Figured it out, finally.
    Last edited by cvccbum; 08-01-2011 at 05:58 PM.

  10. #10
    Ozius's Avatar Corporal
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for a post.
    At me it has not turned out to compile Dll. Has made everything as it is written, but at compilation there are many errors, this or that method isn't found in all from them. For example:
    findNearestPoly: isn't a member "dtNavMesh".
    Really if to look dtNavMesh there there is no such method, but it is in a class dtNavMeshQuery. Probably I use R+D distinct from yours? I use, which is given / - recastnavigation - Navigation-mesh Construction Toolset for Games - Google Project Hosting. Can lay out somewhere yours R+D?

  11. #11
    cvccbum's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    26
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used his idea as my base code. You have to make a new load method, add a query variable, and then use the methods that way.

    I have one last question.. not sure if anyone knows but.. how would I go about using multiple navmesh files for a single path? AKA run from human starting to stormwind. 3 meshes

  12. #12
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is why you can't simply wrap the demo code.
    You have to understand what's going on. Look for a load or save method and then "reverse" it.

    Actually, at most looking at mikko's code is reversing to me thanks to helpful variable names like s1 and straight refusal of the standard library and object oriented practices.
    Not that I don't respect his work, a really awesome project and his demo app is much of help for understnading what's going on, but reading that code is hard.

Similar Threads

  1. Path Generator – Recast/Detour and WowMapper – Step
    By RivaLfr in forum WoW Memory Editing
    Replies: 32
    Last Post: 05-13-2022, 05:38 AM
  2. Recast/Detour - 16 tiles per ADT - Proper method to save/load?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 5
    Last Post: 12-29-2011, 12:48 PM
  3. Recast + Detour - Connecting tiles
    By Tanaris4 in forum WoW Memory Editing
    Replies: 12
    Last Post: 12-21-2011, 04:04 PM
  4. Pathing w/Recast + Detour - Potential issue - thoughts?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 0
    Last Post: 12-12-2011, 10:41 AM
  5. Replies: 1
    Last Post: 12-12-2011, 02:31 AM
All times are GMT -5. The time now is 07:56 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