Can you help me to write a camera movement in a 3d space? I got my context ok, but i really can’t make the whole yaw, pitch, cos’s and sin’s thing getting in the work…
And it will by totally unbeliaveble, if I can control the camera’s rotation via mouse… Like 1st person engines…
I have been trying this for months and no success at all
Can somebody share some code??!?! I’ve made a lot of searchs through the forum, but no good.
This may be more of a heavy-handed solution than you are looking for but …
You could try looking at the source for Producer::Camera that’s used by OpenSceneGraph. Once you download the source … look at …/Producer/include/Producer/Camera and …/Producer/src/Camera.cpp.