Advertisement

My Mouse Cursor with no Ortho !!

Started by October 06, 2002 02:38 PM
3 comments, last by Dani_Filth 22 years, 4 months ago
Hi I am currently developing an FPS game and the menus are all fine, the only thing that is missing is the mouse cursor...well I had the idea of making an TGA image and make my own cursor, but the only way I founded was in the Nehe Code(the picking) but I want to do make an image in the cursor position without using the Ortho mode can someone please help me !!!! remember no ortho that is very important. Thank you for your attention. "Of all the things I''''ve lost I miss my mind the most." - Ozzy Osbourne
"Of all the things I''ve lost I miss my mind the most."- Ozzy Osbourne
When you not use Ortho mode then draw a quad (z postion of every corner = 0.0f) and map it with a texture.
Advertisement
Hi

Ok, seems to me that you want to make the firing cursor that player will use to shot the guns. Well, in fact you can use the Ortho to draw the image in the center of screen and then, using the perspective, see to where are you shooting, heighter using gluProject or the selection matrix. You can find tutorials at GameTutorials, nehe and msdn.....

Hope this helps you

Filami

Techno Grooves
Techno Grooves
Thank you guys but I can''t use Ortho...I just can its a problem with HL models...but that doesn''t matter e need to do that but without Orto pleeeeeeeeeaaaaaaaasssssssssssseeeeeeeee !!!!!

"Of all the things I''''ve lost I miss my mind the most."
- Ozzy Osbourne
"Of all the things I''ve lost I miss my mind the most."- Ozzy Osbourne
soo... make it so:

clearbuffer and screen
set up perspective view
translate/roatet
draw model
set up ortho
draw coursor

This topic is closed to new replies.

Advertisement