Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing the game from rendering in S4FrameProc #5

Open
WizzardMaker opened this issue Nov 1, 2020 · 3 comments
Open

Preventing the game from rendering in S4FrameProc #5

WizzardMaker opened this issue Nov 1, 2020 · 3 comments

Comments

@WizzardMaker
Copy link
Collaborator

WizzardMaker commented Nov 1, 2020

I want to prevent the game from rendering the current frame to the Hwnd - is it possible to either set a flag, or have another proc that disables the rendering, when a non 0 value is returned?

Or rather, can I get hooks, for when the game tries to render a .bik file? I want to render my own videos instead of theirs

@nyfrk
Copy link
Owner

nyfrk commented Nov 2, 2020

Would it be possible to encode your video using the bink video codec and then just replace the default video with that?

@WizzardMaker
Copy link
Collaborator Author

The game won't render the video, probably because it has a higher resolution. I tested the encoder (decoded and re-encoded a working file) and the encoding process works. When I scale the video (with the bink RAD tool) the game refuses to play the video

I already have video playback working with Media Foundation, by setting the EVR to draw onto the games Hwnd (Other methods are way to involved or just don't work to play the video), but the game also draws to the hwnd, resulting in heavy flickering between the game and the video

@nyfrk
Copy link
Owner

nyfrk commented Nov 8, 2020

Ok, I will have a look at it. Do you have some source code so that i can have a test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants