Currently I can perform Zoom which seems to be working fine but essentially what I'm really trying to do is zoom on a position offset from center as currently when I zoom then zoom is performed at the center.
Not sure how to achieve this ?
One way i'v though is either not use the orthographic camera and rather clip the texture, so that the my clipped texture will be drawn onto my directx surface covering the entire view. I could possibly perform the clipping using a constant buffer but then that would stretch the entire clipped texture over my viewport area.
Any suggestions on the above ?
I'm using Directx11, SharpDx with D3DImage & C#.
Do note: I'v created my vertexes directly screen co-ordinates.
this.eye = new Vector3(0.0f, 0.0f, 0.0f); this.lookAt = new Vector3(0.0f, 0.0f, 1.0f); this.up = new Vector3(0.0f, 1.0f, 0.0f); viewMatrix = Matrix.LookAtLH(eye, lookAt, up);
NOTE: My application isn't a game but rather a video player