   How to see a game scene with wireframe mode??
  Hi all: I need a tool to see a game scene with wireframe mode, this is a good method to study some models.  How to make such a tool?? This is a method of my thinking. 1.Get the game process ID. 2.Get the the game LPDIRECT3DDEVICE.  3.pd3dDevice->SetRenderState( D3DRS_FILLMODE , D3DFILL_WIREFRAME  ); But how to get the game LPDIRECT3DDEVICE, i can't find a good method, anyone can help me??   
  Interesting question.I don't know if there is an answer, but I am also curious in knowing the answer.<Bump>   ;Quote:Original post by cruciferInteresting question.I don't know if there is an answer, but I am also curious in knowing the answer.<Bump>In fact i have a tool like this, unfortunately it only support opengl and direct8. I need a tool also supporting direct9. And i hope i could make it by myself. Obviously it should be a hook tool.   ;  NVPerfHud lets you do this, I think.You can also make an application hook another D3D application.  You may be able to use this.  I don't know what sorts of limitations there are.   ;  Well, since you're only doing this to examine the models, you can do this with Pix very easily.I'll assume you have knowledge of what Pix is. It's included with the DirectX SDK, and I'll explain what to do:1. Load Pix (duh)2. File > New Experiment3. Select the EXE file you want to examine the model of.4. Select "A single frame capture of Direct3D whenever F12 is pressed"5. Click "Start Experiment"6. Pix will launch the program. Wait for the scene you want in the game/program, then hit the F12 key.7. Close the program. Control will return to Pix with your capture.8. In the Events window (lower left corner), click the "Frame XXX (xxx being the frame number of the capture)" item, and on the "Summary" window (bottom right corner), click the Render tab. It will regenerate the same pictuer from your capture in real-time. Click the wireframe button to the right of the Save disk icon. It will toggle Wireframe. If you click the "100%" button to the left of the save icon, it will resize the render to the origonal render size.I hope this helps =)   ;  <Shameless plug>You can try this: DirectX Tweaker It contains a wireframe plugin.</Shameless plug>   