Changeset 2163 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 02/26/07 09:48:36 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include/CausticTest.h
r2144 r2163 180 180 void createScene(void) 181 181 { 182 182 std::string terrain_cfg("terrainCulling.cfg"); 183 mSceneMgr->setWorldGeometry(terrain_cfg); 183 184 //createPostproc(); 184 185 OgreIlluminationManager::getSingleton().setBlurShadowMap(true); … … 233 234 bbs->setMaterialName("Flare"); 234 235 mainLightNode->attachObject(bbs); 236 237 Root::getSingleton().renderOneFrame(); 238 //mSceneMgr->_updateSceneGraph(mCamera); 235 239 236 240 -
GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/SceneSerializer.cpp
r1079 r2163 39 39 Matrix4 transformMatrix = StringConverter::parseMatrix4(params); 40 40 context.sceneNode->setOrientation(transformMatrix.extractQuaternion()); 41 41 42 Vector4 x(1,0,0,0); 42 43 x = transformMatrix * x; … … 49 50 (Vector3(z.x,z.y,z.z)).length()); 50 51 context.sceneNode->translate(transformMatrix.getTrans()); 52 51 53 return false; 52 54 } -
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2158 r2163 40 40 { 41 41 framecount = 0; 42 mMoveSpeed /= 5 .0;42 mMoveSpeed /= 50.0; 43 43 } 44 44 … … 102 102 103 103 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 104 mCamera->setPosition(0, 20,40);104 mCamera->setPosition(0,0,0); 105 105 //mCamera->setPosition(0,100,0); 106 106 //mCamera->lookAt(0,-1,0); 107 107 mCamera->setFOVy(Radian(Degree(80))); 108 //mCamera->setFarClipDistance(1000); 108 mCamera->setNearClipDistance(0.01); 109 mCamera->setFarClipDistance(1000); 109 110 // Set ambient light 110 111 mSceneMgr->setAmbientLight(ColourValue(0.1, 0.1, 0.1)); 111 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox" );112 112 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox", 500); 113 113 114 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 114 115 115 /*116 116 117 SceneSerializer s(mSceneMgr); 117 118 DataStreamPtr inputStream; 118 inputStream = ResourceGroupManager::getSingleton().openResource(" level.txt");119 inputStream = ResourceGroupManager::getSingleton().openResource("towers2.level"); 119 120 s.parseScript(inputStream, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 120 */121 Entity* tower = mSceneMgr->createEntity("tower","tower.mesh");121 122 /* Entity* tower = mSceneMgr->createEntity("tower","tower.mesh"); 122 123 SceneNode* tNode = rootNode->createChildSceneNode("tower"); 123 124 tNode->setScale(10,10,10); … … 129 130 tNode2->setScale(10,10,10); 130 131 tNode2->setPosition(0,0,100); 131 tNode2->attachObject(tower2); 132 tNode2->attachObject(tower2);*/ 132 133 133 134 /* Entity* tower3 = mSceneMgr->createEntity("tower3","tower.mesh");
Note: See TracChangeset
for help on using the changeset viewer.