what's happening I found the following:
Code: Select all
void C3DSMeshFileLoader::readVertices(io::IReadFile* file, ChunkData& data)
{
file->read(&CountVertices, sizeof(CountVertices));
this to an u16 (unisigned short). That helped not getting a negative number here.
Code: Select all
if (data.header.length - data.read != vertexBufferByteSize)
{
os::Printer::log("Invalid size of vertices found in 3ds file.", ELL_WARNING);
// return;
}