Virtual model fusion method, device and electronic equipment
By adjusting the graphical distribution information and three-dimensional model of the virtual model and combining mobile information to generate fusion animation, the problems of complex and low efficiency of fluid fusion operations in the prior art are solved, and more efficient and accurate virtual model fusion is achieved.
Patent Information
- Application Number
- CN202210480511.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-05-05
AI Technical Summary
In the prior art, fluid fusion operations are complex, occupy a lot of system memory, low fusion efficiency and poor control. Users need to frequently adjust the number and density of particles, resulting in cumbersome and time-consuming operation.
By obtaining multiple initial two-dimensional models, adjusting the graph distribution information, performing three-dimensional adjustments, determining the moving information of the model to be fused, generating fusion animations, and realizing the fusion of virtual models.
It improves the fusion efficiency of the virtual model, simplifies the operation process, reduces the debugging of FFD control points, avoids the cumbersome process of adjusting particle count and density, and improves control accuracy and efficiency.
Smart Images

Figure CN115035276B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a virtual model fusion method, device and electronic equipment. Background Art
[0002] In terms of computer rendering, fluid animation can simulate the fusion and separation of liquids. For example, fluid animation can simulate the separation and fusion of water, and the separation and fusion of blood.
[0003] In the prior art, high-end fluid software is usually used to simulate the fusion of fluids. However, the operation of high-end fluid software is complicated and occupies a large amount of system memory.
[0004] In addition, in the prior art, fluid plug-in is also used to simulate fluid fusion, such as Figures 1 to 3 As shown, first use the particle system to emit particles to form the initial shape (such as Figure 1 As shown), then use the fluid plug-in to pick up particles to form a liquid, then copy two particles and move them. When the two particles are close, they merge together to form a preliminary fusion effect (as shown Figure 2 Finally, users can control the shape of particles by extruding and stretching points using FFD (Free Form Deform) (as shown in Figure 2). Figure 3 shown).
[0005] From the above content, it can be seen that when performing fluid fusion, users need to add multiple FFDs to achieve the change of particle shape, which is cumbersome. Moreover, using FFD to control the fluid shape is time-consuming and labor-intensive. In addition, the size and movement distance of the fluid require constant adjustment of the number and density of particles, output of results, and then detection of whether the results match the project requirements, which is time-consuming and cumbersome. If the user needs to adjust the output results, the previous steps need to be repeated, which reduces the efficiency of fluid fusion, is not efficient, and has low control over fluid fusion.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a virtual model fusion method, device and electronic device to at least solve the technical problem of low fusion efficiency in the prior art when performing fusion processing on virtual models.
[0008] According to one aspect of an embodiment of the present invention, a method for fusing virtual models is provided, comprising: obtaining a plurality of initial two-dimensional models, wherein each initial two-dimensional model is composed of a plurality of graphics; adjusting the graphic distribution information of the plurality of graphics corresponding to at least some of the initial two-dimensional models to obtain a plurality of target two-dimensional models; performing three-dimensional adjustment on the plurality of target two-dimensional models to obtain a plurality of models to be fused; adjusting the movement information of the plurality of models to be fused to determine the degree of fusion corresponding to the plurality of models to be fused at each moment; and generating a fusion animation based on the degree of fusion corresponding to the plurality of models to be fused at each moment.
[0009] Furthermore, the virtual model fusion method also includes: before obtaining multiple initial two-dimensional models, responding to graphics drawing instructions, generating multiple initial graphics on a preset layer; determining the graphic color corresponding to each initial graphic to obtain multiple first initial graphics; blurring the edges of the multiple first initial graphics to obtain multiple second initial graphics; performing regional fusion processing on the overlapping areas between the multiple second initial graphics to obtain the first initial two-dimensional model.
[0010] Furthermore, the virtual model fusion method further includes: after performing regional fusion processing on overlapping areas between the plurality of second initial graphics to obtain a first initial two-dimensional model, duplicating the first initial two-dimensional model to obtain a plurality of initial two-dimensional models.
[0011] Furthermore, the virtual model fusion method also includes: adjusting the thickness information and color information corresponding to each target two-dimensional model to obtain a first model to be fused; adjusting the highlight information, thickness information and color information corresponding to each target two-dimensional model to obtain a second model to be fused; adjusting the highlight information, thickness information, blur information and color information corresponding to each target two-dimensional model to obtain a third model to be fused; superimposing the first model to be fused, the second model to be fused and the third model to be fused to obtain multiple models to be fused.
[0012] Furthermore, the virtual model fusion method also includes: determining a static model and at least one dynamic model from multiple models to be fused, wherein the position information of the static model remains unchanged, and the position information of at least one dynamic model changes with time; determining the moving trajectory and moving speed of each dynamic model; controlling at least one dynamic model to move toward the static model according to the moving trajectory and moving speed, and fusing the static model and at least one dynamic model to obtain a degree of fusion.
[0013] Furthermore, the virtual model fusion method also includes: obtaining position information of multiple models to be fused; determining a fusion position for fusing the multiple models to be fused based on the position information of the multiple models to be fused; determining a moving trajectory and a moving speed of each model to be fused; controlling the multiple models to be fused to move toward the fusion position according to the moving trajectory and the moving speed, and fusing the multiple models to be fused at the fusion position to obtain a degree of fusion.
[0014] Furthermore, the virtual model fusion method also includes: after generating a fusion animation based on the fusion degree corresponding to multiple models to be fused at each moment, obtaining fusion parameters corresponding to the fusion animation, wherein the fusion parameters include at least one of the following: graphic distribution information of multiple graphics corresponding to each model to be fused, and movement information of each model to be fused; storing the fusion parameters.
[0015] Furthermore, the virtual model fusion method also includes: after generating a fusion animation based on the fusion degree corresponding to multiple models to be fused at each moment, adjusting the fusion parameters to obtain adjusted fusion parameters; adjusting the fusion animation based on the adjusted fusion parameters to obtain an adjusted fusion animation.
[0016] According to another aspect of an embodiment of the present invention, a fusion device for a virtual model is also provided, including: an acquisition module for acquiring multiple initial two-dimensional models, wherein each initial two-dimensional model is composed of multiple graphics; an adjustment module for adjusting the graphic distribution information of multiple graphics corresponding to at least part of the initial two-dimensional models to obtain multiple target two-dimensional models; a conversion module for performing three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused; a fusion module for adjusting the movement information of the multiple models to be fused and determining the degree of fusion corresponding to the multiple models to be fused at each moment; and a generation module for generating a fusion animation based on the degree of fusion corresponding to the multiple models to be fused at each moment.
[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned virtual model fusion method when running.
[0018] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned virtual model fusion method when running.
[0019] In an embodiment of the present invention, a method of adjusting the graphics that constitute the two-dimensional model is adopted to obtain an adjustment of the three-dimensional model to achieve a fusion of the three-dimensional model. After obtaining multiple initial two-dimensional models composed of multiple graphics, the graphic distribution information of the multiple graphics corresponding to at least part of the initial two-dimensional models is adjusted to obtain multiple target two-dimensional models, and then the multiple target two-dimensional models are adjusted in three dimensions to obtain multiple models to be fused, and the movement information of the multiple models to be fused is adjusted to determine the fusion degree corresponding to the multiple models to be fused at each moment. Finally, a fusion animation is generated based on the fusion degree corresponding to the multiple models to be fused at each moment.
[0020] From the above content, it can be seen that when changing the shape of the model to be fused, only the distribution information of the graphics constituting the model to be fused needs to be adjusted, and there is no need to debug each control point of the FFD, thereby avoiding the cumbersome adjustment problem of debugging each control point of the FFD when changing the model to be fused in the prior art, thereby improving the fusion efficiency of the virtual model. In addition, in the process of fusing the models to be fused, there is no need to adjust the number and density of particles, only the movement information of multiple models to be fused needs to be adjusted, thereby avoiding the problem of low model fusion efficiency in the process of fusing virtual models in the prior art.
[0021] It can be seen that the solution provided in the present application achieves the purpose of fusing virtual models, thereby realizing the technical effect of improving the fusion efficiency of virtual models, and further solving the technical problem of low fusion efficiency existing in the prior art when fusing virtual models. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 It is a simulation schematic diagram of fluid fusion according to the prior art;
[0024] Figure 2 It is a simulation schematic diagram of fluid fusion according to the prior art;
[0025] Figure 3 It is a simulation schematic diagram of fluid fusion according to the prior art;
[0026] Figure 4 is a flow chart of a virtual model fusion method according to an embodiment of the present invention;
[0027] Figure 5is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0028] Figure 6 is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0029] Figure 7 is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0030] Figure 8 is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0031] Fig. 9 is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0032] Fig.10 is a flow chart of an optional virtual model fusion method according to an embodiment of the present invention;
[0033] Fig.11 is an optional circular schematic diagram according to an embodiment of the present invention;
[0034] Fig.12 is a schematic diagram of an optional model making interface according to an embodiment of the present invention;
[0035] Fig.13 is a schematic diagram of an optional second initial graph according to an embodiment of the present invention;
[0036] Fig.14 is a schematic diagram of an optional first initial two-dimensional model according to an embodiment of the present invention;
[0037] Fig.15 is a schematic diagram of an optional initial two-dimensional model according to an embodiment of the present invention;
[0038] Fig.16 is a schematic diagram of an optional model fusion interface according to an embodiment of the present invention;
[0039] Fig.17 is a schematic diagram of an optional layer setting interface according to an embodiment of the present invention;
[0040] Fig.18 is a schematic diagram of an optional first model to be fused according to an embodiment of the present invention;
[0041] Fig.19 is a schematic diagram of an optional layer setting interface according to an embodiment of the present invention;
[0042] Fig. 20is a schematic diagram of an optional second model to be fused according to an embodiment of the present invention;
[0043] Fig.21 is a schematic diagram of an optional layer setting interface according to an embodiment of the present invention;
[0044] Fig. 22 is a schematic diagram of an optional third model to be fused according to an embodiment of the present invention;
[0045] Fig.23 is a schematic diagram of an optional model to be fused according to an embodiment of the present invention;
[0046] Fig.24 is a schematic diagram of an optional command for adjusting a layer according to an embodiment of the present invention;
[0047] Fig.25 is a schematic diagram of a virtual model fusion device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] According to an embodiment of the present invention, an embodiment of a virtual model fusion method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0051] In addition, it should be noted that the virtual model fusion method in this embodiment can be implemented through a terminal device, which can be, but is not limited to, a mobile terminal such as a mobile phone, iPad, or a PC terminal such as a computer.
[0052] In an optional embodiment, Figure 4 is a flow chart of a virtual model fusion method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0053] Step S402, obtaining a plurality of initial two-dimensional models, wherein each initial two-dimensional model is composed of a plurality of graphics.
[0054] In step S402, each initial two-dimensional model corresponds to a model to be fused, that is, each initial two-dimensional model is eventually converted into a three-dimensional model to be fused, and the multiple initial two-dimensional models may have the same shape or different shapes.
[0055] Optionally, when the shapes of multiple initial two-dimensional models are all the same, the terminal device can generate an initial two-dimensional model according to user instructions, and copy the initial two-dimensional model to obtain multiple initial two-dimensional models, thereby avoiding the problem of low model production efficiency caused by the need to produce each model according to the production process in the prior art.
[0056] In addition, when the shapes of multiple initial two-dimensional models are at least partially different, the terminal device can generate an initial two-dimensional model according to user instructions, and copy the initial two-dimensional model to obtain multiple initial two-dimensional models. The shapes of the multiple initial two-dimensional models can then be adjusted according to user needs to obtain multiple initial two-dimensional models with different shapes, thereby avoiding the problem of low model production efficiency in the prior art caused by the need to separately produce each model when producing models of different shapes.
[0057] It should be noted that the multiple graphics constituting the initial two-dimensional model may be graphics of the same type or graphics of multiple types. For example, the multiple graphics constituting the initial two-dimensional model may all be circles, or some of the graphics may be circles and the rest of the graphics may be regular polygons, etc. In addition, when the multiple graphics constituting the initial two-dimensional model are graphics of the same type, the sizes of the multiple graphics may be the same or different. For example, the multiple graphics constituting the initial two-dimensional model may be circles of the same size or circles of different sizes.
[0058] Step S404: adjusting the graphic distribution information of the multiple graphics corresponding to at least part of the initial two-dimensional models to obtain multiple target two-dimensional models.
[0059] Optionally, in actual applications, when fusing at least two virtual models, usually at least two virtual models are different. When the shapes of multiple initial two-dimensional models are all the same, the terminal device can adjust the graphic distribution information of at least some of the initial two-dimensional models according to user instructions to obtain multiple target two-dimensional models, that is, the shapes corresponding to at least some of the target two-dimensional models are different.
[0060] In addition, in actual applications, when the shapes of multiple initial two-dimensional models are at least partially different, the user can also adjust the shape of the initial two-dimensional model according to needs. In this scenario, the terminal device can respond to the adjustment instructions input by the user and adjust the graphic distribution information of the multiple graphics that constitute the initial two-dimensional model, thereby obtaining multiple target two-dimensional models that meet user needs.
[0061] It should be noted that the adjustment of the shapes of multiple initial two-dimensional models is actually the adjustment of the three-dimensional model to be fused. That is, in this embodiment, when the user needs to adjust the shape of the model to be fused, it is only necessary to adjust the distribution information of the graphics that constitute the model to be fused, without debugging the various control points of the FFD, thereby avoiding the cumbersome adjustment problem of changing the model to be fused in the prior art that requires debugging the various control points of the FFD.
[0062] Step S406, performing three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused.
[0063] In step S406, the terminal device may assign a material to the target two-dimensional model, thereby converting the two-dimensional model into a three-dimensional model to be fused. In the process of assigning a material to the target two-dimensional model, the terminal device may assign thickness, color, highlight, blur and other information to the target two-dimensional model to achieve the purpose of assigning a material to the target two-dimensional model, thereby converting the two-dimensional model into a three-dimensional model.
[0064] Step S408: adjusting the movement information of the multiple models to be fused, and determining the fusion degree corresponding to the multiple models to be fused at each moment.
[0065] In step S408, the movement information includes at least one of the following: movement position, movement speed, movement trajectory, etc. That is, the user can adjust the movement position and / or movement speed and / or movement trajectory of at least some of the multiple models to be fused through the terminal device to bring the multiple models to be fused closer, and determine the degree of fusion of the multiple models to be fused according to the degree of closeness between the multiple models to be fused. Figure 5In the fusion diagram of virtual models shown in FIG. 1 , model 1 to be fused and model 2 to be fused are two virtual models fused with each other. The user can adjust the movement information of model 1 to be fused and / or model 2 to be fused through the terminal device to merge the two virtual models with each other. Figure 6 Figure 10 shows the fusion process of two virtual models, where Figures 6 to 10 In the process, the two virtual models gradually merge, that is, the degree of fusion of the two virtual models gradually increases until the two virtual models are completely merged.
[0066] Optionally, in the process of fusing the models to be fused, the terminal device can pull the fused parts between the multiple models to be fused based on the blocking tool command to achieve deformation of the fused parts between the multiple models to be fused, so that the multiple models to be fused produce a pulling effect when liquids are fused. At the same time, the terminal device can also make the multiple models to be fused ripple and twist based on the turbulence displacement command, so that the multiple models to be fused have their own rhythm, making the rhythm of the models to be fused more natural.
[0067] Step S410: generating a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment.
[0068] In step S410, the terminal device may play the fused images corresponding to the multiple models to be fused at each moment in time sequence, thereby generating a fused animation. Figures 5 to 10 In the process, the terminal device sorts the images according to the generation time corresponding to each image, and plays each image according to the sorting result, so as to generate a fusion animation of blood fusion.
[0069] Based on the scheme defined by the above steps S402 to S410, it can be known that in an embodiment of the present invention, a method of adjusting the graphics that constitute the two-dimensional model is adopted to obtain an adjustment to the three-dimensional model to achieve a fusion of the three-dimensional model. After obtaining multiple initial two-dimensional models composed of multiple graphics, the graphic distribution information of the multiple graphics corresponding to at least part of the initial two-dimensional models is adjusted to obtain multiple target two-dimensional models, and then the multiple target two-dimensional models are adjusted in three dimensions to obtain multiple models to be fused, and the movement information of the multiple models to be fused is adjusted to determine the fusion degree corresponding to the multiple models to be fused at each moment. Finally, a fusion animation is generated based on the fusion degree corresponding to the multiple models to be fused at each moment.
[0070] It is easy to notice that when changing the shape of the model to be fused, only the distribution information of the graphics constituting the model to be fused needs to be adjusted, without debugging each control point of the FFD, thereby avoiding the cumbersome adjustment problem of debugging each control point of the FFD when changing the model to be fused in the prior art, thereby improving the fusion efficiency of the virtual model. In addition, in the process of fusing the models to be fused, there is no need to adjust the number and density of particles, only the movement information of multiple models to be fused needs to be adjusted, thereby avoiding the problem of low model fusion efficiency in the process of fusing virtual models in the prior art.
[0071] It can be seen that the solution provided in the present application achieves the purpose of fusing virtual models, thereby realizing the technical effect of improving the fusion efficiency of virtual models, and further solving the technical problem of low fusion efficiency existing in the prior art when fusing virtual models.
[0072] In an optional embodiment, before obtaining multiple initial two-dimensional models, the terminal device needs to generate an initial two-dimensional model. Specifically, the terminal device responds to the graphics drawing instruction, generates multiple initial graphics on a preset layer, and determines the graphic color corresponding to each initial graphic to obtain multiple first initial graphics, then blurs the edges of the multiple first initial graphics to obtain multiple second initial graphics, and finally, performs regional fusion processing on the overlapping areas between the multiple second initial graphics to obtain the first initial two-dimensional model.
[0073] Optionally, in this embodiment, the initial graphic is a circle for illustration. The user first sets a solid layer in the special effects production software (for example, nonlinear special effects production software AE, i.e. Adobe After Effects) on the terminal device, and uses a mask to draw on the solid layer. Fig.11 Then, the user can Fig.12 The color tone control in the model making interface shown in the figure is used to set the color of each figure to obtain the first initial figure. For example, Fig.12 In the , the user can set the color that black is mapped to, the color that white is mapped to, and the amount of shading. Then, the user can Fig.12 Use the Gaussian blur control in to perform Gaussian blur processing on the first initial image to blur the edge of the first initial image, and you can get the following Fig.13 The second initial graph shown, for example, Fig.12 In the , the user can set the blurriness of the Gaussian blur and the blur direction (for example, horizontal direction, vertical direction). Finally, the user can Fig.12 The cross fuzzy control in the figure is used to perform regional fusion processing on the overlapping areas between multiple second initial graphics to obtain the first initial two-dimensional model. For example, Fig.12 In the , the user can set the blur radius of multiple second initial graphics in the horizontal and vertical directions, as well as the blur mode (ie, the transmission mode).
[0074] It should be noted that after obtaining the second initial graphics, the terminal device may combine multiple second initial graphics to form a composite group, and adjust the graphic distribution information of the graphics constituting the composite group to obtain the following: Fig.14 A first initial two-dimensional model is shown.
[0075] In addition, it should be noted that, in this embodiment, the colors of multiple graphics in the same composite group can be the same or different. Preferably, the colors of multiple graphics in the same composite group are different, which can facilitate the user to identify the area corresponding to the graphics, thereby facilitating the user to adjust the graphics according to the color of the graphics.
[0076] Furthermore, after performing a region fusion process on the overlapping regions between the plurality of second initial graphics to obtain a first initial two-dimensional model, the terminal device may perform a copy process on the first initial two-dimensional model to obtain a plurality of initial two-dimensional models. Fig.15 In the process, the user copies the first initial two-dimensional model to obtain multiple initial two-dimensional models.
[0077] It should be noted that, in this embodiment, the user can obtain multiple initial two-dimensional models by copying the first initial two-dimensional model through the terminal device, without having to make each initial two-dimensional model separately, thereby improving the production efficiency of the initial two-dimensional models.
[0078] Furthermore, after obtaining multiple target two-dimensional models, the terminal device can perform three-dimensional adjustments on the multiple target two-dimensional models to obtain multiple models to be fused. Specifically, the terminal device adjusts the thickness information and color information corresponding to each target two-dimensional model to obtain the first model to be fused; adjusts the highlight information, thickness information and color information corresponding to each target two-dimensional model to obtain the second model to be fused; adjusts the highlight information, thickness information, blur information and color information corresponding to each target two-dimensional model to obtain the third model to be fused; finally, the terminal device performs superposition processing on the first model to be fused, the second model to be fused and the third model to be fused to obtain multiple models to be fused.
[0079] Optional, such as Fig.16 In the model fusion interface, three layers are set, each layer corresponds to the first model to be fused, the second model to be fused, and the third model to be fused. Fig.16 On layer 1) in the Fig.17The target two-dimensional model is adjusted by using the layer setting interface shown in FIG. 1 , wherein the user can increase the mathops function to increase the thickness of the target two-dimensional model. The user can also adjust the hue of the target two-dimensional model, thereby adjusting the color of the target two-dimensional model to obtain the following: Fig.18 The first model to be fused is shown.
[0080] In the second layer (such as Fig.16 In layer 2), users can Fig.19 The layer setting interface shown in the figure is used to adjust the target 2D model. The user can add the edgecolorize function to increase the highlight contrast of the target 2D model. The user can also add the mathops function to increase the thickness of the target 2D model. In addition, the user can also adjust the three tones of the target 2D model to enrich the color of the target 2D model, so as to obtain the following: Fig. 20 The second model to be fused is shown.
[0081] In the third layer (such as Fig.16 In layer 3), users can Fig.21 The layer setting interface shown in the figure is used to adjust the target 2D model. The user can add the edgecolorize function to increase the highlight contrast of the target 2D model. The user can also add the mathops function to increase the thickness of the target 2D model. In addition, the user can also add the unmult function and curve to blur the target 2D model. The user can also adjust the three tones of the target 2D model to enrich the color of the target 2D model, so as to obtain the following: Fig. 22 The third model to be fused is shown.
[0082] It should be noted that, among the above three models to be fused, the first model to be fused is used as the dark background; the second model to be fused is used as the middle part to complete the transition between the first model to be fused and the third model to be fused; the third model to be fused is used as the overall effect to ensure the somatosensory effect of the model to be fused.
[0083] After obtaining the above three models to be fused, the terminal device performs superposition processing on the above three models to be fused, and obtains Fig.23 The model to be fused is shown.
[0084] After obtaining the models to be fused, the terminal device can perform fusion processing on multiple models to be fused. Optionally, the terminal device can set each model to be fused on a different layer, for example, model 1 to be fused is set in mobile synthesis layer 1, and model 2 to be fused is set in mobile synthesis layer 2. At the same time, an adjustment layer is also set on the terminal device, and a simple blocking tool and turbulence displacement command can be added to the adjustment layer to achieve fusion processing of model 1 to be fused and model 2 to be fused.
[0085] It should be noted that the adjustment layer can control all layers set at the level below the adjustment layer (such as mobile composite layer 1 and mobile composite layer 2), and the layers at the lower level can be uniformly changed by the commands of the adjustment layer.
[0086] Optional, Fig.24 A schematic diagram of an optional adjustment layer command is shown, comprising Fig.24 As you can see, users can set the view output format and occlusion mask of simple occlusion. Users can also set the turbulence displacement command, such as Fig.24 As shown, the user can set the displacement type, displacement quantity, displacement size, turbulence cost, complexity, evolution, and clearing related settings.
[0087] Furthermore, after obtaining multiple models to be fused, the terminal device can adjust the movement information of the multiple models to be fused and determine the degree of fusion corresponding to the multiple models to be fused at each moment. Specifically, the terminal device determines a static model and at least one dynamic model from the multiple models to be fused, and determines the movement trajectory and movement speed of each dynamic model, and then controls at least one dynamic model to move toward the static model according to the movement trajectory and movement speed, and performs fusion processing on the static model and at least one dynamic model to obtain the degree of fusion. Among them, the position information of the static model remains unchanged, and the position information of at least one dynamic model changes with time.
[0088] In the above scenario, the terminal device may respond to the user's selection instruction to determine the static model and the dynamic model from the multiple models to be fused. The terminal device may also automatically determine the static model and the dynamic model from the multiple models to be fused according to the scene parameters of the scene to which the model to be fused is applied input by the user. After determining the static model and the dynamic model, the terminal device may receive the setting parameters set by the user for the moving speed and / or moving trajectory of the dynamic model, and control the dynamic model to move toward the static model based on the setting parameters to achieve fusion between the dynamic model and the static model.
[0089] In another optional embodiment, the terminal device obtains the position information of multiple models to be fused, and determines the fusion position of the multiple models to be fused based on the position information of the multiple models to be fused, then determines the moving trajectory and moving speed of each model to be fused, and finally, controls the multiple models to be fused to move to the fusion position according to the moving trajectory and moving speed, and performs fusion processing on the multiple models to be fused at the fusion position to obtain the degree of fusion.
[0090] In the above scenario, the terminal device determines the fusion position based on the position information of each model to be fused, and receives the setting parameters set by the user for the moving speed and / or moving trajectory of each model to be fused. The terminal device can then control each model to be fused to move to the fusion position based on the above setting parameters to achieve fusion between the models to be fused.
[0091] Further, the terminal device may generate a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, and after generating the fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, the terminal device obtains the fusion parameters corresponding to the fusion animation and stores the fusion parameters. The fusion parameters include at least one of the following: graphic distribution information of the multiple graphics corresponding to each model to be fused, and movement information of each model to be fused.
[0092] In addition, after generating a fusion animation based on the fusion degree corresponding to multiple models to be fused at each moment, the terminal device adjusts the fusion parameters to obtain adjusted fusion parameters, and adjusts the fusion animation based on the adjusted fusion parameters to obtain an adjusted fusion animation.
[0093] It should be noted that the fusion parameters are stored. When the user needs to adjust the fusion animation, there is no need to redraw the fusion animation, but only to adjust the fusion parameters, thereby avoiding the problem of low fusion control efficiency caused by the need to repeat the fusion animation process in the prior art.
[0094] Based on the above content, it can be known that the solution provided by the present application simplifies the cumbersome steps of the fusion animation production process and improves the production efficiency of the fusion animation. Moreover, the adjustment of the model to be fused can be achieved by adjusting the graphic distribution information of the graphics that make up the two-dimensional model, avoiding the problem of difficulty in adjusting the shape of the model to be fused that exists in the prior art of constantly debugging each control point of FFD. In addition, the present application also stores the fusion parameters corresponding to the fusion animation. When the user needs to adjust the model to be fused or the fusion animation, he only needs to adjust the fusion parameters without re-debugging, thereby saving the debugging time of the model to be fused or the fusion animation.
[0095] According to an embodiment of the present invention, there is also provided an embodiment of a fusion device for a virtual model, wherein: Fig.25 is a schematic diagram of a fusion device of a virtual model according to an embodiment of the present invention, such as Fig.25 As shown, the device includes: an acquisition module 2501, an adjustment module 2503, a conversion module 2505, a fusion module 2507 and a generation module 2509.
[0096] Among them, the acquisition module 2501 is used to obtain multiple initial two-dimensional models, each of which is composed of multiple graphics; the adjustment module 2503 is used to adjust the graphic distribution information of multiple graphics corresponding to at least part of the initial two-dimensional models to obtain multiple target two-dimensional models; the conversion module 2505 is used to perform three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused; the fusion module 2507 is used to adjust the movement information of the multiple models to be fused and determine the fusion degree corresponding to the multiple models to be fused at each moment; the generation module 2509 is used to generate a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment.
[0097] It should be noted here that the above-mentioned acquisition module 2501, adjustment module 2503, conversion module 2505, fusion module 2507 and generation module 2509 correspond to steps S402 to S410 of the above-mentioned embodiment, and the five modules are the same as the instances and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiment.
[0098] Optionally, the virtual model fusion device further includes: a first generation module, a first determination module, a first processing module, and a second processing module. The first generation module is used to generate multiple initial graphics on a preset layer in response to a graphics drawing instruction before obtaining multiple initial two-dimensional models; the first determination module is used to determine the graphic color corresponding to each initial graphic to obtain multiple first initial graphics; the first processing module is used to perform fuzzy processing on the edges of the multiple first initial graphics to obtain multiple second initial graphics; the second processing module is used to perform regional fusion processing on the overlapping areas between the multiple second initial graphics to obtain the first initial two-dimensional model.
[0099] Optionally, the virtual model fusion device also includes: a third processing module, which is used to perform regional fusion processing on the overlapping areas between multiple second initial graphics to obtain a first initial two-dimensional model, and then copy the first initial two-dimensional model to obtain multiple initial two-dimensional models.
[0100] Optionally, the conversion module includes: a first adjustment module, a second adjustment module, a third adjustment module and a superposition module. The first adjustment module is used to adjust the thickness information and color information corresponding to each target two-dimensional model to obtain a first model to be fused; the second adjustment module is used to adjust the highlight information, thickness information and color information corresponding to each target two-dimensional model to obtain a second model to be fused; the third adjustment module is used to adjust the highlight information, thickness information, blur information and color information corresponding to each target two-dimensional model to obtain a third model to be fused; the superposition module is used to superimpose the first model to be fused, the second model to be fused and the third model to be fused to obtain multiple models to be fused.
[0101] Optionally, the fusion module includes: a second determination module, a third determination module and a fourth processing module. The second determination module is used to determine a static model and at least one dynamic model from a plurality of models to be fused, wherein the position information of the static model remains unchanged, and the position information of at least one dynamic model changes with time; the third determination module is used to determine the moving trajectory and moving speed of each dynamic model; the fourth processing module is used to control at least one dynamic model to move toward the static model according to the moving trajectory and moving speed, and fuse the static model and at least one dynamic model to obtain a degree of fusion.
[0102] Optionally, the fusion module includes: a first acquisition module, a fourth determination module, a fifth determination module and a fifth processing module. Among them, the first acquisition module is used to obtain the position information of multiple models to be fused; the fourth determination module is used to determine the fusion position of the multiple models to be fused based on the position information of the multiple models to be fused; the fifth determination module is used to determine the moving trajectory and moving speed of each model to be fused; the fifth processing module is used to control the multiple models to be fused to move to the fusion position according to the moving trajectory and moving speed, and perform fusion processing on the multiple models to be fused at the fusion position to obtain the degree of fusion.
[0103] Optionally, the virtual model fusion device further includes: a second acquisition module and a storage module. The second acquisition module is used to obtain fusion parameters corresponding to the fusion animation after generating a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, wherein the fusion parameters include at least one of the following: graphic distribution information of multiple graphics corresponding to each model to be fused, and movement information of each model to be fused; the storage module is used to store the fusion parameters.
[0104] Optionally, the virtual model fusion device further includes: a parameter adjustment module and an animation adjustment module. The parameter adjustment module is used to adjust the fusion parameters after generating the fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, so as to obtain the adjusted fusion parameters; the animation adjustment module is used to adjust the fusion animation based on the adjusted fusion parameters, so as to obtain the adjusted fusion animation.
[0105] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the virtual model fusion method in the above embodiment when running.
[0106] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, which includes one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the virtual model fusion method in the above-mentioned embodiment when running.
[0107] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0108] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0109] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0113] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A virtual model fusion method, characterized in that: include: Acquire multiple initial two-dimensional models, wherein each initial two-dimensional model is composed of multiple graphics; Adjusting the graphic distribution information of the plurality of graphics corresponding to at least part of the initial two-dimensional models to obtain a plurality of target two-dimensional models; Performing three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused; Adjusting the movement information of the multiple models to be fused, and determining the fusion degree corresponding to the multiple models to be fused at each moment; Generate a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment; Among them, performing three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused includes: adjusting the thickness information and color information corresponding to each target two-dimensional model to obtain a first model to be fused; adjusting the highlight information, thickness information and color information corresponding to each target two-dimensional model to obtain a second model to be fused; adjusting the highlight information, thickness information, blur information and color information corresponding to each target two-dimensional model to obtain a third model to be fused; superimposing the first model to be fused, the second model to be fused and the third model to be fused to obtain the multiple models to be fused.
2. The method according to claim 1, characterized in that Before acquiring a plurality of initial two-dimensional models, the method further comprises: In response to a graphic drawing instruction, a plurality of initial graphics are generated on a preset layer; Determine the graphic color corresponding to each initial graphic to obtain a plurality of first initial graphics; Performing blur processing on the edges of the plurality of first initial graphics to obtain a plurality of second initial graphics; Performing regional fusion processing on overlapping regions among the plurality of second initial graphics to obtain a first initial two-dimensional model.
3. The method according to claim 2, characterized in that After performing region fusion processing on the overlapping regions between the plurality of second initial graphics to obtain the first initial two-dimensional model, the method further includes: The first initial two-dimensional model is copied to obtain the multiple initial two-dimensional models.
4. The method according to claim 1, characterized in that Adjusting the movement information of the multiple models to be fused and determining the fusion degree corresponding to the multiple models to be fused at each moment includes: Determine a static model and at least one dynamic model from the multiple models to be fused, wherein the position information of the static model remains unchanged, and the position information of the at least one dynamic model changes with time; Determine the movement trajectory and movement speed of each dynamic model; The at least one dynamic model is controlled to move toward the static model according to the moving trajectory and the moving speed, and the static model and the at least one dynamic model are fused to obtain the fusion degree.
5. The method according to claim 1, characterized in that Adjusting the movement information of the multiple models to be fused and determining the fusion degree corresponding to the multiple models to be fused at each moment includes: Obtaining location information of the multiple models to be fused; Determining a fusion position for fusing the multiple models to be fused based on the position information of the multiple models to be fused; Determine the moving trajectory and moving speed of each model to be fused; The multiple models to be fused are controlled to move toward the fusion position according to the movement trajectory and the movement speed, and the multiple models to be fused are fused at the fusion position to obtain the fusion degree.
6. The method according to claim 1, characterized in that After generating a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, the method further includes: Acquire fusion parameters corresponding to the fusion animation, wherein the fusion parameters include at least one of the following: graphic distribution information of multiple graphics corresponding to each model to be fused, and movement information of each model to be fused; The fusion parameters are stored.
7. The method according to claim 6, characterized in that After generating a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment, the method further includes: Adjusting the fusion parameters to obtain adjusted fusion parameters; The fused animation is adjusted based on the adjusted fusion parameters to obtain an adjusted fused animation.
8. A virtual model fusion device, characterized in that: include: An acquisition module, used for acquiring a plurality of initial two-dimensional models, wherein each initial two-dimensional model is composed of a plurality of graphics; An adjustment module, used for adjusting the graphic distribution information of the multiple graphics corresponding to at least part of the initial two-dimensional model to obtain multiple target two-dimensional models; A conversion module, used for performing three-dimensional adjustment on the multiple target two-dimensional models to obtain multiple models to be fused; A fusion module, used to adjust the movement information of the multiple models to be fused, and determine the fusion degree corresponding to the multiple models to be fused at each moment; A generating module, used for generating a fusion animation based on the fusion degree corresponding to the multiple models to be fused at each moment; Among them, the conversion module is also used to: adjust the thickness information and color information corresponding to each target two-dimensional model to obtain a first model to be fused; adjust the highlight information, thickness information and color information corresponding to each target two-dimensional model to obtain a second model to be fused; adjust the highlight information, thickness information, blur information and color information corresponding to each target two-dimensional model to obtain a third model to be fused; superimpose the first model to be fused, the second model to be fused and the third model to be fused to obtain the multiple models to be fused.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the virtual model fusion method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device, characterized in that: The electronic device includes one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the virtual model fusion method described in any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Virtual three-dimensional model fusion method and device
CN111467800A
Three-dimensional augmented reality panorama fusion method and system
CN111696216A