Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
-
- Gnoblar
- Posts: 6
- Joined: Thu Sep 02, 2010 4:56 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Thanks.. seems to work.. did not know about control click trick..
-
- Gnoblar
- Posts: 6
- Joined: Thu Sep 02, 2010 4:56 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Right XMLConverter not working on Mac.. problem.. do not really want to have to port stuff to windows
-
- Gnoblar
- Posts: 15
- Joined: Fri Jul 23, 2010 6:34 pm
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi mkultra33,mkultra333 wrote:I'd guess the cube is not set to be smooth, so instead of 6 verts with normals pointing out from the corners, each face has 4 private verts with normals pointing straight out in the direction of the face.syndicatedragon wrote:I'm wondering why a cube, when exported, apparently has 24 vertexes. Even if it had to make triangles, there should still only be the original 8 vertexes, right?cyrfer wrote:@syndicatedragon: You are asking how to delete faces in Blender? This is the wrong forum for that. However, I recommend you select your object, go into "Edit Mode" (by clicking the mesh in the tree view, or TabKey), choosing "face select" mode (instead of vertex or others) at the bottom of the 3D viewport, start right-clicking (to select) on faces in the 3d scene and hit DeleteKey (I think). [edit]The faces in Blender are often quads, which the exporter has to split to make triangles. Maybe this is why you think there are twice as many faces as necessary.[/edit]
As for the broken export with subsurfaces, try and find some way to convert the subsurfaces to actual mesh triangles and see how the export goes.
I am havving the same problem. I am importing an .obj to blender (where one vertex is part of many faces). When I import it to blender and export it to Ogre I got for each face 3 new vertices.
So my model is not "Smooth". Can you give me a hint how to make it smooth in Blender???
Thanks
raccon
-
- Gold Sponsor
- Posts: 1894
- Joined: Sun Mar 08, 2009 5:25 am
- x 116
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
To make the verts common to all faces they touch and with normals that point out at an angle to each face (so smooth looking), go to edit mode and with the all the verts selected, press the "set smo" button down the bottom left. It's next to a "set solid" button, which does the opposite (makes new verts for every face with face specific normals.)
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.
-
- Orc
- Posts: 478
- Joined: Mon Apr 10, 2006 9:12 pm
- x 12
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi, I do not have a Mac so I can't support this. But if you can tell me how to make it work, I'm willing to make support for it.PhyllisL wrote:Right XMLConverter not working on Mac.. problem.. do not really want to have to port stuff to windows

