Rotating a 3D object / movie
Charles E Buchwald
charles at buchwald.ca
Mon May 28 12:02:31 EDT 2012
Hi Sergio,
I have a little desktop stack I've been playing with. I want to show a movie as the background of several cards, and have control over looping and playback.
I tried an animated GIF, but the downsampling to 8-bit left me with some ugly, posterized images.
I came up with this: the stack has a hidden card with a series of 640 x 480 px JPEGs on it. I run a loop and assign them in sequence as the icon of a button in the background of my main card, waiting about 40 milliseconds (with messages) within the loop. At least on the desktop this shows a smooth sequence of 24-bit images at about 25 frames per second. Haven't tried it on iOS yet. Of course my 2 sequences are only a couple of seconds long... much shorter than yours, but maybe a similar approach would work?
- Charles
On 2012-05-28, at 10:20 AM, Sergio Schvarstein wrote:
> Hi,
>
> I am developing an iOS app and I am trying to show a 3D object which I have in a 10 seconds mp4 movie loop.
>
> My idea is to insert the movie in a card and programming a slider and while the slider is moved, to show the correspondent video frame.
>
> I've made the programming using: iphoneControlSet "ioscontrol", "currentTime", frame_x, where frame_x is the frame to show for each position of the slider.
>
> But when I see the result, the frame I want to show is not displayed. Actually the slider only shows two different frames of all the movie and none of the intermediate frames are shown.
>
> Does any body knows how can I accomplish this task ? Maybe there's another way for showing precise frames of a video ?
>
> Thanks for any help.
>
> Best Regards.
>
>
> ______________________________
> Sergio Schvarstein
> sschvarstein at gmail.com
>
> ______________________________
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
--
Charles E. Buchwald
http://buchwald.ca
Vancouver / Mexico City / NYC
Member of the 02 Global Network for Sustainable Design • Connect on LinkedIn • Follow me on Twitter
More information about the use-livecode
mailing list