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

[Request] Red/Cyan Anaglyph 3D shader? #103

Open
TheBlackParrot opened this issue Mar 8, 2017 · 6 comments
Open

[Request] Red/Cyan Anaglyph 3D shader? #103

TheBlackParrot opened this issue Mar 8, 2017 · 6 comments

Comments

@TheBlackParrot
Copy link

I thought there would be one for sure considering shaders exist for Cardboard VR, would it be possible to create one for anaglyph 3D?

@ghost
Copy link

ghost commented Mar 8, 2017

Are you wanting to convert side-by-side 3D to anaglyph? And if so, are you wanting to use this on videos/cores where the side-by-side image is packed into a single frame, or two different textures like with Mednafen VB?

@TheBlackParrot
Copy link
Author

I'm guessing converting side-by-side 3D, packed into a single frame? It's something I'd use with those red/cyan glasses. like this

@hizzlekizzle
Copy link
Collaborator

Mednafen/Beetle-VB is the only core we have that produces actual 3D content, and it has red/cyan built-in as a core option, no shaders needed. We could definitely do a shader that does fake 3D and splits into red/cyan, but fake 3D kinda stinks :/

@TheBlackParrot
Copy link
Author

ah. I assumed there was some actual 3D ability, dang.

@ghost
Copy link

ghost commented Mar 8, 2017

@hizzlekizzle I would still be interested in doing generic frame packed 3D shaders e.g. for regular images and video. If we later have a core that outputs a packed frame then it could be useful for that too.

And for Mednafen VB it would be nice to be able to output other kinds of 3D besides red/cyan, just by using shaders. Is it possible to access both views independently?

@hizzlekizzle
Copy link
Collaborator

@bparker06
Mednafen has some other render methods that aren't exposed by the libretro-ization, like native side-by-side, that would let you access them independently. However, since VB is a black and white (er, red and black) system, the red and cyan images occupy totally separate color channels, so you can access them separately without interference, which is what I did for the anaglyph-to-side-by-side shader.

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