Virtually every game released these days uses non bone-based blend shapes for facial animation. I know this because I know the middleware they almost all use, and it requires it that way.
Docm30 said:Virtually every game released these days uses non bone-based blend shapes for facial animation. I know this because I know the middleware they almost all use, and it requires it that way.
La Grandmaster said:Been messing about with the postfx.fx file but Im pretty clueless and have a few questions.
- Im presume the postfx.fx file needs to be compiled, do I just alter the compiler given by tw to do this? I have a rough idea of how to do this I think.
EDIT: Just realised it doesnt need compiled (well at least I dont think so)
- If I add a new shader/effect (no idea what to call it) in the post fx file is it just used automatically, where would I specify it to be used?
There is literally no info on the postfx file on these forums so any help would be appreciated
postfx.fx
DEFINE_TECHNIQUES(diffuse_map_bump, vs_main_map_bump, ps_main_map_bump)
technique diffuse_map_bump
{
pass P0
{
VertexShader = compile vs_2_0 vs_main_map_bump();
PixelShader = compile PS_2_X ps_main_map_bump();
}
}
La Grandmaster said:I have come up with a bit of a problem when it comes to the instruction limit.
The main map ground shader technique is as follows
Code:DEFINE_TECHNIQUES(diffuse_map_bump, vs_main_map_bump, ps_main_map_bump)
however this compiles this technique as ps_2_a - which has a instruction limit of 64, I want to compile it as PS_2_X,
I then simply changed it to the following
Code:technique diffuse_map_bump { pass P0 { VertexShader = compile vs_2_0 vs_main_map_bump(); PixelShader = compile PS_2_X ps_main_map_bump(); } }
however neither of these shaders have 0 parameters - as they both have the uniform const int PcfMode, what would I put in the brackets so that these shaders compile correctly?
I can put in PCF_NONE in the brackets and it compiles but obviously this is wrong and not ideal.
Any help would be much appreciated
DEFINE_TECHNIQUES
#define DEFINE_TECHNIQUES(tech_name, vs_name, ps_name) \
technique tech_name \
{ pass P0 { VertexShader = compile vs_2_0 vs_name(PCF_NONE); \
PixelShader = compile ps_2_0 ps_name(PCF_NONE);} } \
technique tech_name##_SHDW \
{ pass P0 { VertexShader = compile vs_2_0 vs_name(PCF_DEFAULT); \
PixelShader = compile ps_2_0 ps_name(PCF_DEFAULT);} } \
technique tech_name##_SHDWNVIDIA \
{ pass P0 { VertexShader = compile vs_2_0 vs_name(PCF_NVIDIA); \
PixelShader = compile ps_2_a ps_name(PCF_NVIDIA);} }
#endif
PS_2_X
DEFINE_TECHNIQUES_PS_2_X
La Grandmaster said:Does anyone know how the time variable (time_var) works in the shader fileandate every 0.1 seconds, also I remember reading somewhere that it only oscillates between 0 to 1, (e.g 0.0,0.1,0.2,0.3.....0.9,1.0) - is this true?
proximusj said:Hope I explained my self enough to get you guys interested in this topic, Thanks in advance!
// WAVING STANDARD
/////////////////////
VS_OUTPUT vs_mtarini_standart(uniform const int PcfMode, uniform const bool UseSecondLight, float4 vPosition : POSITION, float3 vNormal : NORMAL, float2 tc : TEXCOORD0, float4 vColor : COLOR0, float4 vLightColor : COLOR1)
{
VS_OUTPUT Out = (VS_OUTPUT)0;
// WAWING...
float4 vPositionNew = vPosition;
float3 vNormalNew;
float time = 5.0*(
// 1.3*(matWorld._m00+matWorld._m11+matWorld._m22) +
0.45*(matWorld._m03+matWorld._m13+matWorld._m23) +
time_var
);
//time = sin(time*5.0);
float atten=1.0, wavel=1.0+tc.y*0.8, angle;
atten = min(tc.y*tc.x*2.0f,1.0f);
angle = time+tc.x*9.0*wavel;
vPositionNew.x += sin(angle)*(atten*0.065);
vNormalNew.z = cos(angle)*atten*1.0;
vNormalNew.y = 0; //vNormalNew.z * tc.y*0.1;
vNormalNew.x = -sqrt(1.0-vNormalNew.z*vNormalNew.z);
// vNormalNew=normalize(vNormalNew);
// revert all in not waving parts
vPositionNew = (tc.x>0.75)?vPosition:vPositionNew;
vPositionNew = (tc.x==0)?vPosition:vPositionNew;
vPosition = (matWorldView._m00>0.99)?vPosition:vPositionNew;// to prevent inventory disasters
vNormal = (tc.x>0.75)?vNormal:vNormalNew;
Out.Pos = mul(matWorldViewProj, vPosition);
float4 vWorldPos = (float4)mul(matWorld,vPosition);
float3 vWorldN = normalize(mul((float3x3)matWorld, vNormal)); //normal in world space
float3 P = mul(matWorldView, vPosition); //position in view space
Out.Tex0 = tc;
float4 diffuse_light = vAmbientColor;
// diffuse_light.rgb *= gradient_factor * (gradient_offset + vWorldN.z);
if (UseSecondLight)
{
diffuse_light += vLightColor;
}
//directional lights, compute diffuse color
float dp = dot(vWorldN, -vSkyLightDir);
diffuse_light += max(0, dp) * vSkyLightColor;
//point lights
for(int j = 0; j < iLightPointCount; j++)
{
int i = iLightIndices[j];
float3 point_to_light = vLightPosDir[i]-vWorldPos;
float LD = length(point_to_light);
float3 L = normalize(point_to_light);
float wNdotL = dot(vWorldN, L);
float fAtten = 1.0f/(LD * LD);// + 0.9f / (LD * LD);
//compute diffuse color
diffuse_light += max(0, wNdotL) * vLightDiffuse[i] * fAtten;
}
//apply material color
// Out.Color = min(1, vMaterialColor * vColor * diffuse_light);
Out.Color = (vMaterialColor * vColor * diffuse_light);
//shadow mapping variables
float wNdotSun = max(0.0f,dot(vWorldN, -vSunDir));
Out.SunLight = (wNdotSun) * vSunColor * vMaterialColor * vColor;
if (PcfMode != PCF_NONE)
{
float4 ShadowPos = mul(matSunViewProj, vWorldPos);
Out.ShadowTexCoord = ShadowPos;
Out.ShadowTexCoord.z /= ShadowPos.w;
Out.ShadowTexCoord.w = 1.0f;
Out.TexelPos = Out.ShadowTexCoord * fShadowMapSize;
//shadow mapping variables end
}
//apply fog
float d = length(P);
Out.Fog = get_fog_amount(d);
return Out;
}
technique mtarini_standart_shader
{
pass P0
{
VertexShader = compile vs_2_0 vs_mtarini_standart(PCF_NONE,true);
PixelShader = compile ps_2_0 ps_main(PCF_NONE);
}
}
technique mtarini_standart_shader_SHDW
{
pass P0
{
VertexShader = compile vs_2_0 vs_mtarini_standart(PCF_DEFAULT,true);
PixelShader = compile ps_2_0 ps_main(PCF_DEFAULT);
}
}
technique mtarini_standart_shader_SHDWNVIDIA
{
pass P0
{
VertexShader = compile vs_2_0 vs_mtarini_standart(PCF_NVIDIA,true);
PixelShader = compile ps_2_0 ps_main(PCF_NVIDIA);
}
}
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5724,7): error X3018: invalid
subscript 'TexelPos'
compilation failed; no code produced
Microsoft (R) Direct3D Shader Compiler 9.27.952.3012
Copyright (C) Microsoft Corporation 2002-2009. All rights reserved.
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(324,20): warning X3206: 'tex2D
': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(325,66): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(326,66): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(327,66): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(377,30): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(378,31): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(540,9): warning X3206: implici
t truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(567,9): warning X3206: implici
t truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(635,9): warning X3206: implici
t truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(963,8): warning X3206: implici
t truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1002,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1010,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1088,55): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1094,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1255,23): warning X3206: 'tex2
D': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1390,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1476,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1492,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1497,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1537,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1553,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1733,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(1744,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2087,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2145,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2183,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2358,10): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2390,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2394,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2414,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2431,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2436,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2472,18): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2494,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2498,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2518,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2535,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2540,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2584,60): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2591,47): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2642,60): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2649,47): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2711,11): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(2819,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3006,11): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3050,24): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3050,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3068,25): warning X3206: 'calc
ulate_point_lights_specular': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3076,24): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3076,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3083,21): warning X3206: 'calc
ulate_point_lights_specular': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3083,19): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3096,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3101,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3159,18): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3198,24): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3198,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3216,25): warning X3206: 'calc
ulate_point_lights_specular': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3224,24): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3224,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3231,21): warning X3206: 'calc
ulate_point_lights_specular': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3231,19): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3244,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3249,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3266,10): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3299,100): warning X3206: impl
icit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3318,90): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3370,32): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3381,35): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3388,31): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3422,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3727,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3742,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3754,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3770,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3784,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3855,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3872,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3884,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3893,10): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3894,27): warning X3206: 'mul'
: implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3894,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3895,28): warning X3206: 'mul'
: implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3895,15): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3905,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3928,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3940,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3949,10): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3950,27): warning X3206: 'mul'
: implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3950,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3951,28): warning X3206: 'mul'
: implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3951,15): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3961,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(3979,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4018,36): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4105,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4117,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4133,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4256,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4270,23): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4270,21): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4295,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4316,13): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4319,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4357,18): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4390,13): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4511,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4524,15): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4540,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4629,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4634,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4671,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4676,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4688,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4698,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4734,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4750,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4760,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4785,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4798,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4820,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4829,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4864,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4884,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(4894,8): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5000,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5004,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5008,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5089,19): warning X3206: 'calc
ulate_point_lights_diffuse': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5109,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5113,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5117,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5186,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5213,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5218,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5298,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5327,22): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5332,14): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5362,26): warning X3206: 'tex2
D': implicit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5416,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5556,9): warning X3206: implic
it truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5682,11): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5702,42): warning X3206: impli
cit truncation of vector type
C:\Users\Fatih\Downloads\mb_warband_shaders\mb.fx(5724,7): error X3018: invalid
subscript 'TexelPos'
compilation failed; no code produced
Script processing has ended.
Press any key to exit. . .
You can pretty much chuck new shaders in anywhere, as long as its not in the middle of another shader. But thats not your issue (or its not the one the compiler is referring to anyway). The compiler states that you have an invalid subscript "TexelPos ", you are using the output structure VS_OUTPUT - if you find where this output structure is declared you will notice there is no TexelPos - there is however a ShadowTexelPos - so change your TexelPos to ShadowTexelPos. Not sure if you will run into other errors after this, its hard to tell without inserting the code myself.And,four or five months ago,Developer Serdar said to me "you should add new shaders after from struct VS_OUTPUT_FLORA section"
A bit late, but better than never...HyperCharge said:How can i give the waving shader to water shader ? I've got the Waving shader from Swyter's basic waving codes.But,I couldnt find the sea material in brf files.So,i couldnt find the water shader.i dont know which sea material uses which shader.