3 steps to success! Simple and fast explained!
STEP 1
open Photoshop / Gimp
STEP 2
create a new file, transparent, power of 2 resolutions (16x16px, 32x32px, 64x64px, 128x128px etc..)
why resolution² (not need to be done, just additional informations) see link below.
STEP 2.1
first we start to draw the alpha channel for our crosshair
so let's take our brush and draw slowly and very detailed, this is gonna take some time...
done!
STEP 2.2
create now in your xonotic directory a folder called data/gfx. If gfx already exist, scip this STEP!
STEP 2.3
Save your image into your gfx folder with the name
crosshair20_alpha.jpg
As mentioned before Xonotic provides 20 slots so you can choose a slot betwen 1 - 20, meaning if you want to use slot 3 instead, write a crosshair3_alpha.jpg file.
STEP 2.4
Now we are going to create the image which tells the game which parts of our crosshair are coloured! I fill first the image with the color white...
And the middle should be red... DONE!
STEP 2.5
Write a new image called
crosshair20.jpg
in the same gfx folder like where the alpha image is
STEP 2.6
Start Xonotic!
STEP 2.7
Go to Multiplayer > Player Setup and take a look into the Crosshair settings
STEP 2.8
If you done everything right you should see your own crosshair at slot 20! You can give him now a size and additional alpha information!
STEP 2.9
Join a server and enjoy to see from your "point of view" who's a dick*
STEP 3
If you have questions ask dude
STEP 4
Wait a second there arent 3 steps
Additional Informations
Textures and the Power of Two
Alpha Compositing
* No dicks in images included, just pink and nimbus
STEP 1
open Photoshop / Gimp
STEP 2
create a new file, transparent, power of 2 resolutions (16x16px, 32x32px, 64x64px, 128x128px etc..)
why resolution² (not need to be done, just additional informations) see link below.
STEP 2.1
first we start to draw the alpha channel for our crosshair
What you need to know about alpha channels (not need to be done, just additional informations) Wrote:
- You use alpha channel, alpha images to tell the game which part of the crosshair should be transparent
- there are no colors in alpha channels, just black, white and all types of gray
- black areas are invisible
- white areas are visible
- logically gray areas are transparent
so let's take our brush and draw slowly and very detailed, this is gonna take some time...
done!
STEP 2.2
create now in your xonotic directory a folder called data/gfx. If gfx already exist, scip this STEP!
STEP 2.3
What you need to know about how Xonotic inherits (not need to be done, just additional informations) Wrote:
- If you take a look in your data folder there is a pk3 file called xonotic-[NUMBERS]-data.pk3. It's a zip file. You can open it with a zip archiver like winrar.
- If you open this file and go to gfx, you will see crosshair images. There are 20 standard crosshairs with 20 alpha channels. Therefore there are 20 slots for crosshairs.
- But you dont have to overwrite them and create a new pk3 file. Since Xonotic does inherit, you can also throw your crosshairs into your probably new created gfx folder! This is why you created this folder.
Save your image into your gfx folder with the name
crosshair20_alpha.jpg
As mentioned before Xonotic provides 20 slots so you can choose a slot betwen 1 - 20, meaning if you want to use slot 3 instead, write a crosshair3_alpha.jpg file.
STEP 2.4
Now we are going to create the image which tells the game which parts of our crosshair are coloured! I fill first the image with the color white...
And the middle should be red... DONE!
STEP 2.5
Write a new image called
crosshair20.jpg
in the same gfx folder like where the alpha image is
STEP 2.6
Start Xonotic!
STEP 2.7
Go to Multiplayer > Player Setup and take a look into the Crosshair settings
STEP 2.8
If you done everything right you should see your own crosshair at slot 20! You can give him now a size and additional alpha information!
STEP 2.9
Join a server and enjoy to see from your "point of view" who's a dick*
STEP 3
If you have questions ask dude
STEP 4
Wait a second there arent 3 steps
Additional Informations
Textures and the Power of Two
Alpha Compositing
* No dicks in images included, just pink and nimbus