Can I get the vertex data after rendered

Can I get the vertex data after rendered, i.e. I want to transform a scene to diplay with a special way not the perspective projection, is that possible

Answer this question

Can I get the vertex data after rendered

  • Kardath

    Ideally, you shouldn't need to read vertex data back from the GPU. Since your goal is for display purposes, then just do your custom calculations in the shaders. If you really think you need to read transformed vertices from D3D, then look at the ProcessVertices() method of Device/IDirect3DDevice9, but you won't get different calculations when using this method. It's only that it does the calculations on the CPU instead of the GPU, so your CPU code can read the values...

  • Janny

    Thank you
  • DevDiver

    Vertex processing is handled by the vertex shader (as the name implies). Read more on vertex shaders in the SDK docs (the C++ ones) and MSDN Driving DirectX columns...

  • Santosh Ransubhe

    Should I deal with Pixel Shader or Vertex Shader, and can give me some APIs as reference.
  • Can I get the vertex data after rendered