Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

uGIF - Import GIF Animations into Unity | NEW!

Discussion in 'Assets and Asset Store' started by OrbitSoft, Oct 25, 2016.

  1. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Hello!
    After a couple of months of work, I am proud to announce uGIF:


    uGIF
    Import GIF animations into Unity

    Asset Store: http://u3d.as/s7Z


    uGIF allows importing GIF animations directly into Unity and use them in your project.​


    Features:
    • Import GIF animations into Unity
    • GIF Playback
    • No external tools needed
    • Full source code included
    • Support for transparency

    Importing:
    Imported animations are saved as TextAssets files in a custom file format containing the Gif information and the frames in PNG format, this allows compatibility with all platforms that Unity supports.
    The package uses a modified third party open source library to decode the GIF animations, it is only needed to import the animation in the editor, then, everything is handled in C#.

    Notice:
    Currently importing an animation into the Unity Editor is only supported/tested on Windows.
    Decoding gif files at runtime is currently not supported.

    Loading:
    The package contains the necessary classes to load the imported animation at runtime, loading without blocking the thread is supported.

    Playback:
    The GIF player is a script that allows you to play an animation using either a Material or an UI image and customize the playback with a handful of settings.


    More info here:
     
  2. OZAV

    OZAV

    Joined:
    Aug 9, 2013
    Posts:
    293
    ...just purchased... ... ... will look into it now ...
    ...great, that someone has put up with this (it was about time) ...
     
  3. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Hey, did you try it? Any feedback?
    Thanks! :)
     
  4. Wat123

    Wat123

    Joined:
    Aug 31, 2015
    Posts:
    5
    I have reported bug on your website regarding uGIF plugin but it gives me following error.
    Access Denied! Your address is blacklisted.

    When i try to import GIF file from your plugin it gives me following error.

    DllNotFoundException: libgif
    uGIF.LibGif.Clear () (at Assets/uGIF/Scripts/Editor/LibGif.cs:112)
    uGIF.GifImporter.Awake () (at Assets/uGIF/Scripts/Editor/GifImporter.cs:51)
    UnityEditor.EditorWindow:GetWindow(Type, Boolean, String)
    uGIF.GifImporter:ShowWindow() (at Assets/uGIF/Scripts/Editor/GifImporter.cs:45)

    Suggest me workaround for the same.

    I'm using Unity 5.4.0f3
     
  5. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    I'm sorry the website doesn't work for you, it must be blacklisted by the service provider for some reason.

    As for the error you are getting:
    Are you using unity on windows?
     
  6. Wat123

    Wat123

    Joined:
    Aug 31, 2015
    Posts:
    5
    I'm Using Unity on Mac
     
    Last edited: Dec 8, 2016
  7. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Okay, so in the Project view if you go to the folder "Assets/uGIF/Plugins/x86_64" (or x86 if its a 32bit system) can you select the libgif.dll file?
    If yes in the import settings you should see that the only platform selected is Editor, if it still doesnt work try setting it to any platform.
     
  8. Wat123

    Wat123

    Joined:
    Aug 31, 2015
    Posts:
    5
    Screen Shot 2016-12-08 at 7.30.40 PM.png
    Still it is not working, By default editor option was selected. Then i select Any Platform option. It is giving me same error.

    DllNotFoundException: libgif
    Screen Shot 2016-12-08 at 7.30.40 PM.png
     
  9. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    I'm sorry but I don't know how to solve this issue, everything seems to be correct but it doesn't work.

    If you want a refund, you can send me a private message containing the Invoice number of the purchase and I will contact the asset store to give you the refund.
     
  10. Wat123

    Wat123

    Joined:
    Aug 31, 2015
    Posts:
    5
    What is your email ID so that I can send you Invoice Number of the purchase.
     
  11. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    You can send me a private message on this forum (click on my profile and start a conversation) or at support@orbitsoft.ugu.pl
     
  12. dmoroni

    dmoroni

    Joined:
    Mar 10, 2015
    Posts:
    23
    Hi,

    I used your plugin in a big AR project, it generally works well but I found a couple of problems:

    1. On Mac the "Import GIF" tool doesn't allow you to save the asset.

    2. The GIF player causes a huge memory leak, leaving the gif frames in memory when you destroy the object. Anyway I easily soved that problem adding these lines in GifPlayer.cs

    Code (CSharp):
    1. void OnDestroy()
    2. {
    3.     foreach (Texture2D tex in gif.frames)
    4.         Destroy(tex);
    5. }
    Hope it helps :)

    Riccardo
     
  13. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Hello, thanks for the feedback!

    Importing gifs on mac is not supported (Its written in the asset description) because the script uses a C++ library and I don't have the necessary tools to compile it for OSX (however, you could compile cpp files on OSX and make them work yourself).

    Thanks for pointing out the memory problem, I knew about the need to delete textures but it looks like I completely forgot to do it in the player, I will fix that in the next update.
     
  14. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,059
    Hello! Will you be adding runtime support for decoding gif?
     
  15. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Hello, at the moment it's very complicated.
    When Unity updates the .NET version to 4.x I will be able to do that.
     
  16. bigvan

    bigvan

    Joined:
    Apr 8, 2017
    Posts:
    1
    Hello: I have just bought the asset and have the same problem DllNotFoundException: libgif.
     
  17. OrbitSoft

    OrbitSoft

    Joined:
    Sep 21, 2013
    Posts:
    54
    Hello, what platform are you on? Note that importing is only supported on Windows.

    In the Editor browse to the uGIF/Plugins/x86(64 if you have 64bit) select the libgif file, in the inspector you will see the import options, make sure the editor is importing it correctly.
     
  18. ChiuanWei

    ChiuanWei

    Joined:
    Jan 29, 2012
    Posts:
    130
    this plugin still online ??
     
  19. Jimmyrooster

    Jimmyrooster

    Joined:
    Feb 15, 2018
    Posts:
    2