Problem for marking area type by vertices

79 views
Skip to first unread message

文振宇

unread,
Dec 19, 2022, 12:09:09 AM12/19/22
to recastnavigation
Hi, i am currently building a navmesh, which includes water area type and land area type. They are distinguished by uv ordinates in obj file, such as, vt 1 0 represents water vertex, while vt 0 0 represents land vertex. As i discovered in the demo, a convex volume is needed to mark  different area, but it seems too expensive to generate convex volumes for the entire input obj file. Should i use some other methods? Is there an example in the demo? Thank you in advance for your answer.

Graham Pentheny

unread,
Mar 15, 2023, 10:48:41 PM3/15/23
to recastnavigation
You should generate a list of triangle area ID's from your input geometry and pass them as the triAreaIDs parameter to rcRasterizeTriangles during the initial rasterization step.  This will let you mark specific areas of the generated navmesh with specific area IDs.  Convex volume marking is useful when you wish to do further area ID customization on top of the initial geometry markup.
Reply all
Reply to author
Forward
0 new messages