Texture error?

archipelago2d

15-12-2009 09:02:24

App is crashing when I run the following code, which is from Tutorial 6 on the wiki :

import ogre.renderer.OGRE as ogre
import ogre.io.OIS as OIS
import ogre.gui.CEGUI as CEGUI

class ExitListener(ogre.FrameListener):

def __init__(self, keyboard):
ogre.FrameListener.__init__(self)
self.keyboard = keyboard

def frameStarted(self, evt):
self.keyboard.capture()
return not self.keyboard.isKeyDown(OIS.KC_ESCAPE)

class Application(object):

def go(self):
self.createRoot()
self.defineResources()
self.setupRenderSystem()
self.createRenderWindow()
self.initializeResourceGroups()
self.setupScene()
self.setupInputSystem()
self.setupCEGUI()
self.createFrameListener()
self.startRenderLoop()
self.cleanUp()

def createRoot(self):
self.root = ogre.Root()

def defineResources(self):
cf = ogre.ConfigFile()
cf.load("resources.cfg")
seci = cf.getSectionIterator()

while seci.hasMoreElements():
secName = seci.peekNextKey()
settings = seci.getNext()
for item in settings:
typeName = item.key
archName = item.value
ogre.ResourceGroupManager.getSingleton().addResourceLocation(archName, typeName, secName)


def setupRenderSystem(self):
if not self.root.restoreConfig() and not self.root.showConfigDialog():
raise Exception("User canceled the config dialog! -> Application.setupRenderSystem()")
#Do not add this to the application
"""
renderSystem = self.root.getRenderSystemByName("Direct3D9 Rendering Subsystem")
self.root.setRenderSystem(renderSystem);
renderSystem.setConfigOption("Full Screen", "No")
renderSystem.setConfigOption("Video Mode", "800 x 600 @ 32-bit colour")
"""

def createRenderWindow(self):
self.root.initialise(True, "Tutorial Render Window")
# Do not add this to the application
"""
self.root.initialise(False)
hWnd = 0 # Get the hWnd of the application!
misc = ogre.NameValuePairList()
misc["externalWindowHandle"] = str(int(hWnd))
renderWindow = self.root.createRenderWindow("Main RenderWindow", 800, 600, False, misc)
"""


def initializeResourceGroups(self):
ogre.TextureManager.getSingleton().setDefaultNumMipmaps(5)
ogre.ResourceGroupManager.getSingleton().initialiseAllResourceGroups()


def setupScene(self):
sceneManager = self.root.createSceneManager(ogre.ST_GENERIC, "Default SceneManager")
camera = sceneManager.createCamera("Camera")
viewPort = self.root.getAutoCreatedWindow().addViewport(camera)


def setupInputSystem(self):
windowHandle = 0
renderWindow = self.root.getAutoCreatedWindow()
windowHandle = renderWindow.getCustomAttributeInt("WINDOW")
paramList = [("WINDOW", str(windowHandle))]
self.inputManager = OIS.createPythonInputSystem(paramList)

try:
self.keyboard = self.inputManager.createInputObjectKeyboard(OIS.OISKeyboard, False)
# self.mouse = self.inputManager.createInputObjectMouse(OIS.OISMouse, False)
# self.joystick = self.inputManager.createInputObjectJoyStick(OIS.OISJoyStick, False)
except Exception, e:
raise e

def setupCEGUI(self):
sceneManager = self.root.getSceneManager("Default SceneManager")
renderWindow = self.root.getAutoCreatedWindow()

# CEGUI setup
self.renderer = CEGUI.OgreCEGUIRenderer(renderWindow, ogre.RENDER_QUEUE_OVERLAY, False, 3000, sceneManager)
self.system = CEGUI.System(self.renderer)


def createFrameListener(self):
self.exitListener = ExitListener(self.keyboard)
self.root.addFrameListener(self.exitListener)


