How to access path traversability and blocking maps?

How to access path traversability and blocking maps?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
lamer
Posts: 153
Joined: 08 Mar 2014, 23:13

How to access path traversability and blocking maps?

Post by lamer »

Is there a way to access
1) path traversability map (F2 shows this map)
2) groundBlockingObjectMap (also useful for finding build site)
through AI interface? I'd like to not recreate maps that engine already has.

I want to implement some terrain analyzer and at the moment i'm re-writing path traversability map within AI but stuck with new bugs or missing functions/data. According to path traversability texture i need to calc slope speed modifier. But MoveData::GetDepthMod is outdated and doesn't take height parameter, in fact it returns linear coefficient instead of quadratic calculation. I can submit pull-request to fix MoveData::GetDepthMod but it may break legacy depthMod as it relies on function from new interface.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: How to access path traversability and blocking maps?

Post by Anarchid »

Judging by how the other AI's who play with their own pathfinder do it, you'll have to generate the info from slopes on your own.

No idea about the depthmod issue, though.
Post Reply

Return to “AI”