Construct 3 idea- support vector graphics (SVG)

Discussion and feedback on Construct 2

Post » Sat Jul 11, 2015 12:51 am

here is a quick idea, construct 3 should support vector graphics, thats all!.
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Sun Jul 12, 2015 4:12 am

I like vector graphics, they're great for anything that needs re-sizing. However, my experience with them is that they are very slow to draw compared to sprites in games. What kind of use would you have in mind for them?

(BTW, I think there is a document somewhere on the site where you can add official C3 feature requests. You might want to track that down, and see if this was already suggested.)
B
29
S
16
G
23
Posts: 68
Reputation: 13,723

Post » Sun Jul 12, 2015 4:26 am

a vector image its pure code, a sprite its a png file that have a lot of weight. a game can end up with tons and tons of sprites files. but with vectors all is in the code.
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Sun Jul 12, 2015 7:40 am

I read somewhere there is a workaround for having svg's in your project. Use png images in your project but after export you replace them with Svg's. You may have to alter the code somewhere and change so that the svgs are loaded instead of the png's. Html5 supports vector graphics so i have no idea why this hasnt been implemented yet.
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Post » Sun Jul 12, 2015 8:03 am

This would be a nice-to-see feature. Even as a seperate object, for ex.: Vector Sprite.
B
128
S
33
G
17
Posts: 1,551
Reputation: 20,488

Post » Sun Jul 12, 2015 8:07 am

While in theory it seems like it would be awesome, I tried this with Gamemaker because it supports vector sprites in the form of .swf, I tried replacing all the sprites in one of my games with vector sprites, and how much it kills performance is insane, went from 60fps to unplayable, on mobile browsers at least.
B
45
S
16
G
2
Posts: 107
Reputation: 4,253

Post » Sun Jul 12, 2015 8:36 am

There is a js library for vector graphics here http://paperjs.org/.

Some one just needs to make a plugin, which would be cool.
B
43
S
22
G
20
Posts: 735
Reputation: 11,977

Post » Sun Jul 12, 2015 9:12 am

twg wrote:While in theory it seems like it would be awesome, I tried this with Gamemaker because it supports vector sprites in the form of .swf, I tried replacing all the sprites in one of my games with vector sprites, and how much it kills performance is insane, went from 60fps to unplayable, on mobile browsers at least.


I don't think that the whole game should be using vector graphics, but it can be helpful in some cases.
B
128
S
33
G
17
Posts: 1,551
Reputation: 20,488

Post » Sun Jul 12, 2015 1:17 pm

B
10
S
2
G
1
Posts: 202
Reputation: 1,555

Post » Sun Jul 12, 2015 1:44 pm

The problem is svg is software rendered. There is no hwa equivalent.
Its basically the same issue we have with the Canvas plug.
Image ImageImage
B
168
S
50
G
164
Posts: 8,228
Reputation: 105,575

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests