Ogre 1.8 regression hiding submeshes

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
DragonM
Gnoblar
Posts: 22
Joined: Mon Jul 21, 2008 4:35 am
x 7

Ogre 1.8 regression hiding submeshes

Post by DragonM »

I seem to have run into a regression in Ogre 1.8. I have a model constructed of multiple submeshes. When I render the entire model, the framerate is 425 fps. When I hide even one submesh, the framerate tanks, to as little as 4 fps. This happens even after I simplify all of the materials to eliminate all shaders, so the material contains nothing but a texture.

This happens running the DX9 RenderSystem under Windows 7, compiled with Visual Studio.

If I use the OpenGL RenderSystem, I get this:

Code: Select all

OGRE EXCEPTION(7:InternalErrorException): Buffer data corrupted, please reload in GLHardwareVertexBuffer::unlock at ..\..\..\..\..\RenderSystems\GL\src\OgreGLHardwareVertexBuffer.cpp (line 164)
at the point when the model in question is first supposed to be displayed. If I don't hide the submesh, no exception occurs.

The model was exported from 3DS Max using Easy Ogre Exporter, and appears to be good data. The XML Converter has no complaints about it, anyway.

Neither problem appeared in Ogre 1.7.

DM
DragonM
Gnoblar
Posts: 22
Joined: Mon Jul 21, 2008 4:35 am
x 7

Re: Ogre 1.8 regression hiding submeshes

Post by DragonM »

Further information. I recently reenabled my submesh hiding code and ran a debug build. I get hundreds and hundreds of assertions, these two, alternating:

Code: Select all

'Cannot lock this buffer, it is already locked'

Code: Select all

'Cannot unlock this buffer, it is not locked'
One additional hint: the problem appears to happen because a hidden entity itself has hidden submeshes. Something goes pathologically insane inside of Ogre, repeatedly doing something to buffers.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Ogre 1.8 regression hiding submeshes

Post by Wolfmanfx »

Can you share your mesh with me? Via email?
DragonM
Gnoblar
Posts: 22
Joined: Mon Jul 21, 2008 4:35 am
x 7

Re: Ogre 1.8 regression hiding submeshes

Post by DragonM »

Wolfmanfx wrote:Can you share your mesh with me? Via email?
Done.