Page 3 of 6

Re: [MOD] Discrete Crosshair

Posted: Sun Jan 13, 2019 11:07 am
by pango
I've seen no way to specify the hotspot for now, so the hotspot is always at the center of the cursor.
A workaround for off-center hotspot is to add transparent pixels:
Crosshair.png
Crosshair.png (5.64 KiB) Viewed 3296 times

Re: [MOD] Discrete Crosshair

Posted: Sun Jan 13, 2019 2:00 pm
by King of Worms
Hmm, looks good Id say, I think we must see it ingame to know how well it fits/works. Its usually about some compromises of our ideals and restricted reality, no worries VMBlast, this is great start! Thank you & Pango

Re: [MOD] Discrete Crosshair

Posted: Sun Jan 13, 2019 2:34 pm
by VMblast
@pango
Cheers. Cant wait to see it ingame. ;)

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 2:25 am
by Alyndiar
pango wrote: Sun Jan 13, 2019 11:07 am I've seen no way to specify the hotspot for now, so the hotspot is always at the center of the cursor.
A workaround for off-center hotspot is to add transparent pixels:
Crosshair.png
In my tests, the hotspot for the cursor was the top left corner. Are you sure we need an offset?

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 7:13 am
by pango
Hi Alyndiar,
Alyndiar wrote: Mon Jan 14, 2019 2:25 am In my tests, the hotspot for the cursor was the top left corner. Are you sure we need an offset?
Tested it with doors, seems to be in the center to me.
And if I read the code correctly, the crosshair is centered on screen, and I don't think the hotspot ever moves from the center of the screen, which makes it always centered vs the crosshair:
https://github.com/Interkarma/daggerfal ... air.cs#L31

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 7:45 am
by Alyndiar
Hmm... I don't think we're talking about the same thing... You're talking about the crosshair... I'm talking about the pointer, previously the fugly blue arrow you see in the config menu when you start DFU or in the in-game menus like spellmaker or inventory... you know, this :
Cursor2.png
Cursor2.png (281 Bytes) Viewed 3230 times
I tried replacing that with VMblast's cursor my local copy of the repository and rebuilding, cursor is replaced and hotspot is top-left. In fact, when you go to Build Settings... and Player Settings, you can replace the cursor with any image and define the hot-spot. When you rebuild, you get the selected cursor in-game.

I believe that was what King of Worms and Hazelnut were talking about before. Sorry for any confusion I caused if that was not the case.

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 8:19 am
by Alyndiar
VMblast wrote: Sun Jan 13, 2019 10:48 am I did this test of suggested dagger. It would be fitting to have dagger cursor for the Daggerfall game, however Im not too sure, I had to do quite a bit of balancing since daggers are long, with prominent handle. If I squish it too much it'll just become a mess and not look like what suppose to look like.... :?

Image
Image
Image
Image

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 9:14 am
by pango
Alyndiar wrote: Mon Jan 14, 2019 7:45 am Hmm... I don't think we're talking about the same thing... You're talking about the crosshair... I'm talking about the pointer, previously the fugly blue arrow you see in the config menu when you start DFU or in the in-game menus like spellmaker or inventory... you know, this : Cursor2.png
Oh, I totally missed the point then!
Yes, I assume this one will have the same hotspot alignment as the default blue arrow.

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 9:16 am
by VMblast
@Alyndiar
Oh Jesus, this is too small. :P What kind of resolution you've got there? :lol:


Bigger HDUltra versions: Image Image




PS - Concerning spell icons -thats what I was afraid off and gave away three different icon sizes. Unity have bad rescaling algorithm obviously, as the icons get choppy and more "pixelized". Im looking at that feather and its really bad looking. :(

Re: [MOD] Discrete Crosshair

Posted: Mon Jan 14, 2019 10:28 am
by Interkarma
VMblast wrote: Mon Jan 14, 2019 9:16 am PS - Concerning spell icons -thats what I was afraid off and gave away three different icon sizes. Unity have bad rescaling algorithm obviously, as the icons get choppy and more "pixelized". Im looking at that feather and its really bad looking. :(
I noted that Alyndiar posted those screenshots as JPGs, so this is probably more JPG artifacts than Unity's scaling (which is all GPU-based anyway). :) Here's the same feather snipped at 1080p (left) and 4k (right) in PNG format.

feather-1080p-vs-4k.png
feather-1080p-vs-4k.png (150.61 KiB) Viewed 3192 times

The 4k one is definitely sharper, but I think they both hold up fairly well against the 128x128 version supplied in the test atlas. When making the icon pack "for real", you'll be able to use whatever sizes look best for you as well. :)

feather-128x128.png
feather-128x128.png (33.33 KiB) Viewed 3189 times