Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 17, 2007, 3:12:16 PM (17 years ago)
Author:
twidmer
Message:

tutorialcode von twidmer

Location:
code/branches/tutorial/Tutorial/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/Tutorial/src/main.cpp

    r60 r71  
    5050            mSceneMgr->setAmbientLight( ColourValue( 0.3, 0.3, 0.3 ) );
    5151            Entity* head = mSceneMgr->createEntity("head", "ogrehead.mesh");
     52
     53        Entity* head2 = mSceneMgr->createEntity("head2", "ogrehead.mesh");
     54
    5255            SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode", Vector3( 0, 0, 0 ) );
    5356            node->attachObject( head );
     57
     58            SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode2", Vector3( 50, 0, 0 ) );
     59            node2->attachObject( head2 );
     60
    5461
    5562            mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox");
     
    5865            light->setType(Light::LT_POINT);
    5966            light->setPosition(Vector3(0, 100, 0));
    60             light->setDiffuseColour(1.0, 0.0, 0.0);
    61             light->setSpecularColour(1.0, 0.0, 0.0);
     67            light->setDiffuseColour(0.5, 0.5, 0.0);
     68            light->setSpecularColour(0.5, 0.5, 0.0);
    6269
    6370            BillboardSet *bbs = mSceneMgr->createBillboardSet("bb", 1);
Note: See TracChangeset for help on using the changeset viewer.