CN112581592A - Method for solving invisible surface texture of three-dimensional modeling texture map - Google Patents

Method for solving invisible surface texture of three-dimensional modeling texture map Download PDF

Info

Publication number
CN112581592A
CN112581592A CN202011532154.7A CN202011532154A CN112581592A CN 112581592 A CN112581592 A CN 112581592A CN 202011532154 A CN202011532154 A CN 202011532154A CN 112581592 A CN112581592 A CN 112581592A
Authority
CN
China
Prior art keywords
texture
adjacent
patches
patch
model
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.)
Pending
Application number
CN202011532154.7A
Other languages
Chinese (zh)
Inventor
任帆
王江安
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.)
Shaanxi Tudou Data Technology Co ltd
Original Assignee
Shaanxi Tudou Data Technology Co ltd
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 Shaanxi Tudou Data Technology Co ltd filed Critical Shaanxi Tudou Data Technology Co ltd
Priority to CN202011532154.7A priority Critical patent/CN112581592A/en
Publication of CN112581592A publication Critical patent/CN112581592A/en
Pending 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
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a method for solving invisible surface texture of a three-dimensional modeling texture map, which relates to the technical field of image data processing and comprises the following steps: s1, starting to search a cavity surface of the three-dimensional model; s2, searching adjacent patches of the cavity surface; and S3, judging whether the adjacent surface is a cavity surface patch, and if the adjacent surface is the cavity surface patch, repeating the step S2. The method for solving the invisible surface texture of the three-dimensional modeling texture mapping comprises the steps of searching adjacent surface patches of a model through algorithm processing of the invention, judging whether the adjacent surface patches are hollow or not, and when a hollow surface patch is detected, texturing the hollow surface patch part through a texture mapping method of the invisible surface patch of the model to keep the texture close to the surrounding, so that a modeling image of the model can be more complete, the model image can be more real, and the expression effect is greatly improved.

Description

