Triangulated Polygons vs Quadrangulated Ones

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Triangulated Polygons vs Quadrangulated Ones

Post by GAB »

Suppose I modeled two cubes. The first one has all sides looking like this, just a flat simple square polygon. Then I made another cube identical to the first one, but this time the sides look more like this, a square polygon with a diagonal edge.

My question is, which of the two boxes would be cheaper for SWBF2 to render? Which of the two approaches is less system intensive to show ingame? And why?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Triagulated Polygons vs Quadrangulated Ones

Post by jedimoose32 »

I could be wrong, but I think I remember reading a long time ago that VM triangulates your model when you munge it, so if that's true then the first shape you showed would just end up looking like the second one before it's even handled by the game engine.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Triagulated Polygons vs Quadrangulated Ones

Post by mswf »

There's no way for the graphic card to easily understand anything but triangles. :D So the short answer is that triangles are more easy to render, because truly rendering a quad would require you to create your own renderer.

The way graphic cards process polygonal meshes, the format pretty much all games use, is (and I am simplifying here) by receiving them as a large strip of triangle definitions. I could use more nuance, but essentially it's like that because the math formulas to describe forms in 3d space are defined this way. sortof
Here's a video where a more qualified person describes what's going in, if you're interested:
http://youtu.be/KdyvizaygyY
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Triagulated Polygons vs Quadrangulated Ones

Post by THEWULFMAN »

VM triangulates the models automatically. However, it's really bad at it. Smaller quads usually just disapear when VM converts them.

tl;dr always triangulate your models before exporting it to msh. Working in quads is the standard, just don't export that way.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Triagulated Polygons vs Quadrangulated Ones

Post by GAB »

Thanks a lot for all the info guys.

And just to clarify everything in my head, a model should be triangulated before exporting to prevent Visual Munge from doing it in the not best way, right?

And great video mswf. Thank you very much for the link.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Triagulated Polygons vs Quadrangulated Ones

Post by THEWULFMAN »

Correct.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Triangulated Polygons vs Quadrangulated Ones

Post by GAB »

Allright. Thanks a lot. :)
Post Reply