Internal Filling Algorithm for Opengl Texture Deformation
In engineering practice,it is often necessary to deform texture images.This article proposes two texture deformation control methods,grid interpolation method and matrix mapping method.Users only need to stretch the outer edges of the texture to achieve shape control.The algorithm automatically inserts internal points based on the texture edges set by the user,making the final display effect of the texture correct.Each method is accompanied by an engineering implementation to verify the feasibility of the algorithm.The grid interpolation method is simple in calculation and can complete the deformation of convex polygons and some non-convex polygons.The matrix mapping method is complex in calculation,but it can achieve the deformation of convex polygons and most non-convex polygons.