Hi there,
I want to use 2 TexCoords from a Collada file in the Shader like so (There are 3 TexCoords in the .dae, since I wanted to make sure I didn’t mess up something in one of the UV Sets)
vs2ps VS(
float4 PosO: POSITION,
float3 NormO: NORMAL,
float4 TexCd0 : TEXCOORD0,
float4 TexCd1 : TEXCOORD1,
float4 TexCd2 : TEXCOORD2,
float4 vW : COLOR)
{...}
but anything beyond TEXCOORD0 seems to return zeros. I tried both the default dae and OpenCOLLADA exporter for Maya 2013. The additional TexCoords are in the files (I checked with a text editor) and show up if I import them back into Maya (images are attached).
I also tried changing a part in maya_hexGRID_F_09_COLLADAMaya.dae from
<input semantic="TEXCOORD" source="#polySurfaceShape1-map1" offset="2" set="0"/>
<input semantic="TEXCOORD" source="#polySurfaceShape1-uvSet" offset="3" set="1"/>
<input semantic="TEXCOORD" source="#polySurfaceShape1-uvSet1" offset="4" set="2"/>
to:
<input semantic="TEXCOORD0" source="#polySurfaceShape1-map1" offset="2" set="0"/>
<input semantic="TEXCOORD1" source="#polySurfaceShape1-uvSet" offset="3" set="1"/>
<input semantic="TEXCOORD2" source="#polySurfaceShape1-uvSet1" offset="4" set="2"/>
but that didn’t work.
Is this a limitation of the ColladaFile Loader? Or vvvv? Or am I doing something wrong?
I’m using vvvv 45beta30.2 and tried both in VMWare with WinXp and Win7 on a PC btw.
Thanks in advance
multipleUVs.zip (1.5 MB)