The Daily Click ::. Forums ::. Klik Coding Help ::. Inbeding video in MMF2 game
 

Post Reply  Post Oekaki 
 

Posted By Message

ced



Registered
  25/03/2008
Points
  8
25th March, 2008 at 20:28:10 -

Im trying to put a avi video as a background on my game but when i play the game everything goes behind the video. I tried using layers but was not successful. please help..

 
n/a

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
25th March, 2008 at 22:21:28 -

What is "Inbeding" ?

If you meant embed, I'm pretty sure its impossible to put videos behind other objects in tgf/mmf 2

 
-

SoldjahBoy



Registered
  25/10/2006
Points
  100
25th March, 2008 at 22:59:18 -

videos in windows use an overlay function to draw the video... so im pretty sure mr. lazy is right, I dont think you can put a video behind other objects.

 
What's wrong with pillow shading? O.o

ced



Registered
  25/03/2008
Points
  8
25th March, 2008 at 23:11:32 -

My bad I mean embedding Thanks for replying and clearing things up!

Is there a way around this?

I'm thinking of converting my video to animated GIF but I'm afraid the size of the animated GIF might slow down the game?

 
n/a

SoldjahBoy



Registered
  25/10/2006
Points
  100
26th March, 2008 at 01:36:24 -

Ive had to do similar things in some projects I have worked on... the GIF seems to work ok as long as its a reasonable size and not like half the screen or something.

As far as I know, it's a limitation of the way Windows works as to why a video overlay cannot be z-ordered to the back.

 
What's wrong with pillow shading? O.o

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th March, 2008 at 11:34:09 -

omg omg omg

There is such a simple way - It's the first object in the list; The AVI Object
Works like a charm

Image Edited by the Author.

 
Image

Tell 'em Babs is 'ere...

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
26th March, 2008 at 11:51:07 -


Originally Posted by -Mr. Bump-
omg omg omg

There is such a simple way - It's the first object in the list; The AVI Object
Works like a charm

Image Edited by the Author.



Does that actually let you put other objects over the video though?

 
This is a signature. Have this one on me.

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th March, 2008 at 11:56:12 -


Originally Posted by Flava
Does that actually let you put other objects over the video though?


YES!

Edit: Damn - Wrong one, sorry
Use the ANIMATION OBJECT. That lets you display an avi behind active objects

Sorry for the confusion. :S

Image Edited by the Author.

 
Image

Tell 'em Babs is 'ere...

ced



Registered
  25/03/2008
Points
  8
26th March, 2008 at 16:16:29 -

The animation object does work but it can't handle bigger avi files.. thanks for the input

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th March, 2008 at 18:38:57 -

Really? How large is the avi? I've got a 480x360 video file functioning perfectly in on of my frames... Have you tried it in HWA?

 
Image

Tell 'em Babs is 'ere...

ced



Registered
  25/03/2008
Points
  8
27th March, 2008 at 14:52:54 -

The avi file is about 15mb. When i run the application nothing happens.. Sorry Im a total noob, whats a HWA?

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
27th March, 2008 at 15:00:01 -

HWA = hardware acceleration

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
27th March, 2008 at 20:57:28 -

My video is just less than 3MB, I've never tried it with large file sizes
If you try out the MMF2 Hardware Acceleration/HWA beta, you may be able to load it but I'm not sure, it could go either way. Is it the frame which is just locking up or do your active objects move/etc but theres just no video?

 
Image

Tell 'em Babs is 'ere...

ced



Registered
  25/03/2008
Points
  8
28th March, 2008 at 22:09:30 -

Still doesn't work.. the animation objects doesn't post anything with the big avi just blank. i think the avi is just too big.

I'm just gonna convert it to gif or something. Thanks for trying to help me

 
n/a

SoldjahBoy



Registered
  25/10/2006
Points
  100
28th March, 2008 at 23:00:54 -


Originally Posted by ced
Still doesn't work.. the animation objects doesn't post anything with the big avi just blank. i think the avi is just too big.

I'm just gonna convert it to gif or something. Thanks for trying to help me



Sounds like a codec problem... try downloading "k-lite codec pack" and install it... it may fix your problem.

*EDIT*
Failing that, you could try re-ecoding the video to a different codec or format all together using the free program Virtual Dub. It could simply be a compression issue that MMF2 isn't understanding correctly.

Image Edited by the Author.

 
What's wrong with pillow shading? O.o

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th March, 2008 at 11:43:43 -


Originally Posted by -Mr. Lazy-
What is "Inbeding" ?

If you meant embed, I'm pretty sure its impossible to put videos behind other objects in tgf/mmf 2



I think it was quite obvious what he meant.

 
.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
29th March, 2008 at 11:48:20 -


Originally Posted by SoldjahBoy

Originally Posted by ced
Still doesn't work.. the animation objects doesn't post anything with the big avi just blank. i think the avi is just too big.

I'm just gonna convert it to gif or something. Thanks for trying to help me



Sounds like a codec problem... try downloading "k-lite codec pack" and install it... it may fix your problem.

*EDIT*
Failing that, you could try re-ecoding the video to a different codec or format all together using the free program Virtual Dub. It could simply be a compression issue that MMF2 isn't understanding correctly.

Image Edited by the Author.



The CCCP project has replaced the Kazaa Lite one. (Combined Community Codec Pack)

 
Craps, I'm an old man!

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
29th March, 2008 at 21:20:47 -


Originally Posted by I am AndyUK (honest)

Originally Posted by -Mr. Lazy-
What is "Inbeding" ?

If you meant embed, I'm pretty sure its impossible to put videos behind other objects in tgf/mmf 2



I think it was quite obvious what he meant.



I was being a jerk. I'm sorry

 
-

SoldjahBoy



Registered
  25/10/2006
Points
  100
30th March, 2008 at 18:28:15 -


Originally Posted by Knudde (Shab)


The CCCP project has replaced the Kazaa Lite one. (Combined Community Codec Pack)



lol... if you watch nothing but anime fansubs

I still prefer k-lite, it comes with a lot of stuff that CCCP doesn't have, and some of the codec builds seem more widely compatible with editing and converting software, personally I've had issues using CCCP with Virtul Dub and Ultra Video Converter.

Meh I'm sure either is fine though if you aren't doing a great deal of editing, and if you are a hardcore anime fan then CCCP works better

 
What's wrong with pillow shading? O.o

ced



Registered
  25/03/2008
Points
  8
31st March, 2008 at 10:10:27 -

Thanks SoldjahBoy! It is perfectly working! I install the codecs and now it is working even with big avi

 
n/a

SoldjahBoy



Registered
  25/10/2006
Points
  100
1st April, 2008 at 22:24:49 -

Hey no problem glad to help out

 
What's wrong with pillow shading? O.o
   

Post Reply



 



Advertisement

Worth A Click