Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Mexes not rendered on the minimap correctly

Open Licho1 opened this issue 12 years ago • 14 comments

On this setup, minimap lacks mexes. They are completely invisible even in eco mode

Licho1 avatar Nov 26 '14 20:11 Licho1

It also happens on "high" details which is default :-(

Licho1 avatar Nov 27 '14 22:11 Licho1

Licho could you provide a screenshot for reference? I think i saw something simmilar to this with intel GPU.

Orfelius avatar Dec 02 '14 07:12 Orfelius

http://i.imgur.com/YWWEOmW.jpg

Licho1 avatar Dec 02 '14 21:12 Licho1

Interesting. Judging by the widget code I suspect this to be an engine issue. Every code path that draws the minimap simply calls the Engine hook "gl.DrawMiniMap" to get the minimap image. Some manipulation is done afterwards for edge (and if COFC is on and the option is enabled, height-dependent) transparency, but that is purely pixel-based, and wouldn't distinguish mex spots from the terrain.

dvr333 avatar Dec 13 '14 19:12 dvr333

Licho did you try running the deflaut engine minimap to see whether it is not rendered properly or not?

Orfelius avatar Dec 14 '14 10:12 Orfelius

Default engine minimap will make no difference, its rendered identically.

Licho1 avatar Dec 14 '14 10:12 Licho1

Then it is engine problem! Thus belonging into mantis not here.

Orfelius avatar Dec 14 '14 10:12 Orfelius

I think you are confused, its not engine problem. I just said that default minimimap and the minimap widget make no difference because minimap widget does nothing - just shows border and icons.

Licho1 avatar Dec 14 '14 10:12 Licho1

Hang on, maybe the issue is with the metal spot widget. ZK doesn't uses engine mex spot display, but I can't check atm what the mex spot widget does to the minimap image, if anything.

dvr333 avatar Dec 14 '14 19:12 dvr333

I remember, I think I wrote the mex visualisation widget But other things arent rendered either on minimap (widgety things)

Licho1 avatar Dec 14 '14 20:12 Licho1

Does it still occur? Is it consistent for maps?

GoogleFrog avatar Jun 08 '15 13:06 GoogleFrog

Try disabling the map edge extension widget (through F11 not F10) and see what happens. It's known to screw up other widgets' GL list calls.

Edit: looks like minimap mexes don't actually use a GL list (unlike main view mexes), this makes them resistant to map edge but should probably be changed for perf.

sprunk avatar Jul 27 '17 16:07 sprunk

Fixed.

GoogleFrog avatar Sep 29 '17 03:09 GoogleFrog

For the record https://github.com/ZeroK-RTS/Zero-K/commit/f7a180a9a6e42d8e41441f35f93a91471b002846

sprunk avatar May 03 '18 06:05 sprunk