Changeset 1868 for GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include
- Timestamp:
- 12/08/06 18:28:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1834 r1868 26 26 #include "ExampleApplication.h" 27 27 #include "OgreIlluminationManager.h" 28 29 float causize = 10; 30 float cauintens = 40;28 #include "FrameCapture.h" 29 30 FrameCapture* capture; 31 31 int scene = 3; 32 32 33 // Listener class for frame updates 33 34 class RaytraceDemoListener : public ExampleFrameListener … … 47 48 this->objectNode = objectNode; 48 49 } 50 51 void moveCamera() 52 {/* 53 mCamera->yaw(mRotX); 54 mCamera->pitch(mRotY); 55 mCamera->moveRelative(mTranslateVector);*/ 56 57 mCamera->getParentSceneNode()->yaw(mRotX, Node::TransformSpace::TS_WORLD); 58 mCamera->getParentSceneNode()->pitch(mRotY, Node::TransformSpace::TS_LOCAL); 59 mCamera->getParentSceneNode()->translate(mTranslateVector, Node::TransformSpace::TS_LOCAL); 60 61 } 62 49 63 bool processUnbufferedKeyInput(const FrameEvent& evt) 50 64 { … … 219 233 "O: " + StringConverter::toString(mCamera->getDerivedOrientation())); 220 234 } 221 235 if (mInputDevice->isKeyDown(KC_N) && mTimeUntilNextToggle <= 0) 236 { 237 capture->playEvent(); 238 mTimeUntilNextToggle = 1; 239 } 240 if (mInputDevice->isKeyDown(KC_B) && mTimeUntilNextToggle <= 0) 241 { 242 capture->recordEvent(); 243 mTimeUntilNextToggle = 1; 244 } 245 if (mInputDevice->isKeyDown(KC_M) && mTimeUntilNextToggle <= 0) 246 { 247 capture->setSaving(); 248 capture->playEvent(); 249 mTimeUntilNextToggle = 1; 250 } 222 251 223 252 lastTime = thisTime; … … 357 386 mCamera->setNearClipDistance(0.1); 358 387 388 capture = new FrameCapture(mWindow); 359 389 switch (scene) 360 390 { … … 708 738 mFrameListener->setPriority(1); 709 739 OgreIlluminationManager::getSingleton().setPriority(10); 740 capture->setPriority(6); 741 mRoot->addFrameListener(capture); 710 742 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 711 743 mRoot->addFrameListener(mFrameListener);
Note: See TracChangeset
for help on using the changeset viewer.