Blender export "error in normalize": Remove Double
- Martoon
- Greenskin
- Posts: 118
- Joined: Thu May 19, 2005 7:36 pm
Blender export "error in normalize": Remove Double
I have a model that was created in Pro-Engineer, exported as .stl, and imported into Blender. It looks great in Blender.
If I export as Ogre XML, I get 4 "error in normalize" errors, and the exported model has a few scrambled polys.
If, before exporting, I select all vertices and apply Remove Doubles with the default limit of 0.001, I still get 4 errors on export. If I raise the limit to 0.005, I get 8 errors. A limit of 0.01 gives 10 errors, and if I start to go higher than that, I get more errors than I can count, and the appearance of the model degrades noticeably.
So essentially, the more doubles I remove, the more errors I get.
Anyone have any tips on how to massage this model so I can get it to an Ogre mesh?
Thanks!
If I export as Ogre XML, I get 4 "error in normalize" errors, and the exported model has a few scrambled polys.
If, before exporting, I select all vertices and apply Remove Doubles with the default limit of 0.001, I still get 4 errors on export. If I raise the limit to 0.005, I get 8 errors. A limit of 0.01 gives 10 errors, and if I start to go higher than that, I get more errors than I can count, and the appearance of the model degrades noticeably.
So essentially, the more doubles I remove, the more errors I get.
Anyone have any tips on how to massage this model so I can get it to an Ogre mesh?
Thanks!
- haffax
- OGRE Retired Moderator

- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 8
- Contact:
- Martoon
- Greenskin
- Posts: 118
- Joined: Thu May 19, 2005 7:36 pm
Good point. The mesh isn't small (it's around 8 units in each dimension), but it is somewhat detailed, so I'm sure there are some fairly small polys in there.haffax wrote:Just a guess: Is your model maybe extremely small? Try to first scale it bigger and then do the export. The exporter can later scale it back if it needs to be small.
I scaled the mesh by 100, then exported with a mesh scale factor of 0.01. No errors this time, but when I view the mesh in Ogre, several of the polys are messed up. Most are fine, but several polys throughout the model appear as if maybe they're indexing the wrong vertices.
Here's the model in Blender:

And here it is in Ogre:

So, any ideas?
-
reimpell
- OGRE Contributor

- Posts: 570
- Joined: Mon Mar 01, 2004 10:35 am
- Location: Hamburg, Germany
Does it help if you changeMartoon wrote:Most are fine, but several polys throughout the model appear as if maybe they're indexing the wrong vertices.
Code: Select all
use32bitindexes="false"Code: Select all
use32bitindexes="true"- Martoon
- Greenskin
- Posts: 118
- Joined: Thu May 19, 2005 7:36 pm
Yup, that in fact is the problem! Looks like there's too many polys for 16 bit indexes.reimpell wrote:Does it help if you changeMartoon wrote:Most are fine, but several polys throughout the model appear as if maybe they're indexing the wrong vertices.toCode: Select all
use32bitindexes="false"in the exported xml file before using the xmlconverter?Code: Select all
use32bitindexes="true"
So, can I be expecting a tweak for the fabulous exporter script? It's a little hairy editing a 13MB xml file each time I export.
-
reimpell
- OGRE Contributor

- Posts: 570
- Joined: Mon Mar 01, 2004 10:35 am
- Location: Hamburg, Germany
You can either wait for soureforge's next CVS update and download revision 1.37 of the script or replace the lineMartoon wrote:So, can I be expecting a tweak for the fabulous exporter script?
Code: Select all
f.write(" use32bitindexes="false"")Code: Select all
if (len(submesh.vertices) < 65535):
f.write(" use32bitindexes="false"")
else:
f.write(" use32bitindexes="true"")
exportLogger.logInfo("Switched to 32 bit indices for submesh "%s"." % submesh.material.name)-
psionprime
- Kobold
- Posts: 32
- Joined: Wed Nov 03, 2004 5:32 am
OS X 10.4.2, Blender 2.37a, ogreexport.py 1.37
I am experiencing a similar problem with the "error in normalize". My test object is just two characters. I added the object, changed font to curve to mesh, corrected the normals, extruded then subdivided (attempt to smooth out the model a bit). The errors did not occur until I subdivided the mesh. I see no obvious defect in the renders but am curious about the errors.
I am experiencing a similar problem with the "error in normalize". My test object is just two characters. I added the object, changed font to curve to mesh, corrected the normals, extruded then subdivided (attempt to smooth out the model a bit). The errors did not occur until I subdivided the mesh. I see no obvious defect in the renders but am curious about the errors.
-
reimpell
- OGRE Contributor

- Posts: 570
- Joined: Mon Mar 01, 2004 10:35 am
- Location: Hamburg, Germany
Please read the answer to the questionpsionprime wrote:The errors did not occur until I subdivided the mesh. I see no obvious defect in the renders but am curious about the errors.
in the FAQ.Wiki wrote:Q. Why does the export log say "error in normalize
-
psionprime
- Kobold
- Posts: 32
- Joined: Wed Nov 03, 2004 5:32 am
Thanks for the reply. This is a good community. I read the FAQ, the docs and several posts before posting and none of it applies but I don't know what "small polys" means to the author. This mesh was scaled up by x100.
As I typed before, there are no apparent negative visuals so I'm not too worried about it but think it is curious and thought to post about it if the information might help anyone.
As I typed before, there are no apparent negative visuals so I'm not too worried about it but think it is curious and thought to post about it if the information might help anyone.
-
reimpell
- OGRE Contributor

- Posts: 570
- Joined: Mon Mar 01, 2004 10:35 am
- Location: Hamburg, Germany