Page 1 of 2

Tangents stream is not supported for given vertex layout!

PostPosted: Sun Apr 26, 2015 1:25 am
by allabouttrucksim
Hey everyone,
I've got a big problem with two models of mine. Since Beta-Patch 1.17.x the game always shows this error in the log file if you get near one of the models:

<ERROR> Tangents stream is not supported for given vertex layout! Model: /model/sign/ledbruecken_baukasten/ledbruecke_gelaender.pmg, piece: 1

The model is build out of cylinders you can create via ZmModeler 3, no other polygons or something.

Until 1.17.x came up there were no problems like this. May someone of you has an idea how to fix this. :(

Thank you :)

Re: Tangents stream is not supported for given vertex layout

PostPosted: Sun Apr 26, 2015 4:53 am
by Oleg
As soon as I get retail patch 1.17, I'll check this up and fix the problem.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Apr 29, 2015 9:19 am
by allabouttrucksim
Thank you for your reply and your work!

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Apr 29, 2015 10:08 am
by Oleg
do you have any model that I can put into a mod and test quickly?

I've tried a quick import/export of daf exterior model and got no relative warnings/errors on 1.17.

May be the problem is model-specific?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Apr 29, 2015 1:05 pm
by wagad25
Also happens to me.
Here a quick model. http://www.mediafire.com/download/0g3xj ... x/oleg.scs
It is a prefab.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Apr 29, 2015 11:57 pm
by Oleg
check the update.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Tue May 05, 2015 10:04 am
by allabouttrucksim
Thanks a lot!
Everything's running perfectely again :)

Re: Tangents stream is not supported for given vertex layout

PostPosted: Thu Jul 23, 2015 8:09 pm
by HomerS
I have the same problem in version 1.19.
I create three model and two throws this error.

<ERROR> Tangents stream is not supported for given vertex layout! Model: /model/moje/truck/truck_daf_e6.pmg, piece: 14
<ERROR> Tangents stream is not supported for given vertex layout! Model: /model/moje/truck/truck_iveco_hiway.pmg, piece: 9

Re: Tangents stream is not supported for given vertex layout

PostPosted: Thu Jul 23, 2015 10:39 pm
by Oleg
are you running the latest update of ZM?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Thu Jul 23, 2015 11:14 pm
by HomerS
yes,Today I did update

Re: Tangents stream is not supported for given vertex layout

PostPosted: Thu Jul 23, 2015 11:38 pm
by Oleg
do you have a material with bump-map? if you do, an object should have "tangents" in vertices format. you can enable tangents on all objects, no problem on that. zmod will not export tangents if not needed.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Thu Jul 23, 2015 11:49 pm
by HomerS
I enable tangents on all objects and problem is still unsolved

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 3:14 am
by HomerS
solved

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 3:22 am
by Oleg
what was the problem in? I remind that I fixed it already, would like to know whether I need pay more attention to this issue.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 3:44 am
by HomerS
I create new material in material browser without bump-map and disable tangents

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 4:04 am
by Oleg
can you show me a configuration of old material that produced an error on export?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 4:11 am
by HomerS
Old: Bump+Diff+Spec+Env
New: Diffuse+Spec+Env
no error on export

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 4:22 am
by Oleg
a screenshot of BUMPMAP page of old configuration? have you used a bump texture there or left the page with no texture assigned?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Fri Jul 24, 2015 4:37 am
by HomerS
I don't use bump texture

Re: Tangents stream is not supported for given vertex layout

PostPosted: Sat Jul 02, 2016 4:19 am
by Elitesquad Modz
Hello everybody, how to delete the bump from the material?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Sat Jul 02, 2016 12:05 pm
by Oleg
assign a different system shader that has no bump on it. You can assign system shader by selecting a material(s) and double-clicking on a desired shader in a left tree-view of materials browser: Shaders->System->...

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Dec 21, 2016 6:59 am
by siebel3d
I tried all this things you said before. I started with a Bump material and tangents enable, then I trade the material for Diff+Spec+Env and the error still there, then I tried to disable tangents and nothing changed. There's anything else I can do?

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Dec 21, 2016 10:01 am
by Oleg
I don't know the exact reason for this error message to appear, but it looks like one of two case: material setup requires tangents and model/geometry fragment has no them; or material setup does not require tangents, but model is exported with tangents. In any case, model/geometry setup should match your material needs. Note, this error does not indicate geometry object (but probably should indicate a material), so all objects using problematic material should be inspected.

first of all, you can't explicitly specify whether your game material is bump-mapped or not, the filter will determine it using material setup options. if you've assigned a shader that has BUMPMAP in it, the exported material will be bump-configured, and tsnmap, tsnmap16, tsnmapuv, tsnmapuv16 will appear in material file. You should manually check availability of such a material version for a given shader, as some of game shaders actually offer bump-mapping and most don't have this option.

second, if you don't use bump-mapping on some specific material, I suggest to make a test export with tangents disabled on all scene objects (select all objects, properties -> mesh -> vertices -> format -> tangents = off; apply). Then export and test in game. if everything is ok, start enabling tangents on objects that actually need them and make test export on each iteration.

Re: Tangents stream is not supported for given vertex layout

PostPosted: Wed Dec 21, 2016 10:43 am
by siebel3d
I guess it was a bug in material. I just tried to put other inside the ZM. Now I loaded other material from a folder, and then It worked.
Image

Re: Tangents stream is not supported for given vertex layout

PostPosted: Mon Jun 12, 2017 8:39 am
by Elitesquad Modz
I have the same error right now!