Xonotic Forums
Make your own crosshairs a la Cortez666 - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Configuration Tips (https://forums.xonotic.org/forumdisplay.php?fid=19)
+--- Thread: Make your own crosshairs a la Cortez666 (/showthread.php?tid=2503)



Make your own crosshairs a la Cortez666 - Soelen - 01-09-2012

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

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...

[Image: part1.jpg]

done!

[Image: part2hu.jpg]

STEP 2.2

create now in your xonotic directory a folder called data/gfx. If gfx already exist, scip this STEP!

[Image: part2b.jpg]

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.

[Image: part2cq.jpg]

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...

[Image: part3.jpg]

And the middle should be red... DONE!

[Image: part4ei.jpg]

STEP 2.5

Write a new image called

crosshair20.jpg

in the same gfx folder like where the alpha image is

[Image: part4b.jpg]

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!

[Image: part4cc.jpg]

STEP 2.9

Join a server and enjoy to see from your "point of view" who's a dick*

[Image: part4d.jpg]

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


RE: Make your own crosshairs a la Cortez666 - shnbwmn - 01-10-2012

In a strange way, that was actually useful Tongue


RE: Make your own crosshairs a la Cortez666 - asyyy - 01-10-2012

I bet you had fun doing this.


RE: Make your own crosshairs a la Cortez666 - N1mbus - 01-10-2012

I'm a big dick. Lovely Big Grin


RE: Make your own crosshairs a la Cortez666 - Justin - 01-10-2012

It definitely should be set as a default.
Great tutorial btw Smile
PS
Now I will be aware of meeting you in-game Soelen Big Grin


RE: Make your own crosshairs a la Cortez666 - chooksta - 01-11-2012

all i can say is t.

t

:^

oh and i voted dicks everywhere , due to it being funny and the fact of an extreeme lack of hawt chicks in game (maybe we should add %20 of nerd girl related stuff into dev to get them to join community , then they will see what awesome gentlenerds we are. )


t


:^


RE: Make your own crosshairs a la Cortez666 - chooksta - 01-11-2012

hahahahhah , n1 n1

wp

i summon the devs to make this happen

er..

ssssssssssssssuuuuuummmonnnnnn

i think that has worked....


t



:^


RE: Make your own crosshairs a la Cortez666 - Sless - 01-11-2012

OMFG.

Soelen - you're like a mad genius with too much time.

*LOOOOOOOOL*


I recommend this gametype as included mutator.

*reciting chookys summoning*


RE: Make your own crosshairs a la Cortez666 - CuBe0wL - 01-11-2012

Big Grin

I have to admit, I had a good laugh.
Also, it lacks the glans, so it's imho the start of...

[Image: 1rdw8q5vylnd96clsy7_thumb.jpg]

OMG!!! JAZZ JACKRABBIT!!!


RE: Make your own crosshairs a la Cortez666 - Soelen - 01-11-2012

You sure deserve a Reputation just by knowing Jazz Jackrabbit!


RE: Make your own crosshairs a la Cortez666 - Mr. Bougo - 01-12-2012

(01-11-2012, 07:11 PM)C.Brutail Wrote: OMG!!! JAZZ JACKRABBIT!!!

You should see a urologist ASAP!

Speaking of jazz jackrabbit, we should make a xonotic weapon mod inspired by it!

EDIT: hey, how did you post such a big rep review for Cube, Soelen? I tried to do one for Rashmi but it seemed limited in length.
EDIT2: oops, obviously didn't read it all. Well this system's kind of silly, why would it put the limit in the UI and not in the backend as well...


RE: Make your own crosshairs a la Cortez666 - PinkRobot - 01-12-2012

Haha, wonderful. I guess someone should try to fix that. Or not.


RE: Make your own crosshairs a la Cortez666 - CuBe0wL - 01-12-2012

HAHA Big Grin

I'll have to quote Sless now:

<Sless> Soelen is really like a mad-man genius with a hang to chaos and too much time.


RE: Make your own crosshairs a la Cortez666 - Lord Canistra - 01-12-2012

All what's left to do is another tutorial about making weapon sounds with Pingas practical example.


RE: Make your own crosshairs a la Cortez666 - Soelen - 01-12-2012

due some asyyy issues I changed tutorial images. Also attached example files.

@neko
1. get this zip file

pingasweaponsounds.zip

2. unzip directory weapons into your data/sound folder. If there is no sound folder, create one

3. enjoy


RE: Make your own crosshairs a la Cortez666 - Mr. Bougo - 01-13-2012

The discussion on offensive imagery has been moved to sanity island.

http://forums.xonotic.org/showthread.php?tid=2515