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

Scanlines rendering? #150

Open
vanfanel opened this issue Nov 27, 2017 · 2 comments
Open

Scanlines rendering? #150

vanfanel opened this issue Nov 27, 2017 · 2 comments

Comments

@vanfanel
Copy link
Contributor

Hi,

Many engines reimplementations of 320x games nowadays implement scanlines, and games look awesome like that.
Coud you please implement the tv2x scanline method used by scummvm? It works nice along with SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
while other implementations don't, thus giving a VERY nive look to those games.

@Falcury
Copy link
Contributor

Falcury commented Nov 27, 2017

Sounds interesting. I wonder how we could implement that.
Maybe scale up 320x200 to 640x400 first, then blend a texture that contains the scanlines into that. Then scale that further to the window size.
Or maybe we would have to migrate from SDL's Renderer API to OpenGL (so we could write our own scaling shaders). Don't know how easy or hard that would be.

@vanfanel
Copy link
Contributor Author

vanfanel commented Nov 28, 2017

@Falcury : I believe the tv2x filter in scummvm does precissely that (scale to double res, then apply an scanlines blend), and it looks great even in my 1380x768 monitor.
The shaders way...well... it would be better to port to RetroArch and then use the myriad of filters already available there: let another solid API take care of the shaders instead of writting a new renderer.

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

No branches or pull requests

3 participants