Issue with Recast Graph: Funnel modifier wants to incorrectly path through nodes

Hey guys,

I’ve been a long time lurker on this forum, and have finally been inspired to post. I’d first like to thank Aron Granberg for the work he’s put into this pathfinding API. Without it, I wouldn’t have even considered making my game.

Anyway, I’ve gotten the funnel modifier to work very well most of the time. Sometimes, however, it will force the character to path through recast nodes, even if this is not the most direct path. I’ll attach a picture once I’ve figured out how to do so.

Has anybody else had this problem? Any suggestions? I can also attach my code if you think I’m not using something properly. I also haven’t had a chance to try out the stuff in the new patch, such as the RichFunnel, etc.

Thanks!

Hi

A screenshot would be great. You cannot upload one to this forum unfortunately, but you can upload one to some image sharing service (or dropbox) and the use a html img tag to link to it (or just a regular link).

Cool, thanks for the quick reply! I’ll have to figure out how other people make their screenshots visible in the forum. For now, here’s a link.

https://drive.google.com/file/d/0B0AmrAGhd8W_OUlqWXhUOU90bjA/edit?usp=sharing

Basically, I have commanded my character to move from the left side to the right side. He should just take a direct path since there are no obstacles, but instead he tries to maneuver through the recast nodes or something like that?

In case the link above doesn’t work, I’ve also posted to dropbox:

Ok, figured out how to post images!

I found this post about large triangles, but it doesn’t completely explain why the path gets sucked into the navmesh triangle vertices. Still can’t figure out what’s going on.

http://arongranberg.com/vanillaforums/discussion/312/limit-size-of-recast-generated-triangles/p1