View previous topic :: View next topic |
Author |
Message |
mrally2 Cheater Reputation: 0
Joined: 01 Apr 2020 Posts: 43
|
Posted: Wed Jul 21, 2021 7:04 pm Post subject: Mirror invert game image in real time |
|
|
You can do this fairly easily if you have a multiple monitor setup using UtraMon or if you got the licky chance to have pvcmirror but, is there a way to do it with ce though?
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Wed Jul 21, 2021 8:27 pm Post subject: |
|
|
For the ideal solution, you'd need to hook onto the games rendering system to take control of the final 'present' handling. From there you can take the buffer/texture/surface/etc. that is being presented and flip it as needed using the proper methods for the API being used.
You can also do it by reading the buffer/pixels and just manually flipping it afterward but that will lead to poor performance.
For example:
- D3D8/D3D9 - BeginScene, EndScene, Present
- D3D11 - SwapChain -> Present
- D3D12 - SwapChain -> Present, DrawInstanced, DrawIndexedInstanced, ExecuteCommandLists
- OpenGL - glutSwapBuffers / glfwSwapBuffers
And similar.
_________________
- Retired. |
|
Back to top |
|
|
mrally2 Cheater Reputation: 0
Joined: 01 Apr 2020 Posts: 43
|
Posted: Fri Jul 23, 2021 11:44 pm Post subject: |
|
|
atom0s wrote: | For the ideal solution, you'd need to hook onto the games rendering system to take control of the final 'present' handling. From there you can take the buffer/texture/surface/etc. that is being presented and flip it as needed using the proper methods for the API being used.
You can also do it by reading the buffer/pixels and just manually flipping it afterward but that will lead to poor performance.
For example:
- D3D8/D3D9 - BeginScene, EndScene, Present
- D3D11 - SwapChain -> Present
- D3D12 - SwapChain -> Present, DrawInstanced, DrawIndexedInstanced, ExecuteCommandLists
- OpenGL - glutSwapBuffers / glfwSwapBuffers
And similar. | Surprisingly theres a very easy way to do it with ReShade. It implies like 10 lines of code.
How would you remove these types of textures though [Imgur images: tFHSQwM]. I tried to see if RenderDoc could be of help but I dont understand well how it works. I found the texture but have 0 clue what is the next step.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
|
Back to top |
|
|
|