Ignore:
Timestamp:
12/11/06 16:30:08 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/include/ReflectionTest.h

    r1863 r1879  
    3030#include "FrameCapture.h" 
    3131 
    32 int scene = 3; 
     32int scene = 1; 
    3333FrameCapture* capture; 
    3434 
     
    311311        SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 
    312312                 
    313                 mCamera->setPosition(0.532,1.232,1.529); 
    314                 mCamera->lookAt(Vector3(0,1.2,0.0)); 
    315                  
    316                 Entity* object = mSceneMgr->createEntity("object", "teapot.mesh"); 
     313                mCamera->getParentSceneNode()->translate(1.1,0.8,1.0); 
     314                //mCamera->lookAt(Vector3(0,1.2,0.0)); 
     315                 
     316                bool teapot = true; 
     317                Entity* object; 
     318                if(teapot) 
     319                object = mSceneMgr->createEntity("object", "teapot.mesh"); 
     320                else 
     321          object = mSceneMgr->createEntity("object", "sphere.mesh"); 
     322 
    317323                object->setMaterialName("MetalTeapotMultipleBounce"); 
    318324                objectNode = rootNode->createChildSceneNode("objectNode"); 
    319325                objectNode->attachObject(object); 
     326                if(teapot) 
    320327                objectNode->scale(0.5,0.5,0.5); 
     328                else 
     329                objectNode->scale(0.005,0.005,0.005); 
    321330                //objectNode->scale(0.005,0.005,0.005); 
    322331                objectNode->setPosition(0,1.2,0); 
Note: See TracChangeset for help on using the changeset viewer.