Advertisement

SVG - Anybody using Scalable Vector Graphics and how?

Started by April 17, 2014 04:43 PM
2 comments, last by Satharis 10 years, 9 months ago

Hi,

Does anyone want to explain basically how you are using SVG files in your game development? I was wondering how practical of an option is SVG for cross-platform implementation for certain things like GUI creation.

Personal life and your private thoughts always effect your career. Research is the intellectual backbone of game development and the first order. Version Control is crucial for full management of applications and software. The better the workflow pipeline, then the greater the potential output for a quality game. Completing projects is the last but finest order.

by Clinton, 3Ddreamer

SVG graphics are really slow to render in games. They do have uses occasionally.

I use them in maps when I need to zoom the image. You keep a crisp clean map at all levels of zoom. Doing the same with bitmap images gives you all sorts of scaling issues.

Converting filled SVG polygons to triangles is not a trivial task, but it's a task we have code libraries available for, so it's quick to implement.

Advertisement
Because I prefer to use Adobe Illustrator for vector art, and because the game I'm making is primarily vector-based, I export art as .svg instead of parsing .ai files. SVG files also contain lots of superfluous information in the form of XML, so I only use it as an in-between, translating it into my own data format better suited to my purposes.

Actually as long as the closed paths in your art don't have holes in the middle of them, triangulation is relatively straightforward. Ear clipping is the most common method, if you don't care about the slight performance hit.

My biggest qualm about SVG is animation support (for Illustrator at least, I can't speak for inkscape or the other vector art programs), and texturing support, primarily multitexturing. I would have liked the texturing problem to be nonexistent, but texturing everything makes the entire piece look a lot nicer :-)

So, long story short, it's a nice format for static, minimalist art, but it has serious drawbacks that should be looked at before you ditch rasterized graphics completely.

I'm sorry about any spelling or grammar mistakes or any undue brevity, as I'm most likely typing on my phone

"Hell, there's more evidence that we are just living in a frequency wave that flows in harmonic balance creating the universe and all its existence." ~ GDchat

Keep in mind you can use vector just for the art side of things and export different resolutions as bitmaps if you want. You don't actually have to render as vector in game to gain benefits from it.

This topic is closed to new replies.

Advertisement