Skip to main content
gamedev.net
🔒 Locked

Camera

Started by Luke1 Oct 3, 2002 at 3:13 PM 0 replies 250+ views
Original Post
Luke1
Luke1
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 ?
IFooBar
IFooBar
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

Topic Locked

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

Sign in to reply to this topic.