Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Accessing SceneManager  (Read 2232 times)

denreaper

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Accessing SceneManager
« on: March 14, 2007, 05:53:17 PM »

I'm trying to access the instance of the scene manager that Visual Ogre Studio has created.  Thus far I have only found access to the instance of root.  Is it possible to access the SceneManager instance from the plugin system?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Accessing SceneManager
« Reply #1 on: March 14, 2007, 06:45:18 PM »

Yes, it is from here: public SceneManager SceneManager = null;
in the file:
http://www.wreckedgames.com/forum/posting.php?mode=reply&t=673

You can grab the OgreCOntainer instance from the OgrePane class.
Logged

denreaper

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Accessing SceneManager
« Reply #2 on: March 16, 2007, 02:05:12 PM »

I was able to access the scene manager successfully, however, I get an exception when trying to use the scene manager (creating an entity).  Perhaps I'm doing this inappropriately?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Accessing SceneManager
« Reply #3 on: March 16, 2007, 06:30:11 PM »

The only things I can think of, is make sure you don't do anything with the scenemanager until it is initialized. Also, make sure you are not doing things in a seperate thread.
Logged

denreaper

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
Accessing SceneManager
« Reply #4 on: March 16, 2007, 06:56:09 PM »

I set it up so that it wouldn't do anything until "configure" was pressed, which I assume can only be done after the scene manager is initialized.  I'm also not running it in another thread.  Hmm...  I'll keep trying things.
Logged