US20080246765A1 - Method and apparatus for constraint-based texture generation - Google Patents

Method and apparatus for constraint-based texture generation Download PDF

Info

Publication number
US20080246765A1
US20080246765A1 US11/124,552 US12455205A US2008246765A1 US 20080246765 A1 US20080246765 A1 US 20080246765A1 US 12455205 A US12455205 A US 12455205A US 2008246765 A1 US2008246765 A1 US 2008246765A1
Authority
US
United States
Prior art keywords
texture
user
accordance
specified
mesh
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US11/124,552
Inventor
Desmond Grenfell
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Adobe Inc
Original Assignee
Adobe Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Adobe Systems Inc filed Critical Adobe Systems Inc
Priority to US11/124,552 priority Critical patent/US20080246765A1/en
Assigned to ADOBE SYSTEMS INCORPORATED reassignment ADOBE SYSTEMS INCORPORATED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: GRENFELL, DESMOND
Publication of US20080246765A1 publication Critical patent/US20080246765A1/en
Priority to US14/034,701 priority patent/US8736605B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Image Generation (AREA)

Abstract

A method and apparatus for texture mapping a surface. The method is applicable to texture mapping either a two-dimensional representation (image) of a three-dimensional surface as well as a three-dimensional computer model of a three-dimensional surface, such as a triangular wire mesh model. In one embodiment, the texture mapping process involves user-specification of a plurality of constraints, including texture flow constraints, texture discontinuities, and surface underfolds. A triangular wire mesh model of the surface to be textured is generated. The mesh allows a continuous texture distribution to be specified as a linear interpolation of texture values at the triangular vertices. User-specified constraints are preserved as edges within the triangular mesh. The triangular mesh is used to compute a weighted energy functional expressed in terms of nodal texture values. The global value of this functional serves as a measure of how closely the user-specified and physics-based constraints are met by a particular texture distribution. The optimal texture distribution is found by determining the set of nodal values which minimizes this functional, through an iterative process that is recursively applied to each nodal value using the results of a previous iteration. In accordance with one aspect of the invention, the results of previous optimizations may be used as the starting point for subsequent refinements of the texture distribution, in the event that greater levels of photorealisim are necessary. During this recursive procedure the triangular mesh is progressively refined using an adaptive subdivision procedure which allows local texture variations to be more accurately expressed whilst optimizing the overall mesh density against calculational efficiency.

