Mesh: Difference between revisions
(Created page with " Almost everything should be self explanatory after examination of any mesh file in text form except for the following: <br/> hasValidTangents: This tells the engine whether...") |
No edit summary |
||
Line 15: | Line 15: | ||
The text versions of all mesh files are found in <[[Convert_Data|Reference Data]]>\Mesh. | The text versions of all mesh files are found in <[[Convert_Data|Reference Data]]>\Mesh. | ||
[[Category:Modeling]][[Category:Modding]] |
Latest revision as of 04:58, 1 October 2016
Almost everything should be self explanatory after examination of any mesh file in text form except for the following:
hasValidTangents:
This tells the engine whether the mesh already has valid tangents or not. If a mesh doesn’t provide valid tangents they will be generated by DirectX. This is not preferred as 3D packages tend to do a better job.
NumCachedVertexIndicesInDirection:
<FRONT,BACK,LEFT, RIGHT,UP,DOWN>: These indice lists help the engine optimize a number of operations (in particular weapons fire) and each list is a sample of indices that reference vertices with normals that are within some min angle of the direction indicated and are sorted by distance to the origin of that direction. The origin of that direction is defined as the unit normal vector of that direction * mesh radius and the min angle is ((90 + 45) / 2) degrees.
The text versions of all mesh files are found in <Reference Data>\Mesh.