Navmesh file structure

03/13/2012 17:01 supermando#1
I was searching about navmesh files, i did find lots of info but then i got confused, so i will write what i understood and hopefully someone will correct/explain where did i got it wrong:

from my understanding, a .nvm file consist of entity, zone1, zone2, zone3
each entity contain an id of a bsr file, the path of the bsr is defined in object.ifo
the bsr contains a hitbox in the first bms entry, the rest of entries isn't useful
then the hitbox contain entries for the object orientation on the ground (outer lines, inner lines..)

using drew's nvm class i was able to extract these entries, and to draw zone3 (rectangles), zone2 (map sector borders)
zone1 gives strange lines which dont make sense to me
and about the bms, i cant draw them in a correct way (they get stacked up on 2-3 thick lines across the screen)

Thanks.
03/14/2012 17:33 Kape7#2
This might can help you, through there is no source code, might can help you figure out what is the rest of the missing info on navemesh files.

[Only registered and activated users can see links. Click Here To Register...]

Download it from attach.
03/14/2012 22:14 supermando#3
Actually I've been using it to compare it with my result, that's how I knew that my result was wrong.

Anyway, I've decompiled it now and I found out what was wrong with my approach (at least it seems so).

Thanks for your time nevertheless :)
03/15/2012 09:32 ÑõÑ_Ŝŧóp#4
Quote:
Originally Posted by Synx7 View Post
This might can help you, through there is no source code, might can help you figure out what is the rest of the missing info on navemesh files.

[Only registered and activated users can see links. Click Here To Register...]

Download it from attach.
do you mind sharing the PK2Reader code?since I think it uses the base pk2 key not the blowfish key and thats what I need :D
03/15/2012 09:58 vorosmihaly#5
Quote:
Originally Posted by ÑõÑ_Ŝŧóp View Post
do you mind sharing the PK2Reader code?since I think it uses the base pk2 key not the blowfish key and thats what I need :D
as far as I know,it's not synx's work :)