Description

    NOTICE PURSUANT TO 37 C.F.R. § 1.184(2)
  • The patent or application file contains at least one drawing executed in color. Copies of this patent or application publication with color drawings will be provided by the Office upon request and payment of the necessary fee.
  • FIELD OF THE INVENTION
  • The present invention relates generally to computer graphics, and more particular to a methodology for creating high-quality texture maps for photographic re-texturing.
  • BACKGROUND OF THE INVENTION
  • In the field of computer graphics and computer graphics rendering software, it is often desirable to apply a texture to a graphical image of a digitally-rendered object. Such functionality is often referred to as “texture mapping” or “texturing,” and numerous software tools for performing this function are known to those of ordinary skill in the art.
  • As a general proposition, it is more difficult to map a photo-realistic texture to an object whose surface geometry and topology is complex than to an object whose surface is comparatively simple, for example, essentially planar. The measure of this complexity increases as the desired degree of photorealism increases.
  • The generation of a texture map for a graphical image is complicated further when the surface to be mapped includes such features as underfolds, where the continuous surface folds beneath and partially obscures itself, and discontinuities. Examples of surfaces which have such features include clothing and upholstery.
  • SUMMARY OF THE INVENTION
  • In view of the foregoing and other considerations, the present invention is directed to a methodology for creating a high-quality texture map for photographic retexturing of an object such as an actual surface of a three-dimensional (3D) computer model or the projected surface within a two-dimensional (2D) image such as a photograph.
  • In one aspect, the invention solves an existing problem using a new technique which allows the solution to be applied to a wide range of situations in a cost-effective manner. One feature of the invention is that in practice it demands only modest technical skills of a type found commonly in the graphics design industry.
  • In one embodiment, the invention consists of a mathematical technique, and an associated software implementation thereof, for determining the most visually realistic distribution of texture over a specified surface. As used herein, the term “surface” may be used to refer either to an actual surface within a 3D computer model, or the projection of a physical surface within a 2D image such as a photograph. When used in conjunction with suitable rendering software, the calculated texture distribution allows regions of the treated image to be re-textured in a highly realistic way such that the casual viewer would imagine that the applied texture was present on the object when it was photographed or otherwise created.
  • In accordance with one aspect, the invention consists of the application of specific mathematical and computer software techniques to the problem of realistically re-texturing regions of 3D models or 2D images or photographs. The invention provides the ability to specify general constraints and hints in the form of free-form lines which are drawn over the surface to be re-textured. The invention then finds the texture distribution which optimally meets these constraints and hints whilst minimizing the overall stretching and compression of the fabric.
  • Advantageously, this combination of user-specified constraints and physics-based constraints allows the invention to be used to generate visually realistic texture distributions with a minimum of skill and effort. In addition, the invention enables a wide range of visually important features to be replicated in order to enhance the realism of the final effect. These features include:
      • Direction of texture flow
      • Under-folds
      • Seams and other texture breaks
      • Ridges, folds and edge horizons
      • General profiles
  • The nature of the invention is such that the authoring process (i.e., the entire process of generating a good texture distribution) can be performed incrementally. This advantageously enables existing texture distributions to be improved at a later date to meet higher standards of realism.
  • It is contemplated that the invention has various commercial applications, including on-line sales and marketing of products for which texture and shape are important purchasing considerations. In addition, the invention may be applied in support of product design and design modification of products for which texture and shape are important design considerations. The invention facilitates the general communication of specifications and appearance of commercial products.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The foregoing and other features and aspects of the subject invention will be best understood with reference to a detailed description of specific embodiments of the invention, which follow, when read in conjunction with the accompanying drawings, wherein:
  • FIG. 1 depicts a representative triangle from a triangular mesh model of a three-dimensional surface;
  • FIG. 2 depicts an exemplary texture distribution showing the distortion of a uniform grid pattern resulting from user-specified texture flow lines in accordance with one embodiment of the invention;
  • FIG. 3 depicts an exemplary texture distribution showing the distortion of a uniform grid pattern resulting from user-specified texture flow lines and texture discontinuity lines in accordance with one embodiment of the invention;
  • FIG. 4 depicts an exemplary texture distribution showing the distortion of a uniform grid pattern resulting from user-specified texture underfold lines in accordance with one embodiment of the invention;
  • FIG. 5 depicts an exemplary texture distribution showing the distortion of a uniform grid pattern resulting from a user-specified texture depth profile in accordance with one embodiment of the invention;
  • FIG. 6 a is a two-dimensional image of a three-dimensional object for which a photo-realistic texture mapping is to be generated;
  • FIG. 6 b is the image of FIG. 6 a having user-specified texture flow lines, edge horizon lines, and texture underfold lines superimposed thereon;
  • FIG. 6 c is the image of FIG. 6 a having a texture distribution superimposed thereon;
  • FIG. 6 d is the image of FIG. 6 a having a triangular mesh generated in accordance with one embodiment of the invention superimposed thereon;
  • FIG. 7 is a photograph of a person wearing a garment for which a texture map has been generated in accordance with one embodiment of the invention; and
  • FIG. 8 is a simplified block diagram of a computer system embodying the method in accordance with the present invention.
  • DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS OF THE INVENTION
  • The disclosure that follows, in the interest of clarity, does not describe all features of actual implementations. It will be appreciated that in the development of any such actual implementation, as in any such project, numerous engineering and programming decisions must be made to achieve the developers' specific goals and subgoals (e.g., compliance with system- and business-related constraints), which will vary from one implementation to another. Moreover, attention will necessarily be paid to proper engineering practices for the environment in question. It will be appreciated that such a development effort might be complex and time-consuming, but would nevertheless be a routine undertaking for those of ordinary skill in the relevant fields.
  • The Mathematical Technique
  • The core mathematical technique in accordance with one embodiment of the invention is a form of constrained optimization in which two types of constraint are considered: (1) user-specified or explicit constraints and hints; and (2) physics-based or implicit constraints.
  • In one embodiment, the user-specified constraints and hints are expressed by drawing free form lines onto the surface to be re-textured. These lines enable the user to specify that the texture should flow in a particular direction or that the texture may be disjoint along the specified line.
  • The same type of free-form lines are used to add localized geometric details such as folds, under-folds, ridges, and valleys as perturbations to some underlying base geometry. When applied to 2D images and photographs (as opposed to fully 3D computer models), the underlying geometry will generally be modeled as something very simple (such as a plane) and the geometry lines may be used to add more extended geometric features such as edge profiles and curvatures.
  • The physics-based constraints are derived from a simple model of a perfectly elastic fabric in which the restoring force for a length of fabric is linearly proportional to the extension or compression of that length from its natural (or unextended) length. These constraints are applied without any user intervention in order to maintain a texture distribution which is visually convincing in the context of the user-specified constraints and geometry.
  • As a starting point, a triangular mesh which covers the surface to be re-textured is created. Those of ordinary skill in the art will appreciate that triangular mesh models are a common methodology for performing texture mapping, and various computer-based tools for creating triangular mesh models are known in the prior art. The mesh allows a continuous texture distribution to be specified as a linear interpolation of texture values at the triangle vertices or nodes. User-drawn lines which specify texture directions or discontinuities are preserved as edges within the triangular mesh. Nodes which lie on a texture discontinuity are duplicated and the nodal edges along the discontinuity are either left unconnected or else are connected by special “hidden” nodes and triangles. Hidden nodes and triangles are not used to generate the final texture map.
  • The triangular mesh is used to compute a weighted energy functional. The global value of this functional serves as a measure of how closely both the user-specified and physics-based constraints are met by a particular texture distribution. The set of nodal texture values which minimize this energy functional are considered to represent the optimum texture distribution. The weights for the energy contribution from hidden triangles are reduced using a simple heuristics based factor so that the user need not specify the extent of any hidden (i.e. under-folded) fabric with any great accuracy.
  • The value of the energy functional is cast in terms of the nodal texture values. The optimum texture distribution is then found by determining the set of nodal textures which simultaneously minimize this functional. This implies a large set of non-linear simultaneous equations. These equations are solved using an iterative Newton-Raphson technique which is recursively applied to each nodal texture value using the results of the previous iteration. The technique requires a reasonable starting texture distribution and this is initially set to a flat texture distribution whose direction and density are based on the surface geometry and imposed texture directions. Subsequently, the results of previous optimizations may be used as the starting distribution for a more refined solution.
  • The process for computing the energy functional is described with reference to FIG. 1, which shows an arbitrary triangle 10 within the connected triangular mesh comprising a model of a surface. The nodes and sides of the triangle be labeled i, j, and k, as shown in FIG. 1.
  • The position of each node i, j, and k are ri, rj and rk respectively with ri having components (rix, riy, riz), rj having components (rjx, rjy, rjz), and with rk having components (rkx, rky, rkz). The texture coordinate of each node is designated by ti, tj and tk where each texture coordinate t has components (tu, tv),
  • The physical length of the sides i, j, and k of triangle 10 are designated Li, Lj, and Lk, respectively, where side i is the side opposite node i, side j is the side opposite node j, and side k is the side opposite node k. The physical length of each perpendicular, i.e. the perpendicular distance from node i to side i, or from node j to side j, or from node k to side k is designated Ni, Nj, and Nk, respectively.
  • A texture length value is defined for each side i, j, and k, and is designated Ti, Tj, and Tk, respectively. Similarly, a texture length value is defined for each perpendicular, and is designated as Pi, Pj, and Pk, respectively.
  • As would be appreciated by those of ordinary skill in the art, the process of texture mapping can be likened to covering the modeled surface with a “fabric.” In the presently disclosed embodiment, this “fabric” is assumed to be an isotropic, perfectly elastic material with and elastic modulus ε (in units of force/distance). The (longitudinal) spring constant for a strip of such a membrane, such as the strip designated with reference numeral 12 in FIG. 1, having unextended length t and width Δp is given by

  • Spring constant=εΔp/t
  • and the restoring force when such a strip is stretched will be given by

  • ΔF=εΔp(l−t)/t
  • where t=the relaxed or un-extended length and l=the extended length
  • Similarly, the energy contained within the extended strip is given by

  • ΔE=½εΔp(l−t)2 /t
  • Considering the total energy of all such strips which run parallel to side i of triangle 10, a variable τ is defined which varies from 0 at side i to 1 at node i. The parameters defining our strip can then be expressed as a function of τ as:

  • l=τL

  • t=τT

  • Δp=PΔτ
  • resulting in the following expression for the energy in a general strip at τ, Δτ parallel to side i

  • ΔE i x=½ε(P i /T i)(L i −T i)2τ2Δτ
  • Letting Δθ approach 0 an expression for the total strain energy E within all the strips parallel to side l of triangle 10 is as follows:

  • E i x=½ε(P i /T i)(L i −T i)2∫τ2 dτ for τ=[0,1]
  • This yields

  • E i x=(⅙)ε(P i /T i)(L i −T i)2
  • Or in appropriate units

  • E i x=(P i /T i)(L i −T i)2
  • A similar analysis to determine the total strain energy contained in all strips which run perpendicular to side i yields the following result

  • E i y=(T i /P i)(N i −P i)2
  • The total strain energy contained within the triangle is thus given by

  • E=E i x +E i y
  • However the total strain energy E of triangle 10 must be invariant to both the choice of x and y and indeed the choice of side. This implies that

  • Ei x=E cos θ

  • and

  • Ei y=E sin θ
  • where θ is the angle that side i makes with the chosen x axis.
  • Furthermore, by demanding that E be independent of our choice of side it can be deduced that the total strain energy of the triangle must be given by

  • E=E i xi +E j xj +E k xk
  • where xi runs parallel to side i, xj run parallel to side j and xk runs parallel to side k.
  • Alternatively, using the earlier result and cycling i, j, and k,

  • E=(P i /T i)(L i −T i)2+(P j /T j)(L j −T j)2+(P k /T k)(L k −T k)2
  • Those of ordinary skill in the art will note that the physical lengths L of the sides are functions of the position coordinates ri, rj, and r k, whilst the texture lengths of the sides i, j, and k, and the perpendiculars corresponding to each side are functions of the texture coordinates ti, tj, tk
  • It will further be apparent to those of ordinary skill in the art that the energy for the entire mesh of triangles will be given by summing the above expression over all triangles. In the disclosed embodiment of the invention, it is then desired to compute the values of the t coordinates in this global expression which minimizes the total value of E for a given set of r coordinates. To accomplish this, and expression for the partial derivative of E with respect to each t component is derived, and each of these is simultaneously set to zero.
  • If the energy of triangle n is given by En then the total energy is given by

  • Etotal=ΣEn for all n

  • and

  • E total /∂t xi =Σ∂E n /∂t xi for all n containing node i

  • E total /∂t yi =Σ∂E n /∂t yi for all n containing node i
  • This yields a pair of simultaneous equations for each node i

  • Xi(txi,tyj)=0

  • Yi(txj,tyj)=0
  • where the functions Xi and Yi are non-linear functions of the texture co-ordinates of all connected nodes j (including j=i).
  • It is to be noted that the constants contained within the functions Xi and Yi will be set by the position co-ordinates of the triangular mesh.
  • To solve this (very large) system of non-linear equations, a local Newton-Raphson scheme is combined with a global under-relaxation scheme as follows:
  • (1) An initial flat texture distribution is set across the triangular mesh.
  • (2) While not converged:
      • (a) Compute the values of Xi, Yi together with ∂Xi/∂txi, ∂Yi/∂tyi, ∂Xi/∂tyi, ∂Yi/∂txi for each node and use these to estimate the changes Δtxi, Δtyi that would project Xi, Yi to zero assuming linear dependence on txi, tyi and no change to the texture co-ordinates of the connected nodes.
      • (b) Having determined Δtxi, Δtyi for all nodes in the mesh, increment the current values of txi, tyi by adding λΔtxi, λΔtyi where λ is a number in the range (0,1) known as the under-relaxation factor.
  • This process is repeated iteratively until the solution approaches a steady-state. In one embodiment of the invention, a factor of 0.5 for λ is found to produce satisfactory convergence.
  • Convergence of the solution is monitored during the iteration and as the solution approaches a steady-state an adaptive subdivision process is applied to refine the underlying triangular mesh. The subdivision process is preferably based entirely on edge-based criteria to avoid the generation of any unwanted texture discontinuities and looks at both projected edge length and the change in simulated depth. The effect of the subdivision process is to generate a very high quality texture map both within the surface being authored and at its edges.
  • The Computer Program
  • As would be apparent to persons of ordinary skill in the art, the mathematical techniques described herein may be implemented within an existing computer program which provides a ready framework for creating the data structures required by the invention when used to generate texture maps for scanned 2D photographs. The existing program is also able to use the output of the invention to generate a very high quality rendering.
  • The input to the program in accordance with one embodiment of the invention is as follows:
      • (1) A high quality mask which defines the region of the image to be re-textured;
      • (2) A collection of free-form lines which are created by the user by sketching over the input image and which define geometry and texture features in the space of that input image; and
      • (3) Data associated with the feature lines including a variable width and height together with a selected cross-sectional profile.
  • In one embodiment, the computer program provides a graphical user interface for the creation and manipulation of this data. In particular, feature lines are preferably input as free form lines which are sketched in using a mouse, pen, or similar user input device as would be most familiar to those of ordinary skill in the art. These free form lines are then converted to cubic Bezier splines according to a suitable and preferably user-definable accuracy criterion. It is believed that this conversion would be a matter of routine to those of ordinary skill in the art, and that the details of performing such a conversion need not be described herein.
  • Having created a feature line, the user is able to progressively smooth the line and/or edit the individual points and tangents in the Bezier representation of the line.
  • As well as creating and editing feature lines, the computer program also preferably provides facilities for scaling and offsetting the resultant texture distribution so that it can be used in commercial applications which require the alignment and matching of separate components of an item of apparel or other textured item.
  • In the disclosed embodiment, features which are currently supported are:
      • Vertical or Horizontal texture flow—the specified texture axis is forced to flow parallel to the feature.
      • A purely geometric feature—a height profile is applied across the line. The width and height of this profile can be freely varied along the length of the line the shape of the profile is fixed for each feature.
      • Under-fold—the texture folds under resulting in a connected discontinuity. This feature is generally combined with an appropriate geometry profile. This feature implies that there is some hidden texture which connects both sides of the discontinuity and prevents the texture values from drifting too far apart.
      • An unconnected discontinuity—the texture is completely disconnected along the feature line. This would be used to represent a seam or cut in the item being modeled.
  • In operation of the program, a separate background thread takes the current data and seeks a texture distribution which is closest in a global sense to both the explicit constraints defined by the data and the constraints implied by a physics based model which attempts to minimize the stretching and compression of the texture. The texture distribution is defined as a linear interpolation of nodal texture values over a well connected triangular mesh which ensures that the texture is continuous at all points where it is required to be so.
  • Turning to FIG. 2, there is shown one example of the results of a texture mapping operation performed in accordance with the currently disclosed embodiment of the invention. FIG. 2 Specifically, FIG. 2 illustrates the manner in which texture flow features are handled in accordance with one embodiment of the invention. In operation, a surface 20 is presented to the user, preferably on a computer display. Using a suitable user input device, such as a mouse, digitizing pad, or the like, the user specifies the desired texture flow. In the example of FIG. 2, the “texture” is a uniform grid of squares; FIG. 2 shows how this texture would appear after being mapped to the surface 20 in accordance with the presently disclosed embodiment based upon the user-specified constraints and the physical (strain energy) constraints.
  • In FIG. 2, a first user-specified line 22 indicates the desired texture flow in the horizontal direction, while a second line 24 specified by the user indicates the desired texture flow in the vertical direction. That is, line 22 forces the horizontal direction of the texture to run parallel to it, while line 24 does the same in the vertical texture direction. As discussed above, the constraint is applied by a localized energy function whose weight can be adjusted. The resultant appearance of the uniform grid of squares upon adjustment of the texture flow in accordance with the present invention is observable in FIG. 2.
  • FIG. 3 illustrates how texture discontinuities are handled by the presently disclosed embodiment of the invention. In addition to the texture flow lines 22 and 24 specified by the user, in FIG. 3 the user has specified a number of texture discontinuities corresponding to dashed lines 26, 28, 30, and 32. The texture is allowed to be discontinuous across these lines, and this reduces the overall stretching and squashing of the texture. This is observed through comparison of the distortion of the grid pattern in FIG. 2 with the distortion of the grid pattern in FIG. 3.
  • FIG. 4 illustrates how the present invention handles situations involving texture underfold, i.e., where the surface is tucked under itself. In one embodiment, the user specifies the extent of an underfold in a profile window, where the profile of the texture intended to remain visible is specified by the solid line above a central horizontal axis 36, and the profile of the underfolded texture that will not be visible is specified by the dashed line below axis 36. Two such underfolds 38 and 40 are shown in FIG. 4. Once again, the resultant distortion of the uniform grid upon application of the underfold constraints is observable.
  • FIG. 5 illustrates how a user can specify a texture depth profile. In FIG. 5, the user specifies the desired centerline 42 of a ridge having a profile as specified in profile window 34. In FIG. 5, the ridge is observable between dashed lines 44 and 46, and again, the distortion of the uniform grid after application of the specified depth constraints is observable.
  • Turning now to FIGS. 6 a through 6 d, there is shown an example of generating a mesh model in accordance with the presently disclosed embodiment of the invention. FIG. 6 a is an example of a two-dimensional image of the three-dimensional object, for which image it is desired to generate a photorealistic texture map. In particular, in the example of FIGS. 6 a-6 d, it is desired to generate a texture map for the fabric 50 appearing in the image.
  • FIG. 6 b is the same image as FIG. 6 a, showing a plurality of lines corresponding to various features of the object depicted in the image, including texture flow lines, edge horizon lines, texture underfold lines, and ridge lines, superimposed onto the image by the user. In particular, line 52 is an edge horizon line (essentially, the border of the region to be textured), lines 54, 56, and 58 are texture under-fold lines, line 60 is a texture flow line, and line 62 is a ridge line. Both ridge lines and horizon lines are examples of profile lines which have the effect of imposing a height profile along the feature center-line. In the case of an edge feature, the profile is such that the surface normals along the center-line are forced into the plane of the image, which is the characteristic of a horizon.
  • As noted above, the process of drawing the superimposed lines onto the image can be accomplished in various well-known manners utilizing computer user input devices such as a mouse, a digitizing tablet pen, or the like, as would be apparent to those of ordinary skill in the art. Interactive graphics systems for allowing users to manipulate graphic images displayed on a computer screen are well-known in the art, and it is believed that the particular system utilized for the purposes of practicing the present invention is of no particular consequence for the purposes of the present disclosure.
  • FIG. 6 c shows the same image as FIGS. 6 a and 6 b, after the iterative texture distribution process described in detail above has converged to an acceptable level of error. In the example of FIG. 6 c, the “texture” is a uniform grid of squares, and FIG. 6 c shows this grid as it appears using a texture map developed in accordance with the teaching of the present disclosure. The distortion of the uniform grid pattern reflects the texture flow, edges, and under-folds specified by the user in FIG. 6 b.
  • An important part of the computer program is the creation of the triangular mesh which is used to express and optimize the texture distribution. This mesh is constructed from the input feature lines and mask and is itself highly optimized in terms of its local density and its ability to accurately accommodate any user specified discontinuities, texture flows and local geometry perturbations. The algorithms used to construct this mesh form an important part of the invention.
  • FIG. 6 d shows a triangular mesh 64 generated based upon the texture distribution shown in FIG. 6 c using conventional triangular mesh techniques. The triangular mesh incorporates local refinements around edges and discontinuities. In accordance with one aspect of the invention, it is likely that a mesh such as that shown in FIG. 6 d would likely be substantially denser than the mesh that is used as the starting point for the overall process of texture mapping. That is, in one embodiment, as part of the calculation process, a coarse mesh is initially employed. As the numeral procedure converges, the mesh is progressively refined through a process of local subdivision, increasing the density in those regions where it is most needed, i.e., in areas of the image which depict transitional features (ridges, edges, underfolds, and so on). This iterative process of mesh refinement represents a further iterative process on top of the numerical (Newton-Raphson) iterations, leading to a solution that is highly optimized in terms of quality and cost.
  • In one embodiment of the invention, the mesh is generated based upon estimates of an initial texture distribution in the form of a simple planar form using the average of the user defined texture flow directions. This simple estimate is distributed across an initial coarse triangular mesh. A recursive procedure is applied to each of the nodal values of the texture in turn and results in an estimate of the change required at each node in order to reduce the contribution that that node makes to the global energy function to zero. This estimate is made on the basis that all other nodal values are already optimized and that the variation of energy with texture is linear. No changes are made to any nodal values during each iteration.
  • Those of ordinary skill in the art will appreciate that in fact, the other nodal values are not optimized and the relationship between energy and nodal texture value is non-linear. However, the direction of the texture movement implied by the changes calculated using the previously described procedure is in general towards an improved texture distribution—where improved means having lower energy in a global sense. At the end of an iteration, the estimated nodal texture increments are therefore multiplied by some factor less than unity and applied to the existing nodal texture values. Taken as a whole then, each iteration consists of an inner Newton Raphson step applied individually to each pair of nodal texture values followed by an outer under-relaxation step applied to the entire set of nodal texture values. A value of 0.5 is found to be the optimum relaxation factor.
  • The described iterative procedure is applied repeatedly to a simple starting texture distribution. At various points during this iteration the rate of change of the texture distribution is determined and when this is deemed to be slowing down, an automatic mesh refinement procedure is invoked which produces a mesh having a greater degree of freedom. The texture distribution from the coarser mesh is interpolated onto this new finer mesh and the same iteration now continues on the new mesh. The process can be considered one of adaptively refining the triangular mesh so that it is able to express local texture irregularities with a minimum of increase in mesh size, and hence computational speed. The mesh refinement is based on triangle edge splitting so that a well connected mesh is maintained which guarantees a continuous texture distribution. Both edge length and edge height interval are used as criteria for edge splitting, the latter being particularly useful for accurately modeling localized height variations such as folds and edges. The mesh refinement procedure is applied recursively.
  • In one embodiment the texture relaxation process runs as a background thread and at regular intervals the current texture distribution and associated mesh is used to perform a standard scan-line rendering of a reference. This rendering is combined with the illumination data for the section of image being retextured and the result is presented as an approximate retexturing. The relaxation process can be terminated at any point by the user either because it is apparent that changes to the features are needed or else because some subjective level of visual accuracy is achieved. When the user achieves some desired texture distribution, this may be saved along with the data required to reproduce or refine it. The texture distribution and its associated mesh can then be used to calculate a continuous texture map at an arbitrary resolution using standard scan-line rendering techniques. This texture map may then be used by the rendering sub-system of the authoring framework or by an associated rendering system to create a high quality re-textured rendering of the original photograph as originally required.
  • A representative hardware environment for practicing the present invention is depicted with reference to FIG. 7, which illustrates a hardware configuration of a data processing system 113 in accordance with the subject invention. The data processing system 113 includes a central processing unit (CPU) 110, such as a conventional microprocessor, and a number of other units interconnected via a system bus 112. The data processing system 113 includes a random access memory (RAM) 114 and a read only memory (ROM) 116. Also included are an I/O adapter 118 for connecting peripheral devices such as disk units 120 and tape drives 140 to the bus 112, a user interface adapter 122 for connecting a keyboard 124, a mouse 126 and/or other user interface devices such as a touch screen device (not shown) to the bus 112, a communication adapter 134 for connecting the data processing system 113 to a data processing network 142, and a display adapter 136 for connecting the bus 112 to a display device 138. The CPU 110 may include other circuitry not shown herein, which will include circuitry found within a microprocessor, e.g. execution unit, bus interface unit, arithmetic logic unit (ALU), etc. The CPU 110 may also reside on a single integrated circuit (IC).
  • Although specific embodiments and implementation alternatives have been disclosed herein, this has been done solely for the purposes of describing the invention in its various aspects, and is not intended to be limiting with the scope of the invention as defined in the claims, which follow. It is contemplated that various substitutions, alterations, and/or modifications, including but not limited to those which may have been discussed or suggested herein, may be made to the disclosed embodiment(s) without departing from the spirit and scope of the invention.

