Texture from distorted image, what is the best way to do it?

When I bend a plane or a cylinder, I get different geometries. If I want to use an image e.g. barrel

( https://pixabay.com/de/photos/fass-weinfass-winzer-wein-holzfass-2609789/ -free)
as a texture, the white background would also be applied to the geometry. My idea is to warp the image so that the white areas are completely omitted.

I could write a small script ( easier than Modify indexed BufferGeometry (mouse or input) ) to do the distortion with Raycaster and then take a screenshot.

But doesn’t something like this already exist?

I don’t usually deal with graphics programs, have researched the net and also installed Krita https://krita.org/ and Gimp https://www.gimp.org/ and tried something. There are some distortions, but I have not found one that meets my requirement.

Maybe out of inexperience I missed it too. :thinking:

Am grateful for a tip!


A bent geometry with standard texture.

Shortly after I asked this question here, I saw the post
Bilinear interpolation with fixed grid - #3 by belaf and there the link

Image Warp - JS

It’s a bit of a hassle, but I was able to create an image to use as a texture almost perfectly.

A moving geometry created from a basic geometry based on CylinderGeometry. Bent with curve functions.

Fish mouth and fins still missing.

1 Like

@hofk Do you use splines to form a fish?

I combine several CatmullRomCurve3 and also SplineCurve.

It is still a work in progress.

Problems are the tapered parts (mouth) and multiple branched parts like the tail fin. There you probably have to make a group.

See finished Curved2Geometry - a twofold curved geometry

1 Like

I can think of three curves for shaping the body and one for its profile :thinking:

Yeah, tried it with just three splines. Seems it’s enough to create fish body from a plane, even no need for the profile curve.