korupt
20-04-2008 22:46:39
I'm pretty much trying to simulate the PLSM-Newton example on wiki (http://www.ogre3d.org/wiki/index.php/Us ... ith_Newton), but with Mogre. When a tile is loaded and the delegate is ran, I try to get the page geometry with PLSM2Options.GetPageGetTileVertexData(...), but for what ever reason, the program crashes.
It doesn't give me any type of error information, and I can't seem to get the details of the crash in any way, so I'm kind of stuck. When the scene is loaded I can see my character, and the terrain is all black for about a second, then the crash comes. "A problem caused the program to stop running correctly...."
This is what crashes me. If I comment out the GetPageGetTileVertexData(...), everything works fine (but obviously doesn't really do anything).
The logs doesn't really say anything either, but there is a difference in a "sucsessfull" run and one that crashes.
OK log entry:
Crash log entry:
Does anyone know what it could be? I tried to search for "PLSM2Helper" but I couldn't find any useful information.
Thanks
It doesn't give me any type of error information, and I can't seem to get the details of the crash in any way, so I'm kind of stuck. When the scene is loaded I can see my character, and the terrain is all black for about a second, then the crash comes. "A problem caused the program to stop running correctly...."
This is what crashes me. If I comment out the GetPageGetTileVertexData(...), everything works fine (but obviously doesn't really do anything).
private void TileLoaded(PagingLandscapeEvent plsmEvent)
{
counter++;
int pageX = (int)plsmEvent.PageX;
int pageZ = (int)plsmEvent.PageZ;
int tileX = (int)plsmEvent.TileX;
int tileZ = (int)plsmEvent.TileZ;
Vector3[] vertices;
IndexData indexData;
PLSM2Options.GetPageGetTileVertexData(m_SceenManager, pageX, pageZ, tileX, tileZ, 0, out vertices, out indexData);
}
The logs doesn't really say anything either, but there is a difference in a "sucsessfull" run and one that crashes.
OK log entry:
22:57:15: Texture: m_L3DT1.1.1.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
22:57:15: Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
22:57:15: Texture: m_L3DT1.2.1.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
22:57:16: Texture: m_L3DT1.1.0.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
22:57:16: Texture: m_L3DT1.2.0.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
22:57:16: Texture: m_L3DT1.0.1.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
22:57:16: Texture: m_L3DT1.0.0.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Crash log entry:
23:39:49: Texture: m_L3DT1.1.1.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
23:39:49: Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Does anyone know what it could be? I tried to search for "PLSM2Helper" but I couldn't find any useful information.
Thanks