Method for solving invisible surface texture of three-dimensional modeling texture map
Technical Field
The invention relates to the technical field of image data processing, in particular to a method for solving the problem of invisible surface texture of a three-dimensional modeling texture map.
Background
Three-dimensional reconstruction is to generate a three-dimensional model of an object by simulating a three-dimensional object in the real world with a computer. Currently, there are two main approaches: firstly, an infrared device is adopted to measure the distance of an object, and secondly, three-dimensional reconstruction is carried out based on a plurality of two-dimensional images of the object to be measured. The former requires infrared equipment, is expensive and is not easy to operate, so image-based methods are mainly adopted. With the development of computer vision and hardware, image-based three-dimensional reconstruction algorithms are more and more mature.
Three-dimensional reconstruction based on images generally comprises four steps: sparse reconstruction, dense reconstruction, surface reconstruction, texture mapping.
Texture mapping is the last step in three-dimensional reconstruction, and is a process of mapping texture pixels in a texture space to pixels in a screen space, namely mapping a two-dimensional image of a model to the surface of a three-dimensional model of the model, so that the reality of the model is enhanced, the model is more real, and the effect is more vivid and natural.
In the texture mapping process, the image information of the object shot by the camera is mapped to the three-dimensional model of the object, so that mapping operation is realized. However, because the object image shot by the camera is three-dimensional, there are inevitable dead angles, i.e., the positions that cannot be shot, and there is no image information corresponding to the dead angles, i.e., no texture information, after the model is reconstructed. Therefore, the model after the mapping operation has a hole, and the final effect of the model is greatly reduced by the hole, so that the model is not real enough and not complete enough.
Therefore, a method for solving the three-dimensional modeling texture mapping invisible surface texture is required to solve the above problems.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a method for solving the problem of invisible surface texture of a three-dimensional modeling texture mapping, which solves the problems that in the texture mapping process, object image information shot by a camera is mapped to a three-dimensional model of an object to realize mapping operation, the object image shot by the camera is three-dimensional, so that dead angles, namely positions where the image cannot be shot, are inevitably generated, and the part has no image information corresponding to the part after the model is reconstructed, namely no texture information, so that the model after the mapping operation has holes, and the final effect of the model is greatly reduced due to the holes, and the model is not real enough and complete enough.
(II) technical scheme
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a method for solving the problem of invisible surface texture of a three-dimensional modeling texture map comprises the following steps: the method comprises the following steps:
s1, starting to search a cavity surface of the three-dimensional model;
s2, searching adjacent patches of the cavity surface;
s3, judging whether the adjacent surface is a cavity surface patch, if so, repeating the step S2;
s4, judging whether the adjacent surface is a cavity surface patch, if not, entering the step S5;
s5, giving the texture information to the cavity patch;
and S6, performing texture mapping on the hollow to obtain a finished product drawing of the three-dimensional modeling texture mapping.
Preferably, when searching for adjacent patches of the cavity surface in S2, whether the adjacent patches are adjacent or not can be determined by determining whether two vertices of the adjacent patches are the same.
Preferably, when the texture information is assigned to the hole patch in S5, the texture coordinates of the patch need to be assigned to the current hole patch.
Preferably, when finding the neighboring patches in S2, all patches must be traversed, and patches whose neighboring patches have been found are holes are removed.
(III) advantageous effects
The invention has the beneficial effects that:
the method for solving the invisible surface texture of the three-dimensional modeling texture mapping comprises the steps of searching adjacent surface patches of a model through algorithm processing of the invention, judging whether the adjacent surface patches are hollow or not, and when a hollow surface patch is detected, texturing the hollow surface patch part through a texture mapping method of the invisible surface patch of the model to keep the texture close to the surrounding, so that a modeling image of the model can be more complete, the model image can be more real, and the expression effect is greatly improved.
Drawings
FIG. 1 is a flow chart of the algorithm of the present invention;
FIG. 2 is a diagram of a pre-algorithm processing model of the present invention;
FIG. 3 is a diagram of the model after algorithm processing according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-3, the present invention provides a technical solution: a method for solving the problem of invisible surface texture of a three-dimensional modeling texture map comprises the following steps: the method comprises the following steps:
s1, starting to search a cavity surface of the three-dimensional model;
s2, searching adjacent patches of the cavity surface;
s3, judging whether the adjacent surface is a cavity surface patch, if so, repeating the step S2;
s4, judging whether the adjacent surface is a cavity surface patch, if not, entering the step S5;
s5, the texture information is given to the hole patch.
When searching for the adjacent patches of the cavity surface in S2, it is possible to determine whether the adjacent patches are adjacent by determining whether two vertices of the adjacent patches are the same, and when searching for the adjacent patches of the cavity surface, it is possible to determine whether the adjacent patches are adjacent by determining whether two vertices of the adjacent patches are the same, because the adjacent patches certainly have two common points, it is possible to accurately determine whether the adjacent patches are adjacent.
When the texture information is assigned to the hole patch in S5, the texture coordinates of the patch need to be assigned to the current hole patch.
When searching for an adjacent patch in S2, all patches must be traversed, and a patch for which the found adjacent patch is a cavity is removed, and when searching for an adjacent patch, by removing a patch for which the found adjacent patch is a cavity, the speed of searching for an adjacent patch can be increased, and repeated searching for a found adjacent patch is avoided.
A method for solving the problem of invisible surface texture of a three-dimensional modeling texture map comprises the following steps:
(1) reading in a model diagram 2, firstly finding out an index of a cavity surface patch, then finding an adjacent surface patch, and judging the adjacent surface patch, wherein whether the two surface patches are adjacent can be judged mainly by judging whether two vertexes of the adjacent surface patch are the same, and the adjacent surface patches are certainly provided with two common points;
(2) judging whether the adjacent surface patches of the cavity surface patch are also cavities, and if not, assigning the texture information and the texture coordinates of the surface patch to the current cavity surface patch;
(3) if the adjacent surface patch is also a cavity, then finding the adjacent surface patch, and judging, and so on until finding the surface patch which is not the cavity;
(4) when searching for adjacent patches, all patches must be traversed, and the patches with the found adjacent patches as holes are removed;
(5) after the processing by the algorithm of the present invention, the obtained model effect after texture mapping is as shown in fig. 3, and it is obvious from the comparison between fig. 2 and fig. 3 that the previous cavity part in fig. 2, i.e. many orange patches, have all disappeared, through the algorithm of the present invention, texture mapping has been performed on these cavity patches as well, and the texture information of the nearest non-cavity patch adjacent thereto is pasted, so that the model display is more realistic and has stronger integrity.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A method for solving the problem of invisible surface texture of a three-dimensional modeling texture map comprises the following steps: the method comprises the following steps:
s1, starting to search a cavity surface of the three-dimensional model;
s2, searching adjacent patches of the cavity surface;
s3, judging whether the adjacent surface is a cavity surface patch, if so, repeating the step S2;
s4, judging whether the adjacent surface is a cavity surface patch, if not, entering the step S5;
s5, giving the texture information to the cavity patch;
and S6, performing texture mapping on the hollow to obtain a finished product drawing of the three-dimensional modeling texture mapping.
2. The method for solving the invisible surface texture of the three-dimensional modeling texture map as claimed in claim 1, wherein: when searching for adjacent patches of the cavity surface in S2, it is possible to determine whether the adjacent patches are adjacent by determining whether two vertices of the adjacent patches are the same.
3. The method for solving the invisible surface texture of the three-dimensional modeling texture map as claimed in claim 1, wherein: when the texture information is assigned to the hole patch in S5, the texture coordinates of the patch need to be assigned to the current hole patch.
4. The method of claim 1, wherein the method comprises the following steps: when finding the neighboring patches in S2, all patches must be traversed, and patches whose neighboring patches have been found are holes are removed.
CN202011532154.7A 2020-12-21 2020-12-21 Method for solving invisible surface texture of three-dimensional modeling texture map Pending CN112581592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011532154.7A CN112581592A (en) 2020-12-21 2020-12-21 Method for solving invisible surface texture of three-dimensional modeling texture map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011532154.7A CN112581592A (en) 2020-12-21 2020-12-21 Method for solving invisible surface texture of three-dimensional modeling texture map

