Contrast crosshair

User avatar
Sergey
Member
 
Posts: 362
Joined: Wed Jan 11, 2017 13:28

Contrast crosshair

by Sergey » Thu Feb 16, 2017 13:55

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.
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: Contrast crosshair

by kaadmy » Fri Feb 17, 2017 17:27

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.
Never paint white stripes on roads near Zebra crossings.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Contrast crosshair

by paramat » Fri Feb 17, 2017 19:33

The crosshair can be customised by using a crosshair texture in a texture pack, see https://github.com/minetest/minetest/blob/master/doc/texture_packs.txt#L60
 

User avatar
Sergey
Member
 
Posts: 362
Joined: Wed Jan 11, 2017 13:28

Re: Contrast crosshair

by Sergey » Sat Feb 18, 2017 12:35

paramat wrote:The crosshair can be customised by using a crosshair texture in a texture pack, see https://github.com/minetest/minetest/blob/master/doc/texture_packs.txt#L60

What dimensions of texture should be? 8x8? 16x16?
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Contrast crosshair

by kaeza » Sat Feb 18, 2017 16:55

It may be any size. It's rendered 1:1 on the screen.

Image
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Contrast crosshair

by kaeza » Sat Feb 18, 2017 17:06

Something like this should work fairly well:

1x:
Image
10x:
Image

Image
Image
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
Sergey
Member
 
Posts: 362
Joined: Wed Jan 11, 2017 13:28

Re: Contrast crosshair

by Sergey » Sun Feb 19, 2017 11:33

I tried many different crosshair textures. And found the best (at least for me).

Scheme:

Image
Texture has 21px × 21px size. Grey color is transparent area.

Texture:
(download and try it)

Image

Screenshots:
(click for full view):

Image Image
Attachments
crosshair7.png
Crosshair for Minetest
crosshair7.png (115 Bytes) Viewed 1479 times
crosshair7-big.png
crosshair7-big.png (742 Bytes) Viewed 1480 times
Last edited by Sergey on Sun Feb 19, 2017 15:30, edited 11 times in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Contrast crosshair

by Krock » Sun Feb 19, 2017 11:42

Inspired from the Moorhuhn shooter games with semitransparent pixels:
Image

EDIT: It would also be possible to use the cursor as crosshair, to prank friends.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

ABJ
Member
 
Posts: 2344
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ

Re: Contrast crosshair

by ABJ » Thu Feb 23, 2017 18:54

I would personally prefer a crosshair with contrasting middle and outlines. Would be so goddamn confusing to find in a shady-lighty background.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 11 guests

cron