How can I export the blender to ogre?

Problems building or running the engine, queries about how to use features etc.
Post Reply
roenix
Gnoblar
Posts: 4
Joined: Sun Sep 06, 2015 8:48 am

How can I export the blender to ogre?

Post by roenix » Sat Sep 26, 2015 4:07 pm

I tried doing it following the ogre wiki , but it get an error

Code: Select all

Traceback (most recent call last):
  File "/home/roenix/.config/blender/2.71/scripts/addons/io_export_ogreDotScene.py", line 3172, in execute
    self.ogre_export(self.filepath, context)
  File "/home/roenix/.config/blender/2.71/scripts/addons/io_export_ogreDotScene.py", line 3622, in ogre_export
    xmlparent = doc._scene_nodes
  File "/home/roenix/.config/blender/2.71/scripts/addons/io_export_ogreDotScene.py", line 3779, in _node_export
    self.dot_mesh( ob, os.path.split(url)[0] )
  File "/home/roenix/.config/blender/2.71/scripts/addons/io_export_ogreDotScene.py", line 3413, in dot_mesh
    dot_mesh( ob, path, force_name, ignore_shape_animation=False )
  File "/home/roenix/.config/blender/2.71/scripts/addons/io_export_ogreDotScene.py", line 5231, in dot_mesh
    mesh.calc_tangents()
RuntimeError: Error: Tangent space computation needs an UVMap, "(null)" not found, aborting
location: <unknown location>:-1
First,I following the wiki
The latest suggested exporting plugin is blender2ogre maintained on bitbucket.
This should work with Blender 2.5x, 2.6x and 2.7x as of August 2015.
https://bitbucket.org/iboshkov/blender2ogre(external link)

and download it from the link,
then I installed the addon by file -> User Preferences -> Addons -> Install from files
and I chose the io_export_ogreDotScene.py which I download from the bitbucker.org
then i clicked the checkbox
and the Ogre3d(.scene and .mesh) appeared in the File -> export
Now it was seem all going well,
but when I clicked it to export an model even a simple cube, an error was reported which I pasted at the top of the topic

What wrongs did I do ?
The version of blender I am using is 2.7.1.

Thanks
Roenix.
0 x

Fedakl
Gnoblar
Posts: 12
Joined: Mon Aug 31, 2015 7:26 pm

Re: How can I export the blender to ogre?

Post by Fedakl » Sun Sep 27, 2015 10:03 pm

Hi,

If export tangents (default export settings) mesh need UV.

Usually the shaders need tangents eg. normal map.

L
0 x

roenix
Gnoblar
Posts: 4
Joined: Sun Sep 06, 2015 8:48 am

Re: How can I export the blender to ogre?

Post by roenix » Tue Sep 29, 2015 8:56 am

Fedakl wrote:Hi,

If export tangents (default export settings) mesh need UV.

Usually the shaders need tangents eg. normal map.

L
I really appreciate your help!!!

Following your hint, i succeed to use the model created by myself in OGRE. :D :D :D
0 x

jgdo
Gnoblar
Posts: 1
Joined: Wed Feb 03, 2016 5:32 pm

Re: How can I export the blender to ogre?

Post by jgdo » Wed Feb 03, 2016 5:34 pm

I'm having the same problem. I'm new to Blender and Ogre, can you tell me what exactly you have done please?

Best regards
0 x

Fedakl
Gnoblar
Posts: 12
Joined: Mon Aug 31, 2015 7:26 pm

Re: How can I export the blender to ogre?

Post by Fedakl » Sun Feb 18, 2018 6:16 pm

Hi,

I think you know the answer after two years, but i only now read the question. :)
So, in blender if the mesh don't have uv you add uv in the following way:

Select object (mesh), press tab -> go to edit mode, (All vertices must be selected, press A for select/deselect all verices)
Select mesh menu / Uv Unwrap and eg. / smart uv project and click OK, what selected depend what you need, but the smart uv project usualy ok.

Best Regards
L
0 x

Post Reply