Suggestion for a plugin I'd pay for

I believe Corona-based apps would really dazzle even more than they already do if there were a way to use an SVG formatted image. Any scale would look great without the degradation that comes from using raster-based images and the hassles of multiple image resolutions could be reduced.

The concept to use would be simple - especially if it extended the display.NewImage routine. Input and size the image (changing it to raster-based after the sizing) as desired by the user and return an image handle that would be compatible with all the display object routines and handlers.

This is something I’d pay for and perhaps someone that has had the enterprise edition has already coded for their own purposes.

I know this isn’t the first time this was asked for but instead of laying it on the Corona staff I’m hoping for another developer to help everyone else out.

The image is from wikipedia in case you don’t know the advantages of vector graphics.

There is an existing feedback request at http://feedback.coronalabs.com for this.  Visit this URL

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3584597-vector-graphics-support

and vote it up.

Rob

I was hoping another user might have created their own plugin and would make it available even at a price. I knew of the feedback link but considering it was over 2 years old and already had 228 votes yet nothing done in over 2 years why bother even voting.

Gideros did have such support and since (I heard) it went open source I had hoped maybe someone might have used some of their code as a framework.

Feedback doesn’t quite work that way.   We have limited resources to add new features and we have to judge the value of what we do.  The Feedback and number of votes are just part of the equation.  When we started Windows x86 and OS-X builds, those were two of the oldest items on the feedback site.  We finally got to a point where we could do those at a time it makes business sense to do so.   We also have to factor in how hard something is to do as well.

Rob

Rob, I was not attacking you or Corona - not at all. I posted here only because I was hopeful there was someone with the Enterprise version that had already done something like this and might consider making it available (free or paid) as a third party plugin. I requested this from third parties because it’s already common knowledge that Corona doesn’t see prioritizing vector graphics as a worthwhile business objective. That’s ok - but the fact that Corona supports plugins helps fill gaps, right?

Again, this is really directed at 3rd parties - NOT Corona. I haven’t see anything posted yet but I’m still hopeful someone out there has modified the display.NewImage routine.

Are SVG images supported in native iOS and android apps?

There is a difference between SVG support directly on the device such as in a browser (like WebView and WebPopup) and support within the overlaying software code of an app. What would be perfect is an updated display.NewImage that would render an SVG graphic on-the-fly. I believe the code for this routine is available to Enterprise subscribers and was hoping one would have done this. It might have already been done but no one wants to share it - would give their graphics a very sharp display - much more than the current raster images.

Starting with Android “Lollipop” VectorDrawable (for SVG) was added to the native lib. SVGKit is a Cocoa framework for rendering SVG files natively on Apple devices.

I think that’s where you’re going to run into difficulties.  Sure, SVG libraries are out there, but they are going to create “native” objects that sit above the OpenGL canvas (like native.newTextField, native.newMapView, etc.).   To properly integrate into Corona SDK, thsi would need to be done in the core.  The library could create the graphic, but then the bitmap that represents the graphic would have to be converted into an OpenGL texture that could be manipulated on the graphics pipeline. 

It’s not as easy as it appears.

Rob

There is an existing feedback request at http://feedback.coronalabs.com for this.  Visit this URL

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3584597-vector-graphics-support

and vote it up.

Rob

I was hoping another user might have created their own plugin and would make it available even at a price. I knew of the feedback link but considering it was over 2 years old and already had 228 votes yet nothing done in over 2 years why bother even voting.

Gideros did have such support and since (I heard) it went open source I had hoped maybe someone might have used some of their code as a framework.

Feedback doesn’t quite work that way.   We have limited resources to add new features and we have to judge the value of what we do.  The Feedback and number of votes are just part of the equation.  When we started Windows x86 and OS-X builds, those were two of the oldest items on the feedback site.  We finally got to a point where we could do those at a time it makes business sense to do so.   We also have to factor in how hard something is to do as well.

Rob

Rob, I was not attacking you or Corona - not at all. I posted here only because I was hopeful there was someone with the Enterprise version that had already done something like this and might consider making it available (free or paid) as a third party plugin. I requested this from third parties because it’s already common knowledge that Corona doesn’t see prioritizing vector graphics as a worthwhile business objective. That’s ok - but the fact that Corona supports plugins helps fill gaps, right?

Again, this is really directed at 3rd parties - NOT Corona. I haven’t see anything posted yet but I’m still hopeful someone out there has modified the display.NewImage routine.

Are SVG images supported in native iOS and android apps?

There is a difference between SVG support directly on the device such as in a browser (like WebView and WebPopup) and support within the overlaying software code of an app. What would be perfect is an updated display.NewImage that would render an SVG graphic on-the-fly. I believe the code for this routine is available to Enterprise subscribers and was hoping one would have done this. It might have already been done but no one wants to share it - would give their graphics a very sharp display - much more than the current raster images.

Starting with Android “Lollipop” VectorDrawable (for SVG) was added to the native lib. SVGKit is a Cocoa framework for rendering SVG files natively on Apple devices.

I think that’s where you’re going to run into difficulties.  Sure, SVG libraries are out there, but they are going to create “native” objects that sit above the OpenGL canvas (like native.newTextField, native.newMapView, etc.).   To properly integrate into Corona SDK, thsi would need to be done in the core.  The library could create the graphic, but then the bitmap that represents the graphic would have to be converted into an OpenGL texture that could be manipulated on the graphics pipeline. 

It’s not as easy as it appears.

Rob