Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Options for animated background?  (Read 5336 times)

0 Members and 1 Guest are viewing this topic.

TheShaner

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:December 23, 2017, 10:42:25 pm
  • Shut your noise tube filthy Taco Human!
Options for animated background?
« on: July 06, 2012, 12:18:10 pm »
I am trying to figure out how I am going to do an animated background for my Mala frontend.  Are there any other options/approaches that work other than doing an animated gif? 

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 22, 2025, 09:07:56 am
  • ...
Re: Options for animated background?
« Reply #1 on: July 06, 2012, 02:29:42 pm »
I tinkered with this recently.  Here are my findings (as best I recall):

Animation in Mala is limited to repeatedly scrolling a picture up, down, left, or right.
The picture must be the same size as the layout.
You can have up to 4 images moving.
Speed is adjustable.

If you want an object moving accross the bottom, you'd make an image the size of the background with the object at the bottom and the rest transparent (or any color, as Mala will make anything that is the same color as the upper leftmost pixel transparent IIRC.)

For example, if you want a UFO flying accross the top, you'd make a picture the size of your background image with a UFO at the top and the rest blank.
Then, in Mala layout editor, you'd add the animation to the elements you're including and it will put a little box in the corner.
Double click on that and you will be able to choose the path to your picture, and the direction, speed, etc.


Mala can display one GIF per playout.
It must be displayed using the Video2 window.
Add the window to your layout, double click on it, and set the path to the GIF.
This window can be resized and positioned wherever you want.
Mala will adjust the size of the GIF accordingly.
THIS DOES NOT WORK IN WINDOWS 7, AS THE ABILITY TO ANIMATE GIFs IN WINDOWS PICTURE VIEWER WAS REMOVED.

Another option is to use the Video2 window to loop a video.  :P
This window can also be resized and repositiond and Mala will adjust the video accordingly.
You could have a video the entire size of the background looping.

EDIT: Not sure about the layering implications with a video running in the background.  
I know the gamelist will stay on top of it, but not sure about other elements.
« Last Edit: July 07, 2012, 08:07:45 pm by BadMouth »

tapule

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:July 19, 2018, 04:54:54 am
    • Gelide FrontEnd for Linux
Re: Options for animated background?
« Reply #2 on: July 08, 2012, 03:46:00 am »
The Z-Order for videos doesn't  work, so videos are always on top of the rest of objects.
If you are interested, some time ago I made a tutorial on backgrounds animations in Mala (sorry only in spanish) here. This is the layout that I did in the tutorial:



Greetings.
Gelide FrontEnd for Linux http://gelide.sf.net

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 22, 2025, 09:07:56 am
  • ...
Re: Options for animated background?
« Reply #3 on: July 08, 2012, 08:53:24 am »
Tapule, thank you for making that tutorial and posting a link to it here!  :cheers:

The videos of the other animated layouts in that thread are also amazing.
We don't see animation used very often on here.

harveybirdman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2540
  • Last login:December 28, 2024, 01:21:59 am
  • SHMUP'EM
Re: Options for animated background?
« Reply #4 on: July 18, 2012, 12:14:04 am »
tapule can you help me understand how the foreground image over snap is achieved in the MaLa themes in Lord Hiryu's post from your link, like the Final Fight characters on top of the snap?

Every time I try to do something like that the transparent portion of the image I'm trying to overlay covers things up...

I tried Google translate on your post, but obviously I'm still missing something.

tapule

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:July 19, 2018, 04:54:54 am
    • Gelide FrontEnd for Linux
Re: Options for animated background?
« Reply #5 on: July 18, 2012, 04:00:46 am »
Haverybirdman you have to play with the z-order of your items.

Basically you have a background image with a z-order:



On top of this background you have to put your elements, snaps, text, etc (remember that videos don't make use of z-order and always are drawn over all items).
Finally, you have to make a image with the areas you want to overlay the background and the items, and put in a "Custom" element with transparent and move it in the z-order over everything:



And this is all, you have your overlay



Hope this help you.

Greetings
PS: This is from a explanation Lord Hiryu does here: http://arcadeforever.forumfree.it/?t=53545789#entry437951570
Gelide FrontEnd for Linux http://gelide.sf.net

harveybirdman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2540
  • Last login:December 28, 2024, 01:21:59 am
  • SHMUP'EM
Re: Options for animated background?
« Reply #6 on: July 18, 2012, 06:52:17 pm »
Very helpful, I get what I was doing wrong now.

This is slick stuff, can't wait to try it out...

Thanks tapule!

mike boss

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2645
  • Last login:October 22, 2021, 01:19:45 pm
Re: Options for animated background?
« Reply #7 on: July 20, 2012, 07:25:01 am »
That Final Fight layout is awesome !
Great tips in this thread.
Anything I could contribute has been said.


If anyone is looking for something custom and has given up on doing his/her own layout lemme know.

Thanks

chestylarue

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:October 12, 2012, 11:40:58 pm
  • I want to build my own arcade controls!
Re: Options for animated background?
« Reply #8 on: September 03, 2012, 07:06:35 pm »
Ive been using the video2 method to try and use animated gifs to take up a majority of the screen, then use a plain background with a gameslist. This should work in theory without any z-order issues as both objects are not 'touching' ( video2 and gameslist). but when i use a gif it ends up flickering all kinds if ways and ruins it (although it is animating). any chance of using an animated gif as a 'background' successfully short of converting it to a real video and using tapules method?