BBC BASIC for Windows
« Is it possible to overlay sprite on video? »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:56pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Is it possible to overlay sprite on video?  (Read 745 times)
ColinWA
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Is it possible to overlay sprite on video?
« Thread started on: Mar 9th, 2015, 05:28am »

Hi All,

I hope some of you more experienced BB4W programmers might have a solution to my rather unusual problem. I need to present small images on top of a playing video. These small images must pop up, at times specified within my program, and disappear again in response to particular key presses. I'm playing the videos using the DirectShow routine Richard posted quite some time ago, which seems well suited to my purpose, as it enables me to execute program commands while the videos play. But I can't get anything to display on top of the playing videos. I reckoned perhaps a sprite might work, but my sprites disappear behind the video, and I can't figure out a way to make the sprite (or, indeed, any other small image) display on top of the playing video.

Could anyone please advise me whether there's a way of accomplishing this? I'd greatly appreciate your help.

All best,

Colin
User IP Logged

rtr2
Guest
xx Re: Is it possible to overlay sprite on video?
« Reply #1 on: Mar 9th, 2015, 09:54am »

on Mar 9th, 2015, 05:28am, ColinWA wrote:
Could anyone please advise me whether there's a way of accomplishing this? I'd greatly appreciate your help.

I performed the following simple 'proof of principle' experiment. I first ran a BBC BASIC program which displays sprites on a full-screen transparent window (originally written to make dinosaurs roam all over the desktop!). Whilst that was running I ran another BBC BASIC program which displayed a video in a Direct Show window.

Result: the sprites appeared in front of the video! I tried this both in Windows XP (no DWM) and in Windows 8.1 (with DWM) and it worked fine in both.

So I conclude that there should be no problem in overlaying sprites on Direct Show video this way, except that of course because you have two entirely separate windows (the video window and the transparent window with the sprites) you would need to keep them aligned if the user is allowed to move or resize the video window.

Richard.
User IP Logged

rtr2
Guest
xx Re: Is it possible to overlay sprite on video?
« Reply #2 on: Mar 13th, 2015, 08:09am »

on Mar 9th, 2015, 05:28am, ColinWA wrote:
Could anyone please advise me whether there's a way of accomplishing this?

I'd appreciate an acknowledgement that my response was of some value.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls