Changeset 141 for code/branches/main_reto/src/OrxonoxScene.cpp
- Timestamp:
- Nov 1, 2007, 7:48:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/src/OrxonoxScene.cpp
r123 r141 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 * 21 * Author: 22 * Reto Grieder 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "OrxonoxScene.h" 2 29 … … 26 53 27 54 28 /// method where you can perform resource group loading 29 /// Must at least do ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); 55 // method where you can perform resource group loading 56 // Must at least do 57 // ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); 30 58 void OrxonoxScene::loadResources(void) 31 59 { … … 44 72 45 73 //create a scene node to attach the head to 46 SceneNode *node = mSceneMgr->getRootSceneNode() ->createChildSceneNode("OgreHeadNode",47 74 SceneNode *node = mSceneMgr->getRootSceneNode() 75 ->createChildSceneNode("OgreHeadNode", Vector3(0,0,0)); 48 76 //attach the ogre head 49 77 node->attachObject(head); 50 78 51 79 // set up skybox 52 mSceneMgr->setSkyBox(true, "Examples/S paceSkyBox");80 mSceneMgr->setSkyBox(true, "Examples/SceneSkyBox2"); 53 81 54 82 // set up one mLight source … … 64 92 bbs->setMaterialName("Examples/Flare"); 65 93 66 lightNode = mSceneMgr->getRootSceneNode() ->createChildSceneNode("LightNode",67 94 lightNode = mSceneMgr->getRootSceneNode() 95 ->createChildSceneNode("LightNode", Vector3(0, 100, 0)); 68 96 69 97 lightNode->attachObject(bbs); … … 82 110 mLight->setSpecularColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2)); 83 111 84 bbs->getBillboard(0)->setColour(ColourValue(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2))); 112 bbs->getBillboard(0)->setColour(ColourValue(sin(1*t), 113 sin(1*t + 2.09), sin(1*t + 2.09*2))); 85 114 }
Note: See TracChangeset
for help on using the changeset viewer.