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 / Any way to show sprites on top of video?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Jan 2016 19:24
Title says it all. I play a video and it takes the whole screen (which is fine, it's what I want is full screen video playback) but it shows over top of all my sprites. I would like to place a few sprites on top of the video.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 12th Jan 2016 05:17 Edited at: 12th Jan 2016 05:17
Unfortunately the video plays on a separate surface to OpenGL so we can't mix the content.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 12th Jan 2016 13:50
Paul
Would it be possible to split up Sync() and use DrawSprite() before Swap() to make this work? Saw your post regarding the text issue.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 12th Jan 2016 16:45
Unfortunately not, the video has it's own render pipeline that is handled by the OS. Think of it as like a second back buffer that is overlaid on top of the OpenGL back buffer when presented to the screen.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2016 17:02
Found this: http://e7dev.blogspot.co.uk/2013/07/play-video-inside-opengl-es-by-using.html
Rendering video to an image would be SO cool.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 12th Jan 2016 17:43
That is definitely something I want to do at some point as it makes video much more useful, although we would have to increase the minimum supported version to 4.1 on Android. I'll have a think about it.
haliop_New
User Banned
Posted: 14th Jan 2016 13:08
+1
this will be amazing.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 18th Jan 2016 09:46
According to my Google Play statistics, only 2.22% of my users are on less than Android 4.1. I'd be willing to sacrifice those for the benefit of video textures Maybe add it as an option?
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
TGC_User
8
Years of Service
User Offline
Joined: 3rd Feb 2016
Location:
Posted: 4th Feb 2016 12:48
+1
A lot more will be possible.
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 7th Apr 2016 14:16
+1
Found this feature to be quite useless without being able to overlay.
Being able to direct the video to an image object would be fantastic.

Login to post a reply

Server time is: 2024-04-23 11:46:26
Your offset time is: 2024-04-23 11:46:26