Currently I'm working on
creating Ai/pathing in openGL. The program can load in .obj files, binary
files, and level files that hold .obj information and node information. The
program has a character (bear) that paths around the map through nodes that
were previously place.
To build the map, a person can click on the
current plane/map to place nodes, selected a placed node by re-clicking it, and
connect destination nodes to a re-clicked node. This information can be saved
out to a level file. When the level file is read back in, the pathing character
will randomly path to a node. The user can also click on a node to make the
pathing character path to that node. In addition, clicking on empty space makes
the pathing character go to the position of the mouse on the map.
This editor also has the ability to
display/change how the program works. The user is able to change the speed of
the pathing character through a slider. The user can change to view the pathing characters view or see the world view. The user can change to show all
connections that exist on the map. The user can choose to view the current path
the character is following. In addition, if pathing connections are not shown,
the user can select a node to add new destination nodes or add new nodes.
(These variables are editable through a debug menu that pops open when the
"~" key is hit) The change to a path by adding more nodes or adding
new destination nodes can then be saved out. If the nodes are edited the level
must be saved and re-loaded to implement the new paths available.