Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Grid Surface (FFD = Free-Form Deformation) #187

Open
magdesign opened this issue Jan 23, 2022 · 3 comments
Open

Simple Grid Surface (FFD = Free-Form Deformation) #187

magdesign opened this issue Jan 23, 2022 · 3 comments

Comments

@magdesign
Copy link
Contributor

magdesign commented Jan 23, 2022

Anyone know how to add a grid surface to ofxPiMapper?

Meaning a surface which is split into 4 parts as shown here:
quad_warp

So we are able to move the center point and also the horizontal and vertical middle.
I know that it should be solvable with a mathematical theorem (german=> Strahlensatz) solution.

Currently when I use several quads in ofxPiMapper it will not fit:
ofxpimapper

What I found is this paper: https://www.ronenbarzel.org/papers/warp.pdf
See on page 14:
freeform

and also this paper:
https://www.inf.ufrgs.br/~oliveira/pubs_files/PG01_Adaptive_subdivision.pdf

Maybe someone good in mathematics can tell us the formula to code this?

@magdesign magdesign changed the title Simple Grid Surface Simple Grid Surface (FFD = Free-Form Deformation) Jan 23, 2022
@kr15h
Copy link
Owner

kr15h commented Jan 23, 2022

There is a grid surface. Have you tried hitting g in mapping mode?

@kr15h
Copy link
Owner

kr15h commented Jan 23, 2022

True it does not have perspective yet.

@magdesign
Copy link
Contributor Author

magdesign commented Jan 24, 2022

True it does not have perspective yet

I tried on other mapping tools too, stitching quad surfaces together does nowhere work, so there is the need of quad-grid surface.
Maybe @pierrep (https://github.com/pierrep/ofxPiMapper) can help us on this. Any inputs from people familiar with geometric calculations, mathematics, coding very welcome...

Maybe editing the existing GRID_WARP_SURFACE, since the current solution is not very usable. Ignore the additions of rows and columns, and focus only on something like posted above. Maybe @c-mendoza who made the circle surface back in 2017 knows anything... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants