Changeset 1611 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 10/11/06 16:08:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1598 r1611 24 24 */ 25 25 26 27 26 #include "ExampleApplication.h" 28 27 #include "OgreIlluminationManager.h" … … 30 29 float causize = 10; 31 30 float cauintens = 40; 32 31 int scene = 1; 33 32 // Listener class for frame updates 34 33 class RaytraceDemoListener : public ExampleFrameListener … … 321 320 { 322 321 323 //createPostproc();322 //createPostproc(); 324 323 325 324 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 335 334 mCamera->setNearClipDistance(0.1); 336 335 337 //createScene1(); 336 if(scene == 1) 337 createScene1(); 338 else 338 339 createScene2(); 339 340 … … 355 356 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 356 357 357 Entity* object = mSceneMgr->createEntity("object", " athene.mesh");358 Entity* object = mSceneMgr->createEntity("object", "chinaman.mesh"); 358 359 object->setMaterialName("GameTools/Diffuse/use"); 359 360 //object->setMaterialName("GameTools/Diffuse2"); 360 361 objectNode = rootNode->createChildSceneNode(); 361 362 objectNode->attachObject(object); 362 objectNode->scale(0.05,0.05,0.05); 363 objectNode->setPosition(0,4,0); 363 // objectNode->scale(0.05,0.05,0.05); 364 objectNode->scale(3,3,3); 365 // objectNode->setPosition(0,4,0); 364 366 objectNode->_updateBounds(); 365 367 … … 591 593 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 592 594 mRoot->addFrameListener(mFrameListener); 595 if(scene == 2) 593 596 mRoot->addFrameListener(reflListener); 594 597
Note: See TracChangeset
for help on using the changeset viewer.