Ogre Version: 1.14
Operating System: win 10
Render System: opengl
Hi All,
I recently did come back to my project as the time seems to be enough.
I have a scene in blender with all the assets set in place, textures included.
When I do export the scene with blender2ogre I get all the textures missing, the log file does not report any error.
But, the textures files on the file system seems too few and I can see that they are missing.
Does anybody knows which the issue is with the exporter?
Thanks!
This is the result.
[edit]
I ve seen that in the log file more then half of the textures report:
[WARNING] Roughness input is not connected
[edit 2]
Have opened the blender shader editor to check the material nodes and as for the roughness there is no texture specified, there is only the value which should be ok.
Instead it is clear that the blender2ogre plugin did not manage to export many textures, for instance: DiffuseColor_Texture_2 which is used by the vase model - you can see it on the file system.
Going to attach other two screenshots.
At a first glance it seemed that I was not instantiating the RTSS.
I have added the rtss setup after the scene manager creation with such a function:
Code: Select all
void BaseApplication::setupRTSS()
{
OgreAssert(mSceneMgr, "SceneManager is null - can not setup RTSS");
if(mSceneMgr) {
// Step 1: Initialize the RTShader system
if (!Ogre::RTShader::ShaderGenerator::getSingletonPtr())
{
Ogre::RTShader::ShaderGenerator::initialize();
}
// Step 2: Retrieve the Shader Generator instance
Ogre::RTShader::ShaderGenerator* shaderGenerator = Ogre::RTShader::ShaderGenerator::getSingletonPtr();
// Step 3: Attach the SceneManager to the Shader Generator
shaderGenerator->addSceneManager(mSceneMgr);
// Step 4: Activate the RTSS material scheme
Ogre::MaterialManager::getSingleton().setActiveScheme(Ogre::RTShader::ShaderGenerator::DEFAULT_SCHEME_NAME);
}
}
The order of the resources setup is as follows:
chooseSceneManager(cameraMode);
createCamera(cameraMode, cameraStyle);
createViewports();// Set default mipmap level (NB some APIs ignore this)
Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);initializeComponents(); // this calls setupRTSS
// Create any resource listeners (for loading screens)
createResourceListener();// Load resources
loadResources();// Create the scene
createScene();createFrameListener();
However I can not get the materials loaded correctly.
Thanks!