Jump to content

  • Log In with Google      Sign In   
  • Create Account


badday

Member Since 20 Sep 2010
Offline Last Active Mar 15 2012 07:48 AM

Posts I've Made

In Topic: RTS-AI built on potentialfields

01 March 2012 - 09:30 AM

You mean combining the potentialfields/layers using GPU (OpenCL, as we need to run it on our server, too)? Are there any code-snippets available which show something similar in action?

Apart from that, our A*-algorithm should be optimized I think, so maybe someone might have a look at the code ( http://sourceforge.net/p/potentialfield/code/ci/b9930a37bc114a64601d976d0c2d774fa919789d/tree/ ) who is familiar with the algorithm.

Thanks a lot.

In Topic: RTS-AI built on potentialfields

27 February 2012 - 07:53 AM

For example, we used potential fields to get units onto the road network, and they would then drive the road network (which is modelled as a graph) until they get close to their destination, at which point they get off the road again.

Hm... Our terrain is generated with some deterministic noise-generator, therefore a modelled graph would have to be computed, I'm not sure whether this is easy to archieve.

It's *possible* to get the field systems to (say) find the bridge over the river, but it's not as good a solution as a better macro scale system.

I agree with you for that point, but our game has no such "high interest" places, so the only thing which might be a problem are more or less little obstacles (buildings or units), but not such things like rivers which influence to hole navigation-process much more.

In Topic: RTS-AI built on potentialfields

26 February 2012 - 03:32 AM

Our current implementation should make it quite unlikely (at least if we do not have really many or big obstacles) that a recalculation is necessary. Although, I'm not yet sure what you mean with the connection of times of recalculation and getting stuck, as any recalculation from some position does not differ from an initial calculation of the path from that position in our implementation. Maybe I understood you wrong.
When it comes to what you say, that due to the dynamic layer, we need to go right or left, a problem which could - dependent on the implementation - occur is that we are dead-locked and have a force of 0. But I think you can avoid that if you have a different weight of the layers, which might come close to what you said to the second problem. So we might have some smooth gradient-potential around an unit up to a certain distance and than immediately an infinite value to avoid at any price that we collidate. That would - as far as I can see - avoid that we get dead-locked.
We could also have some fallback, so if we really face a 0-force and are not at our target, let's clean the dynamic layer of any potentials for smooth moving (any gradients) and let's have only 0 or infinite values. I think it is very unlikely that the 0-force remains in this case, although I'm not yet sure.

Thanks a lot for your help :)

In Topic: RTS-AI built on potentialfields

24 February 2012 - 05:40 AM

I think you talk about the "local optima problem" described here: http://aigamedev.com/open/tutorials/potential-fields/#WhatabouttheLocalOptimaProblem , don't you?
What is talked about in this article is some problem resulting from an approach which doesn't rely on a path calculated with A*-star, so I think we can almost be sure that we won't have such a problem on the static-layer.

Another point is the one you mentioned. This is a problem in fact, but I'm not sure whether this is a potential-field-approach problem. To solve this we might say to use some hybrid-approach (as you said, pure potential field approach seems not to be the best solution), e. g. using some fuzzy-logic-system to determine which potential to put around an object (while one object has only on potential) and therefore making sure that by combining various potentials without looking at the global context such a problem does not occur. So at the end, the AI is transformed to potentialfields and not the other way around.

PARTNERS