-
- Gnoblar
- Posts: 6
- Joined: Thu Sep 02, 2010 4:56 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
I think someone with a mac needs to help on this. I am running the exporter on OS 10.6.4 on Blender2.49..The exporter works fine. The problem is completing the last step of converting the meshes to a Unix Executable file so they can be read in Orge. I run the OrgeXMLConverter in terminal.. navigate to folder .. I was told to type ./Orgexmlconverter filename.mesh and then run .. when I do that I get error that says Orgexml no such file.. when I drag the converter into the terminal window then the mesh file it runs but comes back with a bus error .. there was another thread that had same issue .. someone posted a recompiled converter.. tried that with same resulting errors.. There is a converter log file that gets created but I'm a newbe in coding so can't tell from that where problem is.. Any help on this would be greatly appreciated.
-
- Goblin
- Posts: 297
- Joined: Mon Jun 09, 2008 3:56 pm
- Location: Karlsruhe, Germany
- x 10
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Maybe post the converter log here so people can have a look at it. Then maybe try to export a simple cube and see if that works to narrow down the error.
-
- Gnoblar
- Posts: 21
- Joined: Mon Jul 05, 2010 5:19 pm
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi again. Thanks for helping me with my problem before, now I got a new problem:
I tried to export the meshes with skeletal animation, but the bones won't play in ogre. The animation list don't even show.
I hope this screenie helps:
I tried to export the meshes with skeletal animation, but the bones won't play in ogre. The animation list don't even show.
I hope this screenie helps:
You do not have the required permissions to view the files attached to this post.
-
- Gnoblar
- Posts: 21
- Joined: Mon Jul 05, 2010 5:19 pm
-
- Halfling
- Posts: 43
- Joined: Mon Feb 23, 2009 10:29 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi all,
that's my very first time I use this exporter and I met interesting thing - there are two objects of the same size in Blender's window, but when I export them in turn one model is 100 times bigger then the other one. Does anybody know why it happens?
Thanks in advance,
Maxym
P.S. I didn't manage to read all 15 pages of the forum, so sorry in case if something similar has been discussed already.
that's my very first time I use this exporter and I met interesting thing - there are two objects of the same size in Blender's window, but when I export them in turn one model is 100 times bigger then the other one. Does anybody know why it happens?
Thanks in advance,
Maxym
P.S. I didn't manage to read all 15 pages of the forum, so sorry in case if something similar has been discussed already.
-
- Orc
- Posts: 446
- Joined: Mon Feb 25, 2008 7:56 pm
- x 13
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Is one of your model scaled in blender ?
If so you should apply scale to your object so it's scale is reseted to (1,1,1) and your underlying mesh is rescaled.
If so you should apply scale to your object so it's scale is reseted to (1,1,1) and your underlying mesh is rescaled.
This is a block of text that can be added to posts you make. There is a 255 character limit.
-
- Halfling
- Posts: 43
- Joined: Mon Feb 23, 2009 10:29 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
And how can I check if its scale is not (1,1,1)? And how to apply that scale? (I'm not very familiar with Blender tookoirat wrote:Is one of your model scaled in blender ?
If so you should apply scale to your object so it's scale is reseted to (1,1,1) and your underlying mesh is rescaled.

-
- Halfling
- Posts: 43
- Joined: Mon Feb 23, 2009 10:29 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Now I know: Ctrl+A, 3 in object mode.Maxym wrote: And how to apply that scale?
P.S. I know it's not a Blender forum

-
- Gnoblar
- Posts: 21
- Joined: Mon Jul 05, 2010 5:19 pm
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi again,
Thanks for helping me with the shrinking problem by pressing Ctrl+A. It works for meshes, but not for bones, the animation is messed up when I export them to ogre format. Is this a bug or is there something I'm not doing right?
Thanks for helping me with the shrinking problem by pressing Ctrl+A. It works for meshes, but not for bones, the animation is messed up when I export them to ogre format. Is this a bug or is there something I'm not doing right?
-
- Gnome
- Posts: 334
- Joined: Tue Oct 24, 2006 9:02 am
- Location: Moscow, Russa
- x 26
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Small possible bug report:
when Extremity Points is not 0 and OgreXMLConverter is turned on script crashes in base.py (line449): because it can't concatenate str and int. I don't really need that, so I used 0, but I guess you should convert self.nuextremityPoints into string.
when Extremity Points is not 0 and OgreXMLConverter is turned on script crashes in base.py (line449):
Code: Select all
basicArguments += ' -x ' + self.nuextremityPoints
-
- Gnoblar
- Posts: 3
- Joined: Sat Jun 12, 2010 1:04 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hi there,
I'm having a problem with the blender exporter. When I export a model, some parts are not connected anymore. It's not visible at first place(there is no visual discontinuity), but I made a propagation algorithm to know connected parts, and my mesh have 20, whereas in blender it has only 3. I saw that it is the exact inverse problem with people one or two pages before
Things I've tested :
- In blender, I select a vertex, then choose "Select Linked Vertices". The output is that I have 3 different parts (as said before)
- When I export it in .mesh, and then import it with the blender importer, I have 20 parts, like in my app.
I don't know exactly how my friend did that mesh, but He told me that he makes the mesh in blender, then export it to obj, makes the UV with an external tool, and reimport it in blender. At this moment, I have 3 parts.
The strange thing is, it looks like the different parts I have seems to be the differents part in UV mapping made in the external tool. Maybe this information of groups is somewhere in blender but I can't find it. So I think finding where these groups are stored will lead me to the solution, in that I can merge them (and hope it do not breaks the animation/UV mapping
). These groups are not blender "vertex groups".
I looked a bit at the outputed mesh xml, It have only one submesh.
I looked a bit in the meshexporter.py too, and it seems that there's no specific treatment to export faces (expect for the quads to triangle conversion). So no splits are made there. It appears so that some connection are lost in the process of getting these faces.
I hope I put all the relevent informations and someone can help me on this. Thx in advance.
I'm having a problem with the blender exporter. When I export a model, some parts are not connected anymore. It's not visible at first place(there is no visual discontinuity), but I made a propagation algorithm to know connected parts, and my mesh have 20, whereas in blender it has only 3. I saw that it is the exact inverse problem with people one or two pages before

Things I've tested :
- In blender, I select a vertex, then choose "Select Linked Vertices". The output is that I have 3 different parts (as said before)
- When I export it in .mesh, and then import it with the blender importer, I have 20 parts, like in my app.
I don't know exactly how my friend did that mesh, but He told me that he makes the mesh in blender, then export it to obj, makes the UV with an external tool, and reimport it in blender. At this moment, I have 3 parts.
The strange thing is, it looks like the different parts I have seems to be the differents part in UV mapping made in the external tool. Maybe this information of groups is somewhere in blender but I can't find it. So I think finding where these groups are stored will lead me to the solution, in that I can merge them (and hope it do not breaks the animation/UV mapping

