Vertex error - but I do not know where

SCS Software ATS and ETS2 editing using ZModeler3 filter. Models, Materials, Animation.

Moderator: Oleg

Post Reply
User avatar
Harald-RS
Beginner
Posts: 332
Joined: Sun Oct 21, 2012 8:08 am
Location: Treuchtlingen / Germany

Vertex error - but I do not know where

Post by Harald-RS »

Hello Oleg and community,

I have a vertex error and just can't find the error.

Is there any way to find this error with the help of Z-Mod?
Greetings
Harald
My System: PC Windows 11
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Vertex error - but I do not know where

Post by Oleg »

what kind of vertex error? do you get an error message in game or geometry is destroyed in game?
User avatar
Harald-RS
Beginner
Posts: 332
Joined: Sun Oct 21, 2012 8:08 am
Location: Treuchtlingen / Germany

Re: Vertex error - but I do not know where

Post by Harald-RS »

I get this error message in the game:

Code: Select all

01:57:05.339 : <ERROR> [dx11] Unable to map attribute (v.tex_coord_2)
01:57:05.339 : <ERROR> [dx11] Failed to create vertex input layout!
01:57:05.339 : <ERROR> [dx11] Unable to map attribute (v.tex_coord_2)
01:57:05.339 : <ERROR> [dx11] Failed to create vertex input layout!
01:57:05.339 : <ERROR> [dx11] Unable to map attribute (v.tex_coord_1)
01:57:05.339 : <ERROR> [dx11] Failed to create vertex input layout!
Could this be due to the headlights.
Somehow they shimmer so strangely.
ets2_20211024_215223_00.png
Greetings
Harald
My System: PC Windows 11
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Vertex error - but I do not know where

Post by Oleg »

if I'm not mistaken, "v.tex_coord_1" is UV#2 and "v.tex_coord_2" is UV#3. So, geometry on some material(s) got exported with no UV#2 channel and (on other materials?) with no UV#3 channel.

The UV#3 is usually fixed by changing "DETAIL2" texture channel's input to "Manual UV Mapping #3" before export.

The best way to find the cause is to locate a problematic material -> problematic geometry object first. You can do this by deleting material(s) and deleting objects/polygons that get dropt to "Default Material". Once you locate the cause of the problem (material and object) it will be easier to solve the issue (depending on material's shader, generated .mat file and associated object's "vertices format" options set).
Post Reply