.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RACC
RACC Autonomous fragmachines by PMB Counter-StrikeDMCHLDMThe Specialists

Reply
 
Thread Tools
Hows Navmesh working out?
Old
  (#1)
Maleficus
Member
 
Maleficus's Avatar
 
Status: Offline
Posts: 1,054
Join Date: May 2004
Location: Planet Earth
Default Hows Navmesh working out? - 21-07-2004

Just finished reading your Navmesh tutorial - nice work.

But I am curious - how is it working out for you? I've seen the CZ bots, which from what I understand uses a slightly different version of Navmesh, and it looks pretty good in game, as well as the fact you don't have to waypoint maps anymore (tho I like the idea of being able to hand tune navmeshs if desired)! Are there any performance penalties, or memory restrictions?

Fritz uses node based pathing, and tho it isn't always pretty, its very cheap and fast. I've been working on extending it a bit so it looks and works better than traditional waypoint systems. But its still a pain to have to make those nodes, often taking hours of time per map! :'(


I've been studying a q3 bsp loader, and see that getting the planes from the .bsp file is relatively easy, its just making the Navmesh, then on top of that the pathing code, work.

I don't really have time for it ATM, I have so many other AI issues to battle with, but I'm definately interesting in learning more about Navmesh.


ps: any plans to continue your Navmesh tutorial as promised?!


Dum Spiro Spero


  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Hows Navmesh working out? - 21-07-2004

ever considered auto-noding?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#3)
Maleficus
Member
 
Maleficus's Avatar
 
Status: Offline
Posts: 1,054
Join Date: May 2004
Location: Planet Earth
Default Re: Hows Navmesh working out? - 22-07-2004

Yes.

I'm open to both actually, the problem for me is figuring out a way to read the .bsp and noding/navmeshing intelligently based on that info.


Dum Spiro Spero


  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#4)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: Hows Navmesh working out? - 22-07-2004

Waypoint flooding works sometimes aswell
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Hows Navmesh working out? - 22-07-2004

I've little time right now to make the long answer I'd like to, but remind me to do so at the end of the week

I *plan* to write other tutorials, no problem, but what I lack currently is time. Argh. Time. The navmesh tut is intrinsically "finished", though... since what it lacks is more relevant to "pathfinding" (with A*) and "pathwalking" (with algos I'm currently fighting against, grmbl).



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#6)
evy
Guest
 
Status:
Posts: n/a
Default Re: Hows Navmesh working out? - 03-08-2004

On this topics navmesh vs waypointing, you may well want to have a look on what I'm doing for Stefan's Realbot. A utility to create nodes file from the BSP files.

Nothing rocket science but it uses concepts from Pierre-Marie's navmesh (mainly walkable surfaces) and generate waypoints based on collision avoidance between adjacent nodes as well as 'probing' the floor for dangerous fall or too high jumps.

So, it gets some bonus from navmesh but still keeps the drawbacks of waypoints: pre-defined course of bots, A* takes much longer.

Source code is GPL and is in the Bsp2Rbn subdirectory of realbot.

HTH

-eric
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#7)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Hows Navmesh working out? - 03-08-2004

well, predefined courses ... let's say precalculated distances and maybe use them for heuristics ... but I think here are only a few ppl who'd like to miss A*


  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#8)
evy
Guest
 
Status:
Posts: n/a
Default Re: Hows Navmesh working out? - 05-08-2004

Pierre-Marie,

By looking at your tutorial & RACC code to detect walkable faces, I'm afraid that the check is not fully correct . It should be:

Code:
if (((plane->normal[2] < 0.707106) && (face->side == 0))   // Based on PMB navmesh tutorial,
		|| ((plane->normal[2] > -0.707105) && (face->side == 1)) // Addition by evyncke
		|| ((plane->normal[2] == 1) && (face->side == 1)))
				// a simple check to see whether plane is flat or walkable < 45 degree
		continue ; // Discard this face
Without the handling of negative normals, the de_aztec slope between the river and bomb spot was never processed.

It looks like 99.9% of walkable slopes are using a positive normal but 0.1% are using a negative normal but with side == 1.

HTH

-eric
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#9)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Hows Navmesh working out? - 05-08-2004

ohooooo

well my friend, consider this copy/pasted and credited



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Hows Navmesh working out?
Old
  (#10)
V or 'Tex
Member
 
Status: Offline
Posts: 121
Join Date: Feb 2004
Default Re: Hows Navmesh working out? - 23-09-2004

)) // Addition by evyncke || ((plane->normal[2] == 1) && (face->side


It seems to me that the comment does not have an ending spot. Unless the logical or ends it?
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com