Need some pointers, making a lv 1 geodata tool
Ok since nobody shares a geodata tool which actually makes correct geodata
I decided to make one my self.
Been trying two whole days to figure out a relation between the grayscale
extracted image and the corresponding height.
From torunes code i figured that grayscale colors from 56 to 165 are only used (dont understand why though) a total of 110 colors and each one corresponding to a certain geodata height.
I use as a case study an already produced geodata (23_25) which works correctly ingame.
By trying a LOT of start heights and incrementers between heights i came to the closest i can get starting height 60096 corresponds to color 56, 60096+86 to color 57 and so on...
I also made a smoothing technique because the geodata produced directly from the bitmap have slopes like stairs.
After testing the produced geodata (23_25) i found out to be ok if not correct.
That is, adena and items do not fall through the ground and players dont fall from the sky when they walk.
But I decided to add a plane with kenfalco's geoedit and my geodata came out messed up!
After adding a plane to the geodata, my original heights where messed up!
without the plane in one location i had height -1780 and after adding the plane i had -800 on the same location (and not where the plane was)...
Well I need some help... I'm almost sure that kenfalco's tool is not the problem here, but my generated geodata...
I beg you for some pointers, specially from the people who made a successful generator...
What is the relation between bitmap colors and height?
Or maybe what am I missing here?
Maybe someone can direct me to a geodata breakdown post or something..
Anything would be much apreciated...
Thanks in advance
|