playMaker

Author Topic: Tap n Play Movie with some conditions  (Read 5037 times)

llamapixel

  • Playmaker Newbie
  • *
  • Posts: 6
Tap n Play Movie with some conditions
« on: June 17, 2014, 10:55:28 PM »
Hi Everyone,

Long time Play-maker owner and now just starting to tinker with it for kids interactive entertainment modules for IPAD/ Iphone.

This is regarding tap and play movies on a larger backdrop.
I would like to know a method or action that may have already been explored or created. I poked around last night and saw some posts about audio not playing etc.

I generated a special movie file for this component if nothing was made and happy to release it as an example media element. The movie has a sound byte to it and I have made an uncompressed and compressed version.

Both are in QT movie containers
[1] is uncompressed Animation Codec + Linear PCM Audio
[2] is compressed h264 Codec + AAC

The audio is mono and no special extra codec other than the above is added.
The zip is about 16 megs and can be found here.

https://dl.dropboxusercontent.com/u/3053655/playmaker_video_tapnplay_archive.zip


Some Conditions :

 • The first frame is always visible before tapping. Is this a norm with movie textures? The last frame is exactly the same so it should appear seamless.

 • The movie is based on an alpha background channel. This means it can be placed into a larger background image and appear to animate from the backdrop.

 • The animation will not accept multiple taps until it has played through and reset. The touch indicator and actual button disappears during playback. ( no drumkit or repetitive tap-scratching of the media! )


I added the fade elements within the motion graphics so it should be fairly straight forward.

Happy to donate my little movie if this has not been covered or gets used as an example.

I also attached a semi cell timeline so you can see the media prior to download.

Thanks for reading.
 :D

llamapixel

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Tap n Play Movie with some conditions
« Reply #1 on: June 19, 2014, 04:25:33 AM »
I had some time to explore this tonight and hit an alpha block.

It appears Vanilla Unity3d Pro without any plugins will not allow for a MOV ( uncompressed ) to be played or visible.

A compressed with alpha plays but fails alpha due to the internal Theora conversion?

Anyone validate?

www.dropbox.com/s/f77ltj9oatkfwnz/Screenshot%202014-06-19%2018.22.29.JPG


So on further investigation a $200 Quicktime Pro plugin is a little pricey.
https://www.assetstore.unity3d.com/en/#!/content/2307

Theora post - http://forum.unity3d.com/threads/transparent-off-theora-video.7052/


Chroma key would only work with a compressed file so may be low res at best.
https://www.assetstore.unity3d.com/en/#!/content/15172

It appears that rebuilding the content up from single alpha cells is one way making a sprite sheet. https://draeton.github.io/stitches/
« Last Edit: June 19, 2014, 04:42:38 AM by llamapixel »

llamapixel

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Tap n Play Movie with some conditions
« Reply #2 on: June 19, 2014, 04:40:59 AM »
So moving on.

Is there a play maker function that takes a series of images with alpha and animates them with a sound being played and starting with the first frame being visible?

Update : I have made 23 frames that loop perfectly because frame 24 is a repeat of 1. If anyone has something to test for this feature.

I read also that textures need to be divisible by ^2 so this test is 320 x 320 RGB Alpha. PNG .

https://dl.dropboxusercontent.com/u/3053655/flipbook_frames.zip

Here is a shot prior to download of the cells.

https://www.dropbox.com/s/ip6o7tfmvpbfrg0/Screenshot%202014-06-19%2019.24.00.JPG
« Last Edit: June 19, 2014, 05:24:36 AM by llamapixel »

llamapixel

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Tap n Play Movie with some conditions
« Reply #3 on: June 20, 2014, 10:49:29 AM »
Progress update:

On this session, I have discovered an "Array Proxy asset " plugin but not sure how to use it.

Is there a tutorial somewhere on how to make it flip through with a button click?

I have an FSM with an Array List Get Next and a Set Material Texture but not sure how to link them.


www.dropbox.com/s/0xe0wwp8z01sc48/Screenshot%202014-06-21%2000.47.30.JPG

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Tap n Play Movie with some conditions
« Reply #4 on: June 20, 2014, 02:34:31 PM »
Hi,

 Can you bump this thread early july? I am on vacation. I'll reply properly when I'll be back.

 Bye,

 Jean

llamapixel

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Tap n Play Movie with some conditions
« Reply #5 on: June 20, 2014, 10:22:52 PM »
Thanks Jean, have a good holiday mate.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Tap n Play Movie with some conditions
« Reply #6 on: July 01, 2014, 06:52:16 AM »
Hi,

 ok, unfortunatly, there is no tutorial per say just yet, the best way is to study the samples ( available as a separate package on the wiki page) to see how things are implemented and done with ArrayMaker.

 In your case, study the sample "ObjectsPooling" the fsm "Random position picker" uses "arrayList Get Next" action.

So, everytime, the "next" event is fired, you can access the variable stored at this index ( store it in a fsm texture variable in the section "Result" of the "Get next" action), and then you can use that to do anything you want.

 Bye,

 Jean