Hey everyone, I am trying to understand this issue I'm having with render target I've created for post process effects. What I can understand about rendering to texture is that you:
- Render the scene to the render target.
- Switch back to default back buffer.
- Render the scene.
- Render the quad for 2D rendering.
I've cleared the rendertarget for post processing to black then blue and it does change accordingly what I clear the render target for. However, it doesn't render out any scene meshes inside the render target like it should. I've followed raster tek's example and brayansoft example as well. I'll have a look at the code tomorrow.
I've looked at the render target texture description and changed it from DXGI_FORMAT_R32G32B32A32_FLOAT to match the backbuffer texture description. It's still not rendering any scene objects.
Would I have to make a copy resource of the backbuffer texture description for the render target? How would I go about fixing this issue? Thanks!
For clarification... Say if I load a ball inside the level. The back buffer will distplay the ball but not the render target. The render target will be the color I cleared it to. Hope this clarifies things up.