Commit 81ca8dab authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1492 from paroj:ovis_up

parents a6a29033 6e6671fd
...@@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co ...@@ -44,6 +44,7 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME); MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
Pass* rpass = mat->getTechniques()[0]->getPasses()[0]; Pass* rpass = mat->getTechniques()[0]->getPasses()[0];
rpass->setEmissive(ColourValue::White); rpass->setEmissive(ColourValue::White);
rpass->setPointSpritesEnabled(true);
// mesh // mesh
MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME); MeshPtr mesh = MeshManager::getSingleton().createManual(name, RESOURCEGROUP_NAME);
......
...@@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name) ...@@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name)
struct Application : public OgreBites::ApplicationContext struct Application : public OgreBites::ApplicationContext
{ {
Ptr<LogManager> logMgr;
Ogre::SceneManager* sceneMgr; Ogre::SceneManager* sceneMgr;
Ogre::String title; Ogre::String title;
uint32_t w; uint32_t w;
...@@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext ...@@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext
: OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width), : OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width),
h(sz.height) h(sz.height)
{ {
logMgr.reset(new LogManager());
logMgr->createLog("ovis.log", true, true, true);
logMgr->setLogDetail(LL_LOW);
} }
void setupInput(bool /*grab*/) void setupInput(bool /*grab*/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment