Hi. I'm trying to implement an in-game camera similar to Fatal Frame. What I figured out is first drawing the scene in front of the camera, and then the scene the player actually sees.
I have a render texture that everything is drawn to, which I use for post-processing. What I do is copy the texture data from it to a regular sf::texture right after rendering the camera scene, and then I use that sf::texture as the camera screen for this sort of effect.
http://i.imgur.com/1pvB9Tp.gifAnyway, copying the texture data of the render texture really slows everything down. If I disable it, the FPS jumps from ~200 to ~1500. I tried simply using the render texture itself as a camera screen, which just leads to artifacts.
http://i.imgur.com/4yy54h5.pngIs there a better way to do this?
Thanks
EDIT: Never mind, I'll just use multiple FBOs for it. Solved.