CN107154016B - The joining method and device of target object in stereo-picture - Google Patents

The joining method and device of target object in stereo-picture Download PDF

Info

Publication number
CN107154016B
CN107154016B CN201610117909.4A CN201610117909A CN107154016B CN 107154016 B CN107154016 B CN 107154016B CN 201610117909 A CN201610117909 A CN 201610117909A CN 107154016 B CN107154016 B CN 107154016B
Authority
CN
China
Prior art keywords
vertex
splicing
spliced
target object
preset condition
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.)
Active
Application number
CN201610117909.4A
Other languages
Chinese (zh)
Other versions
CN107154016A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610117909.4A priority Critical patent/CN107154016B/en
Publication of CN107154016A publication Critical patent/CN107154016A/en
Application granted granted Critical
Publication of CN107154016B publication Critical patent/CN107154016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Abstract

The invention discloses the joining methods and device of target object in a kind of stereo-picture.Wherein, this method comprises: judging whether any two target object to be spliced is in same textures texture coordinate;In the case where any two target object to be spliced is in same textures texture coordinate, the vertex that preset condition is met in two target objects to be spliced is merged according to preset merging rule;In the case where any two target object to be spliced is in different textures texture coordinates, the tangent line space vector for splicing each splicing vertex in vertex set is adjusted to identical.The present invention solves any two target object for including in the stereo-picture of the prior art when splicing, since the tangent line space vector of opposite vertexes when merging is recalculated, so that splicing edge tangent line space vector and master tangent space vector it is inconsistent, so as to cause stitching portion generation flaw the technical issues of.

Description

