Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

[Recast] About setting the area id of a navigation mesh using a text file or a bitmap file

$
0
0
I am not sure I can ask questions about a specific library here, but if you haven't already. I'd like to tag some polys in a navigation mesh that correspond to grass or road etc, I can give an extent to do so, or in another way, I can directly feed a geometry in and the polys are tagged this way. But I am looking into alternative ways such as allowing the user to tag the polys using a text file or bitmap file (like the way heightfields are done).. If I define a area map which is a grayscale image, and the values range from 0-255, and for example, if the value of the first char is 0, then I can map this index to certain place in the navigation mesh, and say this is a walkable ground etc, unlike heightfields, where you define an image and the resultant thing is some terrain, but when you start off with a bitmap for area map, you end up with what? you see, I had the geometry already, the area map probably doesn't make sense here, same way as the text file thing.... Any ideas? Jack

Viewing all articles
Browse latest Browse all 17825


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>