• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX ModelconverterX MDlReader and Tverts

hcornea

Resource contributor
Messages
2,388
Country
australia
I have a question about tverts in FSX native MDL files.

Using Gmax, I made 3 test cubes, with the UVW modifier specified, and tverts (as reported by Gmax script "getnumtverts$" ) :

Cube 1: has a Box UVW modifier ... gmax reports 36 tverts
Cube 2: has a Plane UVW Modifier .... gmax reports 8 tverts
Cube 3: has all UV points welded together ... gmax reports 1 tvert for this cube.

Once exported via the FSX gamepack ... and read into ModelconverterX, all of these report 12 triangles and 24 tverts in Modelconverter. ie all the models are the same, regardless of welding of UVW's.

So ... does the Gmax gamepack break vertex welds?

Or does the ModelconverterX MDL reader break them?

And why 24 tverts for each object (even those with 1, 8 or 36 tverts)?

Finally ... if an object is processed via modelconverterX, have all the welds been broken and the number of tverts consequently increased when compared with the original MDL?

This would have significant performance implications if that is indeed the case.
 
Last edited:
Hi,

Good questions. I should start saying I am not familiar with how GMax counts them.

But I am not surprised that you find 24 texture vertices on a box. Since for a box the normal of the different faces is different, each side will have its own vertices. So at each corner you will have 3 different vertices because the normal is different, there is no way to reduce this.

Then with 4 vertices per side, you get the 24 vertices in total. The only way to get less vertices would be if some of your sides have the same normal, but that is hardly the case with boxes. You could have up to 36 vertices if each of the triangles have an unique texture mapping.

When exporting objects from ModelConverterX the amount of vertices is minimized, so the same vertex is not written multiple times (they are shared/welded). But a vertex can only be shared if position, normal and texture mapping are the same.

So I think the GMax count is not accurate for FS and the way the information is stored in the MDL files.
 
Irrespective of what you've done in either Max or GMax, the export module will "re-triangulate" all mesh before writing to the .X file.
 
Ok ... well I guess it makes sense.

What is interesting is that it seems to make ZERO difference to the number of tverts if I weld all UVW points together

.... contrary to information out there.

BTW ... I always get 24 with MCX , never 36 tverts, even if every triangle has been mapped to uniqe UVW.

Hmm interesting.
 
Hi,

I have attached an example of a box that shows 36 vertices.

Welding UVW coordinates would only make a different on cylinders or so, if the normal is not the same you will still get multiple texture vertices.
 

Attachments

Back
Top