Can we play an avi?

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Can we play an avi?

Post by small_sumo »

Or any kind of movie besides a texture on a wall written as a movie in the shader?

Thanks
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you can play a RoQ, not sure how or how to make em :?
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Tell me more JV. I am sure I can find a way to make them.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Also not sure how to make mohaa play em :oops: but .RoQ is what's used for the intro movies.
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Hmmmmm might have to contact balr14 on this one.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Random
Moderator
Posts: 401
Joined: Sun Jun 01, 2003 11:00 pm

Post by Random »

How big is the file you wanna play? Ive seen in other games based on a similar engine small animations which used over 100 different frames, but im sad to say they used the animap function in shaders to get it done. If its not too large you may wanna consider this idea.

If you have something that can break down animations frame by frame and convert them to tga's it most likely will number them in sequence for you. After that just do alot of copy paste or something to create the shader. Time consuming i know but if it is vital i dont know of any other way.

Hope this helps.
Moderator
Image
Balr14
Colonel
Posts: 450
Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA

Post by Balr14 »

I believe you can reference an avi or roq in a script, but I have no idea if it would work, or exactly how it would manifest itself. You can play a pretty long set of frames using shader animation.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well what you could try to do is convert the avi into a roq. i had a program like this a long time ago, ill looks around for it.
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Balr14 wrote:I believe you can reference an avi or roq in a script, but I have no idea if it would work, or exactly how it would manifest itself. You can play a pretty long set of frames using shader animation.
That was my first idea to make a little movie with the camera facing a brush that was textured in a movie kinda texture.
But an avi or this roq thing sounds better so I thought I would ask about it first. Is there a way to test this, would someoen give it a try. To play one in a mp game. You wouldnt have to make one cos they are already in the game. I just have no idea how to script it in, I wouldnt know where to start.

Thanks
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

i knwo this is old but i just saw it while doing a search and u can play roq files by doing

local,player stufftext "cinematic intro.roq" for example. but ur map dissconnects:(
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

here is the link to the roq maker http://www.swift-tools.net/Quake/QVM/

In briefing 1 of spearhead they had this to play a roq

main:

level waittill prespawn

drawhud 0

level waittill spawn

thread briefingskip
thread freezeplayer

playmovie credits.roq

thread endbriefing

end
Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

aa dont have playmovie:(.

in other games u cud play them thorugh urc menu thing.

but also ur going to need alot of pics:P
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

I am going to do it the old fasioned way and run a big animation. Is there a way to make the shader with out doing hours of copy pasteing? I might use 100 frames. I will have no trouble making the jpgs but the shader might be very hard.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

yes it seems typeing cinematic 2015intro.roq into the console before starting a map works but in a map it stops the map and I think you have to use the esc key as well , too bad . I guess you waill have to use spearhead :)
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

I think the animated texture will do the job. Might need help with the shaDER.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply