Code: Select all
Ogre::TextureManager::getSingleton().load(lightfile1,Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,Ogre::TEX_TYPE_2D,0);
Ogre::TextureManager::getSingleton().load(lightfile2,Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,Ogre::TEX_TYPE_2D,0);
Code: Select all
17:20:08: Texture: Plane_box: Loading 1 faces(PF_FLOAT32_RGB,1500x500x1) with 11 generated mipmaps from Image. Internal format is PF_FLOAT32_RGBA,1500x500x1.
17:20:08: Texture: Plane_light.exr: Loading 1 faces(PF_FLOAT32_RGB,1500x500x1) with 11 generated mipmaps from Image. Internal format is PF_A8B8G8R8,1500x500x1.
Internal format 8 bits in the second one? why???
I have a code that works fine in Dx9 , since I manage to transform all my materials to shading I don't need RTMaterial system neither but I had lots of problems... and after a lot of tries I really think that they are related to threading.
Of course I tried disabling boost and with OGRE_CONFIG_THREADS = 0 but it looks that you can't disable threads on Dx11.
Ie.
Code: Select all
//also tried disabled background loading before the load call
mTptr = Ogre::TextureManager::getSingleton().load(filename2,Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,Ogre::TEX_TYPE_2D,0,1,false,Ogre::PF_FLOAT16_RGBA);
//wait until it is loaded, it looks that it doesn't work on dx11
while (!mTptr->isLoaded()){}
mTptr->convertToImage(shaderImages[i]);
Code: Select all
17:35:52: OGRE EXCEPTION(9:UnimplementedException): pack to PF_UNKNOWN not implemented in PixelUtil::packColour at ..\..\OgreMain\src\OgrePixelFormat.cpp (line 1119)
Thanks in advance.