WARNING: Flipped triangle ... How to fix this?

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

WARNING: Flipped triangle ... How to fix this?

Post by AEon »

In my bsp compile (q3map2) for AEcantw2 I get this warning:

Code: Select all

--- MergeMetaTriangles ---
0...1...2...3...4...5...6...
WARNING: Flipped triangle: (   996    624    -30) (  976    624      0) (  1040    624    -96)
WARNING: Flipped triangle: (   996    400    -30) (   976    400      0) (  1040    400    -96)
7...8...9... (0)
The obvious path: Open the .map source file in a programmer's editor, search for the coordinates, take note of the brush number, then search for that brush number in GTKradiant, delete it, to then recreate it... alas, does not work. Because those coordinates for some reason are not in the .map file.

Any suggestions?
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

Re: WARNING: Flipped triangle ... How to fix this?

Post by Silicone_Milk »

Is it actually visible within the game? I'd ignore it if it isn't.
Delirium
Posts: 102
Joined: Mon Apr 27, 2009 10:05 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by Delirium »

http://forums.urbanterror.net/index.php ... #msg150323
in this post Dragonne talks about it, not sure if it might be any use.
[url=http://gotdelirium.com/][img]http://www.gotdelirium.com/stuff/gdd.png[/img][/url]
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by AEon »

@Silicone_Milk
I have not noticed it, yet. But that may only mean I have not been looking closely enough.

@Delirium
Alas that link is about terrain. Though it does hint that massive amounts of not properly caulked brushwork (here terrain), may cause such an issue. I have been "relatively" on the ball concerning caulking, though.
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by Hipshot »

Just delete the brush in the .map file, you don't need to look it up into radiant...
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by AEon »

@Hipshot
As I pointed out the coordinates do *not* occur in the map file. So I cannot locate the appropriate brush and delete it.
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by Hipshot »

Sorry, I thought you were looking for the brush number within radiant.
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by Hipshot »

Make a new level and copy paste over the old level? That has solved similar errors for me when I have had brushes that for some reason didn't exist but actually did existed...
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: WARNING: Flipped triangle ... How to fix this?

Post by ^misantropia^ »

You have a surface where two or more tris (triangles) share the exact same coordinates. It doesn't really matter, though. q3map2 simply filters out the duplicates.
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by AEon »

Hmm... my changes to the geometry in the map, adding new areas, I almost completely deleted one sector seems to have removed the issue... whee... I think.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by obsidian »

IIRC, it may also have to do with certain brushes with many many faces.




Not unlike this guy:
Image
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: WARNING: Flipped triangle ... How to fix this?

Post by AEon »

I was a tad slow to "get it". I could have located the location in GTKradiant, using those conflicting coordinates, to delete the brushes there. Still strange that the exact coordinates (i.e. vertices) are not in the map file, q3map2 may be referring to a plane instead.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: WARNING: Flipped triangle ... How to fix this?

Post by ^misantropia^ »

Yeah, they're coordinates on the same surface (as in brush face). The warning occurs during the meta phase, when surfaces are merged, so if you have any intersecting brushes, that might well be the cause.
Post Reply