Camera

Started by
0 comments, last by Luke1 21 years, 6 months ago
I want to make a camera where you can use the arrow keys to move and the mouse to set the direction. How would i do something like this ?
Advertisement
well. I would suggest that you learn how to program a simple camera, then learn how to program user input (with mouse and keyborad). And believe me once you know all that, makeing a movable camera is really easy.

there are some good directInput tutorials at andypike.com i think. and beginner directX tutorials show you how to make a asic camera. so get a hold of some of em. and direct input is also really easy. i learnt it from the sdk docs actually. the tutorials in ther are easy to follow and pretty simple. give it a try

Once youve done all that. then all you really have to do is change the x,y,z values of the camera position depending on what the user pressed or where the user moved the mouse. and in teh case of dirwectX you'll also have to change the loo-at coordiantes (thats where the camera is actually pointing). Programming a camera is more to do with input programming then anything else.



"I know sometimes I ask stupid questions...but i mean well "
[Triple Buffer]|[SCRIPTaGAME]|[My Old Site]

[edit] <_>

[edited by - alfmga on October 3, 2002 5:17:32 PM]
[size=2]aliak.net

This topic is closed to new replies.

Advertisement