Claims (11)

1. A method for creating a texture map for a three-dimensional surface, comprising
(a) defining a triangular mesh model of said surface;
(b) providing at least one user-specified texture constraint;
(c) computing a weighted energy functional for said triangular mesh, said weighted energy functional comprising a plurality of nodal texture values computed in accordance with said at least one user-specified texture constraint;
(d) iteratively recomputing said nodal texture values to converge said weighted energy functional toward a minimum value.
2. A method in accordance with claim 1, wherein said at least one user-specified texture constraint comprises a texture flow constraint.
3. A method in accordance with claim 2, wherein said at least one user-specified texture constraint further comprises a texture discontinuity.
4. A method in accordance with claim 3, wherein said at least one user-specified texture constraint further comprises a texture underfold constraint.
5. A method in accordance with claim 4, wherein said at least one user-specified texture constraint further comprises a texture height profile constraint.
6. A method in accordance with claim 1, wherein said step (b) of providing at least one user-specified texture constraint comprises the steps of:
(b)(1) displaying a two-dimensional image of said surface on a computer display;
(b)(2) using a user-input device to superimpose a free-form line on said image.
7. A method in accordance with claim 6, wherein said free-form line approximates the flow of said texture on said surface.
8. A method in accordance with claim 6, wherein said free-form line corresponds to the location of a discontinuity in said texture.
9. A method in accordance with claim 6, wherein said free-form line corresponds to the location of an underfold in said surface.
10. A method in accordance with claim 6, wherein said free-form line corresponds to the location of a height profile in said surface.
11. A method in accordance with claim 1, wherein said energy functional approximates the total strain energy for said triangular mesh.
US11/124,552 2005-05-06 2005-05-06 Method and apparatus for constraint-based texture generation Abandoned US20080246765A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US11/124,552 US20080246765A1 (en) 2005-05-06 2005-05-06 Method and apparatus for constraint-based texture generation
US14/034,701 US8736605B2 (en) 2005-05-06 2013-09-24 Method and apparatus for constraint-based texture generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US11/124,552 US20080246765A1 (en) 2005-05-06 2005-05-06 Method and apparatus for constraint-based texture generation

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/034,701 Continuation US8736605B2 (en) 2005-05-06 2013-09-24 Method and apparatus for constraint-based texture generation

