Giter Site home page Giter Site logo

Comments (3)

jamescauwelier avatar jamescauwelier commented on May 22, 2024

I have a similar issue as well:

NullReferenceException: Object reference not set to an instance of an object Svg.SvgElementIdManager.GetElementById (System.Uri uri) (at C:/Dev/vvvv/SVG/Source/SvgElementIdManager.cs:44) Svg.SvgUse.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Document Structure/SvgUse.cs:77) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgVisualElement.Render (ISvgRenderer renderer, Boolean renderFilter) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:183) Svg.SvgVisualElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:129) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgVisualElement.Render (ISvgRenderer renderer, Boolean renderFilter) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:183) Svg.SvgVisualElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:129) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:714) Svg.SvgFragment.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Document Structure/SvgFragment.cs:169) Svg.SvgDocument.Draw (System.Drawing.Bitmap bitmap) (at C:/Dev/vvvv/SVG/Source/SvgDocument.cs:496)

The SVG I am trying to draw is at http://pastebin.com/vGmvTSU8

Could somebody give me some pointers here? It all renders in several browsers. Interesting is that I am able to render in VisualStudio, but not when I use my DLL in Unity3D.

It'd be great if you could take a look @gregsn or if @rfoltz could explain whether it was ever solved for him?

from svg.

jamescauwelier avatar jamescauwelier commented on May 22, 2024

Nevermind... Just discovered that System.Drawing is not available in Unity and I need to find an alternative way to render in Png or use a library that can visualize SVG in Unity. The latter approach gave me low quality results though, but we'll see what happens.

from svg.

mrbean-bremen avatar mrbean-bremen commented on May 22, 2024

Looks like this is the same problem that will be fixed with #377.

from svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.