CN107154016A - The joining method and device of destination object in stereo-picture - Google Patents

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

Info

Publication number
CN107154016A
CN107154016A CN201610117909.4A CN201610117909A CN107154016A CN 107154016 A CN107154016 A CN 107154016A CN 201610117909 A CN201610117909 A CN 201610117909A CN 107154016 A CN107154016 A CN 107154016A
Authority
CN
China
Prior art keywords
summit
splicing
spliced
destination object
space vector
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.)
Granted
Application number
CN201610117909.4A
Other languages
Chinese (zh)
Other versions
CN107154016B (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 transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from 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

Landscapes

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

Abstract

The invention discloses the joining method and device of destination object in a kind of stereo-picture.Wherein, this method includes:Judge whether any two destination object to be spliced is in same textures texture coordinate;In the case where any two destination object to be spliced is in same textures texture coordinate, the summit that preparatory condition is met in two destination objects to be spliced is merged according to default merging rule;In the case where any two destination object to be spliced is in different textures texture coordinates, the tangent line space vector for splicing each splicing summit in vertex set is adjusted to identical.The present invention solves any two destination object included in the stereo-picture of prior art when being spliced, because the tangent line space vector of opposite vertexes when merging is recalculated, so that the tangent line space vector and master tangent space vector of splicing edge are inconsistent, so as to cause the technical problem of stitching portion generation flaw.

Description

The joining method and device of destination object in stereo-picture
Technical field
The present invention relates to image processing field, in particular to destination object in a kind of stereo-picture Joining method and device.
Background technology
At present, in MMORPG (Massively Multiple-player Online Role-Playing Game, MMOPRG) in, it is necessary to provide various rolls for user player, And the corresponding a variety of moulding of every kind of role or equipment (including clothing, accessories etc.), and can be use Family player provides the function that freely can select and be arranged in pairs or groups, and user player can according to festival celebration, The factors such as mood arbitrarily change the projects such as expression, clothing, color development and the accessories of role.Played for user The basis that family provides above-mentioned functions is that system is provided with the basic model of various rolls, in user player Spliced when setting up role, it is necessary to choose different models;User player to self-role more During replacing equipment, without setting up role again, the position for needing to change need to be only changed, in user more When changing a certain position of role, it is necessary to which the different parts of different models are spliced.
In the splicing of above-mentioned model, due to there is excessive summit, the smoothness of game can be influenceed Degree, it is therefore desirable to the optimization to role's progressive energy, wherein, during performance optimizes, weight Will the step of be exactly that the redundancy vertex of role is removed by the way of summit is merged, to improve the stream of game Smooth degree, but, it is necessary to recalculate the summit on summit during the redundancy vertex of role is removed Parameter, after the tangent line space vector on summit is recalculated, can cause the tangent line of the new summit after overlapping Space vector and the tangent line space vector on former summit are inconsistent, so as to cause stitching portion flaw occur.
When being spliced for any two destination object included in the stereo-picture of prior art, by The tangent line space vector of opposite vertexes is recalculated when merging so that the tangent line of splicing edge Space vector and master tangent space vector are inconsistent, so as to cause the problem of stitching portion produces flaw, mesh It is preceding not yet to propose effective solution.
The content of the invention
The embodiments of the invention provide the joining method and device of destination object in a kind of stereo-picture, with When any two destination object included in the stereo-picture at least solving prior art is spliced, by The tangent line space vector of opposite vertexes is recalculated when merging so that the tangent line of splicing edge Space vector and master tangent space vector are inconsistent, so as to cause the technical problem of stitching portion generation flaw.
There is provided a kind of spelling of destination object in stereo-picture for one side according to embodiments of the present invention Method is connect, including:Judge whether any two destination object to be spliced is sat in same textures texture Mark;In the case where any two destination object to be spliced is in same textures texture coordinate, by two Closed according to the default rule that merges on the summit that preparatory condition is met in individual destination object to be spliced And;In the case where any two destination object to be spliced is in different textures texture coordinates, it will spell The tangent line space vector for connecing each splicing summit in vertex set is adjusted to identical;Wherein, summit is spliced For the point on the splicing edge line between any two destination object to be spliced, splice and wrapped on edge line All splicing summits contained constitute splicing vertex set.
Another aspect according to embodiments of the present invention, additionally provides destination object in a kind of stereo-picture Splicing apparatus, including:Judge module, for judging whether any two destination object to be spliced is located In same textures texture coordinate;Merging module, for being in any two destination object to be spliced In the case of same textures texture coordinate, preparatory condition will be met in two destination objects to be spliced Summit is merged according to default merging rule;Adjusting module, for be spliced in any two In the case that destination object is in different textures texture coordinates, each splicing in splicing vertex set is pushed up The tangent line space vector of point is adjusted to identical;Wherein, splicing summit is any two target to be spliced All splicing summits included on the point on splicing edge line between object, splicing edge line, which are constituted, spells Connect vertex set.
In embodiments of the present invention, using judging any two destination object to be spliced whether in same One textures texture coordinate;Same textures texture coordinate is in any two destination object to be spliced In the case of, the summit that preparatory condition is met in two destination objects to be spliced is merged according to default Rule is merged;The feelings of different textures texture coordinates are in any two destination object to be spliced Under condition, the tangent line space vector for splicing each splicing summit in vertex set is adjusted to identical mode, By judging whether any destination object to be spliced is in same textures texture coordinate, to target to be spliced Object takes different measures, has reached the normal direction of the stitching portion of two destination objects to be spliced Consistent purpose, it is achieved thereby that eliminating the technique effect of splicing flaw, and then solves prior art Stereo-picture in any two destination object that includes when being spliced, opposite vertexes during due to merging Tangent line space vector is recalculated so that the tangent line space vector and master tangent of splicing edge Space vector is inconsistent, so as to cause the technical problem of stitching portion generation flaw.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the one of the application Part, schematic description and description of the invention is used to explain the present invention, does not constitute to this hair Bright improper restriction.In the accompanying drawings:
Fig. 1 is the meter of the joining method of destination object in a kind of stereo-picture according to the embodiment of the present application The hardware block diagram of calculation machine terminal;
Fig. 2 is the joining method of destination object in a kind of stereo-picture according to the embodiment of the present application 1 Flow chart;
Fig. 3 is to unify normal direction according to the summit of destination object to be spliced in the embodiment of the present application 1 Preceding schematic diagram;
Fig. 4 is to unify normal direction according to the summit of destination object to be spliced in the embodiment of the present application 1 Schematic diagram afterwards;
Fig. 5 is according to the folder adjusted in the embodiment of the present application 1 between the corresponding extended line of multiple location points Angle is less than the schematic diagram of predetermined angle;
Fig. 6 be according to the corresponding extended line of the multiple location points of another adjustment in the embodiment of the present application 1 it Between angle be less than predetermined angle schematic diagram;
Fig. 7 is the splicing of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of device;
Fig. 8 is the splicing of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of device;
Fig. 9 is the splicing of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of device;
Figure 10 is the spelling of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of connection device;
Figure 11 is the spelling of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of connection device;
Figure 12 is the spelling of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of connection device;
Figure 13 is the spelling of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of connection device;
Figure 14 is the spelling of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of connection device;
Figure 15 is the splicing terminal of destination object in a kind of stereo-picture according to the embodiment of the present application Schematic diagram.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, Obviously, described embodiment is only the embodiment of a part of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work Under the premise of the every other embodiment that is obtained, should all belong to the scope of protection of the invention.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing " first ", " second " etc. be for distinguishing similar object, without for describe specific order or Precedence.It should be appreciated that the data so used can be exchanged in the appropriate case, to retouch here The embodiments of the invention stated can be real with the order in addition to those for illustrating or describing herein Apply.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is not arranged His includes, for example, contain the process of series of steps or unit, method, system, product or Equipment is not necessarily limited to those steps clearly listed or unit, but may include not list clearly Or for the intrinsic other steps of these processes, method, product or equipment or unit.
First, the part noun or term occurred during the embodiment of the present application is described is fitted For description below:
MMORPG:Massively Multiple-player Online Role-Playing Game are that is, big The online RPG of many people of type.
Naked mould:In being made in 3DSMax, textures and the model of material are also not provided with.
AVATAR systems:Also known as paper doll system, is generally used in computer game, is by subdivision Actor model or image simultaneously reconfigure to increase the system of character appearance quantity.Paper doll system is maximum Intention and business opportunity where be exactly " possibility " voluntarily arranged in pairs or groups, selected in that consumer that can leave in fact, Networking user can arbitrarily change expression, hair style, dress ornament, match somebody with somebody according to different festival celebrations or mood The polynary projects such as part even pet, in reflecting reality oneself and meet the hope of heart.
Summit:It is used for describing things in the point containing positional information, computer graphics in three dimensions Most basic unit.
Normal map:Normal map is exactly to make normal on each point of the convex-concave surface of the original, The direction of normal is marked by RGB color passage, it can be understood as putting down with former convex-concave surface Another capable different surface, but actually its simply smooth plane again.For vision effect For fruit, its efficiency is higher than original convex-concave surface, can if applying light source on location With the accurate direction of illumination and reflecting effect of the high level of detail of the Surface Creation for making level of detail relatively low.
TBN:Namely tangent line space, T is tangent vectors, and B is binormal vectors, and N is Normal vectors.In computer graphics, when calculating object illumination, the vector of light to summit will Turning initially to behind tangent line space again with normal map carry out illumination computing.
Embodiment 1
According to embodiments of the present invention there is provided it is a kind of obtain propelling data method embodiment, it is necessary to Illustrate, can be in such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated Computer system in perform, and, although show logical order in flow charts, but at certain , can be with the step shown or described by being performed different from order herein in the case of a little.Such as Fig. 1 institutes Show, this method includes:
The embodiment of the method that the embodiment of the present application 1 is provided can mobile terminal, terminal or Performed in the similar arithmetic unit of person.Exemplified by running on computer terminals, Fig. 1 is according to this Shen Please in a kind of stereo-picture of embodiment the terminal of the joining method of destination object hardware knot Structure block diagram.As shown in figure 1, terminal 10 can include one or more (only shown in figure One) (processor 102 can include but is not limited to Micro-processor MCV or can compile processor 102 Journey logical device FPGA etc. processing unit), memory 104, Yi Jiyong for data storage In the transmitting device 106 of communication function.It will appreciated by the skilled person that shown in Fig. 1 Structure is only signal, and it does not cause to limit to the structure of above-mentioned electronic installation.For example, computer is whole End 10 may also include than shown in Fig. 1 more either less components or with shown in Fig. 1 Different configurations.
Memory 104 can be used for the software program and module of storage application software, such as present invention implementation Programmed instruction/module in stereo-picture in example corresponding to the joining method of destination object, processor 102 are stored in software program and module in memory 104 by operation, so as to perform various work( It can apply and data processing, that is, realize the joining method of destination object in above-mentioned stereo-picture.Deposit Reservoir 104 may include high speed random access memory, may also include nonvolatile memory, such as one or Multiple magnetic storage devices, 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, and these are long-range Memory can pass through network connection to terminal 10.The example of above-mentioned network includes but is not limited to Internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network is specific Example may include the wireless network that the communication providerses of terminal 10 are provided.In an example, Transmitting device 106 includes a network adapter (Network Interface Controller, NIC), It can be connected to be communicated with internet by base station with other network equipments.In an example In, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, and it is used to pass through Wireless mode is communicated with internet.
According to embodiments of the present invention there is provided a kind of joining method of destination object in stereo-picture, such as Shown in Fig. 2, this method includes:
Step S21, judges whether any two destination object to be spliced is sat in same textures texture Mark.
Textures texture coordinate in the application above-mentioned steps S21 can be identified with UV, define picture On the information of position each put.These points are connected each other with 3D models, to determine surface line Manage the position of textures.
Step S23, the feelings of same textures texture coordinate are in any two destination object to be spliced Under condition, the summit that preparatory condition is met in two destination objects to be spliced is advised according to default merging Then merge.
In a kind of optional embodiment, when being spliced using 3DS MAX to destination object, Two destination objects to be spliced are in same textures texture coordinate, in order to remove produced after splicing superfluous Remaining summit, improves the smooth degree of game, can use the control function of being carried in 3DS MAX will The summit for meeting default condition is merged.
Herein it should be noted that can merge the summit of two coincidences in the process merged Into new summit, therefore, the vertex parameter of new summit is determined by the former summit of two coincidences, wherein, top Point parameter at least includes the UV of apex, and apex TBN, it is believed that two overlap and push up The UV of point is identical.
It should be further stated that, because the parameter of new summit is determined by the former summit of two coincidences, Then in the vertex parameter of new summit, the UV of new summit is identical with the former summit of two coincidences, but TBN The TBN calculating that former summit is overlapped by two is obtained, in the vertex parameter on the former summit overlapped with two TBN differ, therefore the flaw of splicing can be caused.The application is directed to the flaw that above-mentioned reason occurs Defect provides default merging rule and merges method so that in the splicing edge of object to be spliced Summit can keep the TBN information on former summit so as to greatest extent remove redundancy vertex it is same When, eliminate the flaw at splicing edge.
Step S25, the feelings of different textures texture coordinates are in any two destination object to be spliced Under condition, the tangent line space vector for splicing each splicing summit in vertex set is adjusted to identical;
Wherein, splicing summit is on the splicing edge line between any two destination object to be spliced All splicing summits included on point, splicing edge line constitute splicing vertex set.
Herein it should be noted that when any two destination object to be spliced is in same textures texture In the case of coordinate, it is believed that above-mentioned two destination object to be spliced is two in identical file Object, the operation such as therefore, it can to merge the summit in above-mentioned two object;Wait to spell at two In the case that the destination object connect is in different textures texture coordinates, it is believed that above-mentioned two is waited to spell The destination object connect is two objects in two different files, therefore, above-mentioned two destination object In summit can not merge and can operate.
From the foregoing, it will be observed that the scheme that the above embodiments of the present application are provided, by judging that any two is waited to spell Whether the destination object connect is in same textures texture coordinate;In the destination object that any two is to be spliced In the case of same textures texture coordinate, default bar will be met in two destination objects to be spliced The summit of part is merged according to default merging rule;At any two destination object to be spliced It is in the case of different textures texture coordinates, the tangent line for splicing each splicing summit in vertex set is empty Between vector adjust to identical mode, by judging whether any destination object to be spliced is in same patch Figure texture coordinate, takes destination object to be spliced different measures, has reached the spelling of object to be spliced The consistent purpose of the normal direction at place is connect, it is achieved thereby that the technique effect of splicing flaw is eliminated, and then When any two destination object included in the stereo-picture for solving prior art is spliced, due to The tangent line space vector of opposite vertexes is recalculated during merging so that the tangent line of splicing edge is empty Between vector it is inconsistent with master tangent space vector so that cause stitching portion generation flaw technical problem.
It is worth noting that, the application provide above-mentioned stereo-picture in destination object joining method not Limit with applied to game role splicing, also can be widely applied for advertisement, video display, industrial design, Architectural design, three-dimensional animation, multimedia making, game, aided education and Engineering Visual etc. are led It is related to the part of stereo-picture splicing in domain.
Still it is soft for what is spliced to stereo-picture in the application above-mentioned steps when noticeable Part can be any 3D softwares for editing for having and splicing function being carried out to stereo-picture, do not limit with it is above-mentioned 3D MAX.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S23 treats two The summit that preparatory condition is met in the destination object of splicing merges bag according to default merging rule Include following steps:
Step S231, obtains the summit for meeting preparatory condition, wherein, meet the summit of preparatory condition Include the spelling for overlapping summit and splicing edge line of overlapping position after two destination object splicings to be spliced Connect summit.
It is that previously selected game role changes showing for clothes in user as a kind of optional embodiment In example, user by using default control in 3DS MAX, by the dress ornament that user selects change to The corresponding position for the game role that user is pre-selected, now, the naked mould of dress ornament and game role have The position of coincidence, these overlap positions will include naked calligraphy or painting model body summit and dress ornament in same position Summit, i.e., the position of above-mentioned coincidence include multiple summits.What is occurred in above-mentioned splicing is more In individual summit, there is a class summit to be in the stitching portion of the edge of dress ornament, i.e. dress ornament and naked mould, at these In the summit of dress ornament Yu naked mould stitching portion be the splicing summit of above-mentioned splicing edge line, in above-mentioned coincidence Position include multiple summits in, remove splicing summit summit be overlap summit.
Step S233, screening obtains overlapping summit from the summit for meeting preparatory condition, and will overlap Summit is merged.
In a kind of optional embodiment, clothes are changed still by previously selected game role of above-mentioned user Exemplified by dress, after the summit for meeting preparatory condition is got, the summit carry out area of preparatory condition will be met Point, so that for the purpose of distinguishing coincidence summit and splicing summit, then to distinguishing the coincidence top in result Point is merged.
In the above-described embodiments, it is necessary to which explanation, is closed to distinguishing the coincidence summit in result And purpose be reduce game role in redundancy vertex so that amount of compressed data with cause game more For smoothness.It should be noted that the summit of merging is more when opposite vertexes are merged, the stream of game Smooth degree is better, but the careful degree of picture can then decline therewith.
In a kind of optionally example, clothes are changed still by previously selected game role of above-mentioned family Exemplified by, when overlapping summit including 100000 summits, if 100000 summits, which are merged, to be turned into 20000 summits, the size of game role is compressed, but the fine degree of game role is same Compressed, if 100000 summits, which are merged, turns into 40000 summits, now game role Size be more than role's size when being compressed to 10000 summits, but the careful degree of thin game role More than careful degree when being compressed to 10000 summits.Therefore when opposite vertexes are merged, remove The size degree of game role is met, is still to take into account the careful degree of game role.Specifically to target pair The summit of elephant is incorporated into the number of new summit, is determined by the property and player experience of game itself.
Herein it should be noted that meeting the summit of preparatory condition above-mentioned, preparatory condition is any The condition on summit overlapped after all splicings can be obtained.
From the foregoing, it will be observed that the scheme that the above embodiments of the present application are provided, obtains the top for meeting preparatory condition Point, wherein, meeting the summit of preparatory condition includes overlapping position after two destination object splicings to be spliced Overlap summit and splicing edge line splicing summit, screen and obtain from the summit for meeting preparatory condition Summit is overlapped, and is merged summit is overlapped.Such scheme overlaps summit and edge top by distinguishing The mode of point, is realized only to overlapping the technique effect that summit is merged.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S233, from satisfaction The step of before screening obtains overlapping summit in the summit of preparatory condition, also includes:
Step S2331, the normal direction for splicing summit is adjusted to preset direction.
In a kind of optional embodiment, Fig. 3 is according to target to be spliced in the embodiment of the present application 1 The schematic diagram that the summit of object is unified before normal direction, with reference to shown in Fig. 3, figure middle conductor crosspoint is used In the summit for characterizing destination object to be spliced, what apex extended out is not belonging to flat residing for summit The line segment in face is used for the normal direction for characterizing the summit.Understood with reference to Fig. 3, in the method by summit is spliced Line direction is adjusted to before preset direction, the summits different with multiple normal directions of same position, Fig. 4 is to be unified according to the summit of destination object to be spliced in the embodiment of the present application 1 after normal direction Schematic diagram, with reference to shown in Fig. 4, the normal on summit is spliced using preset control adjustment in 3DS MAX It is the normal side on multiple summits of same position shown in Fig. 4 that direction, which adjusts the result to preset direction, To all same.
Herein it should be noted that being adjusted by the normal direction for splicing summit to the realization of preset direction During, above-mentioned preset direction is believed by 3DS MAX according to the TBN on multiple summits of same position Breath, which is calculated, to be obtained.
Step S2333, to splicing apex marker summit color.
Can be black by splicing apex marker in a kind of optional embodiment.
Herein it should be noted that when for splicing apex marker summit color, the summit color of mark can be with For any discernmible color of 3D softwares for editing, without limiting and the black in above-described embodiment.
Herein it should also be noted that, the purpose for splicing apex marker summit color is when to redundancy top When point is merged, coincidence summit is filtered out from the summit for all meeting preparatory condition, is as marked The summit of summit color, it is possible thereby to know, the purpose of such scheme, which is to distinguish, meets preparatory condition Coincidence summit and splicing summit, therefore, the application above-mentioned steps in whole summits are not limited with being splicing Apex marker summit color, and can distinguish overlap summit and splicing summit scheme can be used in this Shen Please.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, the normal direction on summit will be spliced Adjust to preset direction, and to splicing apex marker summit color.Such scheme is by will splice summit Normal direction is adjusted to preset direction so that the summit of the edge in destination object to be spliced TBN information can be unified, so that the technical purpose for eliminating the flaw produced after splicing has been reached, it is above-mentioned Scheme is to splicing apex marker summit color so that 3D softwares for editing to redundancy vertex when merging Distinguish and overlap summit and splicing summit, and only to overlapping the technical purpose that summit is merged.Therefore, Such scheme not only make it that the tangent line space vector on the splicing summit of destination object to be spliced is unified, and The coincidence summit and splicing summit of destination object have been distinguished, the mistake of redundancy vertex is being removed so as to reach Cheng Zhong, only to overlapping the technique effect that summit is merged, further solves the vertical of prior art When any two destination object included in body image is spliced, the tangent line of opposite vertexes during due to merging Space vector is recalculated so that the tangent line space vector of splicing edge and master tangent space Vector is inconsistent, so as to cause the technical problem of stitching portion generation flaw.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S233, from satisfaction Screening is obtained overlapping summit in the summit of preparatory condition, and coincidence summit is merged including following step Suddenly:
Step S2335, filters out the summit of unmarked summit color from the summit for meeting preparatory condition, Confirm the summit of unmarked summit color to overlap summit.
Step S2337, will confirm that and merged to overlap the summit on summit.
In a kind of optional embodiment, clothes are changed by previously selected game role of above-mentioned user Exemplified by, exemplified by the summit color to splicing apex marker is black, preparatory condition is met when acquiring Whole summits when, traversal all meets the summit of preparatory condition, and confirms the top of unmarked summit color Point is coincidence summit to be combined.
, may be by herein it should be noted that when handling game role or stereo-picture In a variety of demands, summit color is marked in opposite vertexes, so if included mark summit in summit The summit of color, then to splicing apex marker summit color when, it is necessary to labeled summit Se Zuoyi areas Point.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, from the summit for meeting preparatory condition In filter out the summit of unmarked summit color, confirm that the summit of unmarked summit color, will to overlap summit The summit for confirming as overlapping summit is merged.Such scheme, which has reached, is meeting the whole of preparatory condition Screening overlaps the technique effect on summit in summit, and is merged to overlapping summit, has reached that elimination exists The technical purpose for the redundancy vertex that the splicing of destination object is produced in stereo-picture.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S2337 will confirm that Summit for coincidence summit is merged, including:
Step S23371, obtains the summit letter on the coincidence summit of any two destination object to be spliced Breath, wherein, vertex information includes:The Texture Coordinates and tangent line space vector on summit.
Step S23373, line is screened in the summit of any two destination object overlapping position to be spliced Manage the first summit of mapping coordinates identical and the second summit.
Step S23375, is calculated by the tangent line space vector on the first summit and the second summit and obtains new Tangent line space vector.
Step S23377, by the common Texture Coordinates in the first summit and the second summit and newly Tangent line space vector, it is determined that merging the vertex data of obtained new summit.
In a kind of optional embodiment, pass through the tangent line space vector meter on the first summit and the second summit Calculation, which obtains new tangent line space vector, to be obtained by following code:
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, obtaining any two to be spliced The vertex information on the coincidence summit of destination object, wherein, vertex information includes:The texture mapping on summit Coordinate and tangent line space vector, are screened in the summit of any two destination object overlapping position to be spliced The summit of Texture Coordinates identical first and the second summit, pass through cutting for the first summit and the second summit Space of lines vector, which is calculated, obtains new tangent line space vector, common by the first summit and the second summit Texture Coordinates and new tangent line space vector, it is determined that merging the vertex data of obtained new summit. Above-mentioned steps by obtain any two destination object to be spliced coincidence summit vertex information, meter The vertex data of new summit after merging is calculated, the technique effect for merging summit is realized, and then reached and go Except the technical purpose of redundancy vertex.
In a kind of alternative that the above embodiments of the present application are provided, preparatory condition is to be spliced at two Destination object whole summits in, with the Texture Coordinates identical summit with summit.
In a kind of optional embodiment, with reference to shown in Fig. 3, there are multiple normals shown in Fig. 3 The summit in direction is multiple summits for meeting preparatory condition.
Herein it should be noted that the summit for meeting preparatory condition is the summit with same position, Because the positional information on summit and the normal map coordinate on summit have corresponding relation, therefore when two When the positional information on individual or multiple summits is identical, necessarily with identical normal map coordinate, therefore, When acquisition meets the summit of preparatory condition, summit has same coordinate in same normal map coordinate The summit of value, or position identical summit, above-mentioned two conditions be it is of equal value, can be with any one Condition obtains the summit for meeting preparatory condition as preparatory condition.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, preparatory condition is to wait to spell at two It is real with the Texture Coordinates identical summit with summit in whole summits of the destination object connect The technical purpose on acquisition summit to be combined is showed.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S25 is spelled multiple The tangent line space vector for connecing summit is adjusted to identical and comprised the following steps:
Step S251, the angle adjusted between the corresponding extended line of multiple location points is less than predetermined angle, So that the tangent line space vector for obtaining multiple splicing summits is identical, wherein, location point is splicing summit in line Manage corresponding point in mapping coordinates.
In above-mentioned steps, Fig. 5 is corresponding according to multiple location points are adjusted in the embodiment of the present application 1 Angle between extended line is less than the schematic diagram of predetermined angle, with reference to shown in Fig. 5, in figure edge with The intersection point of other line segments is location point, and the direction of the corresponding extended line of location point is point as shown in Figure 5 A to point B direction, the direction of the extended line of multiple location points is as illustrated by arrows 5.
In a kind of optional embodiment, the angle adjusted between the corresponding extended line of multiple location points is small In the result after predetermined angle as shown in Figure 5 and Figure 6, on the point inside textures edge to textures edge Location point line direction be location point extended line direction.
In above-mentioned steps, predetermined angle can be 15 degree.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, adjusting multiple location points corresponding Angle between extended line is less than predetermined angle, so as to obtain the tangent line space vector phase on multiple splicing summits Together.
Herein it should be noted that such scheme with destination object to be spliced for being not at same method Situation on line mapping coordinates, because destination object to be spliced is not at same normal map coordinate, Therefore any two destination object to be spliced can not be merged, it is necessary to by adjusting edge position The direction of the extended line of point so that the tangential space vector of splicing apex is identical, so that splicing Stereo-picture afterwards does not have flaw.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S251 will be many The tangent line space vector on individual splicing summit is adjusted to identical also to be comprised the following steps before:
Step S253, receives the adjust instruction of outside input, and adjust instruction, which is used to trigger, adjusts multiple Angle between the corresponding extended line of location point.
In a kind of optional embodiment, in 3DS MAX, adjust multiple by default mode The direction of the corresponding extended line of location point, the instruction of outside input can be by choosing location point and leading to Cross the instruction that sends of dragging mouse or click directly on the instruction that default control is sent.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned steps S251 is adjusted many Angle between the corresponding extended line of individual location point is less than predetermined angle, including:
Step S255, the direction of the corresponding extended line of multiple location points is adjusted 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 there is provided send adjust instruction in the scheme that the above embodiments of the present application are proposed Method, has reached the technology for making the angle between the corresponding extended line of multiple location points be less than predetermined angle Effect.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore by it all Be expressed as a series of combination of actions, but those skilled in the art should know, the present invention not by The limitation of described sequence of movement, because according to the present invention, some steps can be using other orders Or carry out simultaneously.Secondly, those skilled in the art should also know, reality described in this description Apply example and belong to preferred embodiment, involved action and the module not necessarily present invention are necessary.
Through the above description of the embodiments, those skilled in the art can be understood that root According to the method for above-described embodiment the mode of required general hardware platform can be added to realize by software, when So can also the former be more preferably embodiment by hardware, but in many cases.Based on such reason Solution, the part that technical scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions are make it that a station terminal equipment (can To be mobile phone, computer, server, or network equipment etc.) perform each embodiment institute of the invention The method stated.
Embodiment 2
According to embodiments of the present invention, additionally provide a kind of for implementing destination object in above-mentioned stereo-picture Joining method stereo-picture in destination object splicing apparatus, as shown in fig. 7, the device includes:
Fig. 7 is the splicing of destination object in a kind of optional stereo-picture according to the embodiment of the present application 2 The structural representation of device.
As shown in fig. 7, the splicing apparatus of destination object can include in the stereo-picture:Judge module 70th, merging module 72 and adjusting module 74.
Wherein, judge module 70, for judging any two destination object to be spliced whether in same One textures texture coordinate;Merging module 72, it is same for being in any two destination object to be spliced In the case of one textures texture coordinate, the top of preparatory condition will be met in two destination objects to be spliced Point is merged according to default merging rule;Adjusting module 74, for be spliced in any two In the case that destination object is in different textures texture coordinates, each splicing in splicing vertex set is pushed up The tangent line space vector of point is adjusted to identical;Wherein, splicing summit is any two target to be spliced All splicing summits included on the point on splicing edge line between object, splicing edge line, which are constituted, spells Connect vertex set.
Herein it should be noted that when any two destination object to be spliced is in same textures texture In the case of coordinate, it is believed that above-mentioned two destination object to be spliced is two in identical file Object, the operation such as therefore, it can to merge the summit in above-mentioned two object;Wait to spell at two In the case that the destination object connect is in different textures texture coordinates, it is believed that above-mentioned two is waited to spell The destination object connect is two objects in two different files, therefore, above-mentioned two destination object In summit can not merge and can operate.
From the foregoing, it will be observed that the device that the above embodiments of the present application are provided, by judging that any two is waited to spell Whether the destination object connect is in same textures texture coordinate;In the destination object that any two is to be spliced In the case of same textures texture coordinate, default bar will be met in two destination objects to be spliced The summit of part is merged according to default merging rule;At any two destination object to be spliced It is in the case of different textures texture coordinates, the tangent line for splicing each splicing summit in vertex set is empty Between vector adjust to identical mode, by judging whether any destination object to be spliced is in same patch Figure texture coordinate, takes destination object to be spliced different measures, has reached the spelling of object to be spliced The consistent purpose of the normal direction at place is connect, it is achieved thereby that the technique effect of splicing flaw is eliminated, and then When any two destination object included in the stereo-picture for solving prior art is spliced, due to The tangent line space vector of opposite vertexes is recalculated during merging so that the tangent line of splicing edge is empty Between vector it is inconsistent with master tangent space vector so that cause stitching portion generation flaw technical problem.
It is worth noting that, the application provide above-mentioned stereo-picture in destination object joining method not Limit with applied to game role splicing, also can be widely applied for advertisement, video display, industrial design, Architectural design, three-dimensional animation, multimedia making, game, aided education and Engineering Visual etc. are led It is related to the part of stereo-picture splicing in domain.
Optionally, with reference to shown in Fig. 8, above-mentioned merging module 72 includes:The He of first acquisition module 80 First merges submodule 82,
Wherein, the first acquisition module 80, the summit of preparatory condition is met for obtaining, wherein, meet The summit of preparatory condition include after two destination objects splicings to be spliced the coincidence summit of overlapping position and Splice the splicing summit of edge line;First merges submodule 82, for from the summit for meeting preparatory condition Middle screening obtains overlapping summit, and is merged summit is overlapped.
Herein it should be noted that meeting the summit of preparatory condition above-mentioned, preparatory condition is any The condition on summit overlapped after all splicings can be obtained.
From the foregoing, it will be observed that the device that the above embodiments of the present application are provided, obtains the top for meeting preparatory condition Point, wherein, meeting the summit of preparatory condition includes overlapping position after two destination object splicings to be spliced Overlap summit and splicing edge line splicing summit, screen and obtain from the summit for meeting preparatory condition Summit is overlapped, and is merged summit is overlapped.Said apparatus overlaps summit and edge top by distinguishing The mode of point, is realized only to overlapping the technique effect that summit is merged.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Fig. 9, said apparatus Also include:Submodule 90 and mark module 92 are adjusted,
Wherein, submodule 90 is adjusted, for the normal direction for splicing summit to be adjusted to preset direction; Mark module 92, for splicing apex marker summit color.
Herein it should be noted that when for splicing apex marker summit color, the summit color of mark can be with For any discernmible color of 3D softwares for editing, without limiting and the black in above-described embodiment.
Herein it should also be noted that, the purpose for splicing apex marker summit color is when to redundancy top When point is merged, coincidence summit is filtered out from the summit for all meeting preparatory condition, is as marked The summit of summit color, it is possible thereby to know, the purpose of such scheme, which is to distinguish, meets preparatory condition Coincidence summit and splicing summit, therefore, the application above-mentioned steps in whole summits are not limited with being splicing Apex marker summit color, and can distinguish overlap summit and splicing summit scheme can be used in this Shen Please.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, the normal direction on summit will be spliced Adjust to preset direction, and to splicing apex marker summit color.Such scheme is by will splice summit Normal direction is adjusted to preset direction so that the summit of the edge in destination object to be spliced TBN information can be unified, so that the technical purpose for eliminating the flaw produced after splicing has been reached, it is above-mentioned Scheme is to splicing apex marker summit color so that 3D softwares for editing to redundancy vertex when merging Distinguish and overlap summit and splicing summit, and only to overlapping the technical purpose that summit is merged.Therefore, Such scheme not only make it that the tangent line space vector on the splicing summit of destination object to be spliced is unified, and The coincidence summit and splicing summit of destination object have been distinguished, the mistake of redundancy vertex is being removed so as to reach Cheng Zhong, only to overlapping the technique effect that summit is merged, further solves the vertical of prior art When any two destination object included in body image is spliced, the tangent line of opposite vertexes during due to merging Space vector is recalculated so that the tangent line space vector of splicing edge and master tangent space Vector is inconsistent, so as to cause the technical problem of stitching portion generation flaw.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Figure 10, above-mentioned the One merging submodule 82 includes:First screening module 100 and second merges submodule 102,
Wherein, the first screening module 100, is not marked for being filtered out from the summit for meeting preparatory condition Remember the summit of summit color, confirm the summit of unmarked summit color to overlap summit;Second merges submodule 102, merged for will confirm that to overlap the summit on summit.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Figure 11, above-mentioned the Two merging submodules 102 include:Second acquisition module 110, the second screening module 112, calculating mould Block 114 and determining module 116.
Wherein, the second acquisition module 110, the weight for obtaining any two destination object to be spliced The vertex information on summit is closed, wherein, vertex information includes:The Texture Coordinates and tangent line on summit are empty Between vector;Second screening module 112, in any two destination object overlapping position to be spliced The first summit of Texture Coordinates identical and the second summit are screened in summit;Computing module 114, is used Calculated in the tangent line space vector by the first summit and the second summit and obtain new tangent line space vector; Determining module 116, for passing through common Texture Coordinates in the first summit and the second summit and new Tangent line space vector, it is determined that merging the vertex data of obtained new summit.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, obtaining any two to be spliced The vertex information on the coincidence summit of destination object, wherein, vertex information includes:The texture mapping on summit Coordinate and tangent line space vector, are screened in the summit of any two destination object overlapping position to be spliced The summit of Texture Coordinates identical first and the second summit, pass through cutting for the first summit and the second summit Space of lines vector, which is calculated, obtains new tangent line space vector, common by the first summit and the second summit Texture Coordinates and new tangent line space vector, it is determined that merging the vertex data of obtained new summit. Said apparatus by obtain any two destination object to be spliced coincidence summit vertex information, meter The vertex data of new summit after merging is calculated, the technique effect for merging summit is realized, and then reached and go Except the technical purpose of redundancy vertex.
In a kind of alternative that the above embodiments of the present application are provided, above-mentioned preparatory condition is to be treated at two In whole summits of the destination object of splicing, with the Texture Coordinates identical summit with summit.
In a kind of optional embodiment, with reference to shown in Fig. 3, there are multiple normals shown in Fig. 3 The summit in direction is multiple summits for meeting preparatory condition.
Herein it should be noted that the summit for meeting preparatory condition is the summit with same position, Because the positional information on summit and the normal map coordinate on summit have corresponding relation, therefore when two When the positional information on individual or multiple summits is identical, necessarily with identical normal map coordinate, therefore, When acquisition meets the summit of preparatory condition, summit has same coordinate in same normal map coordinate The summit of value, or position identical summit, above-mentioned two conditions be it is of equal value, can be with any one Condition obtains the summit for meeting preparatory condition as preparatory condition.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, preparatory condition is to wait to spell at two It is real with the Texture Coordinates identical summit with summit in whole summits of the destination object connect The technical purpose on acquisition summit to be combined is showed.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Figure 12, above-mentioned tune Mould preparation block 74 includes:
First adjustment submodule 120, for adjusting the angle between the corresponding extended line of multiple location points Less than predetermined angle, so that the tangent line space vector for obtaining multiple splicing summits is identical, wherein, location point For splicing summit corresponding point in Texture Coordinates.
From the foregoing, it will be observed that in the scheme that the above embodiments of the present application are proposed, adjusting multiple location points corresponding Angle between extended line is less than predetermined angle, so as to obtain the tangent line space vector phase on multiple splicing summits Together.
Herein it should be noted that such scheme with destination object to be spliced for being not at same method Situation on line mapping coordinates, because destination object to be spliced is not at same normal map coordinate, Therefore any two destination object to be spliced can not be merged, it is necessary to by adjusting edge position The direction of the extended line of point so that the tangential space vector of splicing apex is identical, so that splicing Stereo-picture afterwards does not have flaw.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Figure 13, above-mentioned dress Putting also includes:
Receiving module 130, the adjust instruction for receiving outside input, adjust instruction, which is used to trigger, to be adjusted Angle between the corresponding extended line of whole multiple location points.
In a kind of alternative that the above embodiments of the present application are provided, with reference to shown in Figure 14, above-mentioned the One adjustment submodule 120 includes:
Second adjustment submodule 140, for adjusting the corresponding extension of multiple location points by preset control The direction of line, so that the angle between the corresponding extended line of multiple location points is less than predetermined angle.
From the foregoing, it will be observed that there is provided send adjust instruction in the scheme that the above embodiments of the present application are proposed Method, has reached the technology for making the angle between the corresponding extended line of multiple location points be less than predetermined angle Effect.
Embodiment 3
According to embodiments of the present invention, additionally provide a kind of for implementing destination object in above-mentioned stereo-picture Joining method server or terminal, as shown in figure 15, the server or terminal include:
Communication interface 1502, is set to obtain any two destination object to be spliced.
Memory 1504, is connected with communication interface 1502, is set to storage any two to be spliced Destination object.
Processor 1506, is connected with communication interface 1502 and memory 1504, is set to judge any Whether two destination objects to be spliced are in same textures texture coordinate;It is also configured in any two In the case that destination object to be spliced is in same textures texture coordinate, by two targets to be spliced The summit that preparatory condition is met in object is merged according to default merging rule;It is also configured in office In the case that two destination objects to be spliced of meaning are in different textures texture coordinates, vertex set will be spliced The tangent line space vector on each splicing summit is adjusted to identical in conjunction.
Alternatively, the specific example in the present embodiment may be referred in above-described embodiment 1 and embodiment 2 Described example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on The journey of the joining method of destination object in the stereo-picture of above-described embodiment 1 can be stored by stating storage medium Sequence code.
Alternatively, in the present embodiment, storage medium 902, which is arranged to storage, is used to perform following step Rapid program code:
S1, judges whether any two destination object to be spliced is in same textures texture coordinate;
S2, in the case where any two destination object to be spliced is in same textures texture coordinate, The summit that preparatory condition is met in two destination objects to be spliced is entered according to default merging rule Row merges;
S3, in the case where any two destination object to be spliced is in different textures texture coordinates, The tangent line space vector for splicing each splicing summit in vertex set is adjusted to identical.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain The summit for meeting preparatory condition is taken, wherein, meeting the summit of preparatory condition includes two mesh to be spliced Mark the splicing summit for overlapping summit and splicing edge line of overlapping position after object splicing;Bar is preset from meeting Screening obtains overlapping summit in the summit of part, and is merged summit is overlapped.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Will The normal direction on splicing summit is adjusted to preset direction;To splicing apex marker summit color.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:From The summit of unmarked summit color is filtered out in the summit for meeting preparatory condition, unmarked summit color is confirmed Summit is coincidence summit;It will confirm that and merged to overlap the summit on summit.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain The vertex information on the coincidence summit of any two destination object to be spliced is taken, wherein, vertex information bag Include:The Texture Coordinates and tangent line space vector on summit;In the destination object that any two is to be spliced The first summit of Texture Coordinates identical and the second summit are screened in the summit of overlapping position;Pass through first The tangent line space vector on summit and the second summit calculates and obtains new tangent line space vector;Pass through the first top Point and the common Texture Coordinates in the second summit and new tangent line space vector, it is determined that merging what is obtained The vertex data of new summit.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:In advance If condition is in whole summits of two destination objects to be spliced, with the texture mapping with summit Coordinate identical summit.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Adjust Angle between the corresponding extended line of whole multiple location points is less than predetermined angle so that multiple splicing tops The tangent line space vector of point is identical, wherein, location point correspondence in Texture Coordinates for splicing summit Point.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Receive The adjust instruction of outside input, adjust instruction be used to triggering the corresponding extended line of the multiple location points of adjustment it Between angle.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:It is logical The direction that preset control adjusts the corresponding normal of multiple location points is crossed, is prolonged so that multiple location points are corresponding Angle between long line is less than predetermined angle.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Alternatively, the specific example in the present embodiment may be referred in above-described embodiment 1 and embodiment 2 Described example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment realized using in the form of SFU software functional unit and as Independent production marketing or in use, the storage medium that above computer can be read can be stored in. Understood based on such, what technical scheme substantially contributed to prior art in other words The all or part of part or the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in storage medium, including some instructions are to cause one or more to calculate Machine equipment (can be personal computer, server or network equipment etc.) performs each implementation of the present invention The all or part of step of example methods described.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, some reality The part for not having to be described in detail in example is applied, the associated description of other embodiment is may refer to.
, can in several embodiments provided herein, it should be understood that disclosed client Realize by another way.Wherein, device embodiment described above be only it is schematical, The division of such as described unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode, such as multiple units or component can combine or be desirably integrated into another system, Or some features can be ignored, or do not perform.Another, shown or discussed coupling each other Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or Communication connection, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, The part shown as unit can be or may not be physical location, you can with positioned at a ground Side, or can also be distributed on multiple NEs.It can select therein according to the actual needs Some or all of unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit In or unit be individually physically present, can also two or more units be integrated in In one unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ soft The form of part functional unit is realized.
Described above is only the preferred embodiment of the present invention, it is noted that for the art For those of ordinary skill, under the premise without departing from the principles of the invention, some improvement can also be made And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (18)

1. the joining method of destination object in a kind of stereo-picture, it is characterised in that including:
Judge whether any two destination object to be spliced is in same textures texture coordinate;
The same textures texture coordinate is in any two destination object to be spliced In the case of, will be met in described two destination objects to be spliced the summit of preparatory condition according to Default merging rule is merged;
The feelings of different textures texture coordinates are in any two destination object to be spliced Under condition, the tangent line space vector for splicing each splicing summit in vertex set is adjusted to identical;
Wherein, the splicing summit is the spelling between any two destination object to be spliced Connect all splicing summits included on the point on edge line, the splicing edge line and constitute described spell Connect vertex set.
2. according to the method described in claim 1, it is characterised in that by described two targets to be spliced The summit that preparatory condition is met in object is merged according to default merging rule, including:
The summit for meeting the preparatory condition is obtained, wherein, meet the summit of the preparatory condition Coincidence summit and the spelling including overlapping position after described two destination object splicings to be spliced Connect the splicing summit of edge line;
Screening obtains the coincidence summit from the summit for meeting the preparatory condition, and will be described Summit is overlapped to merge.
3. method according to claim 2, it is characterised in that meet the preparatory condition from described Summit in before screening obtains the coincidence summit, methods described also includes:
The normal direction on the splicing summit is adjusted to preset direction;
To splicing apex marker summit color.
4. method according to claim 3, it is characterised in that meet the preparatory condition from described Summit in screening obtain the coincidence summit, and the coincidence summit is merged, including:
The summit of unmarked summit color is filtered out from the summit for meeting the preparatory condition, is confirmed The summit of the unmarked summit color is coincidence summit;
It will confirm that the summit for the coincidence summit is merged.
5. method according to claim 4, it is characterised in that will confirm that as the coincidence summit Summit is merged, including:
The vertex information on the coincidence summit of any two destination object to be spliced is obtained, its In, the vertex information includes:The Texture Coordinates and tangent line space vector on the summit;
The line is screened in the summit of any two destination object overlapping position to be spliced Manage the first summit of mapping coordinates identical and the second summit;
Calculated by the tangent line space vector on first summit and second summit and obtain new Tangent line space vector;
By common Texture Coordinates in first summit and second summit and described New tangent line space vector, it is determined that merging the vertex data of obtained new summit.
6. method according to claim 5, it is characterised in that the preparatory condition is described two In whole summits of individual destination object to be spliced, with the Texture Coordinates with the summit Identical summit.
7. according to the method described in claim 1, it is characterised in that will each be spelled in splicing vertex set The tangent line space vector for connecing summit is adjusted to identical, including:
The angle adjusted between the corresponding extended line of multiple location points is less than predetermined angle, to cause The tangent line space vector on multiple splicing summits is identical, wherein, the location point is the splicing top Point corresponding point in Texture Coordinates.
8. method according to claim 7, it is characterised in that by the multiple splicing summit Tangent line space vector is adjusted to before identical, and methods described also includes:Receive the tune of outside input Whole instruction, the adjust instruction be used to triggering the corresponding extended line of the multiple location point of adjustment it Between angle.
9. method according to claim 7, it is characterised in that the corresponding method of the multiple location points of adjustment Angle between line is less than predetermined angle, including:
The direction of the corresponding normal of the multiple location point is adjusted by preset control, so that described Angle between the corresponding extended line of multiple location points is less than predetermined angle.
10. the splicing apparatus of destination object in a kind of stereo-picture, it is characterised in that including:
Judge module, for judging whether any two destination object to be spliced is in same patch Figure texture coordinate;
Merging module, it is described same for being in any two destination object to be spliced In the case of textures texture coordinate, default bar will be met in described two destination objects to be spliced The summit of part is merged according to default merging rule;
Adjusting module, for being in different textures in any two destination object to be spliced In the case of texture coordinate, the tangent line space vector on each splicing summit in vertex set will be spliced Adjust to identical;
Wherein, the splicing summit is the spelling between any two destination object to be spliced Connect all splicing summits included on the point on edge line, the splicing edge line and constitute described spell Connect vertex set.
11. device according to claim 10, it is characterised in that the merging module includes:
First acquisition module, the summit of the preparatory condition is met for obtaining, wherein, meet The summit of the preparatory condition includes overlapping position after described two destination object splicings to be spliced The splicing summit for overlapping summit and the splicing edge line;
First merges submodule, and institute is obtained for being screened from the summit for meeting the preparatory condition Coincidence summit is stated, and the coincidence summit is merged.
12. device according to claim 11, it is characterised in that described device also includes:
Submodule is adjusted, for the normal direction on the splicing summit to be adjusted to preset direction;
Mark module, for splicing apex marker summit color.
13. device according to claim 12, it is characterised in that described first merges submodule bag Include:
First screening module, for being filtered out not from the summit for meeting the preparatory condition The summit of summit color is marked, confirms the summit of the unmarked summit color to overlap summit;
Second merges submodule, for will confirm that the summit for the coincidence summit is merged.
14. device according to claim 13, it is characterised in that described second merges submodule bag Include:
Second acquisition module, the coincidence for obtaining any two destination object to be spliced The vertex information on summit, wherein, the vertex information includes:The texture mapping on the summit is sat Mark and tangent line space vector;
Second screening module, in any two destination object overlapping position to be spliced The summit of Texture Coordinates identical first and the second summit are screened in summit;
Computing module, for the tangent line space by first summit and second summit to Amount calculates and obtains new tangent line space vector;
Determining module, for being pasted by the common texture in first summit and second summit Figure coordinate and the new tangent line space vector, it is determined that merging the vertex data of obtained new summit.
15. device according to claim 14, it is characterised in that the preparatory condition is described In whole summits of two destination objects to be spliced, with the texture mapping on summit seat Mark identical summit.
16. device according to claim 10, it is characterised in that the adjusting module includes:
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 vector for obtaining multiple splicing summits is identical, wherein, institute Location point is stated for the splicing summit corresponding point in Texture Coordinates.
17. device according to claim 16, it is characterised in that described device also includes:
Receiving module, the adjust instruction for receiving outside input, the adjust instruction is used to touch Angle between the corresponding extended line of the multiple location point of hair adjustment.
18. device according to claim 16, it is characterised in that the first adjustment submodule bag Include:
Second adjustment submodule, it is corresponding for adjusting the multiple location point by preset control The direction of extended line, so that the angle between the corresponding extended line of the multiple location point is less than in advance If 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 true CN107154016A (en) 2017-09-12
CN107154016B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109603155A (en) * 2018-11-29 2019-04-12 网易(杭州)网络有限公司 Merge acquisition methods, device, storage medium, processor and the terminal of textures
CN110377259A (en) * 2019-07-19 2019-10-25 深圳前海达闼云端智能科技有限公司 A kind of hidden method of equipment, electronic equipment and storage medium
CN112580436A (en) * 2020-11-25 2021-03-30 重庆邮电大学 Electroencephalogram signal domain adaptation method based on Riemann manifold coordinate alignment

Citations (4)

* 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
US20130307852A1 (en) * 2007-01-24 2013-11-21 Take Two Interactive Software, Inc. System and method for calculating multi-resolution dynamic ambient occlusion
CN104732482A (en) * 2015-03-30 2015-06-24 中国人民解放军63655部队 Multi-resolution image stitching method based on control points
CN104809689A (en) * 2015-05-15 2015-07-29 北京理工大学深圳研究院 Building point cloud model and base map aligned method based on outline

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130307852A1 (en) * 2007-01-24 2013-11-21 Take Two Interactive Software, Inc. System and method for calculating multi-resolution dynamic ambient occlusion
CN103164848A (en) * 2011-12-09 2013-06-19 腾讯科技(深圳)有限公司 Image processing method and system
CN104732482A (en) * 2015-03-30 2015-06-24 中国人民解放军63655部队 Multi-resolution image stitching method based on control points
CN104809689A (en) * 2015-05-15 2015-07-29 北京理工大学深圳研究院 Building point cloud model and base map aligned method based on outline

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109603155A (en) * 2018-11-29 2019-04-12 网易(杭州)网络有限公司 Merge acquisition methods, device, storage medium, processor and the terminal of textures
US11325045B2 (en) 2018-11-29 2022-05-10 Netease (Hangzhou) Network Co., Ltd. Method and apparatus for acquiring merged map, storage medium, processor, and terminal
CN110377259A (en) * 2019-07-19 2019-10-25 深圳前海达闼云端智能科技有限公司 A kind of hidden method of equipment, electronic equipment and storage medium
CN110377259B (en) * 2019-07-19 2023-07-07 深圳前海达闼云端智能科技有限公司 Equipment hiding method, electronic equipment and storage medium
CN112580436A (en) * 2020-11-25 2021-03-30 重庆邮电大学 Electroencephalogram signal domain adaptation method based on Riemann manifold coordinate alignment
CN112580436B (en) * 2020-11-25 2022-05-03 重庆邮电大学 Electroencephalogram signal domain adaptation method based on Riemann manifold coordinate alignment

Also Published As

Publication number Publication date
CN107154016B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
US11961200B2 (en) Method and computer program product for producing 3 dimensional model data of a garment
CN112669447B (en) Model head portrait creation method and device, electronic equipment and storage medium
US10489956B2 (en) Robust attribute transfer for character animation
US9472161B1 (en) Customizing virtual assets
US20120113106A1 (en) Method and apparatus for generating face avatar
CN109675315A (en) Generation method, device, processor and the terminal of avatar model
CN111282277B (en) Special effect processing method, device and equipment and storage medium
CN110211218A (en) Picture rendering method and device, storage medium and electronic device
CN107358649A (en) The treating method and apparatus of terrain file
CN109325990A (en) Image processing method and image processing apparatus, storage medium
CN106251391A (en) Divided method
Luft et al. Real-time watercolor illustrations of plants using a blurred depth test
CN108837510B (en) Information display method and device, storage medium and electronic device
CN108765520B (en) Text information rendering method and device, storage medium and electronic device
CN107154016A (en) The joining method and device of destination object in stereo-picture
CN109712226A (en) The see-through model rendering method and device of virtual reality
CN108447111A (en) Processing method, device, storage medium, processor and the terminal of normal map
CN108404414A (en) Fusion method, device, storage medium, processor and the terminal of picture
US20220230375A1 (en) Three-dimensional avatar generation and customization
CN114612641A (en) Material migration method and device and data processing method
CN116485981A (en) Three-dimensional model mapping method, device, equipment and storage medium
Eisemann et al. Stylized vector art from 3d models with region support
CN106803278B (en) Virtual character semi-transparent layered sorting method and system
CN113706675B (en) Mirror image processing method, mirror image processing device, storage medium and electronic device
CN105551073B (en) A kind of bone binding method of three-dimensional (3 D) manikin

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