http://www.fsdeveloper.com/forum/threads/export-issue-with-65k-material-limit.436789/#post-738800
I seem to remember talk of this a
longgg time ago and the gist was FSX doesn't support this. Arrimus says some games do, but best to ask Lockheed-Martin if P3D does.
I also remember Mathias of Classics Hangar saying he kept the vertex count per material down around 20K so he could apply all the options – diffuse, specular, bump – without running foul of FSX's 65K texture vertex limit. Might have to do the same for P3D yet.
Hi again:
It took some searching to find these previous threads citing the fact that many (~3-to-4x more per material ?) Texture Vertices (aka "T-Verts") may 'initially' be incurred when applying multiple materials on a 3D model (which IMHO underscores the importance of utilizing "Smoothing" wherever possible to minimize adverse run time rendering performance impact related to "T-Vert" count (sometimes still ascribed to "Poly" count based on IIUC, legacy FS information and concepts):
http://www.fsdeveloper.com/forum/threads/misaligned-textures.434275/
http://www.fsdeveloper.com/forum/threads/triangles-vertices-and-drawcalls.434086/
Of particular note, IMHO, is the explanation posted on the importance of 'welding' T-verts, duplicating Materials, and Drawcall Batching in ACES' Adrian Woods' (aka "torgo 3000") Blog:
https://web.archive.org/web/2015013.../performance-art-3-polygons-don-t-matter.aspx
NOTE: Because
bad things can happen to good information (IMHO, crucial to the FS knowledge base) when MS decides to delete online content incidental to distancing themselves from support of the FS product line while trying to sell other product lines and/or services via existing online storage servers (...as they pursue their seemingly perpetual "
Google Envy"), I'm quoting the entire Blog article cited below:
"
Performance Art 3: Polygons don't matter.
torgo3000
19 Jun 2007 4:14 PM
As next gen technology came online, people started repeating this mantra: "Polygons don't matter anymore." For the longest time (okay, about a week) I was stuck thinking, "Awesome, we can throw any amount of geometry at the new cards and they'll just handle it. Sweet!" The part that the infamous "they" left off of that Mantra was: "...vertices do!"
So polygons don't matter anymore. That is absolutely true. However vertices do. They matter absolutely. Here's a handy little excercise to see what I mean by this. Open up 3ds Max or Gmax (or follow along in your mind). Create a box. Convert it to an editable mesh and apply a UVW Unwrap modifier. Collapse it back to a mesh and type in "getNumTverts $" in the Max Script listener window. In the listener output window, you should see the number 8 appear. That means it has 8 texture vertices. That makes sense, 8 physical vertices and 8 texture vertices, right? Now apply a UVW Map modifier to the box and choose "face" as the mapping type. Collapse it back to a mesh and type in "getNumTverts $" in the Max Script listener. You should now see the number 36 appear in the listener output. Huh? 36 texture vertices on a simple box? This is because any texture vertex that is not welded gets duplicated. That happens in the game as well. It also happens for shading groups. We do do some optimization and welding when we convert the geometry to a model, however any hard edge in the UVW Mapping will always cause a split in vertices.
So what this means is that even though your polygon count may be low, your vertex count may be sky high. Like I said, we do optimize pretty heavily on export, but we can't catch every case and if the model is authored poorly from the start (completely unique texture vertices for all the faces for example) you can wind up with four times as many vertices as you intended.
So why does the vertex count matter? Well, because all of the geometry is put onto the graphics card via vertex streams and vertex buffers. A vertex buffer is basically 64k, which translates to ~64,000 vertices stored per buffer. Every buffer is a single draw call. Sometimes we fill the buffer up all the way, sometimes we don't (bad batching). However, let's assume the best case scenario and imagine that we are batching everything perfectly. We create a building that we wan't to appear in a scene 1,000 times. That building has 1000 polygons. Okay, that's a little high, but not bad for a high-detailed model. But due to poor modeling, UVing and smoothing, the building actually has 2400 vertices in it. 64,000 / 2400 = 26 buildings per draw call. 1000 / 26 = 38.4 or 39 draw calls for those buildings. Even though it's a perfect batch and a perfect scenario, we still require 39 draw calls for that single building 1000 times. Let's imagine that the building was well authored and optimized and actually only had 1200 vertices in it (a more reasonable scenario). 64,000 / 1200 = 53 buildings per draw call. 1000 / 53 = 18.8 or 19 draw calls. That's a pretty significant reduction. Especially if you have 200 variations of buildings you want to draw (200 * 39 = 7800 draw calls, 200 * 19 = 3800 draw calls). These are all still excessive numbers, but you get the point (and also can see how creating high-polygon models with bad vertex optimization can kill the framerate quick).
So what can we do about this? The first thing to do is author good models. Yes we have our fair share of bad models. As I said, we've got legacy that we just can't update every release, so we chip away at it release by release. Make sure your smoothing groups are used wisely. If it's a rounded object, 1 smoothing group may do. If it's not, try to create as few smoothing groups as makes sense. Also, weld your texture vertices and align and overlap things as much as possible. If you have two faces overlapping in the UV space, make sure the common verts are welded. Also, try to UV things as contiguously as possible. If you are creating a building, create one seam on it and have all four faces lined consecutively on the texture sheet (like splitting a cylinder and flattening it out). If the front and back and sides are identical, then make sure to weld all of the overlapping vertices. Like I said, we do perform some automatic welding when threshholds are close, but if they aren't close in the first place, then we can't weld them.
The second thing to do is batch up parts of models when possible. If you have several buildings with the same window type, batch up those windows with the same texture and the same material. Since they're small in vertex count, they will all likely fit into a single draw call. So rather than have 1200 vertex buildings that cause 19 draw calls, create smaller groups that can batch up smartly. 1 draw call for windows, 1 draw call for doors, 1 draw call for awnings and then 1 draw call for the simple building geometry that is left. As the material batching comes online, this will be much easier to do. But it's good practice to start thinking about this now."
https://web.archive.org/web/2015013.../performance-art-3-polygons-don-t-matter.aspx
http://blogs.technet.com/b/torgo3000/archive/2007/06/19/performance-art-3-polygons-don-t-matter.aspx
https://www.linkedin.com/in/adrianwoods
PS: A somewhat related thread in a Sketchup context on reducing 3D model complexity and texture material mapping mentions that:
* FSX reportedly no longer 'requires' one to weld vertices at 4mm mesh intervals:
http://wing-fell-off.blogspot.com/2006_09_01_archive.html
...
and:
* FSX compiler/exporter is able to export without mangling mesh with as small an interval as 0.0005 (1/2 mm)
http://www.fsdeveloper.com/forum/threads/misaligned-textures.434275/page-2#post-712851
Hope this info helps with consideration of work-flow and technique in modeling / texturing 3D models for aircraft (...or scenery) !
GaryGB