- Timestamp:
- 12/07/06 20:27:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/include/ReflectionTest.h
r1862 r1863 404 404 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 405 405 406 mCamera->setPosition(6.564,4.328,0.059); 407 mCamera->lookAt(Vector3(0.4,0.16,0.25)); 408 409 Entity* object = mSceneMgr->createEntity("object", "teapot.mesh"); 406 bool teapot = true; 407 //mCamera->getParentSceneNode()->translate(Vector3(6.564,4.328,0.059)); 408 //mCamera->setPosition(4.0,4.2,-3.5); 409 mCamera->setPosition(7.0,2.6,-0.5); 410 mCamera->lookAt(Vector3(1.0, 0.0,0.6)); 411 Entity* object; 412 413 if(teapot) 414 object = mSceneMgr->createEntity("object", "teapot.mesh"); 415 else 416 object = mSceneMgr->createEntity("object", "sphere.mesh"); 410 417 object->setMaterialName("MetalTeapotMultipleBounce"); 411 418 objectNode = rootNode->createChildSceneNode(); 412 419 objectNode->attachObject(object); 413 //objectNode->scale(0.5,0.5,0.5); 414 objectNode->scale(2.7,2.7,2.7); 415 objectNode->setPosition(0,0.7,0.0); 420 421 if(teapot) 422 { 423 objectNode->scale(2.7,2.7,2.7); 424 objectNode->setPosition(0,0.7,0.0); 425 } 426 else 427 { 428 objectNode->scale(0.027,0.027,0.027); 429 objectNode->setPosition(1,0.0,1.0); 430 } 431 416 432 objectNode->_updateBounds(); 417 433
Note: See TracChangeset
for help on using the changeset viewer.