From: Jan E. <ch...@in...> - 2003-06-18 08:35:09
|
On Wed, 19 Feb 2003, Cristian Soviani wrote: >About the los map for checking terrain: it's a good idea, but the >"terrain recognition" in the C module should be "tuned" to correctly >recognize the terrain types. > >It works pretty well for los now, as the only important decision is >forest / no forest; it also recognizes waters (because they're pretty >blue). The roads also seem OK. But we have a lot of other terrain types >and the idea is to recognize them all as accurate as possible. Cristian, Do you happen to remember the format of the data you save for each pixel in the C module? I've looked at implementing a "get terrain type" that would access the data in the C module, as the current Python version is redundant and also a bit buggy, at least it seems to find impassable terrain at places where it shouldn't. You have some functions in the C module, but they are not callable from Python, and you've marked them as experimental. Do you remember how you did the encoding, and would you still care to help me out with this? Regards, Chakie -- There were no public health laws in Ankh-Morpork. It would be like installing smoke detectors in Hell. -- Terry Pratchett, Feet of Clay |