Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
User avatar
mkultra333
Gold Sponsor
Gold Sponsor
Posts: 1862
Joined: Sun Mar 08, 2009 5:25 am
x 16

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by mkultra333 » Sat Sep 24, 2011 3:35 am

If it's just a blank vertex to vertex path, you might be able to export it as some other kind of simple mesh, like a wavefront obj, then load and parse the mesh manually yourself, since you don't really need ogre's mesh features. If you can't find a format that works, you could maybe even write one yourself in python, since your needs are pretty minimal. I vaguely remember there being an example exporter you could modify.

If you really, really want it to be an ogre mesh, you might need to build your path, then select all the verts and extrude it just a tiny bit and convert to quads to triangles. So it'll really be a mesh line of quads instead of a line. Later, when you use the path in the game or whatever, you'll have to do an extra little bit of processing, possibly preprocessing it, to ignore redundant vertices.
0 x
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.

Mafioso
Kobold
Posts: 29
Joined: Mon Mar 21, 2011 4:49 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by Mafioso » Sun Oct 09, 2011 11:19 pm

Thanks for the reply, I made it, just made a plane and extruded it further, this way the whole plane have to sides corresponding to two paths. However I have another problem, this time with shape keys. I made an animation with 12 keys from frame 1 which is 1 influence for them all and 100 frame which is 0 influence, it's fine in blender, but later when I export it to .mesh, last bits of the animation, like 0.3 second, makes the animation go from 0 which is my last influence, back to 1. I don't know why the exporter does that. So the question is, must I do the influences like 0 to 1 to 0 again, to make it work or am I missing something, because I just need what I got now
0 x

sander
Gnoblar
Posts: 5
Joined: Fri Dec 02, 2011 1:51 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by sander » Fri Dec 02, 2011 2:24 pm

Hey! I started using this script a few days ago and have been trying to export an image of a hand with bones in each finger, one for the palm and one for the arm. All exporting went fine but when I loaded this into OGRE it made a mess of everything and nothing seemed to be located where it should be...

In order to better understand the problem I therefore took away all of the bones and only put in two; the palm and the arm. This to see how they did when exported, and even here I cannot manage to make it work. The problem is that the rotation of the armature doesn't seem to get exported properly and therefore the exported mesh looks weird...

This is how it looks in blender before I export it:
Hand_Blender.JPG
The hand, with armatures, in blender.
The same mesh after exporting it, in implementation:
Hand_VRE.JPG
Hand in the OGRE environment
Hand_VRE.JPG (11.61 KiB) Viewed 13063 times
I have read through most of this thread, atleast the relevant posts, and tried to reset the object & armatures position, rotation, origin in blender (in Object Mode) without any success.

Has anyone encountered this aswell?
/Sander
0 x

QuantumFlux
Gnoblar
Posts: 13
Joined: Sat Oct 01, 2011 12:41 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by QuantumFlux » Sun Dec 25, 2011 11:47 pm

Try going to edit mode, selecting all the bones, then press Ctrl-N and select Active Bone, that resets the bone's rotation along their local Y-Axis. If that doesn't work, I don't know either.
0 x

artich0ke
Gnoblar
Posts: 5
Joined: Sun Jan 08, 2012 2:02 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by artich0ke » Sun Jan 08, 2012 2:21 pm

nvm, solved.
0 x

velthune
Gnoblar
Posts: 14
Joined: Fri May 27, 2011 3:51 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by velthune » Tue Jan 17, 2012 11:21 am

Hi everybody!

I need to export .blend to .mesh and .skeleton using blender version 2.6.1: it is possible?
0 x

User avatar
LiMuBei
Goblin
Posts: 297
Joined: Mon Jun 09, 2008 3:56 pm
Location: Karlsruhe, Germany

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by LiMuBei » Wed Jan 18, 2012 10:26 am

velthune wrote:Hi everybody!

I need to export .blend to .mesh and .skeleton using blender version 2.6.1: it is possible?
Try this
0 x

sinoshva
Gnoblar
Posts: 1
Joined: Fri Mar 16, 2012 1:56 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by sinoshva » Fri Mar 16, 2012 2:02 pm

Hello,
Is there any way to export ".anim" files from Blender? Basically it should have the translation and rotation values of a particular object in particular time frames.
0 x

KinoDro
Gnoblar
Posts: 11
Joined: Thu Jun 20, 2013 11:28 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by KinoDro » Thu Jun 20, 2013 11:32 pm

i installed everything i needed but when i try to export the OGRE format it says "This script needs a full python 2.5 installation, please refer to the blender website how to install pyhon for blender" though i already have python 2.5.
what am i supposed to do?
0 x

bstone
OGRE Expert User
OGRE Expert User
Posts: 1920
Joined: Sun Feb 19, 2012 9:24 pm
Location: Russia

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by bstone » Sat Jun 29, 2013 6:59 pm

Check the thread Blender 26 Ogre Exporter. Somewhere on the later pages there should be the most recent version of the exporter that works with Blender 2.66. This one is not actual as far as I can tell.
0 x

Jeroma
Gnoblar
Posts: 2
Joined: Wed Apr 30, 2014 2:36 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by Jeroma » Wed Apr 30, 2014 2:42 pm

In the wiki I updated the Python link (because exporter dependency changed).
It would be nice, if you keep the wiki page up to date.
http://www.ogre3d.org/wiki/index.php/Blender_Exporter
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by Vido » Sun Apr 05, 2015 4:12 pm

Hey guys, the tool is awesome, thanks for maintenance all this time but I need other option on axes switch.In blender my character is pointing to -y and should point to x how hard it would be to add this option, and maybe add other possible options to swap along other axis :) Cheers
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by Vido » Sat Apr 11, 2015 1:06 pm

Exporter keep reporting that vertex 38 is in more than 4 vertex groups even I removed it from 3 of 5, Im using python script to find which vertex is part of which vertex group, and this vertex is part of 2 vertex groups but exporter keep saying that is in in more then 4. What is going on here, any suggestion ?
0 x

jon albert
Gnoblar
Posts: 1
Joined: Sun Sep 04, 2016 12:56 am

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by jon albert » Sun Sep 04, 2016 1:02 am

Vido wrote:Exporter keep reporting that vertex 38 is in more than 4 vertex groups even I removed it from 3 of 5, Im using python script to find which vertex is part of which vertex group, and this vertex is part of 2 vertex groups but exporter keep saying that is in in more then 4. What is going on here, any suggestion ?
same case with mine but the point to ponder is how to fix it!
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by Vido » Mon Sep 05, 2016 12:16 am

jon albert wrote: same case with mine but the point to ponder is how to fix it!
I did solve it by setting "Trim Weights" to 0.02 or 0.1
0 x

allennicol
Gnoblar
Posts: 1
Joined: Wed Sep 28, 2016 11:44 am

Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]

Post by allennicol » Wed Sep 28, 2016 11:45 am

I did solve it by setting "Trim Weights" to 0.02 or 0.1
0 x

Post Reply