GeorgeP Posted May 10, 2012 Posted May 10, 2012 Hello. Issue 1 ---------- I face a problem considering NavigationMesh and NavigationSector. First of all, using a Navigation sector i create a box and i use a PathRoute from one point to another (both inside the navigation sector). Everything works fine. Then i try to replace the navigation sector with navigation mesh. I use a mesh that i create in 3ds max 2012 and has exactly the same length/width/height as the navigation sector. But the route is not rendered. navigation sector code. NavigationSector navigation; int navigation_sector_length = 300; navigation = add_editor(new NavigationSector(vec3(navigation_sector_length, navigation_sector_length, 9.0f))); navigation.setWorldTransform(translate(Vec3(0.0f,0.0f,5.0f))); navigation mesh code NavigationMesh navigation; navigation = add_editor(new NavigationMesh("demos/Marina2011/meshes/Navigation/Box260.mesh")); navigation.setWorldTransform(translate(Vec3(0.0f, 0.0f, 0.5f))); I have also noticed a problem in the navigation mesh. 2 lines for each edge are rendered. I send some files that might be helpful. Issue 2 --------- I want to create a complex navigation mesh. is 3ds max the only way to do it ? As i read, meshviewer is used only for preview purposes. Thank you for your time and sorry for the long post. Navigation.rar
GeorgeP Posted May 11, 2012 Author Posted May 11, 2012 Hello. As it seems the problem was that i was using a 3D box instead of 2D plane. Thank you.
Recommended Posts