Skip to content

Commit 81ca8da

Browse files
committed
Merge pull request #1492 from paroj:ovis_up
2 parents a6a2903 + 6e6671f commit 81ca8da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

modules/ovis/src/meshes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
4444
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
4545
Pass* rpass = mat->getTechniques()[0]->getPasses()[0];
4646
rpass->setEmissive(ColourValue::White);
47+
rpass->setPointSpritesEnabled(true);
4748

4849
// mesh
4950
MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME);

modules/ovis/src/ovis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name)
138138

139139
struct Application : public OgreBites::ApplicationContext
140140
{
141+
Ptr<LogManager> logMgr;
141142
Ogre::SceneManager* sceneMgr;
142143
Ogre::String title;
143144
uint32_t w;
@@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext
147148
: OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width),
148149
h(sz.height)
149150
{
151+
logMgr.reset(new LogManager());
152+
logMgr->createLog("ovis.log", true, true, true);
153+
logMgr->setLogDetail(LL_LOW);
150154
}
151155

152156
void setupInput(bool /*grab*/)

0 commit comments

Comments
 (0)