Add perspective movement of the picture
Opened this issue · 4 comments
I hope the author can add the movement of perspective Angle of the picture, so that the perspective Angle of the picture can be moved directly in the workflow, avoiding switching back and forth to ps
hi @PLFENG I will investigate if this is possible with the library I'm using (but to my knowledge it's not possible)
under the hood this plugin uses Fabric.js.
one option could be to integrate a library like this
https://github.com/wanadev/perspective.js/
but likely not inside the (same) canvas
another option is to load a 3d model as image input via mixlab 3d image.
@PLFENG it looks like it was discussed just yesterday (again) after 8 years of ppl asking :)
fabricjs/fabric.js#2898
however I'm afraid it would not be possible with fabric.js.
i will keep investigating if there other solutions.
notes to self:
- https://evanw.github.io/glfx.js/demo/#perspective
- https://medium.com/@luizzappa/the-transformation-matrix-in-fabric-js-fb7f733d0624
- https://evanw.github.io/glfx.js/demo/#perspective
- http://tulrich.com/geekstuff/canvas/perspective.html
- https://threejs.org/docs/#api/en/cameras/PerspectiveCamera <- likely we need to use 3d capable canvas like d3 or three js. but it would hard as I would need to completely replace the rendering engine and logic, it would require some time