- Timestamp:
- 12/08/06 18:28:35 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest
- Files:
-
- 2 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); -
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/scripts/DiffuseTest.vcproj
r1712 r1868 42 42 Name="VCCLCompilerTool" 43 43 Optimization="0" 44 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns "44 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns;..\..\Common\include" 45 45 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 46 46 MinimalRebuild="true" … … 133 133 OmitFramePointers="true" 134 134 EnableFiberSafeOptimizations="false" 135 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns "135 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns;..\..\Common\include" 136 136 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 137 137 StringPooling="true"
Note: See TracChangeset
for help on using the changeset viewer.