Problems running tutorial EXE

Problems building or running the engine, queries about how to use features etc.
Post Reply
faac_mdeforge
Gnoblar
Posts: 2
Joined: Mon Apr 18, 2016 1:57 pm

Problems running tutorial EXE

Post by faac_mdeforge »

Hello everyone,

I'm going through Basic Tutorial 1. I've successfully compiled the tutorial application and it produces an EXE in bin\debug. However, when I double-click on that EXE, nothing happens... It seems like if any of these lines are in the TutorialApplication function, then it won't launch. Commenting out this block makes the EXE able to launch again.

Code: Select all

mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5f, 0.5f, 0.5f));

	SceneNode* ogreNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
	Entity* ogreEntity = mSceneMgr->createEntity("ogrehead.mesh");
	ogreNode->attachObject(ogreEntity);

	Light* light = mSceneMgr->createLight("MainLight");
	light->setPosition(20, 80, 50);
I've compiled and successfully run the OGRE Samples, which are using the same commands (just a different model, which I've also tried using), so I'm not sure what the difference is and why the samples demo is working but mine is not. I'm almost positive that the program is finding the model fine, so I'm not sure what the hang up is...

It does not appear like a log file is being generated in bin\debug.

How can I begin to reason about the issue here? Has anyone else experienced this?
faac_mdeforge
Gnoblar
Posts: 2
Joined: Mon Apr 18, 2016 1:57 pm

Re: Problems running tutorial EXE

Post by faac_mdeforge »

Solved... was putting my code into TutorialApplication::TutorialApplication instead of TutorialApplication::createScene. Woops.
Post Reply