Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Green Screen Video aka Transparant Video

Author
Message
marvin944
10
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 15th Mar 2021 13:27
I wish to use a green screen effect on my video, so that the background shows through. Is this even possible in AppGameKit? Maybe with a shader?

Dutch

The author of this post has marked a post as an answer.

Go to answer

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th Mar 2021 19:16
Some discussion here. I would think you would need to process the video so it is transparent first but maybe the thred discusses some other approach.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 15th Mar 2021 19:26 Edited at: 15th Mar 2021 19:29
you sure can the flaming hoop was just one of the times i did



sorry you need to fast forward a little

or perhaps the intro here


fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
marvin944
10
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 19th Mar 2021 21:16
Nice! But how?
Dutch
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 21st Mar 2021 15:08
these commands

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 25th Mar 2021 22:07
Quote: " Is this even possible in AppGameKit? Maybe with a shader?"

Yes. In fact you can do anything a professional editing software can do with shaders.

this is a simple agk greenscreen pixelshader
you need to render the video to an image as an input and apply the pixelshader and image to a sprite

Mikko
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: Finland
Posted: 29th Mar 2021 17:13 Edited at: 29th Mar 2021 23:47
This post has been marked by the post author as the answer.


Very simple Green Screen 3D shader.

You can replace the example video with your webcam and be inside your game.


Mikko
mikko_ketonen( )hotmail.com

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-20 11:14:59
Your offset time is: 2024-04-20 11:14:59