Wings3D export - invalid mesh faces

Questions and answers about the how and why of making maps.
Post Reply
Monster
Private First Class
Private First Class
Posts: 209
Joined: Thu Sep 20, 2007 7:06 pm

Wings3D export - invalid mesh faces

Post by Monster »

Hey I tried to open a map file extracted from Wings3d as a bzw file.
I didn't work and showed me this after the try:
=============================
Possible errors:
=============================
using group file "C:\Dokumente und Einstellungen\NIKHERO\Lokale Einstellungen\Temp\bzwtl\groupdb"
face
# plane normal = 0 0 0 0
vertices 7 8 9 # 50 34.0677 49.9263 75 34.0677 49.9263 100 34.0677 49.9263
normals 7 8 9 # 0 0.4472 0.8944 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 3 4 5 # -50 34.0677 49.9263 -25 34.0677 49.9263 0 34.0677 49.9263
normals 3 4 5 # 0 0.4472 0.8944 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 0 1 2 # -125 34.0677 49.9263 -100 34.0677 49.9263 -75 34.0677 49.9263
normals 0 1 2 # -0.5774 0.5774 0.5774 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 6 7 9 # 25 34.0677 49.9263 50 34.0677 49.9263 100 34.0677 49.9263
normals 6 7 9 # 0 0.4472 0.8944 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 2 3 5 # -75 34.0677 49.9263 -50 34.0677 49.9263 0 34.0677 49.9263
normals 2 3 5 # 0 0.4472 0.8944 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 6 9 10 # 25 34.0677 49.9263 100 34.0677 49.9263 125 34.0677 49.9263
normals 6 9 10 # 0 0.4472 0.8944 0 0.4472 0.8944 0.5774 0.5774 0.5774
matref default
endface
face
# plane normal = 0 0 0 0
vertices 0 2 5 # -125 34.0677 49.9263 -75 34.0677 49.9263 0 34.0677 49.9263
normals 0 2 5 # -0.5774 0.5774 0.5774 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 0 5 6 # -125 34.0677 49.9263 0 34.0677 49.9263 25 34.0677 49.9263
normals 0 5 6 # -0.5774 0.5774 0.5774 0 0.4472 0.8944 0 0.4472 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 0 6 10 # -125 34.0677 49.9263 25 34.0677 49.9263 125 34.0677 49.9263
normals 0 6 10 # -0.5774 0.5774 0.5774 0 0.4472 0.8944 0.5774 0.5774 0.5774
matref default
endface
face
# plane normal = 0 0 0 0
vertices 87 98 109 # 125 7.8177 49.9263 125 4.0677 49.9263 125 0.3177 49.9263
normals 87 98 109 # 0.4472 0 0.8944 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 43 54 65 # 125 22.8177 49.9263 125 19.0677 49.9263 125 15.3177 49.9263
normals 43 54 65 # 0.4472 0 0.8944 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 10 21 32 # 125 34.0677 49.9263 125 30.3177 49.9263 125 26.5677 49.9263
normals 10 21 32 # 0.5774 0.5774 0.5774 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 76 87 109 # 125 11.5677 49.9263 125 7.8177 49.9263 125 0.3177 49.9263
normals 76 87 109 # 0.4472 0 0.8944 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 32 43 65 # 125 26.5677 49.9263 125 22.8177 49.9263 125 15.3177 49.9263
normals 32 43 65 # 0.4472 0 0.8944 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 76 109 120 # 125 11.5677 49.9263 125 0.3177 49.9263 125 -3.4323 49.9263
normals 76 109 120 # 0.4472 0 0.8944 0.4472 0 0.8944 0.5774 -0.5774 0.5774
matref default
endface
face
# plane normal = 0 0 0 0
vertices 10 32 65 # 125 34.0677 49.9263 125 26.5677 49.9263 125 15.3177 49.9263
normals 10 32 65 # 0.5774 0.5774 0.5774 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 10 65 76 # 125 34.0677 49.9263 125 15.3177 49.9263 125 11.5677 49.9263
normals 10 65 76 # 0.5774 0.5774 0.5774 0.4472 0 0.8944 0.4472 0 0.8944
matref default
endface
face
# plane normal = 0 0 0 0
vertices 10 76 120 # 125 34.0677 49.9263 125 11.5677 49.9263 125 -3.4323 49.9263
normals 10 76 120 # 0.5774 0.5774 0.5774 0.4472 0 0.8944 0.5774

