Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, TipmyPip, AndrewAMD), 1,209 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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