SVG support being a fully integrated feature

Discussion and feedback on Construct 2

Post » Fri Jun 20, 2014 12:27 pm

I think one of the best features I could ask for in C2 is the possibility of simply copying what I have in illustrator and pasting into C2. For those who do not know, when you copy something in illustrator, it copies the SVG code as well. This art pipeline would save a ton of time. More importantly you could have a resolution independent game.

You could also re size at your leisure in C2.
B
76
S
12
G
7
Posts: 412
Reputation: 9,308

Post » Fri Jun 20, 2014 12:35 pm

I've looked in to this, but the main problem is there doesn't appear to be good browser support for rendering SVGs in WebGL mode. Most of the example code I've seen involves rendering SVG to a fixed size texture then rendering that in the game, which will cause an extremely high memory usage. Even if direct rendering worked, high-quality SVG rendering can involve hundreds of vertices per image, whereas a textured sprite is always four, so it would likely have a performance impact noticable on mobile.

Ordinary textures are actually pretty fast, memory efficient, and well-supported in comparison. You can still design resolution independent games by rendering artwork for your highest target resolution, and then mipmapping ensures high-quality downscaled rendering. SVG is definitely something we're keeping an eye on but I don't think it's something we could add in short order.
Scirra Founder
B
402
S
238
G
89
Posts: 24,644
Reputation: 196,095

Post » Fri Jun 20, 2014 12:55 pm

I guess we will have to wait for better support.
B
76
S
12
G
7
Posts: 412
Reputation: 9,308


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests