[solved] Tutorial basic_07, RenderSystem lacks attribute?

kurvenschubser

15-01-2009 18:49:24

Hi everybody,

am stuck at the Basic tutorial 7. I tried to execute the full source code being provided, and out came this:

Traceback (most recent call last):
File "basic_07.py", line 126, in <module>
ta.go()
File "C:\PYTHON25\Lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 97, in
go
if not self._setUp():
File "C:\PYTHON25\Lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 138, i
n _setUp
self._createScene()
File "basic_07.py", line 95, in _createScene
texture = self.root.getRenderSystem().createRenderTexture("RttTex", 512, 512
, ogre.TextureType.TEX_TYPE_2D, ogre.PixelFormat.PF_R8G8B8)
AttributeError: 'RenderSystem' object has no attribute 'createRenderTexture'


I had a look at the docs and Ogre::RenderSystem actually doesn't list anything as createTenderTexture.
So is this now deprecated or did I do something wrong?

Using PythonOgre version 1.6.0-r789-py252, Python version 2.5.4 on WIndows XP

kurvenschubser

15-01-2009 19:50:47

Well, it seems the provided full source code was somewhat outdated. The one in the Tut itself doesn't have this problem. I guess I could change the full source to the one from the Tut...