Search Unity

SVG Importer | Vector Graphics | Unity UI Supported [OPEN SOURCE]

Discussion in 'Assets and Asset Store' started by Jaroslav-Stehlik, May 4, 2015.

  1. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485

    SVG Importer | Vector Graphics Plugin for Unity
    http://www.svgimporter.com
    Source code on github

    What happened to support?

    Message from the author:
    Hello there,

    I have to completely be honest with you guys about what happened in the last half year.

    November 2016 - I got some sort of pains in my chest on a regular basis and I was unable to focus on my work, I felt dizzy a lot and I felt all the time that I would collapse.

    During that time I was finishing Blue Effect VR

    http://store.steampowered.com/app/522020/Blue_Effect_VR/
    Because we had to release it from early access to a final game.

    I was working 10 hours a day even on weekends and did not have time for SVG Importer.

    I was thinking that after I finish this game I would have more free time, but then I completely collapsed and was unable to get out of bed for a month. I get to a doc and he told me that I have panic attacks and chronic bipolar depression. I totally forgot to live my life and concentrated only on work. I got deep depressions for weeks and then extremely unreasonable euphoria which ended with draining my bank account for no logical reason.

    I got emotionally unstable and I started taking meds. I started going to the psychiatrist and he pointed out that I have a lot of things unsorted in my life. Especially my priorities are completely upside down. So I started focusing on my girlfriend which I proposed to her and she said Yes :) She is mentioned as my biggest support in the about screen of the plugin. I started going out with my friends and started to enjoy my life again. It helped during the half of the year.

    But to be honest I was unable to respond to your support emails because I got at least 10 of them every day. I am so sorry that I did not respond to anyone of you. I know that your business could struggle when dependent on third parties which are not delivering updates.

    After a half year of reconvalescent, I found out that I am able to do a lot of things If I will focus on my beloved ones more than on work and it kinda works. I think I feel much better now and

    I have right now a working SVG Importer under latest Unity, but to keep updating this plugin I would need to drop support for older versions. I want to know how big a deal for you is this?

    Kind regards from Jaroslav Stehlik


    Because of the lack of support I decided to open source the project so devs can push their fixes or fork it.

    Unity 4.6.0 and 5+ Compatible, fully cross-platform.

    Requires Unity 4.6.0 or higher.

    Vector Graphics in Unity
    Links: Website | Forum | Videos | DEMO
    Mimpi Dreams was made with SVG Importer

    SVG importer automatically converts SVG files into highly optimised meshes and
    fully supports linear and radial gradients.

    Simply drag and drop your SVG files directly in your scene. SVG importer fully mimics Unity native sprites so your team doesn't have to learn anything new. Extremely fast and simple workflow for rapid level design. Resolution independent ready for retina displays and fully supports the new
    Unity UI system.

    Compatible with
    • Adobe Illustrator
    • Adobe Flash
    • Corel Draw
    • Affinity Designer
    • Inkscape

    Features
    • Fully cross platform
    • UI rendering & 9 slice
    • Automatic optimized colliders
    • Frame by frame animation
    • Unity dynamic lights
    • Custom materials
    • Geometry antialiasing
    • Opaque & transparent rendering
    • Manual level of detail
    • Depth compression
    • Custom pivot point
    • Drag & Drop
    • Recolor artwork
    • Mesh modifiers
    • File size reduction & compression
    • Automatic sorting utility
    • Particle system support

    What am I buying?
    • Commercial license of SVG Importer
    • Full source code access
    • Complete project examples
    • Software support
    • Feature updates
    • Video tutorials

    SVG Importer fully Supports
    • Simple & complex shapes
    • Strokes and fills with transparency
    • Linear Gradients
    • Radial Gradients
    • Conical Gradients
    • Holes
    • Clip Paths "absolute"
    • Symbols

    Does not support
    • Filters 'blur, bevel, drop shadow, glow'
    • Texture images

    Documentation:

    http://svgimporter.com/documentation/

    Release Trailer:

    Unite Presenation:

    Getting Started:

    Youtube Channel:
    https://www.youtube.com/channel/UCfS37PIF9fhUC-saiBHZE-g


    Animated Feature Gifs...






    SVG Importer has been featured at:
    Unite 2015 EUROPE


    Mimpi Dreams was made with SVG Importer and was featured at:
    Unite 2015 BOSTON




    Source code on github
     
    Last edited: Oct 24, 2019
  2. boysenberry

    boysenberry

    Joined:
    Jul 28, 2014
    Posts:
    365
    Subscribed. Thank you!
     
    Jaroslav-Stehlik likes this.
  3. boysenberry

    boysenberry

    Joined:
    Jul 28, 2014
    Posts:
    365
    Just out of curiosity what is your tool of choice for creating vector graphics?
     
  4. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
    Very useful asset!!
     
  5. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    You were not asking me but I'll put my vote in for Inkscape: https://inkscape.org/en/

    It's free and cross platform (Win, Linux, OS X)
     
    boysenberry likes this.
  6. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Adobe Illustrator and Affinity Designer
     
    boysenberry likes this.
  7. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Inkscape should work as well. I would test it.
     
    boysenberry likes this.
  8. boysenberry

    boysenberry

    Joined:
    Jul 28, 2014
    Posts:
    365
    I am definitely going to give Inkscape a whirl. I used to use Freehand, then moved to Illustrator for a bit.
    An open source alternative is something I would love to support though; installing now.
    Thanks :)
     
  9. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,689
    InkScape is also my weapon of choice for svg's. Not only for its editing features but its ability to export to most other formats
     
    Jaroslav-Stehlik likes this.
  10. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    I am happy that there is already an open source vector graphics program so I don't have to develop it :D
    My side plugin is full vector graphics editor in Unity and oh my boy that was a bad decision to make :D
     
    shaneparsons and boysenberry like this.
  11. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,372
    Illustrator does not support named shapes so you can not reference those in code. Useless for animations. I use Inkscape.
     
  12. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    What about antialiasing, especially when there is zooming involved?
     
  13. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    By my observations, I am using 4x anti-aliasing on iPad 2, iPhone 4.
    I get about 60 fps on a side-scrolling game rich on backgrounds and decorations.
    Many other solutions use fake anti-aliasing which is done by transparent edges and adds up geometry.
    Maybe I will add that in future as an option.
     
    boysenberry likes this.
  14. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Unite 2015 EUROPE | Talk about Vector Graphics in Unity

    Today it is official!

    I am proud to share with all vector graphics lovers out there,
    that SVG Importer "Vector Graphics for Unity" will be presented
    on Unite 2015 at Amsterdam!

    Meet me at:



    Unite 2015 Europe
    25. June, 2015
    WESTERGASFABRIEK
    WesterUnie, 17:00 - 17:39

    Unity UNITE EUROPE
    SVG Importer
     
  15. boysenberry

    boysenberry

    Joined:
    Jul 28, 2014
    Posts:
    365
    Congratulations!
     
    Jaroslav-Stehlik likes this.
  16. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    Subscribed to see what it got :)
     
  17. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    736
    Ngui support?
     
  18. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    still waiting for beta access, any chance?
     
  19. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Yes, there is still a chance.
     
    rahuxx likes this.
  20. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    943
    I'm very interested in this too! How can I join the beta?
     
  21. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
  22. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    I support fully the Unity new UI. I am not sure what will NGUI support require.
    I think that NGUI is obsolete. If I am wrong please correct me.
     
  23. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    Did that, but still no beta access. :(
     
  24. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    You will get an email soon that the beta is available. It is still in development and even if it is beta, I dont want to give something which has visible bugs in it.
     
  25. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    943
    I'm really curious about this... Will this eliminate the necessity to ship games graphics at @1x, @2x, etc resolutions?

    Can you explain more about it? The information on the website is really sparse.
     
  26. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    The solution is that Unity works best with meshes. And Vector Graphics, if done right, can be converted to nice looking meshes. And this is what the plugin does. Fully automatic import SVG graphics as meshes.
    Which means.

    Frustum Culling
    Occlusion culling
    Dynamic Batching
    Static Batching
    Custom shaders
    Low memory usage because of the absence of textures.
    In future, there will be possible further mesh modification - animations and etc...

    It will not replace painted graphics, pixel art or photoreal graphics, but it can help vector games to stand out of the crowd.
     
  27. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Hey Jaroslav Stehlik,

    Your product looks great. I subscribed on your site a few days ago hoping to join in the beta but I can't see how to do that.

    Any chance of being a part of the beta?
     
  28. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    Yes please. We are waiting to have our hands dirty with this tool buddy. We can not comment more about it usability unless we have it for test and try.
     
  29. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Today I tried to build our game, "about 6 long different levels"
    which is completely done in SVG Importer and I could not believe my eyes :)
    Scripts do take more space than vector graphics...
    Textures are used only for spine animations.

     
    Last edited: May 22, 2015
    rahuxx and zyzyx like this.
  30. TechiTech

    TechiTech

    Joined:
    Dec 13, 2014
    Posts:
    212
    teasing your subscribers and not supplying it is not the classy thing to do.
     
    rahuxx likes this.
  31. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Sorry, I have to contact Unity because of some my editor scripts which are firing false errors. That is the only reason I am holding beta in postpone. Not sure if it is Unity bug.
     
  32. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    943
    Not sure I understand... The largest portion of the game are still the textures. If this is compatible with Unity's Sprites it should also be compatible with Spine and you wouldn't need to use their exported sprite sheet (assuming that's you meant).
     
  33. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Spine is not compatible with sprites when you are using mesh deformations, and we are using them everywhere.
    Also, spine runtime must be overwritten to support SVG renderer instead of regular sprite renderer.
     
  34. Mistale

    Mistale

    Joined:
    Apr 18, 2012
    Posts:
    173
    I'm really really excited about this! I signed up for beta as soon as I found this thread, I really hope I get in.
    I don't mind if there are some errors in the editor scripts, I'd rather help you solve them if possible rather than waiting.

    This asset could be a real gamechanger, keep up the good work!
     
    Jaroslav-Stehlik likes this.
  35. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi there,

    I made a new video and fixed most of the bugs so I am ready to go on the Asset Store.


    I have only one question, which version of Unity do you use?
    Currently, SVG Importer is compatible only with Unity 5+.
     
  36. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    I am OK with Unity5 :)
     
  37. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Unity 5 here.
     
  38. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    227
    Unity 4.6 here :(
     
  39. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    722
  40. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Ok, the only problem to support compatibility with 4.6 is HideFlags.DontSaveInBuild.
    Does anyone know how to reproduce the same behaviour in Unity 4.6? I have a lot of editor assets which should live only in the editor and not in the build.
     
  41. Mistale

    Mistale

    Joined:
    Apr 18, 2012
    Posts:
    173
    @Jaroslav Stehlik : Is it possible to adjust the quality level (tesselation) of the imported SVG's during import, or perhaps generating LODs? They look great in your video, but I'm a bit concerned about older hardware. Really looking forward to this!
     
  42. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Great question! Yes, you can set your quality level during import and because the result is meshes, we can in future make LOD groups.
     
    Mistale likes this.
  43. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    227
    Isn't HideFlags.DontSave doing something similar?
     
  44. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    I am afraid that not. Because I want to save the asset in editor permanently but not in build, which DontSave tag will as proposed wont save nothing :(
     
  45. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    227
    Hm, I see. Can you perhaps show a quick example on how you use HideFlags.DontSaveInBuild?
     
  46. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    I'm curious - does it create a texture from the vectors? Or does it just color and shape meshes to match the vectors color and shape?
     
  47. zyzyx

    zyzyx

    Joined:
    Jul 9, 2012
    Posts:
    227
    It is not well documented, but you could try the "EditorOnly" tag (scroll to bottom). I think objects tagged with this are ignored when the project is built.
     
  48. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    It does not rasterize vectors and it does not use vector colors for gradients.
    The mesh is used only for the shape. Only vertex colours would not be able to reproduce perfect gradients.
     
  49. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Looks interesting, will take a look at it!
     
  50. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Thanks for your info, but a tag can be applied only on Game Objects. This means that I would have to change all assets to prefabs, which is not possible and will represent many new problems.