Changeset 1442 for GTP/trunk/App/Demos/Illum/Ogre/src/HierarchicalSystem
- Timestamp:
- 09/21/06 12:11:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/HierarchicalSystem/include/HierarchicalSystem.h
r1423 r1442 50 50 float t = (float) framecount / 50.0; 51 51 float r = 150; 52 lightNode->setPosition( r * sin(t), r * sin(5 * t) , r * cos(t));52 lightNode->setPosition( r * sin(t), r * sin(5 * t) + 200 , r * cos(t)); 53 53 54 54 framecount++; … … 123 123 void createScene(void) 124 124 { 125 //createPostproc();125 createPostproc(); 126 126 127 127 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 129 129 130 130 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 131 mCamera->setPosition(0, 0,100);131 mCamera->setPosition(0,150,100); 132 132 mCamera->setDirection(0,0,-1); 133 133 mCamera->setFOVy(Radian(Degree(80))); … … 137 137 138 138 // Skybox 139 mSceneMgr->setSkyBox(true, "Examples/ MorningSkyBox", 10);139 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox", 10); 140 140 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 141 141 … … 147 147 kupolaNode = rootNode->createChildSceneNode( "kupola" ); 148 148 kupolaNode->rotate(Vector3(0,1,0),Radian(Degree(90))); 149 //kupolaNode->setPosition(0, -150, 0); 149 150 kupolaNode->attachObject( kupola ); 150 kupolaNode->scale( 25,21,25);151 kupolaNode->scale(50,50,50); 151 152 kupolaNode->_updateBounds(); 152 153 MeshPtr kmesh = kupola->getMesh(); 153 154 kmesh->buildTangentVectors(0,1);*/ 154 155 Entity* head = mSceneMgr->createEntity("head", " ogrehead.mesh");155 156 Entity* head = mSceneMgr->createEntity("head", "athene.mesh"); 156 157 SceneNode* headNode = rootNode->createChildSceneNode("head"); 158 head->setMaterialName("GameTools/Standard"); 157 159 headNode->attachObject(head); 158 //headNode->setScale( 0.5,0.5,0.5);160 //headNode->setScale(1.5,1.5,1.5); 159 161 AxisAlignedBox bbox = head->getBoundingBox(); 160 headNode->setPosition(0, 0,0);162 headNode->setPosition(0,180,20); 161 163 headNode->_updateBounds(); 162 163 /*Entity* head2 = mSceneMgr->createEntity("head2", "ogrehead.mesh");164 SceneNode* headNode2 = rootNode->createChildSceneNode("head2");165 headNode2->attachObject(head2);166 headNode2->setScale(2,2,2);167 headNode2->setPosition(0, 0, 0);*/168 164 169 165 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "GameTools/Big"); 170 166 pSys1->setKeepParticlesInLocalSpace(false); 171 167 SceneNode *pSysNode = rootNode->createChildSceneNode("psys1"); 172 pSysNode->attachObject(pSys1); 173 174 pSysNode->setPosition(0,0,0); 168 pSysNode->attachObject(pSys1); 169 pSysNode->setPosition(0,100,0); 175 170 176 171 //Init lights
Note: See TracChangeset
for help on using the changeset viewer.