nariakiiwatani/ofxMeshWarp

Bending issue

Closed this issue · 5 comments

Hello I'm trying this nice addon but seeing lines and shapes of texture are bended like image below.

screen shot 2018-10-25 at 3 07 26 pm

Original texture is
testtex

Any solution?

Hi, thank vou for trying and reporting!
I haven't tried yet but you can see what is happened by using drawDetailedWireframe.
Do setChildMeshResolution for more informations.
Please give it a try!

Thanks for tips. I tried both functions and got this result.
screen shot 2018-11-04 at 1 09 53 am

Looks like mesh itself is bent. Calculation around quad subdivision might be wrong?

I tested another ofAddon(ofxMtlMapping2D) and found the difference of homography and linear interpolation like an image below.
screen shot 2018-10-28 at 1 38 15 pm

In case we use linear interpolation, it does not look like 3D but each pattern of grid cells fits perfectly.
But homography, opposite. (looks 3D but a checker pattern does not fit)

Which one do you use? Maybe mixed?

Thanks for trying, and additional information.

I got what is going on.
I use Mesh::solve - which is made for locating "un-nodal" points of parent mesh - to calculate child subdivision.
I think the simplest linear interpolation is better for child meshes so I will fix it.

I've just pushed fixed version on master branch.
Seems good, isn't it?

Below are results in your texture with child-resolution 16.
Slash lines are still curving but I think it's ok since it's not homography.

linear
linear_detail