def startRenderLoop(self):
self.root.startRendering()
# Do not add this to the application
#while self.root.renderOneFrame():
# Do some things here, like sleep for x milliseconds or perform other actions.

def cleanUp(self):
self.inputManager.destroyInputObjectKeyboard(self.keyboard)
# self.inputManager.destroyInputObjectMouse(self.mouse)
# self.inputManager.destroyInputObjectJoyStick(self.joystick)
OIS.InputManager.destroyInputSystem(self.inputManager)
self.inputManager = None


if __name__ == '__main__':
try:
ta = Application()
ta.go()
except ogre.OgreException, e:
print e



As I said, most likely some kind of texture error -

RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL Rendering Subsystem
GPU Vendor: nvidia
Device Name: GeForce 8800 GTS/PCI/SSE2
Driver Version: 3.0.0.0
* Fixed function pipeline: yes
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: yes
- Stencil depth: 8
- Two sided stencil support: yes
- Wrap stencil values: yes
* Hardware vertex / index buffers: yes
* Vertex programs: yes
* Fragment programs: yes
* Geometry programs: yes
* Supported Shader Profiles: arbfp1 arbvp1 fp20 fp30 fp40 glsl gp4gp gpu_gp nvgp4 vp30 vp40
* Texture Compression: yes
- DXT: yes
- VTC: yes
* Scissor Rectangle: yes
* Hardware Occlusion Query: yes
* User clip planes: yes
* VET_UBYTE4 vertex element type: yes
* Infinite far plane projection: yes
* Hardware render-to-texture: yes
* Floating point textures: yes
* Non-power-of-two textures: yes
* Volume textures: yes
* Multiple Render Targets: 8
- With different bit depths: yes
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 63.375
* Vertex texture fetch: yes
- Max vertex textures: 32
- Vertex textures shared: yes
* Render to Vertex Buffer : yes
* GL 1.5 without VBO workaround: no
* Frame Buffer objects: yes
* Frame Buffer objects (ARB extension): no
* Frame Buffer objects (ATI extension): no
* PBuffer suppport: no
* GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
ResourceBackgroundQueue - threading disabled
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
SceneManagerFactory for type 'PCZSceneManager' registered.
MovableObjectFactory for type 'PCZLight' registered.
PCZone Factory Type 'ZoneType_Octree' registered
PCZone Factory Type 'ZoneType_Terrain' registered
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Error loading texture New_Ogre_Border_Center.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Error loading texture New_Ogre_Border_Center.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Error loading texture New_Ogre_Border.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Error loading texture New_Ogre_Border.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Error loading texture New_Ogre_Border_Break.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Error loading texture New_Ogre_Border_Break.png. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(9:UnimplementedException): **** Unknown texture type **** in GLTexture::prepare at ..\src\OgreGLTexture.cpp (line 333)
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway



At a complete loss here, running XP 32 bit, here's the resource.cfg if it helps:

# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=C:/OgreSDK/media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=C:/OgreSDK/media
FileSystem=C:/OgreSDK/media/fonts
FileSystem=C:/OgreSDK/media/materials/programs
FileSystem=C:/OgreSDK/media/materials/scripts
FileSystem=C:/OgreSDK/media/materials/textures
FileSystem=C:/OgreSDK/media/models
FileSystem=C:/OgreSDK/media/overlays
FileSystem=C:/OgreSDK/media/particle
FileSystem=C:/OgreSDK/media/gui
FileSystem=C:/OgreSDK/media/DeferredShadingMedia
FileSystem=C:/OgreSDK/media/PCZAppMedia
Zip=C:/OgreSDK/media/packs/cubemap.zip
Zip=C:/OgreSDK/media/packs/cubemapsJS.zip
Zip=C:/OgreSDK/media/packs/dragon.zip
Zip=C:/OgreSDK/media/packs/fresneldemo.zip
Zip=C:/OgreSDK/media/packs/ogretestmap.zip
Zip=C:/OgreSDK/media/packs/skybox.zip


Thanks so much in advance.