[2.2] Rigged character from blender 2.81 looks weired

Problems building or running the engine, queries about how to use features etc.
Post Reply
mrmclovin
Gnome
Posts: 324
Joined: Sun May 11, 2008 9:27 pm
x 20

[2.2] Rigged character from blender 2.81 looks weired

Post by mrmclovin »

Ogre Version: 2.2 :?:
Operating System:macOS :?:
Render System:Metal :?:

Using blender2ogre-2.80 branch.

As the pictures shows, the exported character doesn't look right when rendered in ogre. I've made this basic rig myself and tried to make it as simple as possible. I have no idea how to debug this - it could be that I've rigged it wrong in blender, or some bug in blender2ogre, or a bug in Ogre itself. Any idea where I can start debugging this?

Image

Image

Blender export log
Blender 2.81 (sub 16) (hash f1aa4d18d49d built 2019-12-04 14:33:18)
Blender 2.81 (sub 16) (hash f1aa4d18d49d built 2019-12-04 14:33:18)
Read prefs: /Users/Library/Application Support/Blender/2.81/config/userpref.blend
found bundled python: /Volumes/Transcend/Applications/blender 2.app/Contents/Resources/2.81/python
INFO:root:Starting io_ogre (0, 8, 0)
Warning: 'HT_toggle_ogre' doesn't contain '_HT_' with prefix & suffix
register_class(...):
Warning: 'HT_toggle_ogre' doesn't contain '_HT_' with prefix & suffix
Warning: 'MT_mini_report' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: 'MT_mini_report' doesn't contain '_MT_' with prefix & suffix
Warning: class OGREMESH_OT_preview contains a property which should be an annotation!
/Volumes/Transcend/Applications/blender 2.app/Contents/Resources/2.81/scripts/addons/io_ogre/__init__.py:108
assign as a type annotation: OGREMESH_OT_preview.preview
assign as a type annotation: OGREMESH_OT_preview.groups
assign as a type annotation: OGREMESH_OT_preview.mesh
Warning: class OGRE_OT_export contains a property which should be an annotation!
/Volumes/Transcend/Applications/blender 2.app/Contents/Resources/2.81/scripts/addons/io_ogre/__init__.py:108
assign as a type annotation: OGRE_OT_export.filepath
assign as a type annotation: OGRE_OT_export.EX_SWAP_AXIS
assign as a type annotation: OGRE_OT_export.EX_SEP_MATS
assign as a type annotation: OGRE_OT_export.EX_ONLY_DEFORMABLE_BONES
assign as a type annotation: OGRE_OT_export.EX_ONLY_KEYFRAMED_BONES
assign as a type annotation: OGRE_OT_export.EX_OGRE_INHERIT_SCALE
assign as a type annotation: OGRE_OT_export.EX_SCENE
assign as a type annotation: OGRE_OT_export.EX_SELONLY
assign as a type annotation: OGRE_OT_export.EX_EXPORT_HIDDEN
assign as a type annotation: OGRE_OT_export.EX_FORCE_CAMERA
assign as a type annotation: OGRE_OT_export.EX_FORCE_LAMPS
assign as a type annotation: OGRE_OT_export.EX_MESH
assign as a type annotation: OGRE_OT_export.EX_MESH_OVERWRITE
assign as a type annotation: OGRE_OT_export.EX_ARM_ANIM
assign as a type annotation: OGRE_OT_export.EX_SHAPE_ANIM
assign as a type annotation: OGRE_OT_export.EX_SHAPE_NORMALS
assign as a type annotation: OGRE_OT_export.EX_TRIM_BONE_WEIGHTS
assign as a type annotation: OGRE_OT_export.EX_ARRAY
assign as a type annotation: OGRE_OT_export.EX_MATERIALS
assign as a type annotation: OGRE_OT_export.EX_DDS_MIPS
assign as a type annotation: OGRE_OT_export.EX_lodLevels
assign as a type annotation: OGRE_OT_export.EX_lodDistance
assign as a type annotation: OGRE_OT_export.EX_lodPercent
assign as a type annotation: OGRE_OT_export.EX_V1_nuextremityPoints
assign as a type annotation: OGRE_OT_export.EX_generateEdgeLists
assign as a type annotation: OGRE_OT_export.EX_generateTangents
assign as a type annotation: OGRE_OT_export.EX_optimiseAnimations
assign as a type annotation: OGRE_OT_export.EX_COPY_SHADER_PROGRAMS
assign as a type annotation: OGRE_OT_export.EX_FORCE_IMAGE_FORMAT
assign as a type annotation: OGRE_OT_export.EX_EXPORT_ENABLE_LOGGING
assign as a type annotation: OGRE_OT_export.EX_V2_MESH_TOOL_EXPORT_VERSION
assign as a type annotation: OGRE_OT_export.EX_V2_optimizeVertexBuffersForShaders
assign as a type annotation: OGRE_OT_export.EX_V2_optimizeVertexBuffersForShadersOptions
Warning: 'MT_ogre_docs' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: 'MT_ogre_docs' doesn't contain '_MT_' with prefix & suffix
Warning: '_ogredoc_Installing' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: '_ogredoc_Installing' doesn't contain '_MT_' with prefix & suffix
Warning: '_ogredoc_FAQ' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: '_ogredoc_FAQ' doesn't contain '_MT_' with prefix & suffix
Warning: '_ogredoc_Animation_System' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: '_ogredoc_Animation_System' doesn't contain '_MT_' with prefix & suffix
Warning: '_ogredoc_Physics' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: '_ogredoc_Physics' doesn't contain '_MT_' with prefix & suffix
Warning: '_ogredoc_Bugs' doesn't contain '_MT_' with prefix & suffix
register_class(...):
Warning: '_ogredoc_Bugs' doesn't contain '_MT_' with prefix & suffix
Warning: class Blender2OgreAddonPreferences contains a property which should be an annotation!
/Volumes/Transcend/Applications/blender 2.app/Contents/Resources/2.81/scripts/addons/io_ogre/__init__.py:110
assign as a type annotation: Blender2OgreAddonPreferences.IMAGE_MAGICK_CONVERT
assign as a type annotation: Blender2OgreAddonPreferences.OGRETOOLS_XML_CONVERTER
assign as a type annotation: Blender2OgreAddonPreferences.OGRETOOLS_MESH_MAGICK
assign as a type annotation: Blender2OgreAddonPreferences.TUNDRA_ROOT
assign as a type annotation: Blender2OgreAddonPreferences.MESH_PREVIEWER
assign as a type annotation: Blender2OgreAddonPreferences.USER_MATERIALS
assign as a type annotation: Blender2OgreAddonPreferences.SHADER_PROGRAMS
Read blend: /Users/Development/Data/Common/Blender/character_rigged_idle.blend
Processing Scene: name:Scene, path: ./character_rigged_idle
- Exporting root node: armature
Vertices: 240
Loop triangles: <bpy_collection[476], MeshLoopTriangle> 476
- Generating: character_rigged_idle.mesh.xml
- Writing shared geometry
Done at 0.17 seconds
- Writing submeshes
Done at 0.19 seconds
- Created .mesh.xml at 0.28 seconds
INFO:root: - Created .mesh in total time 0.65 seconds
- Exporting root node: Camera
Exported Ogre Scene: ./character_rigged_idle/Scene.scene

