Revision: 7836
http://playerstage.svn.sourceforge.net/playerstage/?rev=7836&view=rev
Author: natepak
Date: 2009-06-10 23:15:57 +0000 (Wed, 10 Jun 2009)
Log Message:
-----------
Partially fixed shadows. Must apply ogre_patch.diff to the ogre sources
Modified Paths:
--------------
code/gazebo/trunk/server/Simulator.cc
code/gazebo/trunk/server/gui/GLFrame.cc
code/gazebo/trunk/server/gui/GLFrame.hh
code/gazebo/trunk/server/gui/GLFrameManager.cc
code/gazebo/trunk/server/gui/GLFrameManager.hh
code/gazebo/trunk/server/gui/GLWindow.cc
code/gazebo/trunk/server/gui/GLWindow.hh
code/gazebo/trunk/server/gui/Gui.cc
code/gazebo/trunk/server/gui/Gui.hh
code/gazebo/trunk/server/rendering/CMakeLists.txt
code/gazebo/trunk/server/rendering/OgreAdaptor.cc
code/gazebo/trunk/server/rendering/OgreCreator.cc
code/gazebo/trunk/server/rendering/UserCamera.cc
code/gazebo/trunk/worlds/simpleshapes.world
Added Paths:
-----------
code/gazebo/trunk/ogre_patch.diff
code/gazebo/trunk/server/rendering/ogretest/
code/gazebo/trunk/server/rendering/ogretest/CMakeLists.txt
code/gazebo/trunk/server/rendering/ogretest/GLWindow.cc
code/gazebo/trunk/server/rendering/ogretest/GLWindow.hh
code/gazebo/trunk/server/rendering/ogretest/Ogre.log
code/gazebo/trunk/server/rendering/ogretest/main.cc
code/gazebo/trunk/server/rendering/ogretest/ogre.cfg
code/gazebo/trunk/server/rendering/ogretest/plugins.cfg
code/gazebo/trunk/server/rendering/ogretest/resources.cfg
Added: code/gazebo/trunk/ogre_patch.diff
===================================================================
--- code/gazebo/trunk/ogre_patch.diff (rev 0)
+++ code/gazebo/trunk/ogre_patch.diff 2009-06-10 23:15:57 UTC (rev 7836)
@@ -0,0 +1,13 @@
+Index: RenderSystems/GL/src/GLX/OgreGLXWindow.cpp
+===================================================================
+--- RenderSystems/GL/src/GLX/OgreGLXWindow.cpp (revision 8673)
++++ RenderSystems/GL/src/GLX/OgreGLXWindow.cpp (working copy)
+@@ -543,6 +543,8 @@
+ mWidth = width;
+ mHeight = height;
+
++ XResizeWindow(mGLSupport->getXDisplay(),
mWindow, width, height);
++
+ for (ViewportList::iterator it =
mViewportList.begin(); it != mViewportList.end(); ++it)
+ (*it).second->_updateDimensions();
+ }
Modified: code/gazebo/trunk/server/Simulator.cc
===================================================================
--- code/gazebo/trunk/server/Simulator.cc 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/server/Simulator.cc 2009-06-10 23:15:57 UTC (rev
7836)
@@ -192,12 +192,11 @@
//gzmsg(1) << "Creating GUI: Pos[" << x << " " << y
// << "] Size[" << width << " " << height << "]\n";
- printf("New gui\n");
// Create the GUI
this->gui = new Gui(x, y, width, height, "Gazebo");
- printf("Load Gui\n");
this->gui->Load(childNode);
+ this->gui->CreateCameras();
}
}
catch (GazeboError e)
Modified: code/gazebo/trunk/server/gui/GLFrame.cc
===================================================================
--- code/gazebo/trunk/server/gui/GLFrame.cc 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/server/gui/GLFrame.cc 2009-06-10 23:15:57 UTC (rev
7836)
@@ -127,6 +127,13 @@
}
////////////////////////////////////////////////////////////////////////////////
+/// Create user cameras
+void GLFrame::CreateCameras()
+{
+ this->glWindow->CreateCameras();
+}
+
+////////////////////////////////////////////////////////////////////////////////
// Initialize the frame
void GLFrame::Init()
{
Modified: code/gazebo/trunk/server/gui/GLFrame.hh
===================================================================
--- code/gazebo/trunk/server/gui/GLFrame.hh 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/server/gui/GLFrame.hh 2009-06-10 23:15:57 UTC (rev
7836)
@@ -52,6 +52,9 @@
/// \brief Load the frame
public: void Load( XMLConfigNode *node );
+ /// \brief Create user cameras
+ public: void CreateCameras();
+
/// \brief Initialize
public: void Init();
Modified: code/gazebo/trunk/server/gui/GLFrameManager.cc
===================================================================
--- code/gazebo/trunk/server/gui/GLFrameManager.cc 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/gui/GLFrameManager.cc 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -167,6 +167,17 @@
}
////////////////////////////////////////////////////////////////////////////////
+/// Create user cameras
+void GLFrameManager::CreateCameras()
+{
+ std::vector<GLFrame *>::iterator iter;
+ for (iter = this->frames.begin(); iter != this->frames.end(); iter++)
+ {
+ (*iter)->CreateCameras();
+ }
+}
+
+////////////////////////////////////////////////////////////////////////////////
/// Initalize the window manager
void GLFrameManager::Init()
{
Modified: code/gazebo/trunk/server/gui/GLFrameManager.hh
===================================================================
--- code/gazebo/trunk/server/gui/GLFrameManager.hh 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/gui/GLFrameManager.hh 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -51,6 +51,9 @@
/// \brief Save the gui params in xml format
public: virtual void Save(std::string &prefix, std::ostream &stream);
+ /// \brief Create user cameras
+ public: void CreateCameras();
+
/// \brief Initalize the window manager
public: void Init();
Modified: code/gazebo/trunk/server/gui/GLWindow.cc
===================================================================
--- code/gazebo/trunk/server/gui/GLWindow.cc 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/server/gui/GLWindow.cc 2009-06-10 23:15:57 UTC (rev
7836)
@@ -89,6 +89,21 @@
}
////////////////////////////////////////////////////////////////////////////////
+/// Create user cameras
+void GLWindow::CreateCameras()
+{
+ this->show();
+ Fl::check();
+
+ this->make_current();
+
+ // Create the default camera.
+ this->userCamera = new UserCamera( this );
+ this->userCamera->Load(NULL);
+}
+
+
+////////////////////////////////////////////////////////////////////////////////
// Init
void GLWindow::Init()
{
@@ -96,9 +111,6 @@
Fl::check();
this->mouseDrag = false;
- // Create the default camera.
- this->userCamera = new UserCamera( this );
- this->userCamera->Load(NULL);
this->userCamera->Init();
this->userCamera->RotatePitch( DTOR(30) );
this->userCamera->Translate( Vector3(-5, 0, 1) );
Modified: code/gazebo/trunk/server/gui/GLWindow.hh
===================================================================
--- code/gazebo/trunk/server/gui/GLWindow.hh 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/server/gui/GLWindow.hh 2009-06-10 23:15:57 UTC (rev
7836)
@@ -61,6 +61,9 @@
/// \brief Destructor
public: virtual ~GLWindow();
+ /// \brief Create user cameras
+ public: void CreateCameras();
+
/// \brief Initalize the gui
public: virtual void Init();
Modified: code/gazebo/trunk/server/gui/Gui.cc
===================================================================
--- code/gazebo/trunk/server/gui/Gui.cc 2009-06-10 19:01:21 UTC (rev 7835)
+++ code/gazebo/trunk/server/gui/Gui.cc 2009-06-10 23:15:57 UTC (rev 7836)
@@ -134,6 +134,13 @@
}
////////////////////////////////////////////////////////////////////////////////
+/// Create the user camera's
+void Gui::CreateCameras()
+{
+ this->frameMgr->CreateCameras();
+}
+
+////////////////////////////////////////////////////////////////////////////////
/// Initalize the gui
void Gui::Init()
{
Modified: code/gazebo/trunk/server/gui/Gui.hh
===================================================================
--- code/gazebo/trunk/server/gui/Gui.hh 2009-06-10 19:01:21 UTC (rev 7835)
+++ code/gazebo/trunk/server/gui/Gui.hh 2009-06-10 23:15:57 UTC (rev 7836)
@@ -62,6 +62,9 @@
/// \brief Save the gui params in xml format
public: virtual void Save(std::string &prefix, std::ostream &stream);
+ /// \brief Create the user camera's
+ public: void CreateCameras();
+
/// \brief Initalize the gui
public: virtual void Init();
Modified: code/gazebo/trunk/server/rendering/CMakeLists.txt
===================================================================
--- code/gazebo/trunk/server/rendering/CMakeLists.txt 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/rendering/CMakeLists.txt 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -1,6 +1,5 @@
include (${gazebo_cmake_dir}/GazeboUtils.cmake)
-
SET (sources OgreMovableText.cc
OgreCreator.cc
OgreAdaptor.cc
Modified: code/gazebo/trunk/server/rendering/OgreAdaptor.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreAdaptor.cc 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/rendering/OgreAdaptor.cc 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -155,6 +155,7 @@
/// Create a dummy rendering context.
/// This will allow gazebo to run headless. And it also allows OGRE to
/// initialize properly
+ if (!Simulator::Instance()->GetGuiEnabled())
{
this->dummyDisplay = XOpenDisplay(0);
if (!this->dummyDisplay)
@@ -163,7 +164,7 @@
int screen = DefaultScreen(this->dummyDisplay);
int attribList[] = {GLX_RGBA, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 16,
- GLX_STENCIL_SIZE, 8, None };
+ GLX_STENCIL_SIZE, 8, None };
this->dummyVisual = glXChooseVisual(this->dummyDisplay, screen,
(int *)attribList);
@@ -183,9 +184,6 @@
// Set default mipmap level (NB some APIs ignore this)
Ogre::TextureManager::getSingleton().setDefaultNumMipmaps( 5 );
- // Load Resources
- Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
-
// Get the SceneManager, in this case a generic one
if (node->GetChild("bsp"))
{
@@ -195,11 +193,14 @@
else
{
this->sceneType= SCENE_EXT;
- this->sceneMgr = this->root->createSceneManager(Ogre::ST_EXTERIOR_FAR);
+ //this->sceneMgr = this->root->createSceneManager(Ogre::ST_EXTERIOR_FAR);
//this->sceneMgr = this->root->createSceneManager(Ogre::ST_EXTERIOR_CLOSE);
- //this->sceneMgr = this->root->createSceneManager(Ogre::ST_GENERIC);
+ this->sceneMgr = this->root->createSceneManager(Ogre::ST_GENERIC);
}
+ // Load Resources
+ Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
+
Param::Begin(&this->parameters);
this->shadowIndexSizeP = new
ParamT<int>("shadowIndexSize",this->sceneMgr->getShadowIndexBufferSize(), 0);
Param::End();
@@ -219,11 +220,8 @@
ambient.b = (**(this->ambientP)).z;
ambient.a = (**(this->ambientP)).w;
- this->sceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_STENCIL_ADDITIVE );
- this->sceneMgr->setAmbientLight(Ogre::ColourValue(0,0,0));
-
// Settings for shadow mapping
- /*if (**(this->shadowTechniqueP) == std::string("stencilAdditive"))
+ if (**(this->shadowTechniqueP) == std::string("stencilAdditive"))
this->sceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_STENCIL_ADDITIVE );
else if (**(this->shadowTechniqueP) == std::string("stencilModulative"))
this->sceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_STENCIL_MODULATIVE );
@@ -235,9 +233,8 @@
this->sceneMgr->setShadowTechnique( Ogre::SHADOWTYPE_NONE );
else
gzthrow(std::string("Unsupported shadow technique: ") +
**(this->shadowTechniqueP) + "\n");
- */
- /*this->sceneMgr->setShadowTextureSelfShadow(true);
+ this->sceneMgr->setShadowTextureSelfShadow(true);
this->sceneMgr->setShadowTexturePixelFormat(Ogre::PF_FLOAT16_R);
this->sceneMgr->setShadowTextureSize(**(this->shadowTextureSizeP));
this->sceneMgr->setShadowIndexBufferSize(**(this->shadowIndexSizeP) );
@@ -246,13 +243,11 @@
this->sceneMgr->setAmbientLight(ambient);
this->sceneMgr->setShadowTextureSettings(512,2);
- this->sceneMgr->setShowDebugShadows(true);
this->sceneMgr->setShadowColour(Ogre::ColourValue(0.2, 0.2, 0.2));
this->sceneMgr->setShadowFarDistance(30);
- */
// Add a sky dome to our scene
- /*if (node->GetChild("sky"))
+ if (node->GetChild("sky"))
{
this->skyMaterialP->Load(node->GetChild("sky"));
OgreCreator::CreateSky(**(this->skyMaterialP));
@@ -279,7 +274,6 @@
exit(-1);
}
}
- */
// Create our frame listener and register it
this->frameListener = new OgreFrameListener();
@@ -437,9 +431,6 @@
// We operate in windowed mode
renderSys->setConfigOption("Full Screen","No");
- // Full screen anti-aliasing
- renderSys->setConfigOption("FSAA","2");
-
/// We used to allow the user to set the RTT mode to PBuffer, FBO, or Copy.
/// Copy is slow, and there doesn't seem to be a good reason to use it
/// PBuffer limits the size of the renderable area of the RTT to the
@@ -469,6 +460,7 @@
if (dynamic_cast<UserCamera*>((*iter)) == NULL)
(*iter)->Render();
}
+
// Must update the user camera's last.
for (iter = this->cameras.begin(); iter != this->cameras.end(); iter++)
Modified: code/gazebo/trunk/server/rendering/OgreCreator.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreCreator.cc 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/rendering/OgreCreator.cc 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -208,7 +208,7 @@
Ogre::Radian(Ogre::Degree(vec.y)), vec.z);
}
- light->setCastShadows(node->GetBool("castShadows",false,0));
+ light->setCastShadows(node->GetBool("castShadows",true,0));
parent->AttachObject(light);
@@ -631,23 +631,29 @@
Ogre::NameValuePairList params;
Ogre::RenderWindow *window = NULL;
- std::string screenStr = DisplayString((long)display);
+ /*std::string screenStr = DisplayString((long)display);
std::string::size_type dotPos = screenStr.find(".");
screenStr = screenStr.substr(dotPos+1, screenStr.size());
int attrList[] = {GLX_RGBA, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 16,
- GLX_STENCIL_SIZE, 8, None };
+ GLX_STENCIL_SIZE, 16, None };
XVisualInfo *vi = glXChooseVisual(display, DefaultScreen((long)display),
attrList);
- XSync(fl_display, false);
ogreHandle << (unsigned long)display
<< ":" << screenStr
<< ":" << (unsigned long)winId
<< ":" << (unsigned long)vi;
+ */
+
+ XSync(fl_display, false);
- params["externalWindowHandle"] = ogreHandle.str();
+ ogreHandle << winId;
+ params["parentWindowHandle"] = ogreHandle.str();
+ //params["currentGLContext"] = ogreHandle.str();
+
+ //params["vsync"] = "true";
params["FSAA"] = "2";
std::ostringstream stream;
Modified: code/gazebo/trunk/server/rendering/UserCamera.cc
===================================================================
--- code/gazebo/trunk/server/rendering/UserCamera.cc 2009-06-10 19:01:21 UTC
(rev 7835)
+++ code/gazebo/trunk/server/rendering/UserCamera.cc 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -125,6 +125,7 @@
void UserCamera::Resize(unsigned int w, unsigned int h)
{
this->window->resize(w, h);
+ this->window->windowMovedOrResized();
this->viewport->setDimensions(0,0,1,1);
}
Added: code/gazebo/trunk/server/rendering/ogretest/CMakeLists.txt
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/CMakeLists.txt
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/CMakeLists.txt 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,23 @@
+cmake_minimum_required( VERSION 2.4.6 FATAL_ERROR )
+
+if(COMMAND CMAKE_POLICY)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ CMAKE_POLICY(SET CMP0004 NEW)
+endif(COMMAND CMAKE_POLICY)
+
+project (ogretest)
+
+include (FindPkgConfig)
+include (FindFLTK)
+
+if (PKG_CONFIG_FOUND)
+ pkg_check_modules(OGRE OGRE)
+endif (PKG_CONFIG_FOUND)
+
+include_directories(${OGRE_INCLUDE_DIRS})
+
+set (sources main.cc GLWindow.cc)
+
+add_executable(ogretest ${sources})
+
+target_link_libraries(ogretest ${OGRE_LIBRARIES} ${FLTK_LIBRARIES})
Added: code/gazebo/trunk/server/rendering/ogretest/GLWindow.cc
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/GLWindow.cc
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/GLWindow.cc 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,45 @@
+#include <FL/Fl.H>
+#include <FL/x.H>
+#include <stdio.h>
+
+#include "GLWindow.hh"
+
+extern void CreateWindow(Display *display, int screen,
+ long winId, unsigned int width,
+ unsigned int height);
+extern void ResizeWindow(int w, int h);
+
+GLWindow::GLWindow( int x, int y, int w, int h, const char *t)
+ : Fl_Gl_Window( x, y, w, h, t )
+{
+ this->end();
+ this->resizable(this);
+}
+
+GLWindow::~GLWindow()
+{}
+
+void GLWindow::Init()
+{
+ this->show();
+
+ this->make_current();
+ CreateWindow(fl_display, fl_visual->screen,
+ (long)(Fl_X::i(this)->xid), this->w(), this->h());
+}
+
+void GLWindow::Update()
+{
+ Fl::check();
+}
+
+
+void GLWindow::resize(int x, int y, int w, int h)
+{
+ printf("Resizing window to[%d %d]\n",w,h);
+ this->make_current();
+ Fl_Gl_Window::resize(x,y,w,h);
+ ResizeWindow(w,h);
+
+ this->redraw();
+}
Added: code/gazebo/trunk/server/rendering/ogretest/GLWindow.hh
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/GLWindow.hh
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/GLWindow.hh 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,17 @@
+#ifndef GLWINDOW_HH
+#define GLWINDOW_HH
+
+#include <FL/Fl_Gl_Window.H>
+
+class GLWindow : public Fl_Gl_Window
+{
+ public: GLWindow(int x, int y, int w, int h, const char *t=NULL );
+ public: virtual ~GLWindow();
+ public: virtual void Init();
+
+ public: void Update();
+
+ public: void resize(int x, int y, int w, int h);
+};
+
+#endif
Added: code/gazebo/trunk/server/rendering/ogretest/Ogre.log
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/Ogre.log
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/Ogre.log 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,344 @@
+15:55:46: Creating resource group General
+15:55:46: Creating resource group Internal
+15:55:46: Creating resource group Autodetect
+15:55:46: SceneManagerFactory for type 'DefaultSceneManager' registered.
+15:55:46: Registering ResourceManager for type Material
+15:55:46: Registering ResourceManager for type Mesh
+15:55:46: Registering ResourceManager for type Skeleton
+15:55:46: MovableObjectFactory for type 'ParticleSystem' registered.
+15:55:46: OverlayElementFactory for type Panel registered.
+15:55:46: OverlayElementFactory for type BorderPanel registered.
+15:55:46: OverlayElementFactory for type TextArea registered.
+15:55:46: Registering ResourceManager for type Font
+15:55:46: ArchiveFactory for archive type FileSystem registered.
+15:55:46: ArchiveFactory for archive type Zip registered.
+15:55:46: FreeImage version: 3.10.0
+15:55:46: This program uses FreeImage, a free, open source image library
supporting all common bitmap formats. See http://freeimage.sourceforge.net for
details
+15:55:46: Supported formats:
bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
+15:55:46: DDS codec registering
+15:55:46: Registering ResourceManager for type HighLevelGpuProgram
+15:55:46: Registering ResourceManager for type Compositor
+15:55:46: MovableObjectFactory for type 'Entity' registered.
+15:55:46: MovableObjectFactory for type 'Light' registered.
+15:55:46: MovableObjectFactory for type 'BillboardSet' registered.
+15:55:46: MovableObjectFactory for type 'ManualObject' registered.
+15:55:46: MovableObjectFactory for type 'BillboardChain' registered.
+15:55:46: MovableObjectFactory for type 'RibbonTrail' registered.
+15:55:46: Loading library /home/nkoenig/local/lib/OGRE/RenderSystem_GL.so
+15:55:46: Installing plugin: GL RenderSystem
+15:55:46: OpenGL Rendering Subsystem created.
+15:55:46: Plugin successfully installed
+15:55:46: Loading library /home/nkoenig/local/lib/OGRE/Plugin_ParticleFX.so
+15:55:46: Installing plugin: ParticleFX
+15:55:46: Particle Emitter Type 'Point' registered
+15:55:46: Particle Emitter Type 'Box' registered
+15:55:46: Particle Emitter Type 'Ellipsoid' registered
+15:55:46: Particle Emitter Type 'Cylinder' registered
+15:55:46: Particle Emitter Type 'Ring' registered
+15:55:46: Particle Emitter Type 'HollowEllipsoid' registered
+15:55:46: Particle Affector Type 'LinearForce' registered
+15:55:46: Particle Affector Type 'ColourFader' registered
+15:55:46: Particle Affector Type 'ColourFader2' registered
+15:55:46: Particle Affector Type 'ColourImage' registered
+15:55:46: Particle Affector Type 'ColourInterpolator' registered
+15:55:46: Particle Affector Type 'Scaler' registered
+15:55:46: Particle Affector Type 'Rotator' registered
+15:55:46: Particle Affector Type 'DirectionRandomiser' registered
+15:55:46: Particle Affector Type 'DeflectorPlane' registered
+15:55:46: Plugin successfully installed
+15:55:46: Loading library
/home/nkoenig/local/lib/OGRE/Plugin_OctreeSceneManager.so
+15:55:46: Installing plugin: Octree & Terrain Scene Manager
+15:55:46: Plugin successfully installed
+15:55:46: *-*-* OGRE Initialising
+15:55:46: *-*-* Version 1.6.1 (Shoggoth)
+15:55:46: Creating resource group Bootstrap
+15:55:46: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/OgreCore.zip' of type 'Zip' to
resource group 'Bootstrap'
+15:55:46: Added resource location '/home/nkoenig/local/share/gazebo/Media' of
type 'FileSystem' to resource group 'General'
+15:55:46: Added resource location
'/home/nkoenig/local/share/gazebo/Media/fonts' of type 'FileSystem' to resource
group 'General'
+15:55:46: Added resource location
'/home/nkoenig/local/share/gazebo/Media/materials/programs' of type
'FileSystem' to resource group 'General'
+15:55:46: Added resource location
'/home/nkoenig/local/share/gazebo/Media/materials/scripts' of type 'FileSystem'
to resource group 'General'
+15:55:46: Added resource location
'/home/nkoenig/local/share/gazebo/Media/materials/textures' of type
'FileSystem' to resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/models' of type 'FileSystem' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/overlays' of type 'FileSystem' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/particle' of type 'FileSystem' to
resource group 'General'
+15:55:47: Added resource location '/home/nkoenig/local/share/gazebo/Media/gui'
of type 'FileSystem' to resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/DeferredShadingMedia' of type
'FileSystem' to resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/PCZAppMedia' of type 'FileSystem' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/cubemap.zip' of type 'Zip' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/cubemapsJS.zip' of type 'Zip' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/dragon.zip' of type 'Zip' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/fresneldemo.zip' of type 'Zip' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/ogretestmap.zip' of type 'Zip' to
resource group 'General'
+15:55:47: Added resource location
'/home/nkoenig/local/share/gazebo/Media/packs/skybox.zip' of type 'Zip' to
resource group 'General'
+15:55:48: CPU Identifier & Features
+15:55:48: -------------------------
+15:55:48: * CPU ID: GenuineIntel
+15:55:48: * SSE: yes
+15:55:48: * SSE2: yes
+15:55:48: * SSE3: yes
+15:55:48: * MMX: yes
+15:55:48: * MMXEXT: yes
+15:55:48: * 3DNOW: no
+15:55:48: * 3DNOWEXT: no
+15:55:48: * CMOV: yes
+15:55:48: * TSC: yes
+15:55:48: * FPU: yes
+15:55:48: * PRO: yes
+15:55:48: * HT: no
+15:55:48: -------------------------
+15:55:48: ******************************
+*** Starting GLX Subsystem ***
+******************************
+15:55:48: GLRenderSystem::_createRenderWindow "Window", 800x600 windowed
miscParams: parentWindowHandle=69206019
+15:55:48: GLXWindow::create used FBConfigID = 117
+15:55:48: GL_VERSION = 3.0.0 NVIDIA 180.44
+15:55:48: GL_VENDOR = NVIDIA Corporation
+15:55:48: GL_RENDERER = GeForce 9400 GT/PCI/SSE2
+15:55:48: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_buffer_float
GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_instanced
GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader
GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_framebuffer_object
GL_ARB_geometry_shader4 GL_ARB_imaging GL_ARB_map_buffer_range
GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query
GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite
GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100
GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object
GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add
GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float
GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two
GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_transpose_matrix
GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program
GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float
GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr
GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate
GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract
GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_bindable_uniform
GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2
GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord
GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample
GL_EXT_framebuffer_object GL_EXTX_framebuffer_mixed_formats
GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters
GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil
GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object
GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color
GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side
GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array
GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc
GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc
GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic
GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias
GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB
GL_EXT_texture_swizzle GL_EXT_texture_shared_exponent GL_EXT_timer_query
GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square
GL_NV_copy_depth_to_color GL_NV_depth_buffer_float GL_NV_conditional_render
GL_NV_depth_clamp GL_NV_explicit_multisample GL_NV_fence GL_NV_float_buffer
GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option
GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage
GL_NV_geometry_shader4 GL_NV_gpu_program4 GL_NV_half_float
GL_NV_light_max_exponent GL_NV_multisample_coverage
GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil
GL_NV_parameter_buffer_object GL_NV_pixel_data_range GL_NV_point_sprite
GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2
GL_NV_texgen_reflection GL_NV_texture_compression_vtc
GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle
GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3
GL_NV_transform_feedback GL_NV_vertex_array_range GL_NV_vertex_array_range2
GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2
GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render
GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture
GL_SGIX_shadow GL_SUN_slice_accum
+15:55:48: Supported GLX extensions: GLX_EXT_visual_info GLX_EXT_visual_rating
GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control
GLX_EXT_texture_from_pixmap GLX_ARB_create_context GLX_ARB_multisample
GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB
GLX_ARB_get_proc_address
+15:55:48: ***************************
+15:55:48: *** GL Renderer Started ***
+15:55:48: ***************************
+15:55:48: Registering ResourceManager for type GpuProgram
+15:55:48: GLSL support detected
+15:55:48: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
+15:55:48: FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0 Packed-D24S8
+15:55:49: FBO PF_L8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
+15:55:49: FBO PF_A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
+15:55:49: FBO PF_A4L4 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_BYTE_LA depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT16_R depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT32_R depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: FBO PF_SHORT_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0
Packed-D24S8
+15:55:49: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_A8 PF_A4L4 PF_BYTE_LA
PF_R5G6B5 PF_B5G6R5 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8
PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB
PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R
PF_FLOAT32_R PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
+15:55:49: RenderSystem capabilities
+15:55:49: -------------------------
+15:55:49: RenderSystem Name: OpenGL Rendering Subsystem
+15:55:49: GPU Vendor: nvidia
+15:55:49: Device Name: GeForce 9400 GT/PCI/SSE2
+15:55:49: Driver Version: 3.0.0.0
+15:55:49: * Fixed function pipeline: yes
+15:55:49: * Hardware generation of mipmaps: yes
+15:55:49: * Texture blending: yes
+15:55:49: * Anisotropic texture filtering: yes
+15:55:49: * Dot product texture operation: yes
+15:55:49: * Cube mapping: yes
+15:55:49: * Hardware stencil buffer: yes
+15:55:49: - Stencil depth: 8
+15:55:49: - Two sided stencil support: yes
+15:55:49: - Wrap stencil values: yes
+15:55:49: * Hardware vertex / index buffers: yes
+15:55:49: * Vertex programs: yes
+15:55:49: * Fragment programs: yes
+15:55:49: * Geometry programs: yes
+15:55:49: * Supported Shader Profiles: arbfp1 arbvp1 fp20 fp30 fp40 glsl
gp4gp gpu_gp nvgp4 vp30 vp40
+15:55:49: * Texture Compression: yes
+15:55:49: - DXT: yes
+15:55:49: - VTC: yes
+15:55:49: * Scissor Rectangle: yes
+15:55:49: * Hardware Occlusion Query: yes
+15:55:49: * User clip planes: yes
+15:55:49: * VET_UBYTE4 vertex element type: yes
+15:55:49: * Infinite far plane projection: yes
+15:55:49: * Hardware render-to-texture: yes
+15:55:49: * Floating point textures: yes
+15:55:49: * Non-power-of-two textures: yes
+15:55:49: * Volume textures: yes
+15:55:49: * Multiple Render Targets: 8
+15:55:49: - With different bit depths: yes
+15:55:49: * Point Sprites: yes
+15:55:49: * Extended point parameters: yes
+15:55:49: * Max Point Size: 63.375
+15:55:49: * Vertex texture fetch: yes
+15:55:49: - Max vertex textures: 32
+15:55:49: - Vertex textures shared: yes
+15:55:49: * Render to Vertex Buffer : yes
+15:55:49: * GL 1.5 without VBO workaround: no
+15:55:49: * Frame Buffer objects: yes
+15:55:49: * Frame Buffer objects (ARB extension): no
+15:55:49: * Frame Buffer objects (ATI extension): no
+15:55:49: * PBuffer suppport: no
+15:55:49: * GL 1.5 without HW-occlusion workaround: no
+15:55:49: Registering ResourceManager for type Texture
+15:55:49: ResourceBackgroundQueue - threading disabled
+15:55:49: Particle Renderer Type 'billboard' registered
+15:55:49: SceneManagerFactory for type 'OctreeSceneManager' registered.
+15:55:49: SceneManagerFactory for type 'TerrainSceneManager' registered.
+15:55:49: Parsing scripts for resource group Autodetect
+15:55:49: Finished parsing scripts for resource group Autodetect
+15:55:49: Parsing scripts for resource group Bootstrap
+15:55:49: Parsing script OgreCore.material
+15:55:49: Parsing script OgreProfiler.material
+15:55:49: Parsing script Ogre.fontdef
+15:55:49: Parsing script OgreDebugPanel.overlay
+15:55:49: Texture: New_Ogre_Border_Center.png: Loading 1
faces(PF_A8R8G8B8,256x128x1) with 8 generated mipmaps from Image. Internal
format is PF_A8R8G8B8,256x128x1.
+15:55:49: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1)
with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
+15:55:49: Texture: New_Ogre_Border_Break.png: Loading 1
faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format
is PF_A8R8G8B8,32x32x1.
+15:55:49: Font TrebuchetMSBoldusing texture size 512x256
+15:55:49: Info: Freetype returned null for character 160 in font
TrebuchetMSBold
+15:55:49: Texture: TrebuchetMSBoldTexture: Loading 1
faces(PF_BYTE_LA,512x256x1) with 0 generated mipmaps from Image. Internal
format is PF_BYTE_LA,512x256x1.
+15:55:49: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 8
generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
+15:55:49: Parsing script OgreLoadingPanel.overlay
+15:55:49: Finished parsing scripts for resource group Bootstrap
+15:55:49: Parsing scripts for resource group General
+15:55:49: Parsing script Examples.program
+15:55:49: GLSL compiling: Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
+15:55:49: GLSL compiled : Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
+15:55:49: GLSL compiling: Ogre/HardwareSkinningTwoWeightsGLSL
+15:55:49: GLSL compiled : Ogre/HardwareSkinningTwoWeightsGLSL
+15:55:49: Parsing script StdQuad_vp.program
+15:55:49: Parsing script ASCII.material
+15:55:49: Parsing script smoke.material
+15:55:49: Parsing script DepthShadowmap.material
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/CasterVP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/CasterVP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/CasterFP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/CasterFP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/ReceiverVP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/ReceiverVP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/ReceiverFP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/ReceiverFP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
+15:55:49: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
+15:55:49: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
+15:55:49: Parsing script HeatVision.material
+15:55:49: Parsing script MotionBlur.material
+15:55:49: Parsing script Ocean.material
+15:55:49: GLSL compiling: GLSL/OceanVS
+15:55:49: GLSL compiled : GLSL/OceanVS
+15:55:49: GLSL compiling: GLSL/OceanFS
+15:55:49: GLSL compiled : GLSL/OceanFS
+15:55:49: GLSL compiling: GLSL/Ocean2VS
+15:55:49: GLSL compiled : GLSL/Ocean2VS
+15:55:49: GLSL compiling: GLSL/Ocean2FS
+15:55:49: GLSL compiled : GLSL/Ocean2FS
+15:55:49: Parsing script GLSLSwizzle.material
+15:55:49: GLSL compiling: Ogre/GPTest/Swizzle_GP_GLSL
+15:55:49: GLSL compiled : Ogre/GPTest/Swizzle_GP_GLSL
+15:55:49: GLSL compiling: Ogre/GPTest/Passthrough_VP_GLSL
+15:55:49: GLSL compiled : Ogre/GPTest/Passthrough_VP_GLSL
+15:55:49: Parsing script Dither.material
+15:55:49: Parsing script Bloom.material
+15:55:49: GLSL compiling: Blur_ps_glsl
+15:55:49: GLSL compiled : Blur_ps_glsl
+15:55:49: GLSL compiling: Blur0_vs_glsl
+15:55:49: GLSL compiled : Blur0_vs_glsl
+15:55:49: GLSL compiling: Blur1_vs_glsl
+15:55:49: GLSL compiled : Blur1_vs_glsl
+15:55:49: Parsing script facial.material
+15:55:49: Parsing script OffsetMapping.material
+15:55:49: Compiler error: object unsupported by render system in
OffsetMapping.material(18)
+15:55:49: GLSL compiling: Examples/OffsetMappingIntegratedShadowsFPglsl
+15:55:49: GLSL compiled : Examples/OffsetMappingIntegratedShadowsFPglsl
+15:55:49: GLSL compiling: Examples/OffsetMappingIntegratedShadowsVPglsl
+15:55:49: GLSL compiled : Examples/OffsetMappingIntegratedShadowsVPglsl
+15:55:49: Parsing script SharpenEdges.material
+15:55:49: Parsing script Invert.material
+15:55:49: Parsing script ASMSwizzle.material
+15:55:49: Parsing script Ogre.material
+15:55:49: Parsing script CGSwizzle.material
+15:55:49: Parsing script Example-DynTex.material
+15:55:49: Parsing script Glass.material
+15:55:49: Parsing script IsoSurf.material
+15:55:49: Parsing script DOF.material
+15:55:49: Parsing script VarianceShadowmap.material
+15:55:49: Parsing script Embossed.material
+15:55:49: Parsing script Gazebo.material
+15:55:49: GLSL compiling: Gazebo/DepthMapVS
+15:55:49: GLSL compiled : Gazebo/DepthMapVS
+15:55:49: GLSL compiling: Gazebo/DepthMapFS
+15:55:49: GLSL compiled : Gazebo/DepthMapFS
+15:55:49: Compiler error: unknown error in Gazebo.material(63): token
"lighting" is not recognized
+15:55:49: Parsing script instancing.material
+15:55:49: GLSL compiling: InstancingGLSL
+15:55:49: GLSL compiled : InstancingGLSL
+15:55:49: GLSL compiling: InstancingShadowCasterGLSL
+15:55:49: GLSL compiled : InstancingShadowCasterGLSL
+15:55:49: GLSL compiling: CrowdGLSL
+15:55:49: GLSL compiled : CrowdGLSL
+15:55:49: GLSL compiling: CrowdShadowCasterGLSL
+15:55:49: GLSL compiled : CrowdShadowCasterGLSL
+15:55:49: Parsing script OldMovie.material
+15:55:49: Parsing script Halftone.material
+15:55:49: Parsing script RadialBlur.material
+15:55:49: Parsing script ParticleGS.material
+15:55:49: Parsing script Examples-Advanced.material
+15:55:49: Compiler error: object unsupported by render system in
Examples-Advanced.material(381)
+15:55:49: Parsing script Bloom2.material
+15:55:49: GLSL compiling: Bloom2_ps20_glsl
+15:55:49: GLSL compiled : Bloom2_ps20_glsl
+15:55:49: Parsing script Example.material
+15:55:49: GLSL compiling: Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
+15:55:49: GLSL compiled : Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
+15:55:49: Parsing script OldTV.material
+15:55:49: Parsing script BlackAndWhite.material
+15:55:49: Parsing script NightVision.material
+15:55:49: Parsing script Tiling.material
+15:55:49: Parsing script MRTtest.material
+15:55:49: GLSL compiling: Ogre/MRTtest/scenefp/GLSL
+15:55:49: GLSL compiled : Ogre/MRTtest/scenefp/GLSL
+15:55:49: GLSL compiling: Ogre/MRTtest/quadfp/GLSL
+15:55:49: GLSL compiled : Ogre/MRTtest/quadfp/GLSL
+15:55:49: GLSL compiling: Ogre/Compositor/StdQuad_GLSL_vp
+15:55:49: GLSL compiled : Ogre/Compositor/StdQuad_GLSL_vp
+15:55:49: Parsing script RZR-002.material
+15:55:49: Parsing script Laplace.material
+15:55:49: Parsing script pssm.material
+15:55:49: Parsing script Hurt.material
+15:55:49: Parsing script hdr.material
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/downscale3x3GLSL_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/downscale3x3GLSL_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/utils_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/utils_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/bloomGLSL_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/bloomGLSL_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/utils_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/utils_fp
+15:55:49: GLSL compiling: Ogre/Compositor/HDR/finaltonemappingGLSL_fp
+15:55:49: GLSL compiled : Ogre/Compositor/HDR/finaltonemappingGLSL_fp
+15:55:49: Parsing script Posterize.material
+15:55:49: Parsing script Example-Water.material
+15:55:49: Parsing script fresnelenviron.material
+15:55:49: Parsing script Examples.compositor
+15:55:49: Parsing script sample.fontdef
+15:55:49: Bad attribute line: glyph 0.152344 0.125
0.160156 0.1875 in font Ogre
+15:55:49: Parsing script Gazebo.fontdef
+15:55:49: Finished parsing scripts for resource group General
+15:55:49: Parsing scripts for resource group Internal
+15:55:49: Finished parsing scripts for resource group Internal
+15:55:49: Mesh: Loading athene.mesh.
+15:55:49: Can't assign material 1 - Default to SubEntity of athene because
this Material does not exist. Have you forgotten to define it in a .material
script?
+15:55:49: WARNING: material Examples/Athene/NormalMapped has no supportable
Techniques and will be blank. Explanation:
+Pass 0: Vertex program Ogre/BasicVertexPrograms/AmbientOneTexture cannot be
used - not supported.
+
+15:55:49: Texture: rockwall.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with 8
generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
+15:55:49: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1)
with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
+15:55:58: OGRE EXCEPTION(7:InternalErrorException): Index Buffer: Out of
memory in GLHardwareIndexBuffer::lock at OgreGLHardwareIndexBuffer.cpp (line
122)
Added: code/gazebo/trunk/server/rendering/ogretest/main.cc
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/main.cc
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/main.cc 2009-06-10 23:15:57 UTC
(rev 7836)
@@ -0,0 +1,203 @@
+#include <Ogre.h>
+#include <string>
+
+#include <sys/types.h>
+#include <dirent.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <GL/glx.h>
+
+#include "GLWindow.hh"
+
+Ogre::Root *root;
+Ogre::SceneManager *sceneMgr;
+Ogre::RenderWindow *window;
+Ogre::Camera *camera;
+Ogre::Viewport *viewport;
+
+Display *myDisplay;
+long windowId;
+
+bool noGui;
+
+GLWindow *gui;
+
+void CreateWindow(Display *display, int screen, long winId, unsigned int
width,
+ unsigned int height)
+{
+ windowId = winId;
+ myDisplay = display;
+ std::stringstream ogreHandle;
+
+ Ogre::StringVector paramsVector;
+ Ogre::NameValuePairList params;
+
+/* std::string screenStr = DisplayString((long)display);
+ std::string::size_type dotPos = screenStr.find(".");
+ screenStr = screenStr.substr(dotPos+1, screenStr.size());
+
+ int attrList[] = {GLX_RGBA, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 16,
+ GLX_STENCIL_SIZE, 8, None };
+ XVisualInfo *vi = glXChooseVisual(display, DefaultScreen((long)display),
+ attrList);
+ */
+
+ /*ogreHandle << (unsigned long)display
+ << ":" << screenStr
+ << ":" << (unsigned long)winId
+ << ":" << (unsigned long)vi;
+ */
+
+ XSync(display, false);
+
+ ogreHandle << winId;
+ params["parentWindowHandle"] = ogreHandle.str();
+ //params["currentGLContext"] = "true";
+
+ //params["vsync"] = "true";
+
+ window = root->createRenderWindow( "Window", width, height, false, ¶ms);
+ window->setActive(true);
+ window->setVisible(true);
+ window->setAutoUpdated(true);
+}
+
+void ResizeWindow(int w, int h)
+{
+ //XResizeWindow(myDisplay, windowId, w, h);
+ window->resize(w,h);
+ window->windowMovedOrResized();
+ viewport->setDimensions(0,0,1,1);
+}
+
+void SetupResources(void)
+{
+ Ogre::ConfigFile cf;
+ cf.load("resources.cfg");
+
+ Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();
+
+ Ogre::String secName, typeName, archName;
+ while (seci.hasMoreElements())
+ {
+ secName = seci.peekNextKey();
+ Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
+ Ogre::ConfigFile::SettingsMultiMap::iterator i;
+ for (i = settings->begin(); i != settings->end(); ++i)
+ {
+ typeName = i->first;
+ archName = i->second;
+ Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
+ archName, typeName, secName);
+ }
+ }
+}
+
+
+void CreateScene()
+{
+ Ogre::Light *sunlight, *pointlight;
+
+ sceneMgr->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE);
+ sceneMgr->setAmbientLight( Ogre::ColourValue(0,0,0) );
+
+ sunlight = sceneMgr->createLight("Sunlight");
+ sunlight->setType(Ogre::Light::LT_SPOTLIGHT);
+ sunlight->setPosition(1500, 1750, 1300);
+ sunlight->setSpotlightRange( Ogre::Degree(30), Ogre::Degree(50) );
+ Ogre::Vector3 dir;
+ dir = -sunlight->getPosition();
+ dir.normalise();
+ sunlight->setDirection(dir);
+ sunlight->setDiffuseColour(0.35, 0.35, 0.38);
+ sunlight->setSpecularColour(0.9, 0.9, 1);
+
+ pointlight = sceneMgr->createLight("pointlight");
+ pointlight->setDiffuseColour( Ogre::ColourValue(0.2, 0.1, 0.0) );
+ pointlight->setSpecularColour(1,1,1);
+ pointlight->setAttenuation(8000,1,0.0005,0);
+ pointlight->setPosition(10, 50, 0);
+
+ Ogre::SceneNode *node;
+ node = sceneMgr->getRootSceneNode()->createChildSceneNode();
+ Ogre::Entity *athene = sceneMgr->createEntity("athene", "athene.mesh");
+ athene->setMaterialName("Examples/Athene/NormalMapped");
+ node->attachObject( athene );
+ node->translate(0, -27, 0);
+ node->yaw(Ogre::Degree(90));
+
+ Ogre::MovablePlane *plane = new Ogre::MovablePlane("mplane");
+ plane->normal = Ogre::Vector3::UNIT_Y;
+ plane->d = 107;
+ Ogre::MeshManager::getSingleton().createPlane("Myplane",
+ Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, *plane,
+ 1500,1500,50,50,true,1,5,5, Ogre::Vector3::UNIT_Z);
+
+ Ogre::Entity *planeEnt = sceneMgr->createEntity( "plane", "Myplane" );
+ planeEnt->setMaterialName("Gazebo/Rockwall");
+ planeEnt->setCastShadows(false);
+ sceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(planeEnt);
+
+}
+
+int main(int argc, char **argv)
+{
+ noGui = true;
+
+ if (argc > 1)
+ if (strcmp(argv[1], "gui") == 0 )
+ noGui = false;
+
+ // Pipe ogre output to a log file
+ Ogre::LogManager *logManager = new Ogre::LogManager();
+ logManager->createLog("Ogre.log", true, false, false);
+
+ root = new Ogre::Root("plugins.cfg", "ogre.cfg");
+
+ SetupResources();
+ root->showConfigDialog();
+
+ window = root->initialise(noGui);
+
+ if (!noGui)
+ {
+ printf("Creating fltk gui\n");
+ gui = new GLWindow(0,0,800,600,"Ogre TEST");
+ gui->Init();
+ }
+
+ // Create the scene manager
+ sceneMgr = root->createSceneManager(Ogre::ST_GENERIC);
+
+ // Load Resources
+ Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
+
+ // Create the camera
+ camera = sceneMgr->createCamera("PlayerCam");
+ camera->setPosition( Ogre::Vector3(0, 0, 500));
+ camera->lookAt( Ogre::Vector3(0, 0, -300) );
+ camera->setNearClipDistance(5);
+
+ // Create viewports
+ viewport = window->addViewport(camera);
+ viewport->setBackgroundColour( Ogre::ColourValue(0,0,0) );
+ camera->setAspectRatio( Ogre::Real(viewport->getActualWidth()) /
+ Ogre::Real(viewport->getActualHeight()) );
+
+ // Create scene
+ CreateScene();
+
+ while (true)
+ {
+ root->_fireFrameStarted();
+ window->update();
+ gui->Update();
+ root->_fireFrameEnded();
+ }
+
+ root->startRendering();
+
+ delete root;
+ return 0;
+}
+
Added: code/gazebo/trunk/server/rendering/ogretest/ogre.cfg
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/ogre.cfg
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/ogre.cfg 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,10 @@
+Render System=OpenGL Rendering Subsystem
+
+[OpenGL Rendering Subsystem]
+Display Frequency=50 MHz
+FSAA=0
+Full Screen=No
+RTT Preferred Mode=FBO
+VSync=No
+Video Mode= 800 x 600
+sRGB Gamma Conversion=No
Added: code/gazebo/trunk/server/rendering/ogretest/plugins.cfg
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/plugins.cfg
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/plugins.cfg 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,4 @@
+PluginFolder=/home/nkoenig/local/lib/OGRE
+Plugin=RenderSystem_GL.so
+Plugin=Plugin_ParticleFX.so
+Plugin=Plugin_OctreeSceneManager.so
Added: code/gazebo/trunk/server/rendering/ogretest/resources.cfg
===================================================================
--- code/gazebo/trunk/server/rendering/ogretest/resources.cfg
(rev 0)
+++ code/gazebo/trunk/server/rendering/ogretest/resources.cfg 2009-06-10
23:15:57 UTC (rev 7836)
@@ -0,0 +1,22 @@
+[Bootstrap]
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/OgreCore.zip
+
+# Resource locations to be added to the default path
+[General]
+FileSystem=/home/nkoenig/local/share/gazebo/Media
+FileSystem=/home/nkoenig/local/share/gazebo/Media/fonts
+FileSystem=/home/nkoenig/local/share/gazebo/Media/materials/programs
+FileSystem=/home/nkoenig/local/share/gazebo/Media/materials/scripts
+FileSystem=/home/nkoenig/local/share/gazebo/Media/materials/textures
+FileSystem=/home/nkoenig/local/share/gazebo/Media/models
+FileSystem=/home/nkoenig/local/share/gazebo/Media/overlays
+FileSystem=/home/nkoenig/local/share/gazebo/Media/particle
+FileSystem=/home/nkoenig/local/share/gazebo/Media/gui
+FileSystem=/home/nkoenig/local/share/gazebo/Media/DeferredShadingMedia
+FileSystem=/home/nkoenig/local/share/gazebo/Media/PCZAppMedia
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/cubemap.zip
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/cubemapsJS.zip
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/dragon.zip
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/fresneldemo.zip
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/ogretestmap.zip
+Zip=/home/nkoenig/local/share/gazebo/Media/packs/skybox.zip
Modified: code/gazebo/trunk/worlds/simpleshapes.world
===================================================================
--- code/gazebo/trunk/worlds/simpleshapes.world 2009-06-10 19:01:21 UTC (rev
7835)
+++ code/gazebo/trunk/worlds/simpleshapes.world 2009-06-10 23:15:57 UTC (rev
7836)
@@ -120,17 +120,17 @@
<!-- White Point light -->
<model:renderable name="point_white">
- <xyz>1 1 4</xyz>
+ <xyz>2 1 2</xyz>
<enableGravity>false</enableGravity>
<light>
<type>point</type>
<diffuseColor>0.9 0.9 0.9</diffuseColor>
- <specularColor>0.1 0.1 0.1</specularColor>
- <range>10</range>
+ <specularColor>1 1 1</specularColor>
+ <range>20</range>
<!-- Constant(0-1) Linear(0-1) Quadratic -->
- <attenuation>0.8 0.1 0.0</attenuation>
+ <attenuation>0.2 0.01 0.0</attenuation>
</light>
</model:renderable>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit