Changeset 2443 for GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include
- Timestamp:
- 06/12/07 12:05:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r2334 r2443 361 361 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 362 362 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 363 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Diffuse_Simple"); 363 //ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Diffuse_Simple"); 364 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Diffuse"); 364 365 } 365 366 … … 403 404 //std::string occlusion_cfg("OcclusionCulling.cfg"); 404 405 //mSceneMgr->setWorldGeometry(occlusion_cfg); 405 createPostproc();406 //createPostproc(); 406 407 407 408 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 662 663 Entity* object = mSceneMgr->createEntity("object", "buddha.mesh"); 663 664 //object->setMaterialName("GTP/Diffuse/Disc2Point"); 664 //object->setMaterialName("GTP/Diffuse/Poly2Point");665 object->setMaterialName("GTP/Diffuse/Poly2PointSimple");665 object->setMaterialName("GTP/Diffuse/Poly2Point"); 666 //object->setMaterialName("GTP/Diffuse/Poly2PointSimple"); 666 667 667 668 objectNode = rootNode->createChildSceneNode(); … … 688 689 redLight1->setDiffuseColour(ColourValue(1,0.055, 0.0)); 689 690 redLight1->setPowerScale(1.6); 691 //redLight1->setPowerScale(0.6); 692 redLight1->setAttenuation(20, 0, 0, 3); 690 693 SceneNode* redLightNode1 = rootNode->createChildSceneNode(); 691 694 redLightNode1->setPosition(0.05,2.361,-1.07); … … 697 700 greenLight1->setDiffuseColour(ColourValue(0.362,0.783, 0.685)); 698 701 greenLight1->setPowerScale(2.0); 702 greenLight1->setAttenuation(20, 0, 0, 3); 703 //greenLight1->setPowerScale(1.0); 699 704 SceneNode* greenLightNode1 = rootNode->createChildSceneNode(); 700 705 greenLightNode1->setPosition(1.312,1.313,0); … … 706 711 mainBlueLight->setDiffuseColour(ColourValue(0.395,0.766, 1.0)); 707 712 mainBlueLight->setPowerScale(5.0); 713 //mainBlueLight->setPowerScale(2.0); 708 714 mainBlueLight->setSpotlightRange(Degree(0),Degree(160)); 709 mainBlueLight->setAttenuation(2.5, 0, 1, 0); 715 mainBlueLight->setAttenuation(2.5, 0, 0, 3); 716 //mainBlueLight->setAttenuation(20, 0, 0, 1); 710 717 SceneNode* mainBlueLightNode = rootNode->createChildSceneNode(); 711 718 mainBlueLightNode->setPosition(-0.546,2.095,1.035);
Note: See TracChangeset
for help on using the changeset viewer.