Mobile app version of vmapp.org
Login or Join
Murray976

: How to warp image as if it were a cloth in real life? I have an image, and each pixel is unique color. What I want to do is warp the image as if it were a cloth on a flat surface (no

@Murray976

Posted in: #Cs6 #PhotoEditing

I have an image, and each pixel is unique color. What I want to do is warp the image as if it were a cloth on a flat surface (no crumples/folds) and the cursor is my hand. I want to be able to pinch a point on the cloth and move it. This makes it do that I don't stretch/contract any part of the image, just create folds/crumples. In the end, what I am looking for is the output having all unique pixels. Some will be lost because of folds on top of other parts of the image. And some parts (on the sides) will be transparent because some portion got folded moving the side away from edge.

Is there any software that can do this?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray976

3 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay110

Seems to me, that you want it to work more like paper folding than cloth. Cloth actually stretches, paper far less so*. This means you might be interested in origami or 3D texturing. Basically this is how UV texturing works.



Image 1: a quick test of folding**. Note that due to the limited palette of a GIF its not unique color. But it is unique in a full 16 bit palette.

Your requirement that every pixel is different can mean many things. For this to hold true, would mean:


no antialiasation
and/or interpolation may happen.


Fine no problem for antialiasation but interpolation is already a bit painful. If you are pedantic about this then it means that all we can do is move pixels in a group. This makes all standard approaches problematic. You would need to ensure quite many things. Certainly 3D apps can be tweaked to accomodate this. Especially if your not obsessed by the colors themselves, and permit the program to make new colors within this range just as long as no duplicate exsist.

In any case you would probably get a better answer if you could provide some info on why your restrictions are what they are.

* Note im a mechanical engineer as far as i am concerned, everything stretches. Even high grade steel.

** The start is a bit off because I only had 10 minutes time to spare

10% popularity Vote Up Vote Down


 

@Jennifer810

If you really want it to look and behave like a folded cloth, maybe you should look into 3D software like Blender or 3DMax.

10% popularity Vote Up Vote Down


 

@Deb5748823

From how I understand your question, the Puppet Warp Tool should give you the control to to create the effect that you're looking for. Here's a howto and another one.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme