Original Post
Hello. I'm writing an editor, which has a perspecive viewport of un unknown size. The window size, and therefore the device size, is 640x480. The same device is used to render on both the top view and the perspective view, every time by switching the render target. The problem is, those render targets can be any size, smaller or bigger than 640x480, and with any aspect ratio. The problem is, when I render on the perspective target, my geometry is centered to the surface. When I load a bitmap as a background, the size of the render target changes according to the bitmap, but the geometry is still rendered at the old center, that is 320x240. How do I update the axis origin, when I change the render target?