Vectorial graphics?

Discussion and feedback on Construct 2

Post » Wed Feb 16, 2011 12:48 am

well, i am questioning this, so C2 is html5 ready, that means it will be a direct Adobe Flash competitor, so, it would be a great idea to implement vectorial graphics compatibility to attract more developers to using C2, no?
B
10
G
2
Posts: 33
Reputation: 1,091

Post » Wed Feb 16, 2011 6:56 am

<canvas> has its own set of drawing functions (line, polygon, circle, fill etc.), would be a good idea to expose these to Construct 2.

I don't think SVG can be used with canvas, however, as those two are fundamentally different technologies. canvas is meant to be used as a drawing board to which you draw lines, circles and stuff with function calls. Perhaps a plugin which would read SVG file and draw everything, however that'd be terribly inefficient.

It is like disassembling a car and then re-assembling it on another spot.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Feb 16, 2011 3:28 pm

The format for svg is almost the same as xml, so as far as paths go it shouldn't be a big jump to create a <canvas> exporter.
It would be fairly efficient to convert the svg data to something canvas can use, and store that in the .js or another .js.

Then again getting collision detection, and animating those images would be another kettle of fish.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Feb 17, 2011 11:25 pm

If C2 had vector graphics capabilities I'd never use them because doing vector graphics (and doing them well) is a pain in the ass.

And if for some reason I did want to do vector stuff for the web I'd just go back to using Flash, because that's what Flash does. No reason to reinvent the wheel. Especially since Flash has perfected that particular wheel. You can't really expect a small, open-source project run by two guys in their spare time like C2 to compete directly with Adobe in the vector graphics department, especially by implementing it as an afterthought. Making a game editor that exports to HTML5 is already a pretty tall order!

I've always thought that realtime vector animation for the web was a really dumb idea anyway. It just doesn't make sense. It's too CPU intensive. Compression on raster images has always been miles ahead of vector art. Vector art should be used in static design software, and vector animation should be rendered to video similarly to hi-res 3D. I really have no idea why Macromedia didn't just make Flash a raster-based program to begin with.

The only benefit to using vectors is that they're scalable, and raster images don't scale well. When you compare that to all of the benefits raster images get you, there really isn't any comparison at all.

Just my two cents I guess.


TL;DR: I'd be happy if Flash died a horrible, agonizing death, and took Newgrounds with it.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Fri Feb 18, 2011 9:47 am

An interesting point to make is that Javascript/SVG combination is an alternative to Canvas.
Image Image
Scirra Founder
B
125
S
37
G
25
Posts: 3,945
Reputation: 44,922

Post » Fri Feb 18, 2011 1:46 pm

I think excanvas does that to simulate canvas in IE, but it runs at literally 2fps.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Jul 29, 2011 4:36 pm

[QUOTE=Ashley] I think excanvas does that to simulate canvas in IE, but it runs at literally 2fps.[/QUOTE]

haaaaa. I would almost like to see this to have a laugh.
B
17
S
3
G
4
Posts: 91
Reputation: 3,929

Post » Fri Jul 29, 2011 6:15 pm

Not sure if you meant officially supported or what, but I'm working on an editor for raster/vector hybrids that will eventually work in c2. Not sure of what type of license it'll have yet.   but combined with c2 it should be a much more userfriendly alternative to flash in terms of both animating characters and programming games
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Jul 30, 2011 6:04 pm

"And if for some reason I did want to do vector stuff for the web I'd just go back to using Flash, because that's what Flash does."

Some people would welcome this though, seeing that flash is is so expensive it cuts out small or home based developers. I would love to see this expand into a flash alternative. I love animations and the current limits on C2 has prevented me from moving forward on some of my ideas, but I do watch this forum almost daily to see what's new.

As for the raster/vector debate, why not include both? More tools for more users. Best of everything for all tastes.
B
7
G
2
Posts: 12
Reputation: 1,112

Post » Mon Sep 12, 2011 10:31 pm

I think it would be really advantageous having a choice to use Vector graphics as well. If not creation tools but some basic manipulation tools would be useful.
My Games on google play

ImageImage
B
30
S
6
G
4
Posts: 97
Reputation: 3,008

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests