Author : polygoo


Reply
Reply
 
Thread Tools Display Modes
megalmn2000's Avatar
Old (#1)
Hi,

I have an issue with the exporter from 3ds Max to CryEngine 3 SDK.
I have an object I couldn't export to ".cgf" format due to a "degenerated faces at some locations". I couldn't find the "Select Degenerate Face Script" anywhere on the folders.
Any help would be greatly appreciate! Thank you!

Offline , polygon, 612 Posts, Join Date Aug 2010, Location Montreal, Qc, Canada Send a message via Skype™ to megalmn2000  
   Reply With Quote

Bunglo's Avatar
Old (#2)
This is being caused by multiple vertices sharing the same coordinates. Your best bet would be to select all your verts and slowly up the weld distance in the weld options until the vert count decreases. Though with a mesh like the one in the screen, you may want to split it back up into it's main elements and weld the problem verts to decrease the chance of welding verts you still need.
Offline , line, 81 Posts, Join Date Apr 2008,  
   Reply With Quote

monster's Avatar
Old (#3)
You see the button "Select Faces" at the bottom of the error window. That's the script.

BTW, it's best to convert to an Editable Mesh, select all vertices, change the weld threshold to .01, and hit Weld. You'll notice the vertex count decrease.

Then convert back to Editable Poly, go into vertex mode, and hit "Remove Isolated Vertices" and "Remove Unused Map Verts"
Juan Martinez | Blog | Animator at Verse, Inc
Offline , polycounter, 950 Posts, Join Date Oct 2004, Location Dallas, TX USA Send a message via ICQ to monster Send a message via AIM to monster  
   Reply With Quote

HAL's Avatar
Old (#4)
Have you set the units to meters? the exporter tends to rate meshes as too small if you use cm or max units from my experience and merges all those verts.
Offline , polygon, 670 Posts, Join Date Nov 2008, Location Germany  
   Reply With Quote

tadpole3159's Avatar
Old (#5)
I had this error as well, when you click on select faces nothing happens. so I go into face selection mode and max crashes. try it and see what happens for you

FYI my units are set to meters
Offline , line, 93 Posts, Join Date Jan 2009, Location Coventry, England  
   Reply With Quote

WhiteNorthStar's Avatar
Old (#6)
ok, here is how I got mine to work

Make sure your model is an editable mesh for the STL Check

When after you run the STL Check, it will tell you how many errors there are, then collapse the STL modifier into the stack, then go to edge subobject mode and hit delete... this will delete the edges chosen by the STL check.

man, I love CryENGINE but this was really annoying :-D
Offline , vertex, 43 Posts, Join Date Nov 2010,  
   Reply With Quote

Refuse2lose's Avatar
Old (#7)
I have a few models this is starting to happen to me. Once the error message appears, I go to click to find the faces, and max crashes - every single time.

The weld idea isnt working on my model. I receive a prompt from max that no vertices were within range.

Is there another way to identify the face? This one has me really stumped.

Running pre-export callback...
Exporting to:
CProgram Files (x86)\Electronic Arts\Crytek\Crysis 2 Limited Edition\Crysis Engine 3\Game\Objects\Vietnam Crysis Objects\HastingsTemple_m2\hastingstemple_m2.cgf

hastingstemple_m2: Node's mesh has some degenerate texture coordinates
proxy: Node's mesh has some degenerate texture coordinates
Processing "hastingstemple_m2.cgf" using ResourceCompiler...
Failed to compile geometry in node 'hastingstemple_m2' in file CProgram Files (x86)\Electronic Arts\Crytek\Crysis 2 Limited Edition\Crysis Engine 3\Game\Objects\Vietnam Crysis Objects\HastingsTemple_m2\$tmp_hastingstemple_m2.c gf - CalculateTangentSpace() failed, fix model.

ErrorCode:3

Vertices 0,1,2 lays on the same line v0-0.212080 : -0.175035 : 0.090495) v1-0.212080 : -0.213644 : 0.090495) v2-0.212080 : -0.252254 : 0.090495)
Vertices 0,1,2 lays on the same line v0-0.212080 : -0.252254 : 0.090495) v1-0.212080 : -0.136425 : 0.090495) v2-0.212080 : -0.175035 : 0.090495)

Reason: three vertices of a face are laying on the same line. Run the Select Degenerate Faces Script and fix any highlighted vertices.

Failed to process geometry file CProgram Files (x86)\Electronic Arts\Crytek\Crysis 2 Limited Edition\Crysis Engine 3\Game\Objects\Vietnam Crysis Objects\HastingsTemple_m2\$tmp_hastingstemple_m2.c gf. Try to re-export the file. If it not helps - contact an RC programmer.
Failed to convert file CProgram Files (x86)\Electronic Arts\Crytek\Crysis 2 Limited Edition\Crysis Engine 3\Game\Objects\Vietnam Crysis Objects\HastingsTemple_m2\$tmp_hastingstemple_m2.c gf
RC failed to process file:
CProgram Files (x86)\Electronic Arts\Crytek\Crysis 2 Limited Edition\Crysis Engine 3\Game\Objects\Vietnam Crysis Objects\HastingsTemple_m2\$tmp_hastingstemple_m2.c gf

Export failed.
Offline , null, 16 Posts, Join Date Sep 2011,  
   Reply With Quote

Refuse2lose's Avatar
Old (#8)
Well i can tell you i hate ce3 for this issue with high poly meshes.

Seems the weld solution noted above doesnt work for me as max cant find any vertices within the threshold. I have tried to import 2 helos and Im closing to giving this away due to the ridiculousness of the engine not allowing a mesh thats fine (not perfect) to be exported.
Offline , null, 16 Posts, Join Date Sep 2011,  
   Reply With Quote

Dim's Avatar
Old (#9)
I have the same issue, and can't figure out how to resolve it.

Code:
Running pre-export callback...
Exporting file per node.

column_01: saving to C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\column_01.cgf
render_mesh: Node's mesh has some degenerate texture coordinates
Processing "column_01.cgf" using ResourceCompiler...
Failed to compile geometry in node 'render_mesh' in file C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\$tmp_column_01.cgf -  CalculateTangentSpace() failed, fix model.

ErrorCode:3

Vertices 0,1,2 lie on the same line v0:(-0.272596 : 0.006420 : 2.318205) v1:(-0.272596 : 0.000000 : 2.318205) v2:(-0.272596 : -0.006421 : 2.318205)

Reason: three vertices of a face are laying on the same line. Run the Select Degenerate Faces Script and fix any highlighted vertices.

Failed to process geometry file C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\$tmp_column_01.cgf. Try to re-export the file. If it not helps - contact an RC programmer.
Failed to convert file C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\$tmp_column_01.cgf
RC failed to process file:
    C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\$tmp_column_01.cgf


Failed to export following nodes:
column_01: C:\Users\Dim\Desktop\CryEngine3\Game\Objects\static_asset\column_01.cgf
Export failed.
Offline , triangle, 427 Posts, Join Date Jul 2008, Location Burlington VT  
   Reply With Quote

ParoXum's Avatar
Old (#10)
Quote:
Vertices 0,1,2 lie on the same line
It's the case of a bad triangulation either done by you for not caring enough about the triangulation of the mesh or by max at triangle creation (or can happen with symmetry modifier):



Vincent Mayeur - Environment Artist
Offline , polycounter, 867 Posts, Join Date Feb 2009, Location Belgium  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch