Skip to main content
GameDev.net gamedev.net
🔒 Locked

Images On Camera

Started by paranoia33 Aug 7, 2004 at 11:07 PM 3 replies 1k views
Original Post
paranoia33
paranoia33
This is probably a really simple question, but what are the images that are on the camera on. For example in a FPS the gun and the arm that you see. What is the technical name for those and does anyone know any resources on implementing them with DirectX. I really have no idea where to start with those, being I dont even know what to search for. Thx!
/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/Current Projects:PEngine - Full 3d FPS engine
boebi
boebi
I believe that you're talking about 3D models. They are created in a 3D modeling program and presented on the screen using a 3D graphics API....typically DirectX or OpenGL.
paranoia33
paranoia33
Nonono...I'm already using directX to build a game engine. I have it so you can move around the world, lets say I want a cross hair in the middle of the screen. What do I use to get that 2d image so its always right in the middle of the camera. Do I convert to orthographic after I render 3d stuff, then render a textured quad in the middle of the screen that is always right in front of the camera....what is the exepted method here?

My orignal post was a little vauge sry about that.
/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/Current Projects:PEngine - Full 3d FPS engine
fractoid
fractoid
umm... cockpit? HUD?
stormrunner
stormrunner
for the crosshair, the method you want to use is called masking - you use your crosshair image as a transparent mask that is centered in the middle of the screen (or where ever you want to put it). over-simplified, you would draw the 3d objects first, and then use ortho mode to set the screen(window) coordinates that the image will be at, and draw it (with blending). [google] for more info.
hope that helped, and was semi-correct.
stormrunner

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.