The joining method and device of target object in stereo-picture
Technical field
The present invention relates to field of image processings, in particular to a kind of joining method of target object in stereo-picture And device.
Background technique
Currently, in MMORPG (Massively Multiple-player Online Role-Playing Game, large size More online role playing game of people) in, need to provide various rolls and the corresponding a variety of moulding of every kind of role for user player Or equipment (including clothing, accessories etc.), and the function that freely can be selected and arrange in pairs or groups can be provided for user player, and User player can arbitrarily replace the projects such as expression, clothing, color development and the accessories of role according to factors such as festival celebration, moods.For The basis that user player provides above-mentioned function is that system is provided with the basic model of various rolls, sets up role in user player When, it needs to choose different models and is spliced;In user player when to self-role more replacing equipment, without setting up angle again Color only needs to change the position needed replacing, when user replaces a certain position of role, it is necessary to different models Different parts are spliced.
In the splicing of above-mentioned model, due to there is excessive vertex, the smooth degree of game will affect, therefore need It will be to the optimization of role's progressive energy, wherein during performance optimization, important step is exactly using the side for merging vertex Formula removes the redundancy vertex of role, to improve the smooth degree of game, however during removing the redundancy vertex of role, needs The vertex parameter for recalculating vertex can cause the new summit after being overlapped after recalculating the tangent line space vector on vertex Tangent line space vector and former vertex tangent line space vector it is inconsistent, there is flaw so as to cause stitching portion.
When being spliced for any two target object for including in the stereo-picture of the prior art, due to merge when pair The tangent line space vector on vertex is recalculated, so that the tangent line space vector and master tangent space vector of splicing edge It is inconsistent, flaw is led to the problem of so as to cause stitching portion, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides the joining methods and device of target object in a kind of stereo-picture, existing at least to solve When thering is any two target object for including in the stereo-picture of technology to be spliced, the tangent line space of opposite vertexes when due to merging Vector is recalculated, so that the tangent line space vector and master tangent space vector of splicing edge are inconsistent, to lead The technical issues of causing stitching portion to generate flaw.
According to an aspect of an embodiment of the present invention, a kind of joining method of target object in stereo-picture, packet are provided It includes: judging whether any two target object to be spliced is in same textures texture coordinate;In the mesh that any two are to be spliced In the case that mark object is in same textures texture coordinate, the vertex of preset condition will be met in two target objects to be spliced It is merged according to preset merging rule;The feelings of different textures texture coordinates are in any two target object to be spliced Under condition, the tangent line space vector for splicing each splicing vertex in vertex set is adjusted to identical;Wherein, splicing vertex is any The point on splicing edge line between two target objects to be spliced, splices all splicing vertex for including on edge line and constitutes Splice vertex set.
According to another aspect of an embodiment of the present invention, a kind of splicing apparatus of target object in stereo-picture is additionally provided, It include: judgment module, for judging whether any two target object to be spliced is in same textures texture coordinate;Merge mould Block, it is to be spliced by two in the case where any two target object to be spliced is in same textures texture coordinate The vertex for meeting preset condition in target object is merged according to preset merging rule;Module is adjusted, for any two In the case that a target object to be spliced is in different textures texture coordinates, each splicing vertex in vertex set will be spliced Tangent line space vector is adjusted to identical;Wherein, splicing vertex is the splicing edge between any two target object to be spliced Point on line splices all splicing vertex for including on edge line and constitutes splicing vertex set.
In embodiments of the present invention, using judging whether any two target object to be spliced is in same textures texture Coordinate;In the case where any two target object to be spliced is in same textures texture coordinate, by two mesh to be spliced The vertex for meeting preset condition in mark object is merged according to preset merging rule;In the target pair that any two are to be spliced In the case where being in different textures texture coordinates, the tangent line space vector that will splice each splicing vertex in vertex set is adjusted To identical mode, by judging whether any target object to be spliced is in same textures texture coordinate, to target to be spliced Object takes different measures, has reached the consistent purpose of normal direction of the stitching portion of two target objects to be spliced, from And the technical effect for eliminating splicing flaw is realized, and then solve any two mesh for including in the stereo-picture of the prior art When mark object is spliced, since the tangent line space vector of opposite vertexes when merging is recalculated, so that splicing edge Tangent line space vector and master tangent space vector it is inconsistent, so as to cause stitching portion generate flaw the technical issues of.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the terminal of the joining method of target object in a kind of stereo-picture according to the embodiment of the present application Hardware block diagram;
Fig. 2 is the flow chart of the joining method of target object in a kind of stereo-picture according to the embodiment of the present application 1;
Fig. 3 is the schematic diagram unified before normal direction according to the vertex of target object to be spliced in the embodiment of the present application 1;
Fig. 4 is the schematic diagram unified after normal direction according to the vertex of target object to be spliced in the embodiment of the present application 1;
Fig. 5 is to be less than to preset according to the angle adjusted in the embodiment of the present application 1 between the corresponding extended line of multiple location points The schematic diagram of angle;
Fig. 6 is small according to the angle adjusted between the corresponding extended line of multiple location points another in the embodiment of the present application 1 In the schematic diagram of predetermined angle;
Fig. 7 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Fig. 8 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Fig. 9 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 10 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 11 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 12 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 13 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 14 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram;
Figure 15 is the schematic diagram of the splicing terminal of target object in a kind of stereo-picture according to the embodiment of the present application.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present application is described are suitable for following solution It releases:
MMORPG:Massively Multiple-player Online Role-Playing Game, i.e., large-scale more people Online role playing game.
Naked mould: in 3DSMax in production, there are no the models of setting textures and material.
AVATAR system: also known as paper doll system is generally used in computer game, is by subdivision actor model or image And it reconfigures to increase the system of character appearance quantity.It is in fact exactly at where the maximum intention of paper doll system and business opportunity Can leave " possibility " that consumer voluntarily arranges in pairs or groups, selects, and network user can be according to different festival celebration or mood, arbitrarily more Change the polynary projects such as expression, hair style, dress ornament, accessory even pet, reflect reality in oneself with meet the hope of heart.
Vertex: the point in three-dimensional space containing location information is used in computer graphics describe the most basic of things Unit.
Normal map: normal map is exactly to make normal on each point of the convex-concave surface of the original, passes through RGB color Channel marks the direction of normal, it can be understood as another different surface parallel from former convex-concave surface, but actually Its upper only smooth plane again.For visual effect, its efficiency is higher than original convex-concave surface, if in spy Positioning is set can allow the accurate direction of illumination of the high level of detail of the lower Surface Creation of level of detail and reflection to be imitated using light source Fruit.
TBN: namely tangent line space, T are tangent vector, and B is binormal vector, and N is normal vector.It is counting In calculation machine graphics, when calculating object illumination, the vector of light to vertex will turning initially to behind tangent line space again with normal map into Row illumination operation.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of method for obtaining propelling data is provided, it should be noted that The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also, It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts The step of out or describing.As shown in Figure 1, this method comprises:
Embodiment of the method provided by the embodiment of the present application 1 can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on computer terminals, Fig. 1 is mesh in a kind of stereo-picture according to the embodiment of the present application Mark the hardware block diagram of the terminal of the joining method of object.As shown in Figure 1, terminal 10 may include one Or (processor 102 can include but is not limited to Micro-processor MCV or programmable to multiple (one is only shown in figure) processors 102 The processing unit of logical device FPGA etc.), memory 104 for storing data and the transmitting device for communication function 106.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to the knot of above-mentioned electronic device It is configured to limit.For example, terminal 10 may also include than shown in Fig. 1 more perhaps less component or have with Different configuration shown in Fig. 1.
Memory 104 can be used for storing the software program and module of application software, such as the solid in the embodiment of the present invention Program instruction/module corresponding to the joining method of target object in image, processor 102 are stored in memory by operation Software program and module in 104 realize above-mentioned stereo-picture thereby executing various function application and data processing The joining method of middle target object.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as One or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise the memory remotely located relative to processor 102, these remote memories can pass through network connection To terminal 10.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication And combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 10 provide.In an example, transmitting device 106 includes that a network is suitable Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
According to embodiments of the present invention, a kind of joining method of target object in stereo-picture is provided, as shown in Fig. 2, should Method includes:
Step S21, judges whether any two target object to be spliced is in same textures texture coordinate.
Textures texture coordinate in the application above-mentioned steps S21 can be identified with UV, define the position of each point on picture The information set.These points connect each other with 3D model, to determine the position of surface texture mapping.
Step S23, in the case where any two target object to be spliced is in same textures texture coordinate, by two The vertex for meeting preset condition in target object to be spliced is merged according to preset merging rule.
In an alternative embodiment, when being spliced using 3DS MAX to target object, in two mesh to be spliced Mark object is in same textures texture coordinate, in order to remove the redundancy vertex generated after splicing, improves the smooth degree of game, can The vertex for meeting preset condition to be merged using the control function of being carried in 3DS MAX.
The vertex that two are overlapped is merged into new summit it should be noted that can be in the process merged herein, Therefore, the former vertex that the vertex parameter of new summit is overlapped by two determines, wherein vertex parameter includes at least the UV of apex, And the TBN of apex, it is believed that the UV on two coincidence vertex is identical.
It should be further noted that since the former vertex that the parameter of new summit is overlapped by two determines, then new summit In vertex parameter, the UV of new summit is identical as the former vertex that two are overlapped, but the TBN that TBN is overlapped former vertex by two is calculated It arrives, the TBN in the vertex parameter on the former vertex being overlapped with two is not identical, therefore can cause the flaw of splicing.The application is directed to The flaw that above-mentioned reason occurs provides preset merging rule and merges method, so that at the splicing edge of object to be spliced The vertex at place is able to maintain the TBN information on former vertex, to eliminate splicing edge while removing redundancy vertex to greatest extent Flaw.
Step S25 will splice in the case where any two target object to be spliced is in different textures texture coordinates The tangent line space vector on each splicing vertex is adjusted to identical in vertex set;
Wherein, splicing vertex is the point on the splicing edge line between any two target object to be spliced, splicing edge All splicing vertex for including on edge line constitute splicing vertex set.
Herein it should be noted that working as the case where any two target object to be spliced is in same textures texture coordinate Under, it is believed that above-mentioned two target object to be spliced is that two objects in same file therefore can be to above-mentioned two Vertex in object such as merges at the operation;The case where two target objects to be spliced are in different textures texture coordinates Under, it is believed that above-mentioned two target object to be spliced is two objects in two different files, therefore, above-mentioned two Vertex in target object, which cannot merge, to be operated.
From the foregoing, it will be observed that scheme provided by the above embodiments of the present application, by judging any two target pair to be spliced As if it is no in same textures texture coordinate;The feelings of same textures texture coordinate are in any two target object to be spliced Under condition, the vertex that preset condition is met in two target objects to be spliced is merged according to preset merging rule;? In the case that any two target object to be spliced is in different textures texture coordinates, by each splicing in splicing vertex set The tangent line space vector on vertex is adjusted to identical mode, by judging whether any target object to be spliced is in same textures Texture coordinate takes target object to be spliced different measures, has reached the normal direction one of the stitching portion of object to be spliced The purpose of cause to realize the technical effect for eliminating splicing flaw, and then solves in the stereo-picture of the prior art and includes Any two target object when being spliced, since the tangent line space vector of opposite vertexes when merging is recalculated, make Tangent line space vector and the master tangent space vector that edge must be spliced are inconsistent, and the technology of flaw is generated so as to cause stitching portion Problem.
It is worth noting that, in above-mentioned stereo-picture provided by the present application the joining method of target object it is unlimited be applied to The splicing of game role also can be widely applied for advertisement, video display, industrial design, architectural design, three-dimensional animation, multimedia system It is related to the part of stereo-picture splicing in the fields such as work, game, aided education and Engineering Visual.
Still when noticeable, the software in the application above-mentioned steps for being spliced to stereo-picture, which can be, appoints Anticipating has the 3D software for editing that splicing function is carried out to stereo-picture, unlimited and above-mentioned 3D MAX.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S23, by two targets pair to be spliced Include the following steps: as the middle vertex for meeting preset condition is merged according to preset merging rule
Step S231 obtains the vertex for meeting preset condition, wherein the vertex for meeting preset condition includes two to be spliced Target object splicing after overlapping position be overlapped vertex and splice edge line splicing vertex.
As a kind of optional embodiment, in the example that user is previously selected game role replacement clothes, user By using preset control in 3DS MAX, the dress ornament that user selects is replaced to pair of the pre-selected game role of user Position is answered, at this point, dress ornament has the position being overlapped with the naked mold of game role, these positions being overlapped just will include naked calligraphy or painting model body Vertex and dress ornament in same position vertex, i.e., include multiple vertex at the position of above-mentioned coincidence.In above-mentioned splicing Occur multiple vertex in, there is a kind of vertex be in the edge of dress ornament, the i.e. stitching portion of dress ornament and naked mould, these be in dress ornament and The vertex of naked mould stitching portion is the splicing vertex of above-mentioned splicing edge line, includes in multiple vertex at the position of above-mentioned coincidence, The vertex for removing splicing vertex is to be overlapped vertex.
Step S233, screening obtains being overlapped vertex from the vertex for meet preset condition, and merges vertex is overlapped.
In an alternative embodiment, still by taking above-mentioned user is previously selected game role replacement clothes as an example, when After getting the vertex for meeting preset condition, the vertex for meeting preset condition is distinguished so that distinguish be overlapped vertex and For the purpose of splicing vertex, then the coincidence vertex distinguished in result is merged.
In the above-described embodiments, it should be noted that exist in the purpose merged to the coincidence vertex distinguished in result In reducing the redundancy vertex in game role, so that amount of compressed data is so that game is more smooth.It is merged in opposite vertexes When should be noted that the vertex of merging is more, the smooth degree of game is better, but therewith the careful degree of picture then can under Drop.
In a kind of optionally example, still by taking above-mentioned family is previously selected game role replacement clothes as an example, when weight When closing vertex including 100000 vertex, if 100000 vertex, which are merged, becomes 20000 vertex, the size of game role is obtained Compression is arrived, but the fine degree of game role has been similarly obtained compression, if 100000 vertex, which are merged, becomes 40000 tops Point, the size of game role is greater than role's size when being compressed to 10000 vertex, but the careful degree of thin game role at this time Greater than careful degree when being compressed to 10000 vertex.Therefore when opposite vertexes merge, removing meets the big of game role Small degree is still to take into account the careful degree of game role.The number of new summit is specifically incorporated into the vertex of target object, by swimming The property and player experience of opera script body determine.
Herein it should be noted that in the above-mentioned vertex for meeting preset condition, preset condition is can arbitrarily to obtain entirely The condition on the vertex being overlapped after portion's splicing.
From the foregoing, it will be observed that scheme provided by the above embodiments of the present application, obtains the vertex for meeting preset condition, wherein full The vertex of sufficient preset condition includes the coincidence vertex of overlapping position and splicing edge line after two target objects to be spliced splice Splice vertex, screening obtains being overlapped vertex from the vertex for meet preset condition, and merges vertex is overlapped.Above scheme By way of distinguishing and being overlapped vertex and edge vertices, the technical effect only merged to coincidence vertex is realized.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S233, from the top for meeting preset condition The step of being screened in point before obtaining being overlapped vertex further include:
Step S2331 adjusts the normal direction for splicing vertex to preset direction.
In an alternative embodiment, Fig. 3 is united according to the vertex of target object to be spliced in the embodiment of the present application 1 Schematic diagram before one normal direction, as shown in connection with fig. 3, figure middle conductor crosspoint are used to characterize the top of target object to be spliced Point, what apex extended out is not belonging to the line segment of plane locating for vertex for characterizing the normal direction on the vertex.In conjunction with Fig. 3 It is found that adjusting by the normal direction for splicing vertex to before preset direction, same position has multiple normal directions different Vertex, Fig. 4 is the schematic diagram unified after normal direction according to the vertex of target object to be spliced in the embodiment of the present application 1, As shown in connection with fig. 4, the result to preset direction is adjusted using the normal direction on preset control adjustment splicing vertex in 3DS MAX For shown in Fig. 4, the normal direction on multiple vertex of same position is all the same.
Herein it should be noted that adjusting by the normal direction for splicing vertex to during the realization of preset direction, on It states preset direction and acquisition is calculated according to the TBN information on multiple vertex of same position by 3DS MAX.
Step S2333, to splicing apex marker vertex color.
It in an alternative embodiment, can be black by splicing apex marker.
Herein it should be noted that when for splicing apex marker vertex color, the vertex color of label can be compiled for any 3D Volume discernmible color of software, and the unlimited black with above-described embodiment.
Redundancy vertex is merged it should also be noted that, the purpose for splicing apex marker vertex color is to work as herein When, it is overlapped vertex from all meeting to filter out in the vertex of preset condition, the vertex of vertex color is as marked, it is possible thereby to know Dawn, the purpose of above scheme are the coincidence vertex distinguished meet in whole vertex of preset condition and splicing vertex, therefore, this Application above-mentioned steps are unlimited and are splicing apex marker vertex color, and can distinguish the equal energy of scheme for being overlapped vertex with splicing vertex It is enough in the application.
From the foregoing, it will be observed that the normal direction for splicing vertex is adjusted to default in the scheme that the above embodiments of the present application propose Direction, and to splicing apex marker vertex color.Above scheme is made by adjusting the normal direction for splicing vertex to preset direction The TBN information for obtaining the vertex of the edge in target object to be spliced can be unified, to produce after having reached elimination splicing The technical purpose of raw flaw, above scheme to splicing apex marker vertex color so that 3D software for editing to redundancy vertex into The technical purpose distinguished when row merging and be overlapped vertex and splicing vertex, and only coincidence vertex is merged.Therefore, above scheme Not only make the tangent line space vector on the splicing vertex of target object to be spliced unified, and distinguishes the coincidence top of target object Point and splicing vertex, thus reached during removing redundancy vertex, the technical effect that only coincidence vertex is merged, When further solving any two target object for including in the stereo-picture of the prior art and spliced, when due to merging The tangent line space vector of opposite vertexes is recalculated so that splicing edge tangent line space vector and master tangent space to Measure it is inconsistent, so as to cause stitching portion generate flaw the technical issues of.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S233, from the top for meeting preset condition Screening obtains being overlapped vertex in point, and will be overlapped vertex and merge and include the following steps:
Step S2335 filters out the vertex of unmarked vertex color from the vertex for meet preset condition, confirms unmarked top The vertex of point color is to be overlapped vertex.
Step S2337 will confirm that be overlapped the vertex on vertex and merging.
In an alternative embodiment, by taking above-mentioned user is previously selected game role replacement clothes as an example, right Splice the vertex color of apex marker when acquiring the whole vertex for meeting preset condition, to traverse all full for black The vertex of sufficient preset condition, and confirm that the vertex of unmarked vertex color is coincidence vertex to be combined.
Herein it should be noted that when handling game role or stereo-picture, may due to a variety of demands, Vertex color is marked in opposite vertexes, so if the vertex of included label vertex color in vertex, then to splicing apex marker When the color of vertex, need to make with labeled vertex color to distinguish.
From the foregoing, it will be observed that being filtered out not from the vertex for meet preset condition in the scheme that the above embodiments of the present application propose The vertex for marking vertex color confirms the vertex of unmarked vertex color to be overlapped vertex, will confirm that be overlapped the vertex on vertex and carrying out Merge.Above scheme has reached the technical effect that the screening in the whole vertex for meeting preset condition is overlapped vertex, and to coincidence Vertex merges, and has reached the technical purpose for eliminating the redundancy vertex that the splicing of target object generates in stereo-picture.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S2337 be will confirm that be overlapped vertex Vertex merges, comprising:
Step S23371 obtains the vertex information on the coincidence vertex of any two target object to be spliced, wherein vertex Information includes: the Texture Coordinates and tangent line space vector on vertex.
Step S23373 screens Texture Coordinates phase in the vertex of any two target object overlapping position to be spliced Same the first vertex and the second vertex.
Step S23375, by the tangent line space vector on the first vertex and the second vertex be calculated new tangent line space to Amount.
Step S23377, by the common Texture Coordinates in the first vertex and the second vertex and new tangent line space to Amount determines the vertex data for merging obtained new summit.
In an alternative embodiment, it is calculated by the tangent line space vector on the first vertex and the second vertex new Tangent line space vector can be obtained by following code:
From the foregoing, it will be observed that obtaining any two target object to be spliced in the scheme that the above embodiments of the present application propose It is overlapped the vertex information on vertex, wherein vertex information includes: the Texture Coordinates and tangent line space vector on vertex, any Identical first vertex of Texture Coordinates and the second vertex are screened in the vertex of two target object overlapping positions to be spliced, are led to New tangent line space vector is calculated in the tangent line space vector for crossing the first vertex and the second vertex, passes through the first vertex and second The common Texture Coordinates in vertex and new tangent line space vector determine the vertex data for merging obtained new summit.It is above-mentioned Step calculates the top of new summit after merging by the vertex information on the coincidence vertex of acquisition any two target object to be spliced Point data realizes the technical effect for merging vertex, and then has reached the technical purpose of removal redundancy vertex.
In a kind of optinal plan that the above embodiments of the present application provide, preset condition is in two target objects to be spliced Whole vertex in, have vertex identical with the Texture Coordinates on vertex.
In an alternative embodiment, as shown in connection with fig. 3, the vertex shown in Fig. 3 with multiple normal directions is For multiple vertex for meeting preset condition.
Herein it should be noted that the vertex for meeting preset condition is the vertex with same position, due to vertex Location information has corresponding relationship with the normal map coordinate on vertex, therefore works as the location information phase on two or more vertex Meanwhile inevitable normal map coordinate having the same, therefore, when acquisition meets the vertex of preset condition, vertex is in same method With the identical vertex in vertex or position of same coordinate value in line mapping coordinates, above-mentioned two conditions be it is of equal value, can be with Any one condition obtains the vertex for meeting preset condition as preset condition.
From the foregoing, it will be observed that preset condition is in two targets pair to be spliced in the scheme that the above embodiments of the present application propose In whole vertex of elephant, there is vertex identical with the Texture Coordinates on vertex, realize the skill for obtaining vertex to be combined Art purpose.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S25, by the tangent line on multiple splicing vertex Space vector, which is adjusted to identical, to be included the following steps:
Step S251, the angle adjusted between the corresponding extended line of multiple location points is less than predetermined angle, so that multiple The tangent line space vector for splicing vertex is identical, wherein location point is splicing vertex corresponding point in Texture Coordinates.
In above-mentioned steps, Fig. 5 is according to being adjusted between the corresponding extended line of multiple location points in the embodiment of the present application 1 Angle is less than the schematic diagram of predetermined angle, and as shown in connection with fig. 5, the intersection point of edge and other line segments is location point, position in figure The direction that the direction of the corresponding extended line of point is point A Zhi point B as shown in Figure 5, the direction of the extended line of multiple location points such as Fig. 5 In arrow shown in.
In an alternative embodiment, the angle adjusted between the corresponding extended line of multiple location points is less than predetermined angle Result afterwards is as shown in Figure 5 and Figure 6, and the direction of the line of the location point on point to textures edge inside textures edge is position Set the direction of extended line a little.
In above-mentioned steps, predetermined angle can be 15 degree.
From the foregoing, it will be observed that being adjusted between the corresponding extended line of multiple location points in the scheme that the above embodiments of the present application propose Angle be less than predetermined angle so that it is multiple splicing vertex tangent line space vector it is identical.
Herein it should be noted that above scheme, which is directed to, is not at same normal map coordinate with target object to be spliced On situation, since target object to be spliced is not at same normal map coordinate, any two target to be spliced Object cannot merge, and need the direction of the extended line by adjusting edge location point, so that splicing apex is tangential Space vector is identical, so that spliced stereo-picture does not have flaw.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned steps S251, by multiple splicing vertex Tangent line space vector is adjusted to further including following steps before identical:
Step S253, receives externally input adjustment instruction, and adjustment instruction is corresponding for triggering the multiple location points of adjustment Angle between extended line.
In an alternative embodiment, in 3DS MAX, adjust that multiple location points are corresponding to be prolonged by preset mode The direction of long line, externally input instruction can be the instruction by choosing location point and issuing by dragging mouse, can also be with It is the instruction for clicking directly on preset control and issuing.
In a kind of optinal plan that the above embodiments of the present application provide, it is corresponding to adjust multiple location points by above-mentioned steps S251 Extended line between angle be less than predetermined angle, comprising:
Step S255 adjusts the direction of the corresponding extended line of multiple location points by preset control, so that multiple location points Angle between corresponding extended line is less than predetermined angle.
From the foregoing, it will be observed that providing the method for sending adjustment instruction in the scheme that the above embodiments of the present application propose, reaching The angle between the corresponding extended line of multiple location points is set to be less than the technical effect of predetermined angle.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the joining method of target object in above-mentioned stereo-picture Stereo-picture in target object splicing apparatus, as shown in fig. 7, the device includes:
Fig. 7 is the structure of the splicing apparatus of target object in a kind of optional stereo-picture according to the embodiment of the present application 2 Schematic diagram.
As shown in fig. 7, the splicing apparatus of target object may include: judgment module 70, merging module in the stereo-picture 72 and adjustment module 74.
Wherein, judgment module 70, for judging whether any two target object to be spliced is in same textures texture Coordinate;Merging module 72, for inciting somebody to action in the case where any two target object to be spliced is in same textures texture coordinate The vertex for meeting preset condition in two target objects to be spliced is merged according to preset merging rule;Adjust module 74, for vertex set will to be spliced in the case where any two target object to be spliced is in different textures texture coordinates In it is each splicing vertex tangent line space vector adjust to identical;Wherein, splicing vertex is any two target pair to be spliced The point on splicing edge line as between, splices all splicing vertex for including on edge line and constitutes splicing vertex set.
Herein it should be noted that working as the case where any two target object to be spliced is in same textures texture coordinate Under, it is believed that above-mentioned two target object to be spliced is that two objects in same file therefore can be to above-mentioned two Vertex in object such as merges at the operation;The case where two target objects to be spliced are in different textures texture coordinates Under, it is believed that above-mentioned two target object to be spliced is two objects in two different files, therefore, above-mentioned two Vertex in target object, which cannot merge, to be operated.
From the foregoing, it will be observed that device provided by the above embodiments of the present application, by judging any two target pair to be spliced As if it is no in same textures texture coordinate;The feelings of same textures texture coordinate are in any two target object to be spliced Under condition, the vertex that preset condition is met in two target objects to be spliced is merged according to preset merging rule;? In the case that any two target object to be spliced is in different textures texture coordinates, by each splicing in splicing vertex set The tangent line space vector on vertex is adjusted to identical mode, by judging whether any target object to be spliced is in same textures Texture coordinate takes target object to be spliced different measures, has reached the normal direction one of the stitching portion of object to be spliced The purpose of cause to realize the technical effect for eliminating splicing flaw, and then solves in the stereo-picture of the prior art and includes Any two target object when being spliced, since the tangent line space vector of opposite vertexes when merging is recalculated, make Tangent line space vector and the master tangent space vector that edge must be spliced are inconsistent, and the technology of flaw is generated so as to cause stitching portion Problem.
It is worth noting that, in above-mentioned stereo-picture provided by the present application the joining method of target object it is unlimited be applied to The splicing of game role also can be widely applied for advertisement, video display, industrial design, architectural design, three-dimensional animation, multimedia system It is related to the part of stereo-picture splicing in the fields such as work, game, aided education and Engineering Visual.
Optionally, as shown in connection with fig. 8, above-mentioned merging module 72 includes: that the first acquisition module 80 and first merges submodule 82,
Wherein, first module 80 is obtained, for obtaining the vertex for meeting preset condition, wherein meet the top of preset condition Point includes the splicing vertex for being overlapped vertex and splicing edge line of overlapping position after two target object splicings to be spliced;First closes And submodule 82, obtain being overlapped vertex for screening from the vertex for meet preset condition, and merge vertex is overlapped.
Herein it should be noted that in the above-mentioned vertex for meeting preset condition, preset condition is can arbitrarily to obtain entirely The condition on the vertex being overlapped after portion's splicing.
From the foregoing, it will be observed that device provided by the above embodiments of the present application, obtains the vertex for meeting preset condition, wherein full The vertex of sufficient preset condition includes the coincidence vertex of overlapping position and splicing edge line after two target objects to be spliced splice Splice vertex, screening obtains being overlapped vertex from the vertex for meet preset condition, and merges vertex is overlapped.Above-mentioned apparatus By way of distinguishing and being overlapped vertex and edge vertices, the technical effect only merged to coincidence vertex is realized.
In a kind of optinal plan that the above embodiments of the present application provide, as shown in connection with fig. 9, above-mentioned apparatus further include: adjustment Submodule 90 and mark module 92,
Wherein, adjusting submodule 90, for adjusting the normal direction for splicing vertex to preset direction;Mark module 92, For to splicing apex marker vertex color.
Herein it should be noted that when for splicing apex marker vertex color, the vertex color of label can be compiled for any 3D Volume discernmible color of software, and the unlimited black with above-described embodiment.
Redundancy vertex is merged it should also be noted that, the purpose for splicing apex marker vertex color is to work as herein When, it is overlapped vertex from all meeting to filter out in the vertex of preset condition, the vertex of vertex color is as marked, it is possible thereby to know Dawn, the purpose of above scheme are the coincidence vertex distinguished meet in whole vertex of preset condition and splicing vertex, therefore, this Application above-mentioned steps are unlimited and are splicing apex marker vertex color, and can distinguish the equal energy of scheme for being overlapped vertex with splicing vertex It is enough in the application.
From the foregoing, it will be observed that the normal direction for splicing vertex is adjusted to default in the scheme that the above embodiments of the present application propose Direction, and to splicing apex marker vertex color.Above scheme is made by adjusting the normal direction for splicing vertex to preset direction The TBN information for obtaining the vertex of the edge in target object to be spliced can be unified, to produce after having reached elimination splicing The technical purpose of raw flaw, above scheme to splicing apex marker vertex color so that 3D software for editing to redundancy vertex into The technical purpose distinguished when row merging and be overlapped vertex and splicing vertex, and only coincidence vertex is merged.Therefore, above scheme Not only make the tangent line space vector on the splicing vertex of target object to be spliced unified, and distinguishes the coincidence top of target object Point and splicing vertex, thus reached during removing redundancy vertex, the technical effect that only coincidence vertex is merged, When further solving any two target object for including in the stereo-picture of the prior art and spliced, when due to merging The tangent line space vector of opposite vertexes is recalculated so that splicing edge tangent line space vector and master tangent space to Measure it is inconsistent, so as to cause stitching portion generate flaw the technical issues of.
In a kind of optinal plan that the above embodiments of the present application provide, as shown in connection with fig. 10, above-mentioned first merges submodule 82 include: that the first screening module 100 and second merges submodule 102,
Wherein, the first screening module 100, for filtering out the top of unmarked vertex color from the vertex for meet preset condition Point confirms the vertex of unmarked vertex color to be overlapped vertex;Second merges submodule 102, is overlapped vertex for will confirm that Vertex merges.
In a kind of optinal plan that the above embodiments of the present application provide, in conjunction with shown in Figure 11, above-mentioned second merges submodule 102 include: the second acquisition module 110, the second screening module 112, computing module 114 and determining module 116.
Wherein, second module 110 is obtained, the vertex on the coincidence vertex for obtaining any two target object to be spliced Information, wherein vertex information includes: the Texture Coordinates and tangent line space vector on vertex;Second screening module 112, is used for Identical first vertex of Texture Coordinates and second are screened in the vertex of any two target object overlapping position to be spliced Vertex;Computing module 114, for new tangent line space to be calculated by the tangent line space vector on the first vertex and the second vertex Vector;Determining module 116, for by the common Texture Coordinates in the first vertex and the second vertex and new tangent line space to Amount determines the vertex data for merging obtained new summit.
From the foregoing, it will be observed that obtaining any two target object to be spliced in the scheme that the above embodiments of the present application propose It is overlapped the vertex information on vertex, wherein vertex information includes: the Texture Coordinates and tangent line space vector on vertex, any Identical first vertex of Texture Coordinates and the second vertex are screened in the vertex of two target object overlapping positions to be spliced, are led to New tangent line space vector is calculated in the tangent line space vector for crossing the first vertex and the second vertex, passes through the first vertex and second The common Texture Coordinates in vertex and new tangent line space vector determine the vertex data for merging obtained new summit.It is above-mentioned Device calculates the top of new summit after merging by the vertex information on the coincidence vertex of acquisition any two target object to be spliced Point data realizes the technical effect for merging vertex, and then has reached the technical purpose of removal redundancy vertex.
In a kind of optinal plan that the above embodiments of the present application provide, above-mentioned preset condition is in two targets to be spliced In whole vertex of object, there is vertex identical with the Texture Coordinates on vertex.
In an alternative embodiment, as shown in connection with fig. 3, the vertex shown in Fig. 3 with multiple normal directions is For multiple vertex for meeting preset condition.
Herein it should be noted that the vertex for meeting preset condition is the vertex with same position, due to vertex Location information has corresponding relationship with the normal map coordinate on vertex, therefore works as the location information phase on two or more vertex Meanwhile inevitable normal map coordinate having the same, therefore, when acquisition meets the vertex of preset condition, vertex is in same method With the identical vertex in vertex or position of same coordinate value in line mapping coordinates, above-mentioned two conditions be it is of equal value, can be with Any one condition obtains the vertex for meeting preset condition as preset condition.
From the foregoing, it will be observed that preset condition is in two targets pair to be spliced in the scheme that the above embodiments of the present application propose In whole vertex of elephant, there is vertex identical with the Texture Coordinates on vertex, realize the skill for obtaining vertex to be combined Art purpose.
In a kind of optinal plan that the above embodiments of the present application provide, in conjunction with shown in Figure 12, above-mentioned adjustment module 74 includes:
The first adjustment submodule 120, for adjusting the angle between the corresponding extended line of multiple location points less than preset angle Degree, so that the tangent line space vector on multiple splicing vertex is identical, wherein location point is splicing vertex in Texture Coordinates Corresponding point.
From the foregoing, it will be observed that being adjusted between the corresponding extended line of multiple location points in the scheme that the above embodiments of the present application propose Angle be less than predetermined angle so that it is multiple splicing vertex tangent line space vector it is identical.
Herein it should be noted that above scheme, which is directed to, is not at same normal map coordinate with target object to be spliced On situation, since target object to be spliced is not at same normal map coordinate, any two target to be spliced Object cannot merge, and need the direction of the extended line by adjusting edge location point, so that splicing apex is tangential Space vector is identical, so that spliced stereo-picture does not have flaw.
In a kind of optinal plan that the above embodiments of the present application provide, in conjunction with shown in Figure 13, above-mentioned apparatus further include:
Receiving module 130, for receiving externally input adjustment instruction, adjustment instruction adjusts multiple location points for triggering Angle between corresponding extended line.
In a kind of optinal plan that the above embodiments of the present application provide, in conjunction with shown in Figure 14, above-mentioned the first adjustment submodule 120 include:
Second adjustment submodule 140, for adjusting the direction of the corresponding extended line of multiple location points by preset control, with The angle between the corresponding extended line of multiple location points is set to be less than predetermined angle.
From the foregoing, it will be observed that providing the method for sending adjustment instruction in the scheme that the above embodiments of the present application propose, reaching The angle between the corresponding extended line of multiple location points is set to be less than the technical effect of predetermined angle.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the joining method of target object in above-mentioned stereo-picture Server or terminal, as shown in figure 15, the server or terminal include:
Communication interface 1502 is set as obtaining any two target object to be spliced.
Memory 1504 is connect with communication interface 1502, is set as storage any two target object to be spliced.
Processor 1506 is connect with communication interface 1502 and memory 1504, is set as judging that any two are to be spliced Whether target object is in same textures texture coordinate;It is also configured to be in same patch in any two target object to be spliced In the case where figure texture coordinate, the vertex that preset condition is met in two target objects to be spliced is advised according to preset merging Then merge;It is also configured in the case where any two target object to be spliced is in different textures texture coordinates, it will The tangent line space vector on each splicing vertex is adjusted to identical in splicing vertex set.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can The program code of the joining method of target object in stereo-picture to store above-described embodiment 1.
Optionally, in the present embodiment, storage medium 902 is arranged to store the program generation for executing following steps Code:
S1, judges whether any two target object to be spliced is in same textures texture coordinate;
S2, in the case where any two target object to be spliced is in same textures texture coordinate, by two wait spell The vertex for meeting preset condition in the target object connect is merged according to preset merging rule;
S3 will splice vertex in the case where any two target object to be spliced is in different textures texture coordinates The tangent line space vector on each splicing vertex is adjusted to identical in set.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining to meet and preset The vertex of condition, wherein the vertex for meeting preset condition includes the coincidence of overlapping position after two target object splicings to be spliced The splicing vertex on vertex and splicing edge line;Screening obtains being overlapped vertex from the vertex for meet preset condition, and pushes up being overlapped Point merges.
Optionally, storage medium is also configured to store the program code for executing following steps: will splice vertex Normal direction is adjusted to preset direction;To splicing apex marker vertex color.
Optionally, storage medium is also configured to store the program code for executing following steps: presetting item from meeting The vertex that unmarked vertex color is filtered out in the vertex of part confirms the vertex of unmarked vertex color to be overlapped vertex;Will confirm that for The vertex for being overlapped vertex merges.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining any two The vertex information on the coincidence vertex of target object to be spliced, wherein vertex information includes: the Texture Coordinates on vertex and cuts Space of lines vector;Texture Coordinates identical first are screened in the vertex of any two target object overlapping position to be spliced Vertex and the second vertex;New tangent line space vector is calculated by the tangent line space vector on the first vertex and the second vertex; By the common Texture Coordinates in the first vertex and the second vertex and new tangent line space vector, the new top for merging and obtaining is determined The vertex data of point.
Optionally, storage medium is also configured to store the program code for executing following steps: preset condition be In whole vertex of two target objects to be spliced, there is vertex identical with the Texture Coordinates on vertex.
Optionally, storage medium is also configured to store the program code for executing following steps: adjusting multiple positions Angle between the corresponding extended line of point is less than predetermined angle, so that the tangent line space vector on multiple splicing vertex is identical, In, location point is splicing vertex corresponding point in Texture Coordinates.
Optionally, storage medium is also configured to store the program code for executing following steps: receiving externally input Adjustment instruction, adjustment instruction are used to trigger the angle adjusted between the corresponding extended line of multiple location points.
Optionally, storage medium is also configured to store the program code for executing following steps: passing through preset control The direction of the corresponding normal of multiple location points is adjusted, so that the angle between the corresponding extended line of multiple location points is less than preset angle Degree.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (18)

