Hi Guys,
I've not been on these forums for a long time and haven't been using DBP for an equal amount of time, due to work etc. Nice to see loads of new "faces" on the forums and the old troop too
I have a quandary, I've decided to re-enter the world of DBP by making an RTS game. I have an image map that defines various types of terrain, green pixels denoting passable terrain, blue water, red impassable and so on. I'm using DarkAI for the pathfinding, to save me time writing my own from scratch. Now the problem I'm facing is converting this terrain type map into DarkAI obstacles. I'm toying with various ideas of how to go about this. The first thing I thought of was to iterate through each pixel, determine if it's an impassable bit of terrain then construct an obstacle in DarkAi for it. But this method seems very inefficient, as it will result in loads of obstacles that are not needed. Another idea was to use an edge finding algorithm to build islands of impassable terrain and use that to construct the obstacle.
I was just wondering if any of you guys have done this in the past and what method did you use.
Cheers in advance.
01100001 01101110 01101111 01110100 01101000 01100101 01110010
01110000 01101111 01101001 01101110 01110100 01101100 01100101 01110011
01110011 01110011 01101001 01100111