Pete´s Messageboard... No ISO/BIOS requests!

Homepage Members Register Login Search Old board


Neuer Thread ...


AuthorTopics » Book an abo for this threadClose Thread Move Thread Fix the thread Print view Delete this thread

Blakrajder ...



...

Status:Offline
Date registered: 08.11.2007
Post:4
Send Message
...   Created on 08.11.2007 - 14:36Jump to top Quote this post Report this post Edit Delete


I found a way to display crosshair.
Link to shader:
ngemu post with attachment

This was my original message schrieb
    Does anyone can make some shader that will be an aim dot or crosshair? That kind of shader would be great for some fps games, like Medal of Honor, when you play on analog gamepad for examle.


[Dieser Beitrag wurde am 28.10.2011 - 03:04 von Blakrajder aktualisiert]




The_Source ...
Real addict
.........

...

Status:Offline
Date registered: 14.07.2004
Post:527
Send Message
...   Created on 08.11.2007 - 20:57Jump to top Quote this post Report this post Edit Delete


You mean a cross that always stays in the center of the screen? If so it shouldn't be hard (and it is actually a good idea for fps). Guest, would you be so kind?





Signature
He wants to cure the minds,
The minds of entire humankind


Blakrajder ...



...

Status:Offline
Date registered: 08.11.2007
Post:4
Send Message
...   Created on 09.11.2007 - 15:24Jump to top Quote this post Report this post Edit Delete


I just discovered the way to display that crosshair.
I used Pete's "Multitexture demo" ARB shader in witch I modified tga texture to look like crosshair with dot.


I made 3 versions of crosshairs: dot, cross and cross with dot that are positioned in the middle of he screen.
And the same crosshairs but positioned a little lower on the screen, made for Medal of Honor and Medal of Honor Underground.

All available to download HERE

[Dieser Beitrag wurde am 09.11.2007 - 17:19 von Blakrajder aktualisiert]




VerGreeneyes 
Strong supporter
......

...

Status:Offline
Date registered: 26.04.2007
Post:89
Send Message
...   Created on 13.11.2007 - 14:13Jump to top Quote this post Report this post Edit Delete


Interesting, I didn't know about this type of shader. The code looks a bit like assembly. One question, looking at the shader files it looks like you're simply adding the colours together. In practice, does this mean that on a black surface, the crosshair is yellow, and on anything significantly lighter it is white? (including on a white surface)

If so, perhaps a bitwise XOR (if available) with white would be better, to invert whichever colour is currently underneath the crosshair.

Edit: here's the fragment file for my idea, dunno how it looks in an FPS.

Code:
1:
2:
3:
4:
5:
6:
7:
8:
 
!!ARBfp1.0
TEMP color0,color1;
TEX  color0,fragment.texcoord[0],texture[0],2D;
TEX  color1,fragment.texcoord[1],texture[1],2D;
ADD  color1,color1,-color0;
ABS  result.color,color1;
MOV  result.color.a,color0.a;
END


[Dieser Beitrag wurde am 13.11.2007 - 16:38 von VerGreeneyes aktualisiert]




blakrajder ...



...

Status:Offline
Date registered: 08.11.2007
Post:4
Send Message
...   Created on 24.07.2008 - 12:57Jump to top Quote this post Report this post Edit Delete


A new link to download crosshairs.
In hope that anyone would be in need for this

Filefront




Blakrajder ...



...

Status:Offline
Date registered: 08.11.2007
Post:4
Send Message
...   Created on 28.10.2011 - 03:07Jump to top Quote this post Report this post Edit Delete


Edited first post and added new link(hopefully permanent), it's attachment on ngemu forum.





Similarly threads:
Topics Created by Replies Boardname
Kleines crosshair rahi 2 ratbusta
Crosshair apeheaD 6 apehead
Neuer Thread ...





Masthead

This forum is a free service of razyboard.com
Do you want a free forum in less than two minutes? Then click here!



blank