Jump to content

XML:ONLV: Difference between revisions

m
updating the PF section
mNo edit summary
m (updating the PF section)
Line 603: Line 603:


=====Pathfinding on uneven ground=====
=====Pathfinding on uneven ground=====
Pathfinding works on slight uneven ground (see '''''tolerance values''''').
Pathfinding works on slight uneven ground as long as the polygons are 0,5 world units beneath or 4 world units above the BNV.
 
For bigger surface irregularities we can use a trick. The problematic polygons can be saved to an dae file and then referenced in the model section as an individual object. Then the <GunkFlags> tag needs to be '''''GridIgnore'''''. Additionally we create a plain (invisible if necessary) under the object so that Oni doesn't think there's a hole.


For bigger surface irregularities we can use a trick:
* The problematic polygons must be saved to an dae file and then referenced in the model section as an individual object.
* Then the <GunkFlags> tag needs to be '''''GridIgnore'''''.
* Additionally we create a plain (invisible if necessary) under the object so that Oni doesn't think there's a hole.
* The ghosts must be taller than the highest polygon to walk on. (This has been tested up to a height of 2000 world units.)
For example this trick can bypass [https://dl.dropboxusercontent.com/u/139715/temp/bad_BNV.png pathfinding problems with pyramids.]
For example this trick can bypass [https://dl.dropboxusercontent.com/u/139715/temp/bad_BNV.png pathfinding problems with pyramids.]




'''Limitations'''
'''Symptoms of too small ghosts'''


On PC this trick works up to a height of 17,9. Between 18 up to 18,9 it works only to some degree: AI can randomly lose pathfinding. [http://youtu.be/pXfOz4sCyPc Here's] some testing footage.
A) AI can't run at all.


Another drawback are high jumps, they can break chump's pathfinding. If such AI gets out of view for ca. 2 seconds, it can regain pathfinding.
B) AI loses PF if tracked enemy performs animations that are out of the pathfinding volume. [http://youtu.be/vfKPzP5hiCo Here's] a video about of the "B" symptoms.


On Mac it was reported that 20 is the maximum.


=====Debugging (OniSplit v0.9.93.0+)=====
=====Debugging (OniSplit v0.9.93.0+)=====
8,452

edits