   Simple 2D zoom example app ? Sprite or quads ?
  Hey everybody,I've been trying to add a zooming feature to my game for days, also I've rewrote my game 'engine' to work with textured quads instead of ID3DXSprite but I cant get it work...So my question is:-Is there any simple app that shows how to zoom in and out to sprite ?(It should include a setup of camera and so on...)-Is possible to zoom to ID3DXSprite without scalling that ? I've tried to zoom ID3DXSprite with this code:Quote:factor = Zoom * 1.5;D3DXMatrixOrthoOffCenterLH(matrix, Zoom, WindowWidth - factor, WindowHeight - factor, factor, 0, 1);D3DDevice.SetTransform(D3DTS_PROJECTION, matrix);But this simple stretch a render rect, including gui and so on...PS: Its simple 2D game, I dont want to rotate cam in any way, just draw it 2D without rotating but with zooming...Also I've tried some example apps already and also I searched at google :)   
  Really, nobody knows any simple zoom example ?:(Bump :)   ;  If you're using textured quads, I assume you're using an orthographic projection matrix.Why not just change the top, bottom, left and right values passed in to D3DXMatrixOrthoOffCenterLH to do the zoom? You can always set one projection matrix, render the main scene, then set another and render the GUI (Although you'll want to keep the zNear and zFar values the same).   ;  Thank you Steve, but that is what I was trying to do already.... but without success.Can anybody just give me a some link for some example app ? I dont believe that there is no example on net, however I tried to find that but without success.;Quote:Original post by Overdose7Thank you Steve, but that is what I was trying to do already.... but without success.What do you mean without success? What results did you get? Can we see the code you were using?   ;Quote:Original post by Evil SteveQuote:Original post by Overdose7Thank you Steve, but that is what I was trying to do already.... but without success.What do you mean without success? What results did you get? Can we see the code you were using?Simply, that zooming feature was not worky...I just need to know how to do these things:- How to setup a render states for a IDirect3DDevice9 for zooming feature. - How to render a textured quads, just function that will work with zooming feature... I made one already, its working but I dont know if its correct.- How to zoom in before drawing gui - How to zoom back to normal state, when gui needs to be drawnNext thing is that I need a example app, because I've tried a some snippets already a nothing was worky for me...Dont tell me that there is really no example of zooming, questions wont help me, but example will surely do... thank you for answer :)