I've come across a problem with using a Projection Matrix with DirectX.
If the screen/window is minimised and the maximised again the Projection Matrix seems to be lost, in that when my PM is set to 1024x768 and my display is 1280x1024, when the screen is brought back all the graphics are drawn in a 1024x768 box in the top left corner. Everything works fine using the OpenGL driver however.
I've tried capturing the EVENT_APPRESUME event in a hook and re-creating the PM, but that has no effect. From some DirectX articles I've been reading while searching for a solution, I'm guessing (and it is a wild stab in the dark that may be totally wrong) I may need to call D3DXMatrixIdentity, but I have no idea how to do this from Max.
Anybody got any ideas?
Cheers
Muttley
If the screen/window is minimised and the maximised again the Projection Matrix seems to be lost, in that when my PM is set to 1024x768 and my display is 1280x1024, when the screen is brought back all the graphics are drawn in a 1024x768 box in the top left corner. Everything works fine using the OpenGL driver however.
I've tried capturing the EVENT_APPRESUME event in a hook and re-creating the PM, but that has no effect. From some DirectX articles I've been reading while searching for a solution, I'm guessing (and it is a wild stab in the dark that may be totally wrong) I may need to call D3DXMatrixIdentity, but I have no idea how to do this from Max.
Anybody got any ideas?
Cheers
Muttley