Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, dBc), 18,430 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Video as background #283510
08/08/09 06:27
08/08/09 06:27
Joined: May 2009
Posts: 37
S
shiznitIII Offline OP
Newbie
shiznitIII  Offline OP
Newbie
S

Joined: May 2009
Posts: 37
Is there a way to play the video on the screen( not on a bitmap like media_play("video", NULL,100)) and still put it in the background in gamestudio v7.77?

Re: Video as background [Re: shiznitIII] #283524
08/08/09 09:31
08/08/09 09:31
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Check media_layer (default 900) - panels/texts/etc. with a higher layer than media_layer should be displayed in front of the video smile

Re: Video as background [Re: Claus_N] #283584
08/08/09 16:03
08/08/09 16:03
Joined: May 2009
Posts: 37
S
shiznitIII Offline OP
Newbie
shiznitIII  Offline OP
Newbie
S

Joined: May 2009
Posts: 37
yes but what i want in front are runtime created entities and i cant seem to put them on top of the video. Do you have any idea?

Re: Video as background [Re: shiznitIII] #283586
08/08/09 16:08
08/08/09 16:08
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Then you'll need to render the video onto the skin of an entity, or use view entities (view-entities are created using ent_createlayer, and exists in a kind of screenspace instead of world space).

Re: Video as background [Re: Claus_N] #283597
08/08/09 18:02
08/08/09 18:02
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
just use the bmap of a fullscreen panel to render into with media_player.

like:

Code:
PANEL* videoPan = pan_create("flags=VISIBLE;",2);
videoPan.bmap = bmap_createblack(screen_size.x, screen_size.y, 32);
vec_set(videoPan.size_x, screen_size);
media_play("background.mpg", videoPan.bmap, 100);



Re: Video as background [Re: Scorpion] #283796
08/10/09 07:45
08/10/09 07:45
Joined: May 2009
Posts: 37
S
shiznitIII Offline OP
Newbie
shiznitIII  Offline OP
Newbie
S

Joined: May 2009
Posts: 37
im actually doing it using panel but i some video files can't play in fullscreen when i do that however, if i dont use any panel (NULL) video files play on the entire screen. I've also tried playing it on an entity skin and it works well but it slows the engine. If i can just put models on top of a video without using anything panels or other models to play on, it would be great. do you guys have other suggestions?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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