Page 1 of 1

MakeMDL Error

PostPosted: Sun Nov 27, 2005 5:25 pm
by spaceguy5
Hi! I'm very new to this, and anyways, I was trying to convert a model into an Aircraft MDL, but I keep getting this error:

Processing...
(Part Regroup0281) Found colocated vertices within triangle
   (-0.372048, 0.202366, 0.250295)
   (-0.380581, 0.184131, 0.250295)
   (-0.380579, 0.184131, 0.250295).
(Part Regroup0281) Found colocated vertices within triangle
   (-0.380579, 0.184131, 0.250295)
   (-0.380581, 0.184131, 0.250295)
   (-0.372048, 0.202366, 0.250295).
Model units are 1024.00 units/meter
Error!
Error!

I have 2 questions:

(1) What does this mean?
(2) How do I fix it?

Re: MakeMDL Error

PostPosted: Sun Nov 27, 2005 6:43 pm
by Katahu
There is a possibility that one of the parts within your model, has colocated vertices.

A colocated vertex occurs when three vertices of the exact same polygon are lined up almost straight on with each other. This can cause a bit of confusion for makemdl as it has to figure out how to render such vertices.

As you know, a polygon consists of at least 3 vertices and 3 edges. If those three corners are lined up [making a smashed polygon], rendering the polygon may be impossible.

Another cause:

Many vertices of the same object-in-question might be in the exact same location [basically, vertices are clumped together].

Steps to help avoid colocated vertices:

1. Avoid using semi-spheres. Sometimes they can cause the problem. But if you're gonna use them, such as for making a nose cone of a prop, make sure that the vertices on the flat area are moved out of alignment.

2. Second, avoid the spline technique. This technique may be helpful with dealing curves, but it can cause the errors that you have in the same manner due to the complex nature of the spline tool. Besides, there are other [safer] methods for dealing with curves such as Box-modeling and Poly-modeling.

3. Select an object [any object that is basically complex] and highlight all the vertices. In the Modifier panel, scroll down to where it says "Weld". Click "Selected" and this will cause any vertex that is clumped together to be combined into one single vertex. This resembles the "Collapse" method, but the "Weld" method targets vertices thar too close to each other without needlessly affecting the rest of the vertices.

4. This following method is slow, but it will help you identify faulty objects within your model very early. After adding a complex object to a model, give it a special name and export it with the rest of the model. During the export [if you have middleman and mdlcommander installed], check the "keep error log" box before continueing. That way, if an error occurs, simply read the saved log and check to see if the object you made is responsible for the issue. Typically, the log will give you the name of the object by simply repeating it and tell you what it found. Deal with the object in Gmax, and export it again to see if it's been fixed. If it works, move on to the next new object you make.

This should help.

Re: MakeMDL Error

PostPosted: Wed Nov 30, 2005 10:56 am
by Moach
what i usually do (and had to do a number of times on the 737) is to select the offending part mentioned in the error log, select all of its vertices and hit "weld" with a thershold of about 0.1 or 0.01

you may have to weld more than once, keep hitting that button untill you get the "no vertices within threshold" message

check your model after this proceedure to see if any negative effect has occured from this, if so hit ctrl+Z and try again with a smaller threshold

this will fix any part for the colocated vertices problem... but if there is more than one part with this problem (most likely), you will keep getting this error... (the exporter stops after it identifies the first collocated part and doesn't let you know that there might be more)

a way to fix this for good is to get middleman (if you dont have it already) and check all the "ignore" boxes in the options tab... i can't remember which one controls this but there is one that will male it ignore the collocated vertices errors and continue exporting

hope this helps

Moach

Re: MakeMDL Error

PostPosted: Wed Nov 30, 2005 11:57 am
by Felix/FFDS
I find it interesting - unless my eyes are seeing wrong, that you have two poloygon/triangles co-located.  Note that the vertex x,y,z definitions for the two triangles are the same.

In this case, a simple welding of points *should* eliminate the problem.

Re: MakeMDL Error

PostPosted: Wed Nov 30, 2005 1:04 pm
by Fitter
I saw this message once...and Cyrill Piofet told me to go in the Control panel - regional settings - and change the decimal symbol to "." - DOT
And it works.....

Re: MakeMDL Error

PostPosted: Wed Nov 30, 2005 2:40 pm
by SkyNoz
I find it interesting - unless my eyes are seeing wrong, that you have two poloygon/triangles co-located.  Note that the vertex x,y,z definitions for the two triangles are the same.

In this case, a simple welding of points *should* eliminate the problem.


Felix is right, I've had this problem before and all you need to do is select all vertics on the shape and weld with default setting. That should solve you problem. ;)

Re: MakeMDL Error

PostPosted: Thu Dec 01, 2005 11:43 am
by Firestriker
Using the default weld value can have adverse affect because it is way to large. I use a weld radius of 0.001 so I know I won't loose faces that I want and ONLY points that have the EXACT same values (as is the case with colocated verts) are welded.

Lou