Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by slythethieve · Feb 17, 2021 at 03:14 PM · navmeshpathfindingrtsstreamingprocedural generation

A* Pathfinding or NavMesh

Hi guys, quick question. In order to save development time, I'd like to know whether I should work with the NavMesh or invest in something like A* Pathfinding. Which one would you recommend for an RTS with a very large map (not infinite, but still split into chucks and dynamically loaded)? Also, the terrain is procedurally generated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by unity_ek98vnTRplGj8Q · Feb 17, 2021 at 04:30 PM

I don't have a lot of experience with Unity's navmesh system, but I have been using Astar pathfinding in my own project for the past year or so and this is my experience with it:


My project uses some very large terrains, usually around 30x30 kilometers. I have been able to use Astar pretty much out of the box to make the navmesh for these scenes with a couple caveats:
1. You need Astar Pathfinding Pro version to use the recast graph
2. I had to bake the whole terrain into one navmesh. I tried for a very long time and was unsuccessful at stitching together multiple smaller graphs. For a scene of my size, the graph ended up being several gigabytes.
3. My scene is static therefore I didn't have to worry about baking the graph at runtime
4. My graph had to be fairly imprecise in order to accomplish the bake
5. My terrain is not streamed.


I do know that it is possible to do procedurally generated / streamed worlds with Astar, and this involves creating a very large graph that covers the whole theoretical area of the terrain, then asynchronously telling specific tiles in the graph to bake as the terrain is streamed in. I do not, however, know how well this works or what the limitations of it are. I do have to say that I doubt that Unity's system accomplishes this any better though. Astar is also open-source, so if you need to mess with source code to get it to work then you can. Either way I expect you will run into some hurdles.


Unfortunately I don't really know the "right" way to tackle a problem like this within Unity

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image slythethieve · Feb 17, 2021 at 06:04 PM 0
Share

First of all thank you very much for your answer. I guess I'll keep searching for an answer (maybe contact the A* developer) while working with the NavMesh. Fortunately this is not a problem that needs to be solved right away.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

127 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why does the Unity Navmesh Agent slow down while traversing obstacles? 2 Answers

Procedural pathfinding 0 Answers

best pathfinding system? 1 Answer

Unity Pathfinding Starting Shake! 0 Answers

NavMeshAgent and NavMeshObstacle together, unit jumping a small distance on toggle 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges