I am experiencing crashes when loading some textures. They are mostly when loading from a .dds file for normal and spec
but i also get crashes when video memory runs out also limiting the amount textures, materials we can view in our engine using the asset manager before CTD.
Note: I would like to say that all these assets were loadable on the old DX9.
Here is my setup code:
Code: Select all
// Create the item variant
mesh.importV1Mesh("barbarian_high.mesh");
// Load the HlmsJson file
Ogre::HlmsManager* hlmsMgr = Ogre::Root::getSingleton().getHlmsManager();
hlmsMgr->loadMaterials("barbarian_high_armor_mat.json", Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME);
hlmsMgr->loadMaterials("barbarian_high_eye_mat.json", Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME);
hlmsMgr->loadMaterials("barbarian_high_skin_mat.json", Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME);
node = rootNode->createChildSceneNode();
Ogre::Item* item = scene.sceneManager->createItem("barbarian_high.mesh");
node->attachObject(item);
node->setPosition(-1, 1, 0);
Here is the log section:
Code: Select all
Mesh: Loading barbarian_high.mesh.
Skeleton: Loading barbarian_high.skeleton
WARNING: barbarian_high.mesh is an older format ([MeshSerializer_v1.8]); you should upgrade it as soon as possible using the OgreMeshTool tool.
Texture: loading armor_d.dds as armor_d.dds
WARNING: Could not generate mipmaps for armor_d.dds. This can negatively impact performance as the HlmsTextureManager will create more texture arrays than necessary, and the lower mips won't be available. Lack of mipmaps also contribute to aliasing. If this is a compressed DDS/PVR file, bake the mipmaps offline.
Texture: loading barbarian_d.dds as barbarian_d.dds
WARNING: Could not generate mipmaps for barbarian_d.dds. This can negatively impact performance as the HlmsTextureManager will create more texture arrays than necessary, and the lower mips won't be available. Lack of mipmaps also contribute to aliasing. If this is a compressed DDS/PVR file, bake the mipmaps offline.
Texture: loading barbarian_s.dds as barbarian_s.dds
WARNING: Could not generate mipmaps for barbarian_s.dds. This can negatively impact performance as the HlmsTextureManager will create more texture arrays than necessary, and the lower mips won't be available. Lack of mipmaps also contribute to aliasing. If this is a compressed DDS/PVR file, bake the mipmaps offline.
OGRE EXCEPTION(9:UnimplementedException): This method can not be used to compress or decompress images in PixelUtil::bulkPixelConversion at E:\00_Skyline Integrations\Ogre3D SDK\Source\v2-1\OgreMain\src\OgrePixelFormat.cpp (line 958)Thanks again



