D3D92dMaxDriver won't SetTransform or...
BlitzMax Forums/BlitzMax Programming/D3D92dMaxDriver won't SetTransform or...
| ||
I've been using Swift's ProjectionMatrix code with great success under OpenGL and DirectX7. I've altered the code to "work" with DirectX9 but it seems that doing a SetTransform or SetResolution on the device has no effect. I've looked into the D3D9 source code and I noticed that _d3ddev is a Private Global which doesn't allow me direct access. No problem though because there's Methods that allow me to do a SetTransform on the D3D driver device just fine. The problem is that it just plain out doesn't work. Anything I do to the D3D9 driver doesn't update. I see no results. D3D7 and OpenGL transformations update just fine. I am catching the d3d9 driver in the correct manner with the right Type. But it just doesn't update. (this is here because it's a bit more advanced than the beginner section) |
| ||
I had I dig into the Dx9 code the other day. I think it may be using manually transformed & scaled vertices in the "TD3D9ImageFrame" code for drawing so the device transform has no effect on it. (Warning: I could be miles off, it's been a while since I did any DX stuff) |
| ||
Ah...I did see that part of the code but I was using the D3D7 code as a comparison. Looks like I was deceived by assuming they were set up in the same manner. Thanks and I'll take a look at the ImageFrame section. |
| ||
Nm....didn't fixed it. Still unsolved... |