|
2 registered members (Grant, AndrewAMD),
911
guests, and 9
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: view entity should'nt react on the camera.arc
[Re: HeelX]
#165966
11/06/07 10:10
11/06/07 10:10
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
Senior Expert
|
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
maybe this gets you started. it has no lighting since i did this in the break at work. Code:
float4x4 matWorld; float4x4 matProj; float4x4 matView;
struct VS_IN { float4 pos : POSITION; float2 tex : TEXCOORD0; };
struct VS_OUT { float4 pos : POSITION; float2 tex : TEXCOORD0; float4 color : COLOR0; };
VS_OUT mainVS (VS_IN In) { VS_OUT Out; float4x4 newProj = matProj; newProj[0].x=2; //change those values to your need newProj[1].y=2; newProj[2].z=2; float4x4 mat = mul(mul(matWorld,matView),newProj);
Out.pos = mul(In.pos,mat); Out.tex = In.tex; Out.color = float4(0.5,0.5,0.5,1.0); return Out; }
technique mwvp { pass p1 { VertexShader = compile vs_2_0 mainVS(); PixelShader = null; } }
hint: you may want to use effect_load till you find the right values... i hope it helps
www.earthcontrol.dequoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
|
|
|
Re: view entity should'nt react on the camera.arc
[Re: HeelX]
#165968
11/24/07 04:12
11/24/07 04:12
|
Joined: Aug 2001
Posts: 2,320 Alberta, Canada
William
Expert
|
Expert
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
|
HeelX, were you able to fix this?
Since converting my project to Lite-C, I noticed that view entities no longer accept any arc value past the camera's. Now all my view entities do not show properly since they use the camera's arc value, where in the past, they would work since I defined another view with a fixed arc value. Even though the entities are assigned to the view with a fixed value, they still use the camera's.arc parameter. I tried Ello's code and could not get it to work, it just makes my view entity invisible.
|
|
|
|