help converting to .mesh

Problems building or running the engine, queries about how to use features etc.
Post Reply
rrl
Halfling
Posts: 78
Joined: Sun Jun 04, 2017 12:33 am

help converting to .mesh

Post by rrl »

Using 2.1, I'm trying to convert an xml (exported as ogre mesh in blender) to a mesh, but getting the following error.

Code: Select all

$ ~/ogre-v2-1/build/bin/OgreMeshTool -e -t -ts 4 -O puqs -v2 ./mod1.mesh.xml mod1.mesh    
XMLMeshSerializer reading mesh data from ./mod1.mesh.xml...
Reading geometry...
Geometry done...
Reading submeshes...
Submeshes done.
Reading mesh names...
Mesh names done.
XMLMeshSerializer import successful.
v1 Mesh has shared geometry. 'Unsharing' them...
Unshare operation successful
Exception caught: Cannot locate an appropriate 2D texture coordinate set for all the vertex data in this mesh to create tangents from. 
What I'm hoping to do is display the model as a wire mesh.

Any thoughts where I'm going wrong?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: help converting to .mesh

Post by dark_sylinc »

Because there are no UVs, tangents cannot be generated.

Either fix that, or execute with:

Code: Select all

$ ~/ogre-v2-1/build/bin/OgreMeshTool -e -O puqs -v2 ./mod1.mesh.xml mod1.mesh
(removed the -t and -ts 4 options)
Post Reply