[Solved]How to generate the waypoint in scene?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
randomcode
Kobold
Posts: 26
Joined: Wed Nov 11, 2015 11:31 am
Location: Universe
x 1
Contact:

[Solved]How to generate the waypoint in scene?

Post by randomcode » Fri Mar 23, 2018 3:43 pm

I meet a problem about generating the waypoint in a specific scene, I searched the Internet and find some solutions:

1. Some games use a technology called "AI Mesh", these games allow you to add "AI mesh" object(of course, these objects will be hide when the scene is rendered) when edit a scene. Then the scene loader load the scene and generate the graphic for the scene by using these AI meshes, so that the path finder can find the path they needed in this scene graphic. Famous game "Mount&Blade" series use this technology.
It sounds good, but here is the question: If we want to use AI Mesh in our scene, how to generate them? As far as I know, there is no features in some Ogre Scene Editor can do that.

2. Here is another way, add some objects(Like cubes) in the scene and make these cubes as waypoints, we need to modify the scene file manually and give them special tag one by one....

3. We define a special file to define waypoints in a scene, this file looks like a map, but filled by numbers, use number like '1' to define free point, use number like '0' to define blocked point, then we use codes to generate cubes based on this waypoint define file. But it still has problem, it needs to define many numbers in this file, it is a big work, or we can use some graphic tool?

Is there any other solutions that can fast generate the waypoints in scene?
Last edited by randomcode on Thu Apr 19, 2018 12:55 am, edited 1 time in total.
0 x
AMGE(Open Source C# Role-play Engine)
https://github.com/cookgreen/AMGE

xrgo
OGRE Expert User
OGRE Expert User
Posts: 939
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 53

Re: How to generate the waypoint in scene?

Post by xrgo » Fri Mar 23, 2018 4:55 pm

look for Recast Detour, a library to generate a navMesh and find the path from point A to point B
0 x

randomcode
Kobold
Posts: 26
Joined: Wed Nov 11, 2015 11:31 am
Location: Universe
x 1
Contact:

Re: How to generate the waypoint in scene?

Post by randomcode » Sat Mar 24, 2018 2:43 am

xrgo wrote:
Fri Mar 23, 2018 4:55 pm
look for Recast Detour, a library to generate a navMesh and find the path from point A to point B
Thank you! It is actually a powerful path finder! But is there any binding of C#?
0 x
AMGE(Open Source C# Role-play Engine)
https://github.com/cookgreen/AMGE

Post Reply