1. the joining method of target object in a kind of stereo-picture characterized by comprising
Judge whether any two target object to be spliced is in same textures texture coordinate;
It, will be described two in the case where any two target object to be spliced is in the same textures texture coordinate The vertex for meeting preset condition in target object to be spliced is merged according to preset merging rule;
In the case where any two target object to be spliced is in different textures texture coordinates, vertex set will be spliced In it is each splicing vertex tangent line space vector adjust to identical;
Wherein, the splicing vertex is the point on the splicing edge line between any two target object to be spliced, institute It states all splicing vertex for including on splicing edge line and constitutes the splicing vertex set;
The vertex for meeting preset condition in described two target objects to be spliced is merged according to preset merging rule, It include: to obtain the vertex for meeting the preset condition, wherein it includes described two to be spliced for meeting the vertex of the preset condition Target object splicing after overlapping position be overlapped vertex and it is described splicing edge line splicing vertex.
2. the method according to claim 1, wherein default by meeting in described two target objects to be spliced The vertex of condition is merged according to preset merging rule, further includes:
Screening obtains the coincidence vertex from the vertex for meeting the preset condition, and the coincidence vertex is merged.
3. according to the method described in claim 2, it is characterized in that, being screened from the vertex for meeting the preset condition To before the coincidence vertex, the method also includes:
The normal direction on the splicing vertex is adjusted to preset direction;
To splicing apex marker vertex color.
4. according to the method described in claim 3, it is characterized in that, being screened from the vertex for meeting the preset condition It is merged to the coincidence vertex, and by the coincidence vertex, comprising:
The vertex of unmarked vertex color is filtered out from the vertex for meeting the preset condition, confirms the unmarked vertex color Vertex is to be overlapped vertex;
It will confirm that and merged for the vertex for being overlapped vertex.
5. according to the method described in claim 4, it is characterized in that, will confirm that for it is described be overlapped vertex vertex merge, Include:
Obtain the vertex information on the coincidence vertex of any two target object to be spliced, wherein the vertex information packet It includes: the Texture Coordinates and tangent line space vector for being overlapped vertex;
The Texture Coordinates identical are screened in the vertex of any two target object overlapping position to be spliced One vertex and the second vertex;
New tangent line space vector is calculated by the tangent line space vector on first vertex and second vertex;
By the common Texture Coordinates in first vertex and second vertex and the new tangent line space vector, really Merge the vertex data of obtained new summit calmly.
6. according to the method described in claim 5, it is characterized in that, the preset condition is in described two targets to be spliced In whole vertex of object, there is vertex identical with the Texture Coordinates for being overlapped vertex.
7. the method according to claim 1, wherein the tangent line for splicing each splicing vertex in vertex set is empty Between vector adjust to identical, comprising:
The angle adjusted between the corresponding extended line of multiple location points is less than predetermined angle, so that the tangent line on multiple splicing vertex Space vector is identical, wherein the location point is the splicing vertex corresponding point in Texture Coordinates.
8. the method according to the description of claim 7 is characterized in that by it is the multiple splicing vertex tangent line space vector tune Before whole to identical, the method also includes: externally input adjustment instruction is received, the adjustment instruction is for triggering adjustment institute State the angle between the corresponding extended line of multiple location points.
9. the method according to the description of claim 7 is characterized in that the angle adjusted between the corresponding normal of multiple location points is small In predetermined angle, comprising:
The direction of the corresponding normal of the multiple location point is adjusted by preset control, is prolonged so that the multiple location point is corresponding Angle between long line is less than predetermined angle.
10. the splicing apparatus of target object in a kind of stereo-picture characterized by comprising
Judgment module, for judging whether any two target object to be spliced is in same textures texture coordinate;
Merging module, for the case where any two target object to be spliced is in the same textures texture coordinate Under, the vertex that preset condition is met in described two target objects to be spliced is merged according to preset merging rule;
Module is adjusted, in the case where any two target object to be spliced is in different textures texture coordinates, The tangent line space vector for splicing each splicing vertex in vertex set is adjusted to identical;
Wherein, the splicing vertex is the point on the splicing edge line between any two target object to be spliced, institute It states all splicing vertex for including on splicing edge line and constitutes the splicing vertex set;
The merging module includes: the first acquisition module, for obtaining the vertex for meeting the preset condition, wherein meets institute The vertex for stating preset condition includes the coincidence vertex of overlapping position and the splicing after described two target objects to be spliced splice The splicing vertex of edge line.
11. device according to claim 10, which is characterized in that the merging module further include:
First merges submodule, for from the vertex for meeting the preset condition screening obtain the coincidence vertex, and by institute Coincidence vertex is stated to merge.
12. device according to claim 11, which is characterized in that described device further include:
Adjusting submodule, for adjusting the normal direction on the splicing vertex to preset direction;
Mark module, for splicing apex marker vertex color.
13. device according to claim 12, which is characterized in that described first, which merges submodule, includes:
First screening module, for filtering out the vertex of unmarked vertex color from the vertex for meeting the preset condition, The vertex of the unmarked vertex color is confirmed to be overlapped vertex;
Second merges submodule, merges for will confirm that for the vertex for being overlapped vertex.
14. device according to claim 13, which is characterized in that described second, which merges submodule, includes:
Second obtains module, the vertex information on the coincidence vertex for obtaining any two target object to be spliced, In, the vertex information includes: the Texture Coordinates and tangent line space vector for being overlapped vertex;
Second screening module, for screening the texture in the vertex of any two target object overlapping position to be spliced Identical first vertex of mapping coordinates and the second vertex;
Computing module, for new tangent line to be calculated by the tangent line space vector on first vertex and second vertex Space vector;
Determining module, for by the common Texture Coordinates in first vertex and second vertex and described new cutting Space of lines vector determines the vertex data for merging obtained new summit.
15. device according to claim 14, which is characterized in that the preset condition is in described two mesh to be spliced In the whole vertex for marking object, there is vertex identical with the Texture Coordinates for being overlapped vertex.
16. device according to claim 10, which is characterized in that the adjustment module includes:
The first adjustment submodule, for adjusting the angle between the corresponding extended line of multiple location points less than predetermined angle, so that The tangent line space vectors for obtaining multiple splicing vertex are identical, wherein the location point is the splicing vertex in Texture Coordinates In corresponding point.
17. device according to claim 16, which is characterized in that described device further include:
Receiving module, for receiving externally input adjustment instruction, the adjustment instruction adjusts the multiple position for triggering Angle between the corresponding extended line of point.
18. device according to claim 16, which is characterized in that the first adjustment submodule includes:
Second adjustment submodule, for adjusting the direction of the corresponding extended line of the multiple location point by preset control, so that Angle between the corresponding extended line of the multiple location point is less than predetermined angle.
CN201610117909.4A 2016-03-01 2016-03-01 The joining method and device of target object in stereo-picture Active CN107154016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610117909.4A CN107154016B (en) 2016-03-01 2016-03-01 The joining method and device of target object in stereo-picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610117909.4A CN107154016B (en) 2016-03-01 2016-03-01 The joining method and device of target object in stereo-picture

