Export from Maya, error in the OgreXMLConverter.

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Imperil

Export from Maya, error in the OgreXMLConverter.

Post by Imperil »

We export the file from maya using the command line tool and we do get the proper XML files, I do not think that is an issue at all.

However when we go to convert the XML files using OgreXMLConverter the skeleton converts fine it seems, but when I go to convert the mesh it says that it cannot load the skeleton file.

Before anyone asks.. yes I have made sure the file exists and is in the same directory as the ogrexmlconverter tool and the mesh xml.

Here is what I get from the log:

Code: Select all

14:11:33: XMLMeshSerializer reading mesh data from finger.mesh.xml...
14:11:33: Reading submeshes...
14:11:33: Reading geometry...
14:11:33: Geometry done...
14:11:33: Reading bone assignments...
14:11:33: Bone assignments done.
14:11:33: Submeshes done.
14:11:33: Skeleton: Loading finger.skeleton
14:11:33: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource finger.skeleton in resource group General.. 
File: c:\documents and settings\jwoynillowicz\desktop\ogrenew\ogremain\src\ogreresourcegroupmanager.cpp
Line: 493
Stack unwinding: <<beginning of stack>>
14:11:33: Unable to load skeleton finger.skeleton for Mesh conversion. This Mesh will not be animated. You can ignore this message if you are using an offline tool.
14:11:33: XMLMeshSerializer import successful.
14:11:33: Reorganising vertex buffers to automatic layout..
14:11:33: MeshSerializer writing mesh data to finger.mesh...
14:11:33: File header written.
14:11:33: Writing mesh data...
14:11:33: Writing submesh...
14:11:33: Submesh exported.
14:11:33: Exporting skeleton link...
14:11:33: Skeleton link exported.
14:11:33: Exporting bounds information....
14:11:33: Bounds information exported.
14:11:33: Exporting submesh name table...
14:11:33: Submesh name table exported.
14:11:33: Exporting edge lists...
14:11:33: Edge lists exported
14:11:33: Mesh data exported.
14:11:33: MeshSerializer export successful.
14:11:33: Unregistering ResourceManager for type Skeleton
14:11:33: Unregistering ResourceManager for type Material
14:11:33: Unregistering ResourceManager for type Mesh
Thanks for the help.

EDIT:

I am using a Maya 6.0 file, exporting using the commandline tool to create .mesh, .skeleton, .material and then trying to use the OgreXMLConverter tool. I just noticed that the exporter is for Maya 6.5, does that mean it cannot be used on Maya 6.0 files?

It is very simple geometry and animation used for a test.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

I replied to the PM, but for the benefit of others:
http://www.ogre3d.org/phpBB2/viewtopic. ... d+skeleton

In the latest XML converter (Command line tools download from the main site) there is a notice that you can ignore the warning printed straight afterward.
Imperil

Post by Imperil »

I replied to your PM, but I tried loading the converted .mesh (which is very simple geometry and 1 single animation) in the mesh viewer as well as in the engine and I had major problems:

Code: Select all

17:25:37: Creating resource group General
17:25:37: Registering ResourceManager for type Material
17:25:37: Registering ResourceManager for type Mesh
17:25:37: Registering ResourceManager for type Skeleton
17:25:37: Loading library OgrePlatform.dll
17:25:37: OverlayElementFactory for type Panel registered.
17:25:37: OverlayElementFactory for type BorderPanel registered.
17:25:37: OverlayElementFactory for type TextArea registered.
17:25:37: Registering ResourceManager for type Font
17:25:37: ArchiveFactory for archive type FileSystem registered.
17:25:37: ArchiveFactory for archive type Zip registered.
17:25:37: DevIL version: Developer's Image Library (DevIL) 1.6.5
17:25:37: DevIL image formats: bmp dib cut dcx dds gif ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw 
17:25:37: Registering ResourceManager for type HighLevelGpuProgram
17:25:37: Loading library .\RenderSystem_Direct3D9
17:25:37: D3D9 : Direct3D9 Rendering SubSystem created.
17:25:37: D3D9: Driver Detection Starts
17:25:37: D3D9: Driver Detection Ends
17:25:37: Loading library .\Plugin_CgProgramManager
17:25:37: *-*-* OGRE Initialising
17:25:37: *-*-* Version 1.0.0 (Azathoth)
17:25:37: D3D9 : RenderSystem Option: Full Screen = No
17:25:37: D3D9 : RenderSystem Option: VSync = No
17:25:37: D3D9 : RenderSystem Option: Vertex processing = Hardware
17:25:37: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: D3D9RenderSystem::setConfigOption
Description: D3D9 : RenderSystem Option: Vertex processing = HardwareOption named 'Vertex processing' does not exist.. 
File: \Projects\OgreCVS\Branches\Azathoth\ogrenew\RenderSystems\Direct3D9\src\OgreD3D9RenderSystem.cpp
Line: 298
Stack unwinding: D3D9RenderSystem::setConfigOption(..) <- <<beginning of stack>>
17:25:37: D3D9 : RenderSystem Option: Anti aliasing = None
17:25:37: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
17:25:37: Creating resource group MeshViewerGroup
17:25:37: Initialising resource group MeshViewerGroup
17:25:37: Parsing scripts for resource group MeshViewerGroup
17:25:37: Finished parsing scripts for resource group MeshViewerGroup
17:25:37: D3D9 : Subsystem Initialising
17:25:37: ***************************************
17:25:37: *** D3D9 : Subsystem Initialised OK ***
17:25:37: ***************************************
17:25:37: ResourceBackgroundQueue - threading disabled
17:25:37: D3D9RenderSystem::createRenderWindow "View", 100x100 windowed  miscParams: externalWindowHandle=1901180 
17:25:37: D3D9 : Created D3D9 Rendering Window 'View' : 636x476, 32bpp
17:25:37: Registering ResourceManager for type Texture
17:25:37: Registering ResourceManager for type GpuProgram
17:25:37: RenderSystem capabilities
17:25:37: -------------------------
17:25:37:  * Hardware generation of mipmaps: yes
17:25:37:  * Texture blending: yes
17:25:37:  * Anisotropic texture filtering: yes
17:25:37:  * Dot product texture operation: yes
17:25:37:  * Cube mapping: yes
17:25:37:  * Hardware stencil buffer: yes
17:25:37:    - Stencil depth: 8
17:25:37:    - Two sided stencil support: yes
17:25:37:    - Wrap stencil values: yes
17:25:37:  * Hardware vertex / index buffers: yes
17:25:37:  * Vertex programs: yes
17:25:37:    - Max vertex program version: vs_2_0
17:25:37:  * Fragment programs: yes
17:25:37:    - Max fragment program version: ps_2_0
17:25:37:  * Texture Compression: yes
17:25:37:    - DXT: yes
17:25:37:    - VTC: no
17:25:37:  * Scissor Rectangle: yes
17:25:37:  * Hardware Occlusion Query: yes
17:25:37:  * User clip planes: yes
17:25:37:  * VET_UBYTE4 vertex element type: yes
17:25:37:  * Infinite far plane projection: yes
17:25:37:  * Hardware render-to-texture: yes
17:25:37:  * Floating point textures: no
17:25:37:  * Non-power-of-two textures: yes
17:25:37:  * Volume textures: yes
17:25:37: Particle Renderer Type 'billboard' registered
17:25:37: Creating viewport on target 'View', rendering from camera 'MainCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
17:25:37: Viewport for camera 'MainCamera', actual dimensions L: 0 T: 0 W: 636 H: 476
17:25:37: MeshViewer -> default num nip map set to 5
17:25:37: MeshViewer -> 32Bit textures : true
17:25:37: MeshViewer -> default animation interpolation mode set to : IM_SPLINE
17:25:37: MeshViewer -> default anisotropy level set to : 1
17:25:37: MeshViewer -> default texture filtering set to : 1
17:25:46: Destroying resource group MeshViewerGroup
17:25:46: Unloading resource group MeshViewerGroup
17:25:46: Finished unloading resource group MeshViewerGroup
17:25:46: Parsing material scripts
17:25:46: Creating resource group MeshViewerGroup
17:25:46: Added resource location 'C:\Documents and Settings\jwoynillowicz\Desktop\asdf' of type 'FileSystem' to resource group 'MeshViewerGroup'
17:25:46: Initialising resource group MeshViewerGroup
17:25:46: Parsing scripts for resource group MeshViewerGroup
17:25:46: Parsing script finger.material
17:25:46: Parsing script Ninja.material
17:25:46: Finished parsing scripts for resource group MeshViewerGroup
17:25:46: End of material scripts parsing.
17:25:46: Mesh: Loading finger.mesh.
17:25:46: Skeleton: Loading finger.skeleton
17:25:46: WARNING: finger.mesh is an older format ([MeshSerializer_v1.20]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
17:25:46: MaterialSerializer : writing material lambert1 to queue.
17:25:46: MaterialSerializer : done.
17:25:47: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
Thanks again for the help, it is much appreciated.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

The mesh is an old version, probably caused by the fact the Maya exporter is getting well out of date. We've had a 6.5 version contributed (which I believe is up to date), but the 4/5 version is very old now. Unfortunately Maya-using contributors are hard to come by - unless someone actually gives us a license for Maya there's nothing we can do to help to get this exporter updated, sorry.

Try running the .mesh through OgreMeshUpgrader (from the command line tools).
Post Reply