I looked a bit at the outputed mesh xml, It have only one submesh.
I looked a bit in the meshexporter.py too, and it seems that there's no specific treatment to export faces (expect for the quads to triangle conversion). So no splits are made there. It appears so that some connection are lost in the process of getting these faces.
I hope I put all the relevent informations and someone can help me on this. Thx in advance.
-
- Orc
- Posts: 478
- Joined: Mon Apr 10, 2006 9:12 pm
- x 12
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Good catch. Thanks.altren wrote:Small possible bug report:
when Extremity Points is not 0 and OgreXMLConverter is turned on script crashes in base.py (line449):because it can't concatenate str and int. I don't really need that, so I used 0, but I guess you should convert self.nuextremityPoints into string.Code: Select all
basicArguments += ' -x ' + self.nuextremityPoints

@r0ots: If your UV of adjacent faces points to diff coords or if your faces adjacent to each other is not smoothed (hard edged), the same vertex will be cloned and thus splitting the faces into many triangle islands.
-
- Gnoblar
- Posts: 3
- Joined: Sat Jun 12, 2010 1:04 am
-
- Gnoblar
- Posts: 3
- Joined: Sat Jun 12, 2010 1:04 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Okay, I made a program that resolves this, it gets the xml generated by the exporter script, founds every pair of points that have the same position, found a triangle that has the first point of the pair and then adds a face with first/second/another point in the triangle.
I'm cutting a mesh by a plane in real-time so it was mandatory to have the mesh into one piece.
I'm cutting a mesh by a plane in real-time so it was mandatory to have the mesh into one piece.
-
- Orc
- Posts: 478
- Joined: Mon Apr 10, 2006 9:12 pm
- x 12
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hmm.. that works? Wouldn't that mess up your UV?
-
- Gnoblar
- Posts: 13
- Joined: Mon Oct 18, 2010 12:18 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Sorry, but I can't install this plugin. I use plugins tab in preferences window and specify the path to plugin, but it is not shown in plugins list even after blender restart. I've tried to copy entire folder to scripts folder as was said in the manual but the result stills the same.
Can anyone help me with this problem? (sorry for stupid questions)
Blender 2.54 beta.
Can anyone help me with this problem? (sorry for stupid questions)
Blender 2.54 beta.
-
- Gnoblar
- Posts: 1
- Joined: Fri Nov 06, 2009 2:20 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
user,
You may want to try using 2.5 to export with an third-party filetype and then import in 2.49. Opening 2.5* files with 2.4* does not work very well (for example, animation is messed up).
Sorry, you'll have to export your files with 2.49b until Blender 2.5's API is solidified.To clarify, this version of the exporter is meant for Blender 2.49b. Work on a Blender 2.5/2.6? exporter will start once their python API has been declared stable which at the moment(25/08/2010) is not; they are still in beta. When work on the new exporter starts, I will put up another thread to distinguish both exporter as it will be a 100% rewrite. I will continue to support this exporter as best as I can until Blender 2.49 phase out.
You may want to try using 2.5 to export with an third-party filetype and then import in 2.49. Opening 2.5* files with 2.4* does not work very well (for example, animation is messed up).
-
- Gnoblar
- Posts: 11
- Joined: Fri Nov 12, 2010 11:08 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
I am trying to create extremity points for Ogre submeshes, would this option do that if it worked?lf3thn4d wrote:Good catch. Thanks.altren wrote:Small possible bug report:
when Extremity Points is not 0 and OgreXMLConverter is turned on script crashes in base.py (line449):because it can't concatenate str and int. I don't really need that, so I used 0, but I guess you should convert self.nuextremityPoints into string.Code: Select all
basicArguments += ' -x ' + self.nuextremityPoints
For some reason, I can't find any mention of extremities option for XMLConverter. This is the closest thing, and it seems to imply the extremities thing is just what I want, but that still won't tell me what would be a good number of extremity points...
-
- Orc
- Posts: 478
- Joined: Mon Apr 10, 2006 9:12 pm
- x 12
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Hey, really sorry for the late reply. I've been very busy lately with tight schedules. I do not have time to update a new fix release yet. But for a quick fix, you can temporary change the said line to:
That should fix it.
As for what is a good number, I'm not sure myself. Personally, I try to avoid needing such solution as it requires more sorting calculations during rendering. Having said that, I didn't look much into the extremity points system so I've no clue how it works.
Code: Select all
basicArguments += ' -x %d' % self.nuextremityPoints
As for what is a good number, I'm not sure myself. Personally, I try to avoid needing such solution as it requires more sorting calculations during rendering. Having said that, I didn't look much into the extremity points system so I've no clue how it works.

-
- Gnoblar
- Posts: 11
- Joined: Fri Nov 12, 2010 11:08 am
Re: Latest Blender Export Script [Wed Aug 25, 2010 - v1.4]
Thank you a lot! I'm trying to make a transparent dome with other transparent objects inside it, and it looks like it's very hard to do well without submesh sorting.lf3thn4d wrote:Hey, really sorry for the late reply. I've been very busy lately with tight schedules. I do not have time to update a new fix release yet. But for a quick fix, you can temporary change the said line to:That should fix it.Code: Select all
basicArguments += ' -x %d' % self.nuextremityPoints