Changeset 2267 for GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo
- Timestamp:
- 03/19/07 16:53:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r2260 r2267 192 192 void chooseSceneManager() 193 193 { 194 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager");195 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager");194 mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 195 //mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 196 196 } 197 197 198 198 void createScene(void) 199 199 { 200 createPostproc();200 //createPostproc(); 201 201 202 202 std::string occlusion_cfg("OcclusionCulling.cfg"); 203 mSceneMgr->setWorldGeometry(occlusion_cfg);203 //mSceneMgr->setWorldGeometry(occlusion_cfg); 204 204 205 205 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 227 227 Entity* centerHead = mSceneMgr->createEntity("centerHead", "head.mesh"); 228 228 Entity* goldHead = mSceneMgr->createEntity("goldHead", "head.mesh"); 229 Entity* silverHead = mSceneMgr->createEntity("silverHead e", "head.mesh");229 Entity* silverHead = mSceneMgr->createEntity("silverHead", "head.mesh"); 230 230 Entity* copperHead = mSceneMgr->createEntity("copperHead", "head.mesh"); 231 231 Entity* aluHead = mSceneMgr->createEntity("aluHead", "head.mesh"); … … 237 237 238 238 //init nodes 239 centerSphereNode = rootNode->createChildSceneNode("centerSphere"); 240 centerSphereNode->setPosition(0, 100,0); 241 centerSphereNode->attachObject(centerHead); 242 centerSphereNode->setScale(3.2, 3.2, 3.2); 243 244 goldSphereNode = rootNode->createChildSceneNode( "goldSphere" ); 245 goldSphereNode->scale(2.4, 2.4, 2.4); 246 goldSphereNode->attachObject(goldHead); 247 248 silverSphereNode = rootNode->createChildSceneNode( "silverSphere" ); 249 silverSphereNode->scale(2.4, 2.4, 2.4); 250 silverSphereNode->attachObject(silverHead); 251 252 aluSphereNode = rootNode->createChildSceneNode( "aluSphere" ); 253 aluSphereNode->scale(2.4, 2.4, 2.4); 254 aluSphereNode->attachObject(aluHead); 255 256 copperSphereNode = rootNode->createChildSceneNode( "copperSphere" ); 257 copperSphereNode->scale(2.4, 2.4, 2.4); 258 copperSphereNode->attachObject(copperHead); 259 260 goldSphereNode->_updateBounds(); 261 silverSphereNode->_updateBounds(); 262 aluSphereNode->_updateBounds(); 263 copperSphereNode->_updateBounds(); 264 265 239 266 kupolaNode = rootNode->createChildSceneNode( "kupola" ); 240 267 kupolaNode->rotate(Vector3(0,1,0),Radian(Degree(90))); … … 243 270 //kupolaNode->scale(2,2,2); 244 271 //kupolaNode->setPosition(0,100,0); 245 246 centerSphereNode = rootNode->createChildSceneNode("centerSphere");247 centerSphereNode->setPosition(0, 100,0);248 centerSphereNode->attachObject(centerHead);249 centerSphereNode->setScale(3.2, 3.2, 3.2);250 251 goldSphereNode = rootNode->createChildSceneNode( "goldSphere" );252 goldSphereNode->scale(2.4, 2.4, 2.4);253 goldSphereNode->attachObject(goldHead);254 255 silverSphereNode = rootNode->createChildSceneNode( "silverSphere" );256 silverSphereNode->scale(2.4, 2.4, 2.4);257 silverSphereNode->attachObject(silverHead);258 259 aluSphereNode = rootNode->createChildSceneNode( "aluSphere" );260 aluSphereNode->scale(2.4, 2.4, 2.4);261 aluSphereNode->attachObject(aluHead);262 263 copperSphereNode = rootNode->createChildSceneNode( "copperSphere" );264 copperSphereNode->scale(2.4, 2.4, 2.4);265 copperSphereNode->attachObject(copperHead);266 267 goldSphereNode->_updateBounds();268 silverSphereNode->_updateBounds();269 aluSphereNode->_updateBounds();270 copperSphereNode->_updateBounds();271 272 273 272 kupolaNode->_updateBounds(); 274 273 centerSphereNode->_updateBounds();
Note: See TracChangeset
for help on using the changeset viewer.