Navmesh issues
by Adam Beer · in Torque 3D Professional · 04/27/2014 (1:27 pm) · 3 replies
I am trying to create a large-ish city type of level with many tall buildings and am in need of navigation for AI. So far Ive been testing out the navmesh/navpath that comes with T3D but am having issues getting them to work the way I want.
Firstly, im not sure if this is even valid or not but I have 3 nav meshes currently and was planning to use the same nav data in the saved files for each instance of building I have as Im using the same buildings multiple times. This seems to work but I noticed that when having multiple nav meshes, after the first mesh is loaded all additional meshes after that are placed in the same position as the first. The actual position of the navmesh object is correct but the mesh itself is being placed at the first navmesh instance. Is it correct that the default T3D implementation only works properly with 1 navmesh in the level at once? If this is the case, how would I go about making the additional meshes be placed where their supposed to be?
Firstly, im not sure if this is even valid or not but I have 3 nav meshes currently and was planning to use the same nav data in the saved files for each instance of building I have as Im using the same buildings multiple times. This seems to work but I noticed that when having multiple nav meshes, after the first mesh is loaded all additional meshes after that are placed in the same position as the first. The actual position of the navmesh object is correct but the mesh itself is being placed at the first navmesh instance. Is it correct that the default T3D implementation only works properly with 1 navmesh in the level at once? If this is the case, how would I go about making the additional meshes be placed where their supposed to be?
About the author
Adam is the owner of Ignition Games, an indie game and software development company.
#2
04/28/2014 (6:17 am)
What I meant was that the navmesh objects are in the correct places but all 3 of the actual mesh data is being placed at the same spot. So looking in the editor the actual objects have the right scale and position, but the physical blue meshes are all in the same area.
#3
Created #695.
06/14/2014 (6:14 pm)
Right, I see what you mean now. Because you're using the same data file, the meshes' data is all at the same location. That's an interesting problem. I'll see if I can do anything about that, because as you say it'd be quite helpful to be able to 'instance' navmeshes if you have identical geometry.Created #695.
Torque Owner Daniel Buckmaster
T3D Steering Committee
Anyway, the system is supposed to work with multiple meshes in principle. I didn't test that extensively though!