Page 1 of 1
Contrast crosshair
Posted: Thu Feb 16, 2017 13:55
by Sergey
I would like to see contrast crosshair in future releases of MT.
On dark background it is light.
On light background it is dark.
On grey background it is (no, not grey) light.... contrast anyway.
I thought something is broken and now I don't have a crosshair. It turns out I was pointing to the sun — white crosshair on white background.
I think it will not be so hard to implement.
Re: Contrast crosshair
Posted: Fri Feb 17, 2017 17:27
by kaadmy
Minecraft has a per-pixel shader to change the crosshair color to the opposite of what's behind it, it's actually morehelpful than you'd think.
Re: Contrast crosshair
Posted: Fri Feb 17, 2017 19:33
by paramat
The crosshair can be customised by using a crosshair texture in a texture pack, see
https://github.com/minetest/minetest/bl ... ks.txt#L60
Re: Contrast crosshair
Posted: Sat Feb 18, 2017 12:35
by Sergey
What dimensions of texture should be? 8x8? 16x16?
Re: Contrast crosshair
Posted: Sat Feb 18, 2017 16:55
by kaeza
It may be any size. It's rendered 1:1 on the screen.
Re: Contrast crosshair
Posted: Sat Feb 18, 2017 17:06
by kaeza
Something like this should work fairly well:
1x:
10x:
Re: Contrast crosshair
Posted: Sun Feb 19, 2017 11:33
by Sergey
I tried many different crosshair textures. And found the best (at least for me).
Scheme:
Texture has 21px × 21px size. Grey color is transparent area.
Texture:
(download and try it)
Screenshots:
(click for full view):
Re: Contrast crosshair
Posted: Sun Feb 19, 2017 11:42
by Krock
Inspired from the Moorhuhn shooter games with semitransparent pixels:
EDIT: It would also be possible to use the cursor as crosshair, to prank friends.
Re: Contrast crosshair
Posted: Thu Feb 23, 2017 18:54
by ABJ
I would personally prefer a crosshair with contrasting middle and outlines. Would be so goddamn confusing to find in a shady-lighty background.