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
  4075

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
  556

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
  556

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
  556

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
  556

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
   

Post Reply



 



Advertisement

Worth A Click