Publications (1)

Publication Number Publication Date
US20080246765A1 true US20080246765A1 (en) 2008-10-09

Family

ID=39826516

Family Applications (2)

Application Number Title Priority Date Filing Date
US11/124,552 Abandoned US20080246765A1 (en) 2005-05-06 2005-05-06 Method and apparatus for constraint-based texture generation
US14/034,701 Active US8736605B2 (en) 2005-05-06 2013-09-24 Method and apparatus for constraint-based texture generation

Family Applications After (1)

Application Number Title Priority Date Filing Date
US14/034,701 Active US8736605B2 (en) 2005-05-06 2013-09-24 Method and apparatus for constraint-based texture generation

Country Status (1)

Country Link
US (2) US20080246765A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228328A1 (en) * 2006-04-27 2009-09-10 Jonathan Cagan Method and Apparatus for Quantifying Aesthetic Preferences in Product Design Using Production Rules
CN101833778A (en) * 2010-03-29 2010-09-15 中山大学 Subdivision method meeting geometric constraint
US20110175900A1 (en) * 2010-01-18 2011-07-21 Beeler Thabo Dominik System and method for mesoscopic geometry modulation
US20110175912A1 (en) * 2010-01-18 2011-07-21 Beeler Thabo Dominik System and method for mesoscopic geometry modulation
CN105335556A (en) * 2015-10-21 2016-02-17 中国电子工程设计院 Method for controlling grid division density by modal interpolation influence line
US9317970B2 (en) 2010-01-18 2016-04-19 Disney Enterprises, Inc. Coupled reconstruction of hair and skin
US9501859B2 (en) 2013-07-19 2016-11-22 Adobe Systems Incorporated Triangle rasterization
CN114186299A (en) * 2021-12-09 2022-03-15 上海百琪迈科技(集团)有限公司 Method for generating and rendering three-dimensional clothing seam effect
US11893675B1 (en) * 2021-02-18 2024-02-06 Splunk Inc. Processing updated sensor data for remote collaboration
US11915377B1 (en) 2021-02-18 2024-02-27 Splunk Inc. Collaboration spaces in networked remote collaboration sessions

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392434A (en) * 2014-11-05 2015-03-04 浙江工业大学 Triangle constraint-based image matching diffusion method
PL3312804T3 (en) * 2015-06-17 2021-04-19 Toppan Printing Co., Ltd. Image processing system, method and program
WO2016203770A1 (en) * 2015-06-17 2016-12-22 凸版印刷株式会社 Image processing system, method and program

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204944A (en) * 1989-07-28 1993-04-20 The Trustees Of Columbia University In The City Of New York Separable image warping methods and systems using spatial lookup tables
US5333245A (en) * 1990-09-07 1994-07-26 Modacad, Inc. Method and apparatus for mapping surface texture
US5504845A (en) * 1990-09-10 1996-04-02 Modacad, Inc. Method for remodeling and rendering three-dimensional surfaces
US5878174A (en) * 1996-11-12 1999-03-02 Ford Global Technologies, Inc. Method for lens distortion correction of photographic images for texture mapping
US5898438A (en) * 1996-11-12 1999-04-27 Ford Global Technologies, Inc. Texture mapping of photographic images to CAD surfaces
US5982378A (en) * 1996-08-02 1999-11-09 Spatial Technology Inc. System and method for modeling a three dimensional object
US6256038B1 (en) * 1998-12-10 2001-07-03 The Board Of Trustees Of The Leland Stanford Junior University Parameterized surface fitting technique having independent control of fitting and parameterization
US6300958B1 (en) * 1998-07-17 2001-10-09 T-Surf Corp. Global constrained parameterization of triangulated surfaces
US6518963B1 (en) * 1998-07-20 2003-02-11 Geometrix, Inc. Method and apparatus for generating patches from a 3D mesh model
US20030160785A1 (en) * 2002-02-28 2003-08-28 Canon Europa N.V. Texture map editing
US20030161014A1 (en) * 2002-01-07 2003-08-28 Hiroaki Tobita Image editing apparatus, image editing method, storage medium, and computer program
US20030169812A1 (en) * 2000-09-07 2003-09-11 Magali Maziere Method for segmenting a video image into elementary objects
US20030206177A1 (en) * 2002-05-01 2003-11-06 Microsoft Corporation Systems and methods for providing a fine to coarse look ahead in connection with parametrization metrics in a graphics system
US20050128210A1 (en) * 2003-12-10 2005-06-16 Sensable Technologies, Inc. Haptic graphical user interface for adjusting mapped texture
US20050197731A1 (en) * 2004-02-26 2005-09-08 Samsung Electroncics Co., Ltd. Data structure for cloth animation, and apparatus and method for rendering three-dimensional graphics data using the data structure
US7386429B1 (en) * 2001-12-07 2008-06-10 Iwao Fujisaki Wrinkle simulation software

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204944A (en) * 1989-07-28 1993-04-20 The Trustees Of Columbia University In The City Of New York Separable image warping methods and systems using spatial lookup tables
US5333245A (en) * 1990-09-07 1994-07-26 Modacad, Inc. Method and apparatus for mapping surface texture
US5504845A (en) * 1990-09-10 1996-04-02 Modacad, Inc. Method for remodeling and rendering three-dimensional surfaces
US5982378A (en) * 1996-08-02 1999-11-09 Spatial Technology Inc. System and method for modeling a three dimensional object
US5878174A (en) * 1996-11-12 1999-03-02 Ford Global Technologies, Inc. Method for lens distortion correction of photographic images for texture mapping
US5898438A (en) * 1996-11-12 1999-04-27 Ford Global Technologies, Inc. Texture mapping of photographic images to CAD surfaces
US6300958B1 (en) * 1998-07-17 2001-10-09 T-Surf Corp. Global constrained parameterization of triangulated surfaces
US6518963B1 (en) * 1998-07-20 2003-02-11 Geometrix, Inc. Method and apparatus for generating patches from a 3D mesh model
US6256038B1 (en) * 1998-12-10 2001-07-03 The Board Of Trustees Of The Leland Stanford Junior University Parameterized surface fitting technique having independent control of fitting and parameterization
US20030169812A1 (en) * 2000-09-07 2003-09-11 Magali Maziere Method for segmenting a video image into elementary objects
US7386429B1 (en) * 2001-12-07 2008-06-10 Iwao Fujisaki Wrinkle simulation software
US20030161014A1 (en) * 2002-01-07 2003-08-28 Hiroaki Tobita Image editing apparatus, image editing method, storage medium, and computer program
US20030160785A1 (en) * 2002-02-28 2003-08-28 Canon Europa N.V. Texture map editing
US20030206177A1 (en) * 2002-05-01 2003-11-06 Microsoft Corporation Systems and methods for providing a fine to coarse look ahead in connection with parametrization metrics in a graphics system
US20050128210A1 (en) * 2003-12-10 2005-06-16 Sensable Technologies, Inc. Haptic graphical user interface for adjusting mapped texture
US20050197731A1 (en) * 2004-02-26 2005-09-08 Samsung Electroncics Co., Ltd. Data structure for cloth animation, and apparatus and method for rendering three-dimensional graphics data using the data structure

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228328A1 (en) * 2006-04-27 2009-09-10 Jonathan Cagan Method and Apparatus for Quantifying Aesthetic Preferences in Product Design Using Production Rules
US20110175900A1 (en) * 2010-01-18 2011-07-21 Beeler Thabo Dominik System and method for mesoscopic geometry modulation
US20110175912A1 (en) * 2010-01-18 2011-07-21 Beeler Thabo Dominik System and method for mesoscopic geometry modulation
US8633926B2 (en) 2010-01-18 2014-01-21 Disney Enterprises, Inc. Mesoscopic geometry modulation
US8670606B2 (en) * 2010-01-18 2014-03-11 Disney Enterprises, Inc. System and method for calculating an optimization for a facial reconstruction based on photometric and surface consistency
US9317970B2 (en) 2010-01-18 2016-04-19 Disney Enterprises, Inc. Coupled reconstruction of hair and skin
CN101833778A (en) * 2010-03-29 2010-09-15 中山大学 Subdivision method meeting geometric constraint
US9501859B2 (en) 2013-07-19 2016-11-22 Adobe Systems Incorporated Triangle rasterization
CN105335556A (en) * 2015-10-21 2016-02-17 中国电子工程设计院 Method for controlling grid division density by modal interpolation influence line
US11893675B1 (en) * 2021-02-18 2024-02-06 Splunk Inc. Processing updated sensor data for remote collaboration
US11915377B1 (en) 2021-02-18 2024-02-27 Splunk Inc. Collaboration spaces in networked remote collaboration sessions
CN114186299A (en) * 2021-12-09 2022-03-15 上海百琪迈科技(集团)有限公司 Method for generating and rendering three-dimensional clothing seam effect

