Issue: When some faces or objects in your scene have no Crytek shader assigned to it, you will get the following error: The following material is not set to the Crytek Shader: Face.
Resolution: To fix this error, select the object or faces and in the Material Editor and change the Shader Type to Crytek Shader.
Pic1: "The following material is not set to the Crytek Shader: Face" error.
Pic2: Changing shader to Crytek Shader.
Issue: When you export multiple assets in your scene from 3DS Max, and import it into CRYENGINE, you can see all the assets are with one node and only as one file.
Resolution: You need to make sure that the checkbox Export file per node is checked to avoid exporting multiple dummy nodes as as single file. For example, if you have different pieces of a building that you need to export into the CRYENGINE.
Pic3: Enabling the Export file per node checkbox.
Issue: 3DS Max crashes instantly, while exporting your assets. One of the main reasons could be that the LODs have been linked under the dummy node.
Pic4: Linking LODs under the dummy node.
Resolution: You need to link the LODs under the main mesh node.
Pic5: Linking LODs under the main mesh node.
Issue: The following error is displayed when you export assets in the CRYENGINE Exporter window, "Failed to compile geometry in node......- More than two triangles share an edge". It means that you might have double faces attached to each other or two faces which are attached sharing the same edge but the vertices are not welded.
Pic6: CRYENGINE Exporter log window.
Resolution: Click on the Modify tab, and then under Modifier List drop down menu, select STL Check.
Pic7: Selecting STL Check from the modifier list.
Once the STL modifier is activated, it will highlight those faces in red which needs to be fixed.
Pic8: Highlighting edges shared in the geometry.
Issue: When you export your asset out of 3ds Max and the exported *.cgf file size is very high.
Resolution: You should check if the vertex animation is turned on for the scene. If it is turned on, make sure to uncheck the box and export the asset again.
Very important! You will get no export error for that, so please check your file size.
Pic9: Ensuring Vertex animation is turned off.
When the exporter and/or editor log reports errors like these:
Pic10: Error messages for degenerate texture.
The errors messages mentioned above are most likely related to so called degenerate faces. Degenerated faces are triangles where all edges lie over each other, which looks like the triangle has no face area.
Pic11: An overview of degenerate faces.
For these triangles no tangent space matrix can be calculated which is necessary for all shading computations in our engine, normal mapping in particular. Also meshes with only degenerate triangles will cause problems with texture streaming because the engine cannot calculate its texel-density.
To solve that problem, you need to remove such triangles from your mesh. The tricky part is that they are not always apparent, because they look like a normal edge.
In Max, we have the cryMaxTools which can find such triangles and mark them.
To fix the errors:
Pic12: Selecting CryMaxTools in 3ds Max.
2. Click on the CryModeling tab and then under Poly Tools select Mark Degenerated Triangles. The tool will go through all selected objects to find degenerate triangles, and place a point helper on them.
Pic13: Marking Degenerated Triangles in CryMaxTools.
Also the point helper will be linked to the corresponding object and added to a new layer that contains only such degenerate triangle markers.
Pic14: Placing point helper for the object.
Now you can go through the point helpers one by one and resolve the degenerate triangles.
Pic15: Few examples for resolving the degenerate triangles.
Pic16: An overview of degenerate face in a polygon.
Unfortunately the script cannot fully capture the behavior of the RC, so the is a small chance that it will not find all the degenerate triangles as effectively as RC.