Skip to main content

History: Camcorder

Source of version: 9

Copy to clipboard
            I use this class to help me record demos without having the jerky movement of a manually moved camera; the animation smooths out my motion making a more professional looking video. --((User:Sinbad|Sinbad))

To use this class, just include it in your project, and call ''init(viewport, camera)'' and ''setEnabled(true)'' to turn it on. You will need to call ''processUnbufferedKeyboard'' and update every frame. When enabled, you can start & stop recording the camera by pressing ''Insert'', and toggle playback using ''Return''. The brackets change the interval between the keyframes that are created in record mode, and the playback speed in playback mode. You can also place keyframes manually with the ''Space'' key.

It's currently limited to just one animation and there are no editing features built in, it's purely one-shot recording & playback. Feel free to extend it to full Final Cut Pro status if you want :)

{maketoc}

!Prerequisites
This class was made using the '''old''' overlays, so you need to grab OgreCore.zip from here:
http://ogre.svn.sourceforge.net/viewvc/ogre/branches/v1-6/Samples/Media/packs/OgreCore.zip

Add this to resources[[_d].cfg:
{CODE(wrap="1", colors="ini")}Zip=../../media/packs/OgreCore.zip{CODE}

!Usage
{CODE(wrap="1", colors="c++", caption="Initialisation")}
camCorder = new CamcorderHelper();
camCorder->init(vp, mCamera);
camCorder->setEnabled(true);
{CODE}
{CODE(wrap="1", colors="c++", caption="frameRenderingQueued")}
camCorder->processUnbufferedKeyboard(mKeyboard, evt.timeSinceLastFrame);
camCorder->update(evt.timeSinceLastFrame);
{CODE}

!Code
{toc}

!Loading and Saving animations using the AnimationSerializer
The ((AnimationSerializer)) was made to be able to save and load recorded camera animations, and it requires only two small changes to the CamcorderHelper class.
        

History

Information Version
Sat 31 of Jul, 2010 22:43 GMT-0000 jacmoe 14
Sat 31 of Jul, 2010 22:42 GMT-0000 jacmoe 13
Sat 31 of Jul, 2010 22:41 GMT-0000 jacmoe 12
Sat 31 of Jul, 2010 13:22 GMT-0000 jacmoe 11
Sat 31 of Jul, 2010 13:06 GMT-0000 jacmoe 10
Sat 31 of Jul, 2010 12:59 GMT-0000 jacmoe 9
Sat 31 of Jul, 2010 12:57 GMT-0000 jacmoe 8
Sat 31 of Jul, 2010 12:56 GMT-0000 jacmoe 7
Sat 31 of Jul, 2010 10:21 GMT-0000 jacmoe 6
Fri 30 of Jul, 2010 15:34 GMT-0000 jacmoe 5
Sat 02 of Jan, 2010 23:39 GMT-0000 jacmoe 4
Fri 25 of Dec, 2009 20:00 GMT-0000 jacmoe 3
Fri 25 of Dec, 2009 19:59 GMT-0000 jacmoe 2
Sun 12 of Oct, 2008 17:45 GMT-0000 OgreWikiBot Robot: Cosmetic changes 1