Original Post
Hi! I've got some problems. I'm creating effects by rendering a certain scene with certain shaders to a renderToTexture target and then lay this texture over objects in a secound pass. For the right projection (what i wan't is to project the image from the camera - so that it has exactly the same output as if the rendering goes directly to the backbuffer - if you understand what i mean...) for doing this, i use the following technique to generate the UV's which will be used for the tex2D image lookup: float4 pPos = mul(matViewProjection, float4(Input.Position.xyz,1)); float3 eyeLinear; eyeLinear.x = 0.5 * (pPos.z + pPos.x); eyeLinear.y = 0.5 * (pPos.z - pPos.y); eyeLinear.z = pPos.z; float2 uvset; uvset = eyeLinear.xy/eyeLinear.z; I've got this technique from the RenderMonkey examples... It's working - but not very good - because the texture is dependant to the window aspect ration - means if i stretch the window, the textureprojection get's alos stretched. Therefore it's only working if the window is quadratic. (But even then the projected texture doesn't fit the actual backbuffer rendering verry good - there are always some differences) Can someone help me with that? Please - I just don't get it to work like i want it... Thx for help!