Transfom object (or object group) to trapezoid form

Post questions on how to use or achieve an effect in Inkscape.
toxigames
Posts: 149
Joined: Sat Aug 17, 2013 7:28 pm

Transfom object (or object group) to trapezoid form

Postby toxigames » Mon Sep 28, 2015 11:41 pm

I have a group of objects that I would like to transform to a trapezoid form, such that the width at the top becomes smaller and the width at the bottom of the group is unchanged. (the closer to the bottom the less the width is changed).

With the object transform tool I can only skew the object to one side horizontally or vertically. So basically I want to skew the object group's top horizontally inward from both sides, but not the bottom of it.

I'd be grateful for any help if someone know if this is possible in any way! Or if anyone know of an extension to do this?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Transfom object (or object group) to trapezoid form

Postby brynn » Tue Sep 29, 2015 12:17 am

You'll need to convert those objects to path (if not already) and use the Node tool. I don't think it's possible with the Selection tool.

There might be an extension that draws trapezoids, but I'd have to just search through them to find. I'm a little short on time at the moment, but hopefully someone else can reply. (It seems there may be a problem with the forum, where some members can't log in or post, but it looks like you managed to post.) I know there's a 3d Polyhedron extension, but doesn't sound like you want 3D.

toxigames
Posts: 149
Joined: Sat Aug 17, 2013 7:28 pm

Re: Transfom object (or object group) to trapezoid form

Postby toxigames » Tue Sep 29, 2015 5:55 am

brynn wrote:You'll need to convert those objects to path (if not already) and use the Node tool. I don't think it's possible with the Selection tool.

There might be an extension that draws trapezoids, but I'd have to just search through them to find. I'm a little short on time at the moment, but hopefully someone else can reply. (It seems there may be a problem with the forum, where some members can't log in or post, but it looks like you managed to post.) I know there's a 3d Polyhedron extension, but doesn't sound like you want 3D.


Thanks brynn, you are practically these forums guardian angel! :D and yes it's 2D. It's a gas pedal that I want to apply a perspective to. For when you press down the pedal.... The object group can be converted to paths no problem. The huge issue will be moving the nodes manually because the group of objects are rather complex(numerous objects, paths, transforms, curves, blurs, cuts, clips and raster images(textures).

I think for now the easiest is just using Gimp to do the transform on the PNG. The result is quite good so I'll settle with that. But it would be nice to someday being able to do it "natively" in Inkscape so to speak.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Transfom object (or object group) to trapezoid form

Postby brynn » Tue Sep 29, 2015 1:33 pm

Oh, no-no! You didn't say perspective before. You just said trapezoid. Inkscape has a perspective extension! Extensions menu > Modify Path > Perspective. Help menu > Inkscape manual will tell you how to use it! And it will work on groups!

toxigames
Posts: 149
Joined: Sat Aug 17, 2013 7:28 pm

Re: Transfom object (or object group) to trapezoid form

Postby toxigames » Wed Sep 30, 2015 2:55 am

brynn wrote:Oh, no-no! You didn't say perspective before. You just said trapezoid. Inkscape has a perspective extension! Extensions menu > Modify Path > Perspective. Help menu > Inkscape manual will tell you how to use it! And it will work on groups!


Yes, I am sorry. I didn't knew the right thing to call it :oops:. I tried the perspective extension but there's some stuff it seems it can't handle, which seems to be blurs, curves, raster images, cuts, clips? At least when I tried to do it I believe that those objects/paths that had these effects applied was not affected by the perspective extension.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Transfom object (or object group) to trapezoid form

Postby brynn » Wed Sep 30, 2015 7:02 pm

Yes, the perspective extension does only work on paths. If this is for a webpage, probably the raster approach would be best (because browser support of SVG isn't perfect). If it needs to remain as SVG, I'll go back to my first suggestion, to edit each object individually, with the Node tool.

With all those different kinds of features, all used on an image of a gas pedal, it must be a realistic image? Can we see it?

toxigames
Posts: 149
Joined: Sat Aug 17, 2013 7:28 pm

Re: Transfom object (or object group) to trapezoid form

Postby toxigames » Wed Sep 30, 2015 8:20 pm

brynn wrote:Yes, the perspective extension does only work on paths. If this is for a webpage, probably the raster approach would be best (because browser support of SVG isn't perfect). If it needs to remain as SVG, I'll go back to my first suggestion, to edit each object individually, with the Node tool.

With all those different kinds of features, all used on an image of a gas pedal, it must be a realistic image? Can we see it?


It's for a game actually :) Here it is, it still needs some editing before it's done:

Image

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Transfom object (or object group) to trapezoid form

Postby brynn » Wed Sep 30, 2015 8:49 pm

Nice!

toxigames
Posts: 149
Joined: Sat Aug 17, 2013 7:28 pm

Re: Transfom object (or object group) to trapezoid form

Postby toxigames » Fri Oct 02, 2015 5:32 am

brynn wrote:Nice!


Thanks! :D


Return to “Help with using Inkscape”