=============================
Other Output:
=============================
LIBCURL version: libcurl/7.16.3-CVS c-ares/1.3.3-CVS
invalid mesh face (0.000000): 7 8 9
invalid mesh face (0.000000): 3 4 5
invalid mesh face (0.000000): 0 1 2
invalid mesh face (0.000000): 6 7 9
invalid mesh face (0.000000): 2 3 5
invalid mesh face (0.000000): 6 9 10
invalid mesh face (0.000000): 0 2 5
invalid mesh face (0.000000): 0 5 6
invalid mesh face (0.000000): 0 6 10
invalid mesh face (0.000000): 87 98 109
invalid mesh face (0.000000): 43 54 65
invalid mesh face (0.000000): 10 21 32
invalid mesh face (0.000000): 76 87 109
invalid mesh face (0.000000): 32 43 65
invalid mesh face (0.000000): 76 109 120
invalid mesh face (0.000000): 10 32 65
invalid mesh face (0.000000): 10 65 76
invalid mesh face (0.000000): 10 76 120

Excuse this maybe udmb question, but what went wrong?
I'm learnig wings3d and everything about map making right now.
wfg Monster
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Wings3D export - invalid mesh faces

Post by trepan »

Try Body->CleanUp on the mesh before exporting,
It seems that you have co-located vertices.
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Wings3D export - invalid mesh faces

Post by optic delusion »

Two other wings options that can help with invalid faces are....
Select-->By-->Isolated vertices and
Select-->By--> non-planar faces (this can help a lot with drawinfo conversions)
There is a small problem with selecting non-planar faces. Wings resolves to three decimal places and bzflag resolves to four. You have to reset the selection preference to .0001 every time you do it, or wings will report all faces are planar, but bzflag will not agree.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Monster
Private First Class
Private First Class
Posts: 209
Joined: Thu Sep 20, 2007 7:06 pm

Re: Wings3D export - invalid mesh faces

Post by Monster »

Ok since I'm on another pc right now, I can't try it immediately, but I'll try it soon and post again.
Thank you for your quick replys.
thx Monster
Monster
Private First Class
Private First Class
Posts: 209
Joined: Thu Sep 20, 2007 7:06 pm

Re: Wings3D export - invalid mesh faces

Post by Monster »

Hm,
I tried all three options, but none could help me.
When I used the "CleanUp" option it would collapse my object, unless i didn't disable "isolate verticals"
The other two options (Select-->By-->Isolated vertices and || Select-->By--> non-planar faces) worked find, but couldn't help me with the problem.
I still get about 20 invalid-mesh-face-errors.
Is there another way to get my object into a map?
wfg Monster
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Wings3D export - invalid mesh faces

Post by trepan »

I took another look, and it turns out that the invalid points aren't co-located,
they're co-linear, example:

vertices 7 8 9 # 50 34.0677 49.9263 75 34.0677 49.9263 100 34.0677 49.9263
-> (y is always 34.0677)

This setup is invalid for bz's purposes. Remove the faces, no more errors ...
anomaly
Private First Class
Private First Class
Posts: 220
Joined: Tue Jul 26, 2005 10:32 pm
Location: Gainesville Florida

Re: Wings3D export - invalid mesh faces

Post by anomaly »

I have had these errors before when trying out new maps. They never keep the map from loading though. As trepan said you can usually delete the faces safely. One other thing, make sure your models are saved as triangles. This seems to help.
Post Reply