Vector

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Sat Jun 28, 2008 8:02 pm

I'm not sure if this has been discussed or even if it's possible - I've been recreating a thrust clone and it's turning out great. I just was hoping, for authenticity, if it was possible to add some sort of vector extension so I can make my ship a vector object. It'd be great if I could do slight zooms on it without distorting the sprite.

I'm thinking there would be many other situations that could call for a basic vector extension, even a draw line. I'm not sure if you could even make a vector sprite object in which nodes can be placed and maybe even manipulated at run-time.

I can make this game without such extension, it's greatly more an idea for something that many users can enjoy.
B
3
S
1
G
5
Posts: 11
Reputation: 1,447

Post » Sat Jun 28, 2008 10:43 pm

The runtime uses linear filtering and mipmapping so it can scale high-resolution bitmap textures pretty well - there shouldn't be any roughness to slightly zooming a sprite. The problem is DirectX 9, as far as I am aware, has no support for vector graphics. There is no such thing as a bezier curve in DirectX - you have vertices and textures, and that's pretty much it. I can't think of a way of rendering vector graphics that is anywhere as near as efficient as rendering textures. Either you use tonnes of vertices and bottleneck the CPU/GPU bridge, or you render on the CPU and send the result to the GPU, which negates the benefits of hardware acceleration. Do you really want vector rendering that badly? I think textures suffice for most purposes these days...
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jun 29, 2008 12:56 am

No, It's perfectly fine with raster images. It was just more of an idea that I thought you may have overlooked.
B
3
S
1
G
5
Posts: 11
Reputation: 1,447

Post » Tue Aug 05, 2008 2:17 am

I think this is part of the reason Flash games are so demanding on system resources. :? I love vector graphics, but I don't need them, because I can just make a large resolution image and shrink it down dynamically for the sake of later zooming into it.
B
2
G
4
Posts: 71
Reputation: 1,192

Post » Fri Oct 03, 2008 9:20 pm

cant you force the gfx car to do calculations? im not sure tho, havnt ever seen it done or nor do i know if its possible.

i think there should at least be a polygonobject, graphics cards can easily process polygons (imagine how useless they would be if they couldnt lawl), the object would render polygons based on shape i.d.'ed points,

like lets say you could colour shape,set shape outline colour and thickness, create point and reposition point, for point based actions youd get the choice of shape id then another choice for point #, (so to make a square youd make shape id's of all for points "n" then youd create a point for each point in a square with number 1-4, relatively simple to use.) and then youd have point x and point y controls.

for shape based actions you write in a shape ID then you get parameters like colour, outline, opacity.

a polygon object would be fine, bezier curves arent that important all the time.

we need something like this cause we have a lack of anyway to draw polygons, and instead of trying to package it with a vector plugin which may never come, package a polygon object alone.

and could you guys plz add a fill bucket tool to the canvas object, just have params like fill x pos, fill y pos and fill colour/opacity
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Fri Oct 17, 2008 4:48 am

Couldn't you use Cairo to render vector graphics?
B
1
G
4
Posts: 2
Reputation: 1,029

Post » Tue Nov 18, 2008 3:03 am

cairo is slow as dirt. Its implimentation in tests with Mono were that it performed slower than GDI+, which I have a little bit of experience with -- I can tell you that it's way too slow to be using for any serious games processing, especially with large amounts of vector or very large bitmap surfaces.
B
2
G
5
Posts: 34
Reputation: 1,318


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 1 guest