Pull requests

#170 Merged
Repository
Branch
terrain_shadows
Repository
Branch
default

Added shadows and GLSL shading to terrains

Author
  1. Nathan Koenig
Reviewers
Description

Fixes issue #261.

Also removes dependency of Cg plugin.

This has been tested with Ogre shipped with ROS, libogre-dev on Ubuntu 12.04, and ogre-1.8 built from source.

Comments (10)

  1. Steven Peters

    It builds and runs for me with the ros fuerte version of Ogre, but I get problems when building against libogre-dev (version 1.7.4). It compiles and builds but gazebo crashes on startup

    Copyright (C) 2012 Nate Koenig, John Hsu, and contributors.
    Released under the Apache 2 License.
    http://gazebosim.org
    
    Msg Waiting for master.Gazebo multi-robot simulator, version 1.3.0
    Copyright (C) 2012 Nate Koenig, John Hsu, and contributors.
    Released under the Apache 2 License.
    http://gazebosim.org
    
    Msg Waiting for master
    Msg Connected to gazebo master @ http://localhost:11345
    
    Msg Connected to gazebo master @ http://localhost:11345
    
    Qt has caught an exception thrown from an event handler. Throwing
    exceptions from an event handler is not supported in Qt. You must
    reimplement QApplication::notify() and catch all exceptions there.
    
    terminate called after throwing an instance of 'Ogre::ItemIdentityException'
      what():  OGRE EXCEPTION(5:ItemIdentityException): Can not find codec for 'png' image format.
    There are no formats supported (no codecs registered). in Codec::getCodec at /build/buildd/ogre-1.7.4/OgreMain/src/OgreCodec.cpp (line 69)
    gazebo: /usr/include/boost/thread/pthread/pthread_mutex_scoped_lock.hpp:26: boost::pthread::pthread_mutex_scoped_lock::pthread_mutex_scoped_lock(pthread_mutex_t*): Assertion `!pthread_mutex_lock(m)' failed.
    

    I haven't tested against ogre-1.8

      1. Steven Peters

        I agree that this is a build problem, not a terrain problem. I made a second build folder and ran cmake without telling it to look for the ros visualization pkg-config. I'll file a ticket if I can duplicate this on a second machine.

        1. Nathan Koenig author

          Do you have libpng12-dev installed?

          Try installing libpng12-dev and then reinstalling libogre-dev. If that works, can you file a ticket that says our cmake needs to check for the presence of libpng?