Page 1 of 1

Render minimaps with heightmap in lobby client?

Posted: 09 Feb 2008, 14:39
by TradeMark
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?

Re: Render minimaps with heightmap in lobby client?

Posted: 09 Feb 2008, 15:21
by AF
Add it to unitsync, then we can talk

Re: Render minimaps with heightmap in lobby client?

Posted: 09 Feb 2008, 15:24
by Kloot
The unitsync library does not support reading the
heightmap from a map archive, feel free to patch it.

Re: Render minimaps with heightmap in lobby client?

Posted: 09 Feb 2008, 15:27
by TradeMark
Oh, so how i read the heightmap? where is the map format definitions?

Re: Render minimaps with heightmap in lobby client?

Posted: 11 Feb 2008, 12:41
by Tobi
Get started in mapfile.h

Re: Render minimaps with heightmap in lobby client?

Posted: 11 Feb 2008, 16:56
by TradeMark
Yeah, i got the code already, made for PHP though, and its working :o

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.