Update of /cvsroot/playerstage/code/gazebo/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23327/server

Modified Files:
      Tag: ogre
        OgreAdaptor.cc World.cc 
Log Message:
Updates

Index: World.cc
===================================================================
RCS file: /cvsroot/playerstage/code/gazebo/server/World.cc,v
retrieving revision 1.92.2.5
retrieving revision 1.92.2.6
diff -C2 -d -r1.92.2.5 -r1.92.2.6
*** World.cc    7 Aug 2006 20:52:26 -0000       1.92.2.5
--- World.cc    10 Aug 2006 03:53:11 -0000      1.92.2.6
***************
*** 262,266 ****
--- 262,280 ----
                      */
                      
+   Ogre::Plane *plane = new Ogre::Plane();
+   plane->normal = Ogre::Vector3::UNIT_Y;
+   plane->d = 0;
+ 
+   Ogre::MeshManager::getSingleton().createPlane("fullscreenPlane",
+       Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, *plane,
+       1500,1500,20,20,true,1,5,5, Ogre::Vector3::UNIT_Z);
  
+   Ogre::Entity *fullscreenPlaneEnt = 
this->ogreAdaptor->sceneMgr->createEntity( "FullScreenPlaneEntity", 
"fullscreenPlane");
+   fullscreenPlaneEnt->setCastShadows(false);
+ 
+   Ogre::SceneNode *planeNode = 
this->ogreAdaptor->sceneMgr->getRootSceneNode()->createChildSceneNode();
+   planeNode->attachObject(fullscreenPlaneEnt);
+   planeNode->translate(0,0,0);
+   
    return 0;
  }

Index: OgreAdaptor.cc
===================================================================
RCS file: /cvsroot/playerstage/code/gazebo/server/Attic/OgreAdaptor.cc,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -d -r1.1.2.8 -r1.1.2.9
*** OgreAdaptor.cc      7 Aug 2006 20:52:26 -0000       1.1.2.8
--- OgreAdaptor.cc      10 Aug 2006 03:53:11 -0000      1.1.2.9
***************
*** 133,140 ****
  
    // Position it
!   this->camera->setPosition(Ogre::Vector3(2,2,10));
  
    this->camera->lookAt(Ogre::Vector3(0,0,0));
!   this->camera->setNearClipDistance(5);
  }
  
--- 133,140 ----
  
    // Position it
!   this->camera->setPosition(Ogre::Vector3(2,20,10));
  
    this->camera->lookAt(Ogre::Vector3(0,0,0));
!   this->camera->setNearClipDistance(2);
  }
  
***************
*** 146,155 ****
    vp->setBackgroundColour( Ogre::ColourValue( 0,0,0) );
  
-   printf("1\n");
- 
    // Alter the camera aspect ratio to match the viewport
    this->camera->setAspectRatio( Ogre::Real(vp->getActualWidth()) / 
Ogre::Real(vp->getActualHeight()));
- 
-   printf("2\n");
  }
  
--- 146,151 ----


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to