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
  2. Spoken_OS

    Spoken_OS

    Joined:
    Feb 15, 2015
    Posts:
    29
    I would like to participate and help improve SVG importer!
     
  3. thunderrabbit

    thunderrabbit

    Joined:
    Jan 20, 2015
    Posts:
    1
    I would like to use it in Unity 5+
     
  4. l33t_p33t

    l33t_p33t

    Joined:
    Jul 24, 2014
    Posts:
    4
    Love it so far, great job! One question, is the layer system working yet? I can't figure out how to use it, and there doesn't seem to be any explanation in the docs or videos. I'm unable to add layers, and the sorting order doesn't change anything. Thanks! Congrats, fine job.
     
  5. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hello there, thanks for the response. Layer system works only on fully transparent objects.
    You can swtich mode from opaque to transparent and it should start working.
    I will explain rndering modes in documentation better.

    Good point
     
  6. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,348
    Hi,

    Is the asset up on the store ? Also what is the pricing ? Seems very interesting.

    Thanks
     
  7. mimminito

    mimminito

    Joined:
    Feb 10, 2010
    Posts:
    780
    I received your beta information email, I would like to participate in the beta trial to help test and improve this product!
     
  8. Jaroslav-Stehlik

    Jaroslav-Stehlik

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

    It is submitted and waiting for review.
    The pricing will be further discussed with the Unity team.
     
  9. mbleichn

    mbleichn

    Joined:
    Jun 17, 2015
    Posts:
    1
    I would like to participate and help improve SVG importer.
     
  10. BenjaminGreenfield

    BenjaminGreenfield

    Joined:
    Oct 3, 2013
    Posts:
    1
    I would like to participate and help improve SVG importer.
     
  11. shaneparsons

    shaneparsons

    Joined:
    May 5, 2015
    Posts:
    44
    I see that animation isn't supported by svg-importer, would that be a possibility of the future or does it not seem like a realistic goal?

    Is there any way you would recommend adding subtle animation to an svg asset?
     
  12. jimfhurley

    jimfhurley

    Joined:
    Mar 6, 2015
    Posts:
    7
    I will participate in the SVG Importer beta program and help improve the stability
    and reliability of the plugin. jim.f.hurley@gmail.com
     
  13. kashlo

    kashlo

    Joined:
    Oct 29, 2014
    Posts:
    3
    Hello,
    is there a way to make SVG objects in scene look anti-aliased (smooth borders) ? The only way Ive found is to set project settings > quality > anti aliasing > 8x. But its very resource intensive :(
     
  14. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hello,

    there will be maybe a feature for fake antialiasing in the future.
    but I personally recommend native antialiasing because it has consistent overhead.
    Because the fake antialiasing adds up geometry and draw calls which could in overall be more hungry than default antialiasing.

    In our games we are using anti-aliasing on the iPad 2 and higher absolutely regularly.
     
  15. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    The easiest way of support animation is frame by frame animation by switching svg assets in the svg renderer.
    in the final SVG Importer there would be free script for such animation.
    Also, you can freely animate via Unity animate tool.
    So you can create rig in Unity and animate it as usual.
     
  16. tellemstevedave

    tellemstevedave

    Joined:
    Jul 15, 2013
    Posts:
    21
    I got the email about the beta so I'm posting and am excited to evaluate. Thanks.
     
  17. JayTheHill

    JayTheHill

    Joined:
    Jun 21, 2015
    Posts:
    1
    I would like to participate and help improve SVG importer.
     
  18. Mr_Jigs

    Mr_Jigs

    Joined:
    Apr 18, 2015
    Posts:
    69
    Is there a way to access the individual parts of a SVG asset? Like change the thickness of a particular line or the colour of a particular shape? For the moment I would like individual control over the colour of shapes and lines and the thickness of lines, of the items that make up a single SVG asset.
     
  19. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
  20. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi, Submitted last week. Waiting for review. By the review process it should be approved this week if Unity team
    will not find anything problematic..
     
  21. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi, good question.

    I am actually thinking of something like that. But for now. You have to edit the SVG by our self in the text editor or any other vector graphics editor.

    The first step for a stable product is to make the importer 99% working as the user expects.
    Other features are not hard to implement. But the SVG format is easy to read but quite hard to correctly interpret.
    Many third-party libraries and even commercial software have problems to read SVG Files correct even if they actually created them. So, that is the highest priority right now.
     
  22. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    It's really interesting, can i join the tester group? Thanks very much. My Email is: happyjiahan@gmail.com
     
  23. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    zyzyx and Korindian like this.
  24. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    722
    Awesome demo:D
     
  25. shaneparsons

    shaneparsons

    Joined:
    May 5, 2015
    Posts:
    44
    Sick demo!
     
  26. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    hi Jaroslav Stehlik, I want to buy your svg importer, Is it support 64bit for ios ?
     
  27. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Sure it does. We have 64bit ios game done with the plugin.
     
  28. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    Thanks for your reply. And can you tell me the defference between your great svg importer and the SVGAssets https://www.assetstore.unity3d.com/en/#!/content/19822, thank you very much.
     
  29. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    already bought, can't wait to try it. If it's has no serious problem, I will give your five star. And thanks for your work.
     
  30. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    For sure, if you find anything, please contact me directly. Thanks.
     
  31. trafcio

    trafcio

    Joined:
    Nov 23, 2014
    Posts:
    1
    I would love to participate in the SVG Importer beta program and help improve the stability
    and reliability of the plugin.
    Your talk was one of the best during Unite Europe. Congrats!
     
    Jaroslav-Stehlik likes this.
  32. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    hi, Jaroslav Stehlik, Is there a way to add polygon collider to match the svg shapes in your svg importer? thanks very much
     
  33. designico

    designico

    Joined:
    Apr 2, 2013
    Posts:
    13
  34. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi!
    I am a little bit afraid, that you would need to implement your own shader or try to convert the shader you pointed to work with the SVG Importer. Also, I am not sure how your stylised grass should look like.
    Do I understand correctly that you would love to have 2D grass with vertex animation?
    If that is your goal, you should know that SVG Importer uses
    colors, uv0 and uv1 for correct coloring and gradient mapping by default.
    So for the foliage animation parameters you would need normals and maybe tangents.
    I have to make an update for custom material support. As it is not now supported.
    I hope I would make it in to next week.
     
  35. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    great question, now there is not any function for that,
    but should be added in the next update.
     
  36. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi, I made a feature preview of the polygon collider.
    As you can see, it works quite easy and performs well.
    It will be available in the next update.

     
  37. potu

    potu

    Joined:
    Mar 27, 2015
    Posts:
    12
    great work! Can't wait to try the new feature. I already bought the plugin and give five stars.
    Can I get the new plugin before from the asset store? I would be like to be a tester for the new feature.
    And When It will be on the asset store? Thanks very much. My Email: happyjiahan@gmail.com
     
  38. nelsonlarocca

    nelsonlarocca

    Joined:
    Aug 11, 2014
    Posts:
    15
    will it be 5.1x compatible ?
    thanks
     
  39. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hello,

    It already should be compatible.
    Always ready to help.
     
  40. nelsonlarocca

    nelsonlarocca

    Joined:
    Aug 11, 2014
    Posts:
    15
    tried to buy it and a clear warning was shown up !
     
  41. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    OK, thanks for that. I will take a look at it.
    It looks like Unity wants all assets to be uploaded with a newer version of Unity.
    I will have to release the new version in unity 5.0
    I personally think that it should not be a problem. I would try it and give you tonight a feedback.
     
    Last edited: Jul 13, 2015
  42. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    So I tried to download the asset from the assetstore in to Unity 5.1.1f1 and it work without any problem.
    I also tried to import around thousand assets and it works as expected.
    So I think it is a marketing thing...
     
  43. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi everyone!

    The new version of SVG Importer would have nice looking strokes.
    Check them out :)

     
    Joskym and Mistale like this.
  44. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,047
    Hi Jaroslav, I already have Ragespline and SVGAssets so I am trying to figure out what your package offers over and above that.

    Does it support clipping?
     
  45. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi,

    Right now it does not support clipping.
    But I can fairly say that I am near to finish that feature.

    My personal subjective opinion about these plugins:

    Ragespline:
    - Great for creating vector graphics inside Unity,
    - Not so great for importing SVG files.
    - Also very outdated without serious support and bugfixes.
    - Generates humongous game object hierarchies which have impact on performance and also workflow
    - Supports only linear gradients, does not support complex gradient stops and has really bad interpolation.
    - We used it on https://mimpi-game.com/ and it was a real nightmare.
    That was btw the reason why I started to make my own plugin.

    SVG Assets:
    - Great SVG renderer based on a third party plugin which is native.
    - It is best for graphics which has to dramatically dynamically scale in real-time.
    - Support radial and linear gradients
    - But it is not fully cross-platform because for every platform you need separate DLL.
    - It is black box, you can't fix bugs or modify it so it fits your needs.
    - Uses Render Texture which is hungry for memory.
    - Because real-time vector graphics generation is not fast enough it uses atlases as an optimisation which is by my opinion downside as it is not resolution independent.

    SVG Importer:
    - Highly workflow-oriented, used on WIP project Mimpi Dreams https://twitter.com/TheRealMimpi
    - Easy drag and drop files into the project. Everything is fully automatic but can be tweaked optionally.
    - Everything is done in the editor, no CPU overhead on a device.
    - Memory efficient uses only 2x gradient lookup textures for a whole project.
    - Supports radial, linear and conical gradients
    - Because it is editor focused it does not support real-time import during runtime.
    - Does not support fake antialiasing right now, you have to use full-screen antialiasing.
    - And the latest features as full featured stroke rendering and automatic colliders will be in next update which is waiting for review.

    I think every plugin has its real strength and it is just up to you what your project needs the most.
     
    Last edited: Jul 19, 2015
    overthere likes this.
  46. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,047
    Hi Jaroslav, thanks for the detailed reply. I do appreciate the time you spent writing it and so will others I think.

    SVGAssets is resolution independent in that it determines the resolution required at run time and reconstitutes the SVG graphics at that resolution very quickly. Very few games change the resolution at run time so that's actually preferable in my book as large atlas need not be shipped with the game significantly reducing file size.

    What it's missing atm is uGUI integration and clipping support.

    I have a lot of art work that uses clipping and I do not want to go back the artist and ask them to redo it all, so clipping support is pretty much a must have for me.

    Thanks

    Glenn
     
  47. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    New feature announcement! SVG Frame Animator
    Frame by Frame animation controlled by Unity Animation



    Now it is possible to animate vector graphics inside Unity timeline.
    the component will be called SVG Frame Animator
    and you simply drag and drop your frames inside array field
    and during animation you change the animation index
    and it works directly in your editor with the preview.
     
    Mistale likes this.
  48. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485
    Hi, everyone!
    You can now watch my presentation about vector graphics from Unite Europe 2015.
     
    Last edited: Jul 22, 2015
    overthere and ibyte like this.
  49. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,047
    Hi Jaroslav, do you have any sample project which I could import assuming you would not have to include the whole SVGImporter package in order for me to poke around?
     
  50. Jaroslav-Stehlik

    Jaroslav-Stehlik

    Joined:
    Feb 20, 2012
    Posts:
    485