ogre-assimp - No codecs registered Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
JanKleemann
Gnoblar
Posts: 15
Joined: Wed Sep 12, 2018 7:29 am

ogre-assimp - No codecs registered

Post by JanKleemann »

Ogre Version: 1.10.12
Operating System: Windows 10
Render System: -

Hi, I'm trying to convert some models using ogre-assimp, but I always get the message

Code: Select all

There are no formats supported (no codecs registered).
I have build FreeImage as described in http://wiki.ogre3d.org/Building+Dependencies (changed runtime libraries to DLL). I have build the tests for FreeImage and they run fine. I have build and run the tests for Ogre (TestContext.exe) and loading images seem to run fine (D3D11), although the test wants to access some images in C:\Users\kleemann\Documents\Ogre\Xalafu\VisualTests\VTests\Direct3D11RenderingSubsystem which don't exist (the folder is empty).

I have copied OgreAssimpConverter.exe, FreeImage.dll and assimp-vc140-mt.dll into the Ogre bin folder.

Does anyone have a clue why ogre-assimp won't load images?
Is there any other method to convert models into ogre .mesh? I have tried the blender plugin, but it does not work for me.

Below is the output from CMake, when configuring Ogre.

Code: Select all

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ DirectX11
+ Python
+ SDL2
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ DirectX9: Support for the DirectX render system <http://msdn.microsoft.com/en-us/directx/>
+ cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html>
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ OpenEXR: Load High dynamic range images <http://www.openexr.com/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
-----------------------------------------------------------------------------

Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "3.0.8")
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "3.0.8")

----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Bites [BETA]
  + HLMS [BETA]
  + MeshLodGenerator
  + Overlay
  + Paging
  + Property
  + Python [BETA]
  + Java/ JNI [BETA]
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Terrain
  + Volume
Building plugins:
  + BSP scene manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + Direct3D 11
  + OpenGL
  + OpenGL 3+
Building executables:
  + Samples
  + Tests
  + Tools
Building core features:
  + Mesh Lod
  + DDS image codec (.dds)
  + ETC image codec (.pkm, .ktx) 
  + FreeImage codec (generic)
  + ZIP archives

Build type:                      shared
Use C++11 std library:           ON
Store child nodes as:            map [DEPRECATED]
Thread safety:                   none
ResourceManager behaviour:       legacy [DEPRECATED]
Use double precision:            disabled
Nodes inherit transform:         disabled
Assert mode:                     release exceptions
Allocator type:                  standard
STL containers use allocator:    disabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: ogre-assimp - No codecs registered

Post by paroj »

Likely a bug in ogre-assimp
JanKleemann
Gnoblar
Posts: 15
Joined: Wed Sep 12, 2018 7:29 am

Re: ogre-assimp - No codecs registered

Post by JanKleemann »

I added the line

Code: Select all

Ogre::FreeImageCodec::startup();
to main.cpp in ogre-assimp and included the corresponding header. After this the conversion works.

If this is intended behavior (Ogre not registering codecs by itself), then it is really a bug in ogre-assimp.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: ogre-assimp - No codecs registered

Post by paroj »

just pushed a fix to ogre-assimp. It never should have tried to load the image in the first place as it was not doing anything with them. Also the code is compatible with 1.11 now.
JanKleemann
Gnoblar
Posts: 15
Joined: Wed Sep 12, 2018 7:29 am

Re: ogre-assimp - No codecs registered

Post by JanKleemann »

Thank you :)
Post Reply