It would be awesome to render the minimap image with heightmap, so we could make water visible in the minimap.
Some maps looks like land maps from the minimap view, but actually they are water maps, or has water in there...
So, would it take too much time to read one map heightmap from the file? Or why its not supported yet?
Render minimaps with heightmap in lobby client?
Moderator: Moderators
Re: Render minimaps with heightmap in lobby client?
Add it to unitsync, then we can talk
Re: Render minimaps with heightmap in lobby client?
The unitsync library does not support reading the
heightmap from a map archive, feel free to patch it.
heightmap from a map archive, feel free to patch it.
Re: Render minimaps with heightmap in lobby client?
Oh, so how i read the heightmap? where is the map format definitions?
Re: Render minimaps with heightmap in lobby client?
Get started in mapfile.h
Re: Render minimaps with heightmap in lobby client?
Yeah, i got the code already, made for PHP though, and its working
But, i still have problems rendering the water correctly, i dont know how it exactly blends the water color by using those variables in .smd file... Though it could be better to just render the water in blue color, etc, so its easier to see where the water actually is, if the map texture and water color makes it hard to see water well.

But, i still have problems rendering the water correctly, i dont know how it exactly blends the water color by using those variables in .smd file... Though it could be better to just render the water in blue color, etc, so its easier to see where the water actually is, if the map texture and water color makes it hard to see water well.