OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: altver on July 03, 2013, 12:14:44 AM

Title: Animation in OpenDCL
Post by: altver on July 03, 2013, 12:14:44 AM
I want to add an animation into an ODCL.
I tried to insert an AVI file but without any success.
What is special in the "Clock.AVI" file that you gave in samples?
Why doesn't mine load? It came out 2.5.MG. Is it too big?
Is there a limit in a size of AVI file?
Does ODCL work with other animated files?
If yes, I would like to know what files can be used and what changes are needed to be done
in animation.lsp file?

Thank you for your help,
Alex
Title: Re: Animation in OpenDCL
Post by: roy_043 on July 03, 2013, 04:08:38 AM
Could this be a codec issue?
Title: Re: Animation in OpenDCL
Post by: altver on July 03, 2013, 12:01:28 PM
I can open the file on my computer without any problem.
Apparently there are the needed codecs in it.
I may not know something and these codecs should be added.
Is there a special place in OpenDCL where they can be downloaded / added?
Thanks,
Alex
Title: Re: Animation in OpenDCL
Post by: owenwengerd on July 03, 2013, 01:11:04 PM
The AVI file must satisfy the Windows animation control, which is pretty picky. I don't have time to research it now, but I'm pretty sure I've posted links before to the MSDN documentation describing the limitations. Here is the main link to the animation control if you want to look for it yourself:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb761881(v=vs.85).aspx
Title: Re: Animation in OpenDCL
Post by: owenwengerd on July 04, 2013, 02:16:00 PM
Here are two quotes from MSDN with the relevant information:

QuoteAn animation control can display an AVI clip originating from either an uncompressed AVI file or from an AVI file that was compressed using run-length (BI_RLE8) encoding.

QuoteThe AVI file, or resource, must not have a sound channel.
Title: Re: Animation in OpenDCL
Post by: Fred Tomke on July 07, 2013, 04:05:39 AM
Hi, altver, I recommend you to use animated gif file or to add an activex control which supports playing an animation (like flash or anything else).

Regards, Fred
Title: Re: Animation in OpenDCL
Post by: altver on July 11, 2013, 01:56:13 AM
And yet I don't understand....
I create an AVI file which I don't compress and it's much simpler than the Clock AVI.
It isn't colorful, doesn't have a sound track, its size is 300х300 pixels and has total 12 frames.
OpenDcl accepts it, i.e. I see it, but its size is 17.0 MB when the Clock AVI is only 83 KB.
What made such a small file? How can I achieve this?
Thank you,
Title: Re: Animation in OpenDCL
Post by: owenwengerd on July 11, 2013, 03:05:16 AM
I assume that CLOCK.AVI is compressed. Please try compressing with run-length (BI_RLE8) encoding as per MSDN.
Title: Re: Animation in OpenDCL
Post by: altver on July 11, 2013, 05:23:37 AM

Dear Owen,
Thank you for your reply, I understand it, could you please send me the link where I can download the tool which compressing and decoding in the way you talk about?
Kind regards,
Alex
Title: Re: Animation in OpenDCL
Post by: owenwengerd on July 11, 2013, 07:52:51 AM
Sorry, I don't know anything about compressing AVI files.
Title: Re: Animation in OpenDCL
Post by: BazzaCAD on July 11, 2013, 02:54:39 PM
altver, how or what software did you create your animation in?
Can you attach it here?
Title: Re: Animation in OpenDCL
Post by: altver on July 12, 2013, 03:45:53 AM
Dear BazzaCAD!
I have tried many different programs, and only one of them gave me a file that can activate
ODCL, that program name is Atani.
This is the hyperlink to that software 
http://en.kioskea.net/download/download-9159-atani
In that program, when you save a project, an option called "codec" appears.
In that option (codec) I choose the -  24 bits per pixel position.
Later on a window named list of codecs opens, at that window
I choose an option called "full frame (uncompressed)" .
As a result I get a file that can activate ODCL , but its size is 17.0 MB that is too big.
That file contains 12 black and white frames without sound track.
Title: Re: Animation in OpenDCL
Post by: BazzaCAD on July 12, 2013, 10:44:42 AM
Hi altver,
Yes "full frame (uncompressed)" is the option you need to use & yes it will create a large file, well ummm because it's uncompressed. You could try as Fred suggested & create an animated GIF file. I don't think the picture control will show the animation, so you'd have to use an HTML control & make a small html file to display the gif.