Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am running into a problem when I set the resolution of my screen and the objects in the HUD. When an increase of resolution happens the reticule image becomes bigger, when I want it to stay the same. Anyone got any tips?

Thanks in advice.

share|improve this question
    
Which engine/toolset are you using? What does your draw call for the reticule look like? etc. –  Jim Aug 9 '12 at 0:38
add comment

1 Answer

You can draw the reticule by using a percentage of the width and height of your resolution.

For example if you want the reticule to be a 5% size:

Resolution  | Reticule Size
1024 x 768  | 51.2 x 38.4
1280 x 1024 | 64 x 51.2

So the size of the reticule will change depending on the resolution, but it would look the same to you.

share|improve this answer
    
as of right now I dont have a texture or anything for the reticule, what I have rendering is a quad in the middle of the screen representing that reticule. I wanted to make this reticule a square and then put a texture on it.So currently I am doing this world[0] = XMMatrixTransformation(scaleOrigin,ScaleOrientation,Scale,rotOrigin,rotQuaternio‌​n,Position); So I need to work with the scale varibale to make it a perfect quad in the screen that does not get bigger when the resolution is increased. Not sure if the OrthoCamera that I am using for the HUD can cause some issues with this. –  ricardo Aug 9 '12 at 4:47
    
You can also draw the reticule using a orthographic camera, so that you can actually measure the size dependent on the screen size. –  Luis Estrada Aug 9 '12 at 17:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.