Advertisement


Distorting a 2D object to give the appearance of 3D Space


Question

I'm trying to recreate the following image from Yoshua Bengio's slides: Manifold interpretation of denoising autoencoders

So far, I've made the flat rectangle object, but I'm having a hard time figuring out how to "distort it" in Inkscape. The path tool lets me do this for individual paths drawn with the pen tool, but I can't figure out how to do it for the entire object. Flat Rectangle

2016/03/29
1
3
3/29/2016 5:23:00 AM

Accepted Answer

You can use the Envelope deformation effect, but you need to convert to path each object, because the Envelope deformation tools works only on paths or group of paths.

In the following example I've converted to path rectangles, circles and text just by grouping all the objects and using Path...Object to path. With the group selected, you need to show the Path effects dialog (Path...Path effects or Ctrl+Shift+7):

the dialog

Clicking the "+" button, you can add the Envelope deformation effect:

add path effect

Now you need to perform some manual work. The effect allows to apply a deformation to each side of your object.

You can start with the top side, by clicking the related Edit on-canvas icon:

edit on-canvas

Dragging the nodes you can see immediately the deformation, e.g.:

deformation

And so on:

similar but not perfect

With a little tweaking you can achieve a result similar to the desired one.

2016/03/30
7
3/30/2016 9:31:00 PM