Also Published As

Publication number Publication date
US20140063007A1 (en) 2014-03-06
US8736605B2 (en) 2014-05-27

Similar Documents

Publication Publication Date Title
US8736605B2 (en) Method and apparatus for constraint-based texture generation
Wang et al. Feature based 3D garment design through 2D sketches
Hu et al. Modifying the shape of NURBS surfaces with geometric constraints
Igarashi et al. Smooth meshes for sketch-based freeform modeling
Lipman et al. Differential coordinates for interactive mesh editing
Mehra et al. Abstraction of man-made shapes
Kara et al. Pen-based styling design of 3D geometry using concept sketches and template models
Turquin et al. A sketch-based interface for clothing virtual characters
Chen et al. Sketching reality: Realistic interpretation of architectural designs
Michalik et al. Sketch-and constraint-based design of B-spline surfaces
Li et al. Modeling 3D garments by examples
Zhu et al. Soft folding
Xi et al. Analysis of segmented human body scans
Huang et al. CLO3D-Based 3D Virtual Fitting Technology of Down Jacket and Simulation Research on Dynamic Effect of Cloth
Orbay et al. Sketch-based surface design using malleable curve networks
JP4308343B2 (en) Curve smoothing
Wang et al. EQSM: An efficient high quality surface grid generation method based on remeshing
Deng et al. Interactive modeling of lofted shapes from a single image
Zhuo et al. Curvature-based offset distance: Implementations and applications
Bobenrieth et al. Descriptive: Interactive 3D shape modeling from a single descriptive sketch
Orbay et al. Sketch-based modeling of smooth surfaces using adaptive curve networks
Li et al. Computer-aided 3D human modeling for portrait-based product development using point-and curve-based deformation
Zhao et al. Parametric reshaping of portrait images for weight-change
Junior et al. A 3D modeling methodology based on a concavity-aware geometric test to create 3D textured coarse models from concept art and orthographic projections
Morigi et al. Reconstructing surfaces from sketched 3d irregular curve networks

Legal Events

Date Code Title Description
AS Assignment

Owner name: ADOBE SYSTEMS INCORPORATED, CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:GRENFELL, DESMOND;REEL/FRAME:020200/0065

Effective date: 20071205

STCB Information on status: application discontinuation

Free format text: ABANDONED -- AFTER EXAMINER'S ANSWER OR BOARD OF APPEALS DECISION