8,452
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 458: | Line 458: | ||
====<Rooms>==== | ====<Rooms>==== | ||
The Room tag is mandatory. It contains an import path to BNV data (*.dae) which is used to create pathfinding grids. | |||
For example: | For example: | ||
<Import Path="env/lab_bnv.dae"/> | <Import Path="env/lab_bnv.dae"/> | ||
Making BNV consist of 2 parts: rooms and ghost quads. | Making BNV consist of 2 parts: rooms and ghost quads. (What again does BNV stand for?) | ||
* Those ''rooms'' are in fact horizontal planes, they are used to determine the area where pathfinding will be calculated. Areas without ''rooms'' won't have pathfinding at all. | |||
* ''Ghosts'' are vertical planes. You need a ''ghost'' to connect two parallel ''rooms''. | |||
* Actually, those horizontal and vertical planes can have any name and don't need any texture. | |||
* During pathfinding calculation OniSplit creates a new folder called "temp" and a subfolder "grids". There again is a file "''levelname''_grids.dae". That file contains ''rooms'' with textures "bnv_grid_''N''.tga" marking obstacles in the pathfinding. ''Ghosts'' will have a transparent texture "_marker_ghost.tga". You get those things also when you export a level. Transparent ''ghosts'' make it easier to see the rest of your level if you have many of those planes. | |||
* | |||
* | |||
;Tolerance values | ;Tolerance values | ||
* horizontal distance from room to ghost: 1 | * horizontal distance from ''room'' to ''ghost'': 1 | ||
* vertical distance from room to ghost: 18 | * vertical distance from ''room'' to ''ghost'': 18 | ||
* ghost horizontal dimension must be bigger than 0 | * ''ghost'' horizontal dimension must be bigger than 0 | ||
* under optimal circumstances pathfinding works on a plane that is +4 world units above or -0,5 beneath the pathfinding grid | * under optimal circumstances pathfinding works on a plane that is +4 world units above or -0,5 beneath the pathfinding grid | ||
* characters can step on a plane that is 4 world units above pathfinding grid; higher planes need a ramp | * characters can step on a plane that is 4 world units above pathfinding grid; higher planes need a ramp | ||
Line 483: | Line 480: | ||
[[Image:Pathfinding_grid.JPG|thumb|200px|right|''ai2_showgrids = 1'' in action]] | |||
;BSL commands | ;BSL commands | ||
* chr_show_bnv = 1 | * chr_show_bnv = 1 |
edits