I had using Ogitor to create a sample terrain and some meshs.
After that I just exported it as file: *.scene. Inside this file, it describe the terrain with a Page_00000000.ogt file.
Code: Select all
<terrain worldSize="512" mapSize="129" pagenameprefix="Page" colourmapEnabled="false" colourMapTextureSize="128" tuningCompositeMapDistance="2000" tuningMaxPixelError="3" tuningMinBatchSize="33" tuningMaxBatchSize="65" tuningSkirtSize="10" tuningUseRayBoxDistancealculation="false">
<terrainPages>
<terrainPage name="Page_00000000.ogt" pageX="0" pageY="0" pagedGeometryPageSize="40" pagedGeometryDetailDistance="240" />
</terrainPages>
</terrain>
So I got DotSceneLoader.h, DotSceneLoader.cpp, rapidxml.hpp and main.cpp. By using this file I built up project in Visual Studio 2015.
Other material shows nice but only crash in running into terrain part and VS2015 shows like the image says.
When I look inside the code, I found it crash in OgreStreamSerialiser.
Code: Select all
void StreamSerialiser::readHeader()
{
uint32 headerid;
size_t actually_read = mStream->read(&headerid, sizeof(uint32));
// skip back
mStream->skip(0 - (long)actually_read);
// validate that this is a header chunk
if (headerid == REVERSE_HEADER_ID)
{
mFlipEndian = true;
}
else if (headerid == HEADER_ID)
{
mFlipEndian = false;
}
else
{
// no good
OGRE_EXCEPT(Exception::ERR_INVALID_STATE,
"Cannot determine endian mode because header is missing",
"StreamSerialiser::readHeader");
}
... other code...
}
Ogitor version 0.5.0
OGRE version 1.10.7
Is there any ideas to fix this? I'm not sure what should I do next.
Thanks for advice.