Publications (2)

Publication Number Publication Date
CN107154016A CN107154016A (en) 2017-09-12
CN107154016B true CN107154016B (en) 2019-02-26

Family

ID=59792016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610117909.4A Active CN107154016B (en) 2016-03-01 2016-03-01 The joining method and device of target object in stereo-picture

Country Status (1)

Country Link
CN (1) CN107154016B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109603155B (en) 2018-11-29 2019-12-27 网易(杭州)网络有限公司 Method and device for acquiring merged map, storage medium, processor and terminal
CN110377259B (en) * 2019-07-19 2023-07-07 深圳前海达闼云端智能科技有限公司 Equipment hiding method, electronic equipment and storage medium
CN112580436B (en) * 2020-11-25 2022-05-03 重庆邮电大学 Electroencephalogram signal domain adaptation method based on Riemann manifold coordinate alignment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164848A (en) * 2011-12-09 2013-06-19 腾讯科技(深圳)有限公司 Image processing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8390621B2 (en) * 2007-01-24 2013-03-05 Take Two Interactive Software, Inc. System and method for calculating multi-resolution dynamic ambient occlusion
CN104732482B (en) * 2015-03-30 2018-06-12 中国人民解放军63655部队 A kind of multi-resolution image joining method based on control point
CN104809689B (en) * 2015-05-15 2018-03-30 北京理工大学深圳研究院 A kind of building point cloud model base map method for registering based on profile

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164848A (en) * 2011-12-09 2013-06-19 腾讯科技(深圳)有限公司 Image processing method and system

