Skip to content

Commit

Permalink
Merge pull request opencv#1492 from paroj:ovis_up
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Dec 22, 2017
2 parents a6a2903 + 6e6671f commit 81ca8da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ovis/src/meshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
Pass* rpass = mat->getTechniques()[0]->getPasses()[0];
rpass->setEmissive(ColourValue::White);
rpass->setPointSpritesEnabled(true);

// mesh
MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME);
Expand Down
4 changes: 4 additions & 0 deletions modules/ovis/src/ovis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name)

struct Application : public OgreBites::ApplicationContext
{
Ptr<LogManager> logMgr;
Ogre::SceneManager* sceneMgr;
Ogre::String title;
uint32_t w;
Expand All @@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext
: OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width),
h(sz.height)
{
logMgr.reset(new LogManager());
logMgr->createLog("ovis.log", true, true, true);
logMgr->setLogDetail(LL_LOW);
}

void setupInput(bool /*grab*/)
Expand Down

0 comments on commit 81ca8da

Please sign in to comment.