Upvote Upvoted 0 Downvote Downvoted
image xhairs
posted in Customization
1
#1
0 Frags +

When I make vtf crosshairs and use the stroke effect,I get some pixels in game around the crosshairs outside of the outline colored like the crosshair.
Halp.

When I make vtf crosshairs and use the stroke effect,I get some pixels in game around the crosshairs outside of the outline colored like the crosshair.
Halp.
2
#2
0 Frags +

you should probably post screenshots if you want help

you should probably post screenshots if you want help
3
#3
1 Frags +

Make sure you aren't generating mipmaps (check the flags for the VTF). Something odd about this that usually works is making your outline not a pure black. For example, using 0 0 0 220 RGBA instead of pure black 0 0 0 255 RGBA usually fixes this. If that works, try slowly raising the alpha from 220 up to 250. Alpha 250 often works for me.

Alternatively, depending on your crosshair and if you don't care about linear scaling, you could try the Point Sample flag. This will avoid the problem but you probably don't want this if you scale up or down your crosshair.

Make sure you aren't generating mipmaps (check the flags for the VTF). Something odd about this that usually works is making your outline not a pure black. For example, using 0 0 0 220 RGBA instead of pure black 0 0 0 255 RGBA usually fixes this. If that works, try slowly raising the alpha from 220 up to 250. Alpha 250 often works for me.

Alternatively, depending on your crosshair and if you don't care about linear scaling, you could try the Point Sample flag. This will avoid the problem but you probably don't want this if you scale up or down your crosshair.
4
#4
0 Frags +

http://images.akamai.steamusercontent.com/ugc/252591929669079004/8ACCE5F82BF603455C5783B9851DC0DFB1D6D445/

http://images.akamai.steamusercontent.com/ugc/252591929669079004/8ACCE5F82BF603455C5783B9851DC0DFB1D6D445/
5
#5
0 Frags +

If what enderp said didn't work, I'd just learn how to do the pixel art because for something like a basic outline you could do that by hand in like 10 seconds. Also, if you wanted to anti alias the crosshair it's actually pretty interesting and rewarding to learn how to do manually.

If what enderp said didn't work, I'd just learn how to do the pixel art because for something like a basic outline you could do that by hand in like 10 seconds. Also, if you wanted to anti alias the crosshair it's actually pretty interesting and rewarding to learn how to do manually.
6
#6
2 Frags +

Cover the entire background of your crosshair with pure black at alpha 1, so that you can't really see it at all but it's still there. This has always solved all my issues with white borders from blending alpha areas, imo is the easiest way, and doesn't require messing with the black border itself like Enderp's method.

I was going to mention the Point Sample vtf flag too, so I'll just elaborate on Enderp's description. Point Sample will make it completely pixelated--resizing doesn't blend colors any. So this should solve the issue of the white border when resized, and if it's a good thing it'd make the black and the yellow of your crosshair stop mixing together as it gets smaller. The issue with it though is that if you resize it to be small enough, it loses pixels and some sides might be smaller (and in the case of having black borders, you might start missing them on some sides). My opinion for Point Sample is that it's good for when a hud element is slightly resized because of resolutions, but not much else.

Cover the entire background of your crosshair with pure black at alpha 1, so that you can't really see it at all but it's still there. This has always solved all my issues with white borders from blending alpha areas, imo is the easiest way, and doesn't require messing with the black border itself like Enderp's method.

I was going to mention the Point Sample vtf flag too, so I'll just elaborate on Enderp's description. Point Sample will make it completely pixelated--resizing doesn't blend colors any. So this should solve the issue of the white border when resized, and if it's a good thing it'd make the black and the yellow of your crosshair stop mixing together as it gets smaller. The issue with it though is that if you resize it to be small enough, it loses pixels and some sides might be smaller (and in the case of having black borders, you might start missing them on some sides). My opinion for Point Sample is that it's good for when a hud element is slightly resized because of resolutions, but not much else.
7
#7
0 Frags +

Can you help me out a little bit doing that,I'm pretty bad at photoshop and my English is just not undestood by google

Can you help me out a little bit doing that,I'm pretty bad at photoshop and my English is just not undestood by google
Please sign in through STEAM to post a comment.