Also Published As

Publication number Publication date
CN107154016A (en) 2017-09-12

Similar Documents

Publication Publication Date Title
JP7370527B2 (en) Method and computer program for generating three-dimensional model data of clothing
CN107154016B (en) The joining method and device of target object in stereo-picture
CN108176048A (en) The treating method and apparatus of image, storage medium, electronic device
CN108447043A (en) A kind of image combining method, equipment and computer-readable medium
CN110211218A (en) Picture rendering method and device, storage medium and electronic device
CN108837510A (en) Methods of exhibiting and device, storage medium, the electronic device of information
CN102651064A (en) Image recognition apparatus, image recognition system, and image recognition method
EP3649623A1 (en) System and method of enhancing a 3d printed model
CN107219969B (en) 3D display method and apparatus
US10762682B2 (en) Skinning weights and underlying object suppression of three-dimensional images
CN109671141A (en) The rendering method and device of image, storage medium, electronic device
US8525846B1 (en) Shader and material layers for rendering three-dimensional (3D) object data models
CN108404414A (en) Fusion method, device, storage medium, processor and the terminal of picture
KR102091662B1 (en) Real-time method for rendering 3d modeling
KR20230110364A (en) Detection of false virtual objects
CN108765520A (en) Rendering intent and device, storage medium, the electronic device of text message
US20210350603A1 (en) Systems, methods, and devices for creating a spline-based video animation sequence
CN105117399A (en) Image search method and device
CN110120053A (en) Face's dressing processing method, device and equipment
US20170124753A1 (en) Producing cut-out meshes for generating texture maps for three-dimensional surfaces
CN108230434B (en) Image texture processing method and device, storage medium and electronic device
CN111710020B (en) Animation rendering method and device and storage medium
CN111429543B (en) Material generation method and device, electronic equipment and medium
CN108734756A (en) The production method and device of animation, storage medium, electronic device
KR101403579B1 (en) Method for providing on-line game supporting item customaizing by user and the system there of

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
GR01 Patent grant
GR01 Patent grant