Ogre Blender Export - problem with normal maps

texugo

22-05-2009 16:59:34

Hy guys

I'm using Blender 2.48 to model and ogre meshes export, ogre XML converter, etc.
My pipeline is model in blender, export ogremeshes/ogreXML and view in CEGUIMeshViewer.
But whe i export a model with normal Map ogreMeshes/ogreXML runs fine, but when i'll look the model in CEGUIMeshViewer it crashes without a message. It's not occur with athene normalmapped for example.

Have some quirk to export a normalmapped model to ogre? :(
Someone can help
Thanx

texugo

24-05-2009 03:13:41

Hy buddies

This is the Exceptions raised in ogre.log of CEGUImeshViewer:

23:14:55: Texture: maun_nor.tga: Loading 1 faces(PF_R8G8B8,1024x1024x1) with 10 generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
23:14:56: Texture: nm.png: Loading 6 faces(PF_R8G8B8,128x128x1) with 7 generated mipmaps from multiple Images. Internal format is PF_X8R8G8B8,128x128x1.
23:14:56: Texture: maun_tex.tga: Loading 1 faces(PF_R8G8B8,1024x1024x1) with 10 generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
23:14:56: OGRE EXCEPTION(3:RenderingAPIException): Failed to DrawPrimitive : Invalid call in D3D9RenderSystem::_render at ..\src\OgreD3D9RenderSystem.cpp (line 2695)

Whats is ... please someone help :shock: :roll: :shock:

team23

25-05-2009 06:41:36

I haven't yet done any normal maps on my models so I can't help you myself. You'll probably get more responses to this question on the main Ogre forums, as this shouldn't be a Python-Ogre specific issue.

texugo

25-05-2009 18:02:14

All Right
Thanx
:D

bharling

26-05-2009 09:24:28

It looks like the problem is with the exported material, not the mesh. Best thing would be to try applying another normal map material at runtime, instead of loading the one that is exported from blender ( first make sure to delete the material script that is exported from blender, usually scene.material ) :

myBlenderExporterMesh.setMaterialName( "someNormalMappedMaterial" )

texugo

31-05-2009 05:44:01

Hi bharling

Thanx for hint ... but i solved my problem. I forgot to enable the option Tangent in preferences>>export options. Them my models run very fine :D