Difference between revisions of "Category:Navmesh"

64 bytes added ,  12:56, 5 October 2016
imported>Death From Above
imported>Death From Above
Line 8: Line 8:
In Fallout 4, a new feature has been added to the navmesh; the ability to remove a placed object in-game, with the navmesh allowing actors to now navigate through the freed up space. This is done by associating specific triangles in the navmesh with specific, intersecting objects that have the necessary form list and object mod records that allows the player to scrap them in-game.
In Fallout 4, a new feature has been added to the navmesh; the ability to remove a placed object in-game, with the navmesh allowing actors to now navigate through the freed up space. This is done by associating specific triangles in the navmesh with specific, intersecting objects that have the necessary form list and object mod records that allows the player to scrap them in-game.


To demonstrate this, the Commonwealth cell "FederalRationStockpileExt" will be used.[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_001_-_Valid_Objects.png|thumb|alt=Screenshot of an object that qualifies for scrapping & in-game navmesh updating|The CarStationWagon06 object has all the necessary records (in a FormList used by a Constructible Object) to be scrapped in-game, which also qualifies it to affect the navmesh when scrapped.]]
To demonstrate this, the Commonwealth cell "FederalRationStockpileExt" will be used.[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_001_-_Valid_Objects.png|200px|thumb|alt=Screenshot of an object that qualifies for scrapping & in-game navmesh updating|The CarStationWagon06 object has all the necessary records (in a FormList used by a Constructible Object) to be scrapped in-game, which also qualifies it to affect the navmesh when scrapped.]]


Select the object, and then press <code>Ctrl+E</code> to enable navmesh editing. At the top of the window, click <code>Navmesh</code>, then click <code>Link Precuts for Selection</code>.
Select the object, and then press <code>Ctrl+E</code> to enable navmesh editing. At the top of the window, click <code>Navmesh</code>, then click <code>Link Precuts for Selection</code>.


The navmesh will now have bright pink triangles; these are parts of the navmesh that are initially disabled, that the AI will navigate around. When the car object is scrapped, the triangles will then be enabled, allowing the AI to navigate through them. [[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_002_-_Linked_Precuts.png|thumb|alt=Screenshot of buggy navmesh editing; the selected car object should be visible, but isn't for some reason|The bright pink navmesh triangles are triangles that are initially disabled, and will be enabled once their linked object is scrapped.]]
The navmesh will now have bright pink triangles; these are parts of the navmesh that are initially disabled, that the AI will navigate around. When the car object is scrapped, the triangles will then be enabled, allowing the AI to navigate through them. [[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_002_-_Linked_Precuts.png|200px|thumb|alt=Screenshot of buggy navmesh editing; the selected car object should be visible, but isn't for some reason|The bright pink navmesh triangles are triangles that are initially disabled, and will be enabled once their linked object is scrapped.]]


For some reason, this specific instance of the car object is not visible in navmesh editing mode, so it's hard to see why the car object takes up such a large area of the navmesh. The reason it does, is that it's bounding box intersects with those navmesh triangles, causing them to be linked to the object when we clicked <code>Link Precuts for Selection</code>.
For some reason, this specific instance of the car object is not visible in navmesh editing mode, so it's hard to see why the car object takes up such a large area of the navmesh. The reason it does, is that it's bounding box intersects with those navmesh triangles, causing them to be linked to the object when we clicked <code>Link Precuts for Selection</code>.
Line 19: Line 19:




As a better way of visualizing how Precut Links should be done, take this example of the interior cell <code>FederalRationStockpile01</code>. In the first image, note how there is no navmesh around the scrappable objects.[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_003_-_No_Precut_Links.png|thumb|alt=Better example of navmesh not accommodating scrappable objects|As can be seen, the scrappable objects in this interior cell will have no affect on the navmesh when scrapped.]]
As a better way of visualizing how Precut Links should be done, take this example of the interior cell <code>FederalRationStockpile01</code>. In the first image, note how there is no navmesh around the scrappable objects.[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_003_-_No_Precut_Links.png|200px|thumb|alt=Better example of navmesh not accommodating scrappable objects|As can be seen, the scrappable objects in this interior cell will have no affect on the navmesh when scrapped.]]


In the second image[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_004_-_Proper_Precut_Links.png|thumb|alt=Ideally made precut links|As we can see, the scrappable objects intersect cleanly with the navmesh triangles]], the navmesh now includes the area the objects are blocking, and since the objects have been linked to the navmesh, the AI will navigate through the areas the scrapped objects used to occupy.
In the second image[[File:Creation_Kit_-_Navmesh_-_Scrappable_Objects_004_-_Proper_Precut_Links.png|200px|thumb|alt=Ideally made precut links|As we can see, the scrappable objects intersect cleanly with the navmesh triangles]], the navmesh now includes the area the objects are blocking, and since the objects have been linked to the navmesh, the AI will navigate through the areas the scrappable objects used to occupy, once they have been scrapped in-game.