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, NewbieZorro), 16,055 guests, and 7 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
Playing Video on Object within Game #32201
08/23/04 22:53
08/23/04 22:53
Joined: Aug 2004
Posts: 9
A
AlphaPhoenix Offline OP
Newbie
AlphaPhoenix  Offline OP
Newbie
A

Joined: Aug 2004
Posts: 9
This may be to complicated but it does apply to the project I am currently working on and I am wondering if anyone has came across how this could be done.

Basically I want a Object to play a video within the game.

For instance:

A entity that is in the shape of a tv is in the game. On the screen of the tv I want it to play a movie file(such as a avi). Maybe loop as well.

I am wondering if and how this could be done. The next question would be could it be possible for that tv screen to actually connect to streaming content. Such as the tv connect to a internet tv stream.

Any help would be greatly appreciated

Re: Playing Video on Object within Game [Re: AlphaPhoenix] #32202
08/24/04 02:56
08/24/04 02:56
Joined: Aug 2004
Posts: 9
A
AlphaPhoenix Offline OP
Newbie
AlphaPhoenix  Offline OP
Newbie
A

Joined: Aug 2004
Posts: 9
anyone know?

Re: Playing Video on Object within Game [Re: AlphaPhoenix] #32203
08/24/04 04:26
08/24/04 04:26
Joined: Mar 2003
Posts: 569
FRAJO Offline
User
FRAJO  Offline
User

Joined: Mar 2003
Posts: 569
Yes it's possible with the media_play instruction. look in the manual
for more information and for the version you need(commercial?).
i think there is an example.

FraJo

EDIT: media_play(string,bmap,volume)
string is the filename (film.avi)
bmap is a pointer to a bitmap on which the film should be played

you can get the bitmap of your TV-model with:
bmap_for_entity(tv_model,0)
Result:
string film_str=<my_film.avi>;
media_play(film_str,bmap_for_entity(tv_model,tv_model.frame),100);


Re: Playing Video on Object within Game [Re: FRAJO] #32204
08/25/04 03:33
08/25/04 03:33
Joined: Aug 2004
Posts: 9
A
AlphaPhoenix Offline OP
Newbie
AlphaPhoenix  Offline OP
Newbie
A

Joined: Aug 2004
Posts: 9
Ah cool, I bought the Online version. Is there a online version of the manual that ships with the cd?

Re: Playing Video on Object within Game [Re: AlphaPhoenix] #32205
08/25/04 03:56
08/25/04 03:56
Joined: Aug 2004
Posts: 9
A
AlphaPhoenix Offline OP
Newbie
AlphaPhoenix  Offline OP
Newbie
A

Joined: Aug 2004
Posts: 9
Nevermind I found the manual

Do you think it would be possible to actually be able to place a streaming movie on a object Such as I suggested above?

Re: Playing Video on Object within Game [Re: AlphaPhoenix] #32206
08/26/04 02:37
08/26/04 02:37
Joined: Mar 2003
Posts: 569
FRAJO Offline
User
FRAJO  Offline
User

Joined: Mar 2003
Posts: 569
yes, but you'll need two models:
one for the TV and one for displaying the stream

Re: Playing Video on Object within Game [Re: FRAJO] #32207
08/26/04 21:10
08/26/04 21:10
Joined: Aug 2004
Posts: 9
A
AlphaPhoenix Offline OP
Newbie
AlphaPhoenix  Offline OP
Newbie
A

Joined: Aug 2004
Posts: 9
Great Thanks for the help.

What would the process of getting it to receive a stream on that object?

Lets say that its a windows media stream. for the path to the video would you put the url to the stream? Is it the same process as displaying a local video, you are just putting a url instead of a local path?

Re: Playing Video on Object within Game [Re: AlphaPhoenix] #32208
08/27/04 04:06
08/27/04 04:06
Joined: Mar 2003
Posts: 569
FRAJO Offline
User
FRAJO  Offline
User

Joined: Mar 2003
Posts: 569
i don't know and i don't think that it's possible. i think you can just use local files. maybe this can be solved with a dll??(i'm not a C++ programmer).

FraJo

Last edited by FRAJO; 08/27/04 04:07.

Moderated by  HeelX, 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