Difficult crosshair question


Tuketu
11-21-2003, 02:06 PM
I have an interesting question that I'm not sure any of us can answer. I'm asking in the hopes of provoking a discussion.

What is the exact center of the crosshair?

After looking at a lot of customxhair.spr files and then making my own, I realize there is no consensus on where the center is.

It is important to me because I want to be aiming at the center of the firing cone.

Here are the facts as I have discovered so far.

1. The default customxhair.spr contains only 1 crosshair. It is centered around row 31, column 31 (31,31).

2. Vass (thanks for the PM answer btw) has the same center (31,31) in his crosshairs.

3. ICU and Phantom and some others are using (32,32) as the center for their crosshairs.

4. The default Dod 1.0 + crosshair has a central dot at the same relative screen position as (32,32)

5. I did a quick (in game) comparison to the "observer" crosshair (the one you get while spectating) My conclusion is that it is centered similar to the (31,31) center.

So you see, there is no real consensus, even within the game. I just want to know... what is the true center?? :rolleyes:

Thoughts? Any way we can test which is the center?

=DD=Wolf Kahler
11-21-2003, 03:06 PM
Unfortunately, the real center is between 31x31 and 32x32, since the screen resolution is a multiple of 2x2, rather than 1x1. There is no central pixel.

The sprites for crosshairs are 64x64, which also makes them 2x2, rather than 1x1, so there is no way of putting a pixel in the center.

However, is it possible to -point- -at- the very center, as is indicated by the attached screenshot of a scope sprite, which demonstrates how to get exact center without putting a pixel there.

Instead of making + crosshairs, think in terms of a >< shape, with the very center between the two points. Well, between and half a pixel above the two points since the points would be on 31x32 and 32x32 [it's easier to look at things above the crosshair than below].

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.