Smooth mouse-controlled camera

Blitz3D Forums/Blitz3D Programming/Smooth mouse-controlled camera

Cubed Inc.(Posted 2012) [#1]
I was curious on how to make a smooth mouse-controlled camera system.
Can someone help me out?

As always, any sort of help is appreciated.


boomboom(Posted 2012) [#2]
What type of movement do you need? A camera system in a top down rts game will be different from a third person shooter, for example.


Cubed Inc.(Posted 2012) [#3]
I was thinking something for a 3rd person shooter.


RemiD(Posted 2012) [#4]
Here my try at it :
http://blitzbasic.com/codearcs/codearcs.php?code=2933

Also a nice example by Jfk :
http://blitzbasic.com/codearcs/codearcs.php?code=2724


Rroff(Posted 2012) [#5]
Not sure what you mean by smooth, but theres 3 different methods generally used for fps freelook:

Average last 2-3 coords
Raw Input
"head" smiulation

If by smooth you mean head simulation then just don't... its horrid makes the game feel laggy, induces motion sickness for people susceptible to that and is something that you automatically compensate for in real life... I'm still at a complete loss as to why people do it.

Last edited 2012