Help please

skorpio

27-11-2006 07:45:28

Hello

I'm new to PyOgre.
Whenever I try to run any demos I get the same error on SampleFramwork

Here I ran beginner_1.py and I got this:

Particle Renderer Type 'billboard' registered
Traceback (most recent call last):
File "beginner_1.py", line 72, in ?
ta.go()
File "C:\Python24\pyogre\ogre\SampleFramework.py", line 23, in go
if not self._setUp():
File "C:\Python24\pyogre\ogre\SampleFramework.py", line 39, in _setUp
self._chooseSceneManager()
File "C:\Python24\pyogre\ogre\SampleFramework.py", line 89, in _chooseSceneMan
ager
self.sceneManager = self.root.createSceneManager(ogre.ST_GENERIC,"ExampleSMI
nstance")
AttributeError: 'Root' object has no attribute 'createSceneManager'
*-*-* OGRE Shutdown

I do not how to fix this problem

Thanks
Best Regards

bharling

27-11-2006 14:48:06

if you are using pyogre 1.06, you should change

self.sceneManager = self.root.createSceneManager(ogre.ST_GENERIC,"ExampleSMInstance")

to

self.sceneManager = self.root.getSceneManager(ogre.ST_GENERIC)

You may need to make other changes as well. I think the easiest thing to do is to make sure that you are using the pyogre 1.06 demos and media files, rather than those for pyogre 1.2, or just make sure the demos/media matches the pyogre you are using.

skorpio

28-11-2006 02:16:44

Hello

I downloaded both media files. One was much bigger than the
other.

The smaller version (not 1.2) works with pyogre 1.06.
Th media.zip is not labeled as been compatible with pyogre version 1.06

So, I just copied the media.zip to the pyogre folder and now the tutorials works.

Thanks again