Publications (1)

Publication Number Publication Date
CN112581592A true CN112581592A (en) 2021-03-30

Family

ID=75139379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011532154.7A Pending CN112581592A (en) 2020-12-21 2020-12-21 Method for solving invisible surface texture of three-dimensional modeling texture map

Country Status (1)

Country Link
CN (1) CN112581592A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024850A (en) * 2000-07-03 2002-01-25 Sony Corp Device and method for forming three-dimensional image and program providing medium
CN104517312A (en) * 2013-09-26 2015-04-15 清华大学 Texture mapping method of rotator model
CN109064542A (en) * 2018-06-06 2018-12-21 链家网(北京)科技有限公司 Threedimensional model surface hole complementing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024850A (en) * 2000-07-03 2002-01-25 Sony Corp Device and method for forming three-dimensional image and program providing medium
CN104517312A (en) * 2013-09-26 2015-04-15 清华大学 Texture mapping method of rotator model
CN109064542A (en) * 2018-06-06 2018-12-21 链家网(北京)科技有限公司 Threedimensional model surface hole complementing method and device

Similar Documents

Publication Publication Date Title
CN107945282B (en) Rapid multi-view three-dimensional synthesis and display method and device based on countermeasure network
WO2020165557A1 (en) 3d face reconstruction system and method
CN111008422B (en) Building live-action map making method and system
CN108198145A (en) For the method and apparatus of point cloud data reparation
CN107767453B (en) Building LIDAR point cloud reconstruction optimization method based on rule constraint
CN110223370B (en) Method for generating complete human texture map from single-view picture
CN115330940B (en) Three-dimensional reconstruction method, device, equipment and medium
CN105095581B (en) A kind of casting shrinking hole defect image generation method
Song et al. Volumetric stereo and silhouette fusion for image-based modeling
CN112489099A (en) Point cloud registration method and device, storage medium and electronic equipment
CN109584355A (en) Threedimensional model fast reconstructing method based on mobile phone GPU
Condorelli et al. A comparison between 3D reconstruction using nerf neural networks and mvs algorithms on cultural heritage images
CN114241151A (en) Three-dimensional model simplification method and device, computer equipment and computer storage medium
Pacheco et al. Reconstruction of high resolution 3D objects from incomplete images and 3D information
CN113971718A (en) Method for performing Boolean operation on three-dimensional point cloud model
US8948498B1 (en) Systems and methods to transform a colored point cloud to a 3D textured mesh
CN110930509A (en) Linear quad-tree multilayer model driven DEM (digital elevation model) real-time visualization method
CN112581592A (en) Method for solving invisible surface texture of three-dimensional modeling texture map
Fang et al. 3D shape recovery of complex objects from multiple silhouette images
CN112002019B (en) Method for simulating character shadow based on MR mixed reality
CN114049423A (en) Automatic realistic three-dimensional model texture mapping method
CN113139965A (en) Indoor real-time three-dimensional semantic segmentation method based on depth map
CN116883550B (en) Three-dimensional virtual live-action animation display method
CN111783877A (en) Depth information measuring method based on single-frame grid composite coding template structured light
CN117292067B (en) Virtual 3D model method and system based on scanning real object acquisition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 504, Block E, HUanpu science and Technology Industrial Park, 211 tianguba Road, high tech Zone, Xi'an City, Shaanxi Province, 710000

Applicant after: Tudou Data Technology Group Co.,Ltd.

Address before: Room 504, Block E, HUanpu science and Technology Industrial Park, 211 Gaoxin Tiangu 8th Road, Yanta District, Xi'an City, Shaanxi Province, 710075

Applicant before: SHAANXI TUDOU DATA TECHNOLOGY Co.,Ltd.