Changeset 1691 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 10/27/06 17:40:02 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 7 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include/CausticTest.h
r1629 r1691 95 95 96 96 } 97 if (mInputDevice->isKeyDown(KC_HOME)) 98 { 99 Vector3 lPos = lightNode->getPosition(); 100 Vector3 lDir = sphereNode->getPosition() - lPos; 101 lDir.normalise(); 102 Vector3 right = lDir.crossProduct(Vector3(0,1,0)); 103 Vector3 up = lDir.crossProduct(right); 104 lPos += right, 105 lightNode->setPosition(lPos); 106 light->setDirection(lDir); 107 } 108 if (mInputDevice->isKeyDown(KC_END)) 109 { 110 Vector3 lPos = lightNode->getPosition(); 111 Vector3 lDir = sphereNode->getPosition() - lPos; 112 lDir.normalise(); 113 Vector3 right = lDir.crossProduct(Vector3(0,1,0)); 114 Vector3 up = lDir.crossProduct(right); 115 lPos -= right, 116 lightNode->setPosition(lPos); 117 light->setDirection(lDir); 118 119 } 97 120 return ExampleFrameListener::processUnbufferedKeyInput(evt); 98 121 } … … 155 178 156 179 // Skybox 157 mSceneMgr->setSkyBox(true, "Examples/ MorningSkyBox");180 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox"); 158 181 159 182 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 160 183 161 Entity* sphere = mSceneMgr->createEntity("sphere", " sphere.mesh");184 Entity* sphere = mSceneMgr->createEntity("sphere", "head.mesh"); 162 185 sphere->setMaterialName("GameTools/CausticGlass"); 163 186 sphereNode = rootNode->createChildSceneNode(); 164 sphereNode->setScale(0.1, 0.1, 0.1);187 //sphereNode->setScale(0.1, 0.1, 0.1);//sphere 165 188 sphereNode->setPosition(0, 50, 0); 166 189 sphereNode->attachObject(sphere); 167 190 sphereNode->_updateBounds(); 168 191 192 Entity* room = mSceneMgr->createEntity("room", "atlascube.mesh"); 193 room->setMaterialName("TestPlane"); 194 SceneNode *roomNode = rootNode->createChildSceneNode(); 195 //roomNode->setScale(0.1, 0.1, 0.1); 196 roomNode->setPosition(0, 50, 0); 197 roomNode->attachObject(room); 198 169 199 170 200 Light* mainLight = mSceneMgr->createLight("MainLight"); 171 201 light = mainLight; 172 mainLight->setType(Light::LT_ DIRECTIONAL);202 mainLight->setType(Light::LT_POINT); 173 203 mainLight->setDiffuseColour(ColourValue::White); 174 204 mainLight->setSpecularColour(ColourValue::White); … … 184 214 185 215 186 createPlane("ground", "TestPlane", Vector3(0,0,0), Vector2(500,500));216 //createPlane("ground", "TestPlane", Vector3(0,0,0), Vector2(500,500)); 187 217 188 218 OgreIlluminationManager::getSingleton().initTechniques(); -
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/scripts/CausticTest.vcproj
r1683 r1691 219 219 </File> 220 220 <File 221 RelativePath="..\..\..\Media\materials\programs\GameTools_Blur.hlsl" 222 > 223 </File> 224 <File 225 RelativePath="..\..\..\Media\materials\programs\GameTools_Cau.hlsl" 226 > 227 </File> 228 <File 221 229 RelativePath="..\..\..\Media\materials\programs\GameTools_CauCube.hlsl" 230 > 231 </File> 232 <File 233 RelativePath="..\..\..\Media\materials\programs\GameTools_Caustic.hlsl" 234 > 235 </File> 236 <File 237 RelativePath="..\..\..\Media\materials\programs\GameTools_Localized_EnvMap.hlsl" 222 238 > 223 239 </File> -
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1671 r1691 319 319 void createPostproc() 320 320 { 321 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0),321 /*CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 322 322 "GameTools/Glow"); 323 323 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 324 "GameTools/Glow", true); 324 "GameTools/Glow", true);*/ 325 326 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 327 "GameTools/ToneMap"); 328 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 329 "GameTools/ToneMap", true); 325 330 326 331 } … … 330 335 { 331 336 332 //createPostproc();337 createPostproc(); 333 338 334 339 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r1629 r1691 177 177 { 178 178 179 createPostproc();179 //createPostproc(); 180 180 181 181 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 266 266 //Init lights 267 267 mainLight = mSceneMgr->createLight("MainLight"); 268 mainLight->setType(Light::LT_ SPOTLIGHT);268 mainLight->setType(Light::LT_POINT); 269 269 mainLight->setDiffuseColour(ColourValue::White); 270 270 mainLight->setSpecularColour(ColourValue::White); 271 mainLight->setSpotlightRange(Radian(Degree(175)),Radian(Degree(180)));271 //mainLight->setSpotlightRange(Radian(Degree(175)),Radian(Degree(180))); 272 272 mainLightNode = rootNode->createChildSceneNode(); 273 273 mainLightNode->setPosition(0,0,0); -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/scripts/GameToolsRaytraceDemo.vcproj
r1683 r1691 231 231 > 232 232 </File> 233 <File 234 RelativePath="..\..\..\Media\materials\scripts\kupola.material" 235 > 236 </File> 233 237 </Filter> 234 238 </Files>
Note: See TracChangeset
for help on using the changeset viewer.