Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 32,306 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media_play on locked panel bmap #404962
07/20/12 06:47
07/20/12 06:47
Joined: Jan 2012
Posts: 39
B
BySharDe Offline OP
Newbie
BySharDe  Offline OP
Newbie
B

Joined: Jan 2012
Posts: 39
I tested a demo postprocessing on a movie.
see http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=404795#Post404795

However, I found that the panel texture playing movie on it, do not have a "lock/unloack" mechanism. It means that when you apply bmap_process, the source image(movie texture) may have parts of two different frames' content, which will come into "interlacement".

How to make sure that
1 lock the panel to be played with movie
2 finish playing a full frame of movie
3 unlock the movie panel
4 processing it
5 lock the movie panel and play the next frame
and so on ?
This is some of "thread synchronization", right?

Re: media_play on locked panel bmap [Re: BySharDe] #404964
07/20/12 07:03
07/20/12 07:03
Joined: Jan 2012
Posts: 39
B
BySharDe Offline OP
Newbie
BySharDe  Offline OP
Newbie
B

Joined: Jan 2012
Posts: 39
The idea is like this

Code:
movie_handle = media_play(file1, myblack, 100);
while(media_playing(movie_handle))
{
	bmap_lock(myblack,0); // 1.work a little
	bmap_lock(P.bmap,0);
	
	media_pause(movie_handle); // 2.work well but cause low movie speed

	bmap_process(P.bmap,myblack,mysunglass);
	
	media_start(movie_handle);
	
	bmap_unlock(myblack);
	bmap_unlock(P.bmap);
	
	wait(1);
}




Moderated by  aztec, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1