Blender quit
Running OgreMeshTool...
XMLMeshSerializer reading mesh data from ./character_rigged_idle/character_rigged_idle.mesh.xml...
Reading geometry...
Geometry done...
Reading submeshes...
Submeshes done.
Skeleton: Loading character_rigged_idle.skeleton
Unable to load skeleton character_rigged_idle.skeleton for Mesh conversionSrcXML. This Mesh will not be animated. You can ignore this message if you are using an offline tool.
Reading bone assignments...
Bone assignments done.
Reading mesh names...
Mesh names done.
XMLMeshSerializer import successful.
v1 Mesh has shared geometry. 'Unsharing' them...
Unshare operation successful

Generating edge lists...success

Generating tangent vectors....success
WARNING: the mesh 'conversionSrcXML' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
Saving as a v2 mesh...
MeshSerializer writing mesh data to stream ...
File header written.
Writing mesh data...
Writing submesh...
Submesh exported.
Exporting skeleton link...
Corrupted chunk detected! Stream name: '' Chunk id: 24576
Skeleton link exported.
Exporting bounds information....
Bounds information exported.
Exporting submesh name table...
Submesh name table exported.
Corrupted chunk detected! Stream name:
Mesh data exported.
MeshSerializer export successful.
The Ogre log doesn't seem to show any relevant errors:
WARNING: sphere1000.mesh is an older format ([MeshSerializer_v2.1 R1]); you should upgrade it as soon as possible using the OgreMeshTool tool.
Mesh: Loading character_rigged_idle.mesh.
Corrupted chunk detected! Stream name: 'character_rigged_idle.mesh' Chunk id: 24576
Skeleton: Loading character_rigged_idle.skeleton
Can't assign material Material because this Material does not exist. Have you forgotten to define it in a .material script?
Mesh: Loading planetus.mesh.
IDK what the 'corrupted chunk' really means.. I've seen it before where the meshes renders without any defects.
mrmclovin
Gnome
Posts: 324
Joined: Sun May 11, 2008 9:27 pm
x 20

Re: [2.2] Rigged character from blender 2.81 looks weired

Post by mrmclovin »

As always when I write down my problem, I manage to find the solution. Turns out no bug was involved here :)

I needed to "Apply" -> "All transforms" in blender.


Image
Post Reply