Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2012, 5:32:00 PM (12 years ago)
Author:
davidsa
Message:

orxonox::RenderQueueListener: Implemented a rudimentary RenderQueueListener to enable the use of stencil buffer for elaborate alpha blending shaders without creating artifacts from overlapping faces. Also added a XML Port to assign a Model to a certain RenderQueueGroup. Needs to be improved to allow the use of strings for choosing the group instead of a static int which may change in the feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders/src/orxonox/Scene.cc

    r9348 r9407  
    4848#include "worldentities/WorldEntity.h"
    4949#include "Level.h"
     50#include "RenderQueueListener.h"
    5051
    5152namespace orxonox
     
    6667            this->sceneManager_ = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC);
    6768            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
     69            RenderQueueListener* renderQueueListener = new RenderQueueListener();
     70            this->sceneManager_->addRenderQueueListener(renderQueueListener);//add our own renderQueueListener
    6871
    6972            this->radar_ = new Radar();
Note: See TracChangeset for help on using the changeset viewer.