|
About GIF,i need help. |
keprast
Member #16,794
January 2018
|
Hello. Gif plug-in on the wiki, some people understand? Pictures like a slide show, each cycle will flash. What special gif does this plugin need? Can you help me? |
Audric
Member #907
January 2001
|
ps cc = I think you mean Adobe Photoshop CC. When you compile the algif example and run it with your image, do you get the problem ? If you look at images 1, 2, 4, or 5, they look 'ugly'. To show the "actual" image 5, you have to draw image 3, then image 4 on top of it, then image 5 on top of it. One solution is to find a graphic program which always saves full images. If you can't find one that you like, then it is not a good idea to store game animations in GIF, sorry char fname[256]; int i = 0; for(i=0; i<6; i++) // 000 to 005 { sprintf(fname, "run%.3d.png", i); // run000.png run_anim[i] = al_load_bitmap(fname); }
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You can use ffmpeg to convert a .gif into an .ogv. Then you can play it directly with allegro without the gif addon. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
keprast
Member #16,794
January 2018
|
@Audric Thank you for your answer.I benefit greatly. I understand your meaning, but can not but acknowledge the lack of Allegro, maybe I will write something to share later. But, I'd like to know more about what you mean by .ogv in Allegro. When I finished studying these things, I might go perfect manual. |
|