Model special effects production method, device, storage medium and electronic equipment
By obtaining the three-dimensional model and its renderings, determining the particle special effect parameters and material diagrams, and generating particle special effects, the problem of cumbersome special effects production process in the existing technology is solved, and an efficient and simplified special effects production process is achieved.
Patent Information
- Application Number
- CN202110530485.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-14
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2041-05-14
AI Technical Summary
When creating delicate and real objects that dissipate and gather special effects, the process is cumbersome and time-consuming, and requires repeated adjustments, renderings, and previews until the ideal effect is achieved.
By obtaining the three-dimensional model and its first rendering diagram from the first perspective, determining the particle effect parameters and material diagrams, generating particle effect, realizing one-time rendering, simplifying production steps and saving rendering time.
While ensuring that the special effects are delicate and realistic, the production time of model special effects is significantly shortened, the production steps are simplified, and the work efficiency is improved.
Smart Images

Figure CN113516742B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for producing model special effects. Background Art
[0002] In recent years, special effects technology has been widely used in game development, animation production, video processing and other fields. In addition, in the work of making special effects, we always encounter the need for the dissipation and convergence of various objects. If this effect is made delicately and realistically, it will be a highlight.
[0003] In the prior art, in order to achieve delicate and realistic object dissipation and convergence effects, it is necessary to first create a fluid effect for the object model in MAX software (i.e., 3D Max software, a 3D animation rendering and production software), then bind the force field, and repeatedly adjust, render, preview to the actual effect, and then adjust the rendering until the ideal effect is achieved. The entire production process is cumbersome, time-consuming and labor-intensive. Summary of the invention
[0004] The purpose of this application is to provide a model special effects production method, device, storage medium and electronic device, so as to save the production time of model special effects while ensuring that the model special effects are delicate and realistic.
[0005] The present application embodiment provides a model special effect production method, including:
[0006] Acquire model special effects materials, where the model special effects materials include a three-dimensional model and a first rendering of the three-dimensional model at a first perspective;
[0007] Determine the particle special effect parameters to be used in the three-dimensional model;
[0008] Determine a first material map of the three-dimensional model according to the first rendering;
[0009] Generate a particle effect of the three-dimensional model according to the particle effect parameter and the first material map.
[0010] The embodiment of the present application also provides a model special effects production device, including:
[0011] An acquisition module is used to acquire model special effect materials, where the model special effect materials include a three-dimensional model and a first rendering of the three-dimensional model at a first viewing angle;
[0012] A first determination module is used to determine the particle special effect parameters to be used in the three-dimensional model;
[0013] A second determination module, configured to determine a first material map of the three-dimensional model according to the first rendering;
[0014] The generation module is used to generate particle effects of the three-dimensional model according to the particle effects parameters and the first material map.
[0015] Among them, the particle special effect parameters include particle attribute parameters and particle motion parameters, and the generation module specifically includes:
[0016] A generating unit, used for particle processing the three-dimensional model according to the particle attribute parameters to obtain a plurality of particles;
[0017] A rendering unit, used for rendering particles according to the first material map to obtain rendered particles;
[0018] The control unit is used to control the motion of the rendered particles according to the particle motion parameters to obtain the particle special effects of the three-dimensional model.
[0019] The first determination module specifically includes:
[0020] A starting unit, used to start the particle special effect plug-in in response to a start operation on a preset particle special effect plug-in, so as to display a special effect parameter setting interface;
[0021] The first determining unit is used to determine the particle special effect parameters to be used for the three-dimensional model based on the special effect parameter setting interface in response to the identification operation of the three-dimensional model on the special effect parameter setting interface.
[0022] The first determination module further includes:
[0023] A generating unit, used for generating a particle special effect preview animation based on the three-dimensional model and the particle special effect parameters, and displaying the particle special effect preview animation in a preset window;
[0024] The second determination unit is used to determine the modified particle special effect parameters in response to the modification operation of the particle special effect parameters on the special effect parameter setting interface, and use the modified particle special effect parameters to update the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model.
[0025] The second determining unit specifically includes:
[0026] A display subunit, for responding to a selection operation of an animation frame in a particle special effect preview animation, and displaying particle special effect parameters corresponding to the selected animation frame on a special effect parameter setting interface;
[0027] A determination subunit is used to determine the modified particle special effect parameters corresponding to the selected animation frame in response to a modification operation on the particle special effect parameters corresponding to the selected animation frame, and to update the selected animation frame in the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model using the modified particle special effect parameters corresponding to the selected animation frame.
[0028] The second determination module specifically includes:
[0029] The third determining unit is used to use the first rendering image as a first material image of the three-dimensional model in response to an identification operation of using the first rendering image as a model material on the special effect parameter setting interface.
[0030] The second determining module further includes:
[0031] A display unit, configured to display a first rendering in a preset window;
[0032] an adaptation unit, configured to adapt the first rendering to the three-dimensional model in response to an adaptation operation on the three-dimensional model and the first rendering;
[0033] The third determining unit is specifically configured to:
[0034] In response to an identification operation of using the first rendering image as a model material on the special effect parameter setting interface, the adapted first rendering image is used as a first material image of the three-dimensional model.
[0035] The adaptation unit specifically includes:
[0036] A first adjustment subunit, used to adjust the angle at which the three-dimensional model is displayed in the preset window so that the angle is consistent with the first viewing angle;
[0037] The second adjusting subunit is used to adjust the size of the first rendering image displayed in the preset window so that the edge of the first rendering image in the preset window overlaps with the edge of the layer where the first rendering image is located.
[0038] The model special effects material further includes a second rendering of the three-dimensional model at a second viewing angle, and the model special effects production device further includes:
[0039] A third determination module, used to determine a second material map of the three-dimensional model according to the second rendering;
[0040] The update module is used to update the particle effect using the second material and the particle effect parameters.
[0041] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded by a processor to execute the steps in any of the above-mentioned model special effects production methods.
[0042] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the steps in any of the above-mentioned model special effects production methods by calling the computer program stored in the memory.
[0043] The model special effects production method, device, storage medium and electronic device provided in the present application obtain model special effects materials, which include a three-dimensional model and a first rendering of the three-dimensional model at a first perspective, then determine the particle special effects parameters to be used for the three-dimensional model, and determine the first material map of the three-dimensional model based on the first rendering, and then generate the particle special effects of the three-dimensional model based on the particle special effects parameters and the first material map. Therefore, in the process of model special effects production, only one rendering of the model at a desired perspective is required to complete the rendering of the model at one time, without the need for repeated rendering. This simplifies the production steps of the model special effects and saves rendering time while ensuring that the model special effects are delicate and realistic, thereby greatly shortening the production time of the model special effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0045] Figure 1 It is a scene schematic diagram of the model special effects production system provided in an embodiment of the present application;
[0046] Figure 2 It is a flowchart of a method for producing model special effects provided in an embodiment of the present application;
[0047] Figure 3 It is a structural schematic diagram of the special effects production interface provided in an embodiment of the present application;
[0048] Figure 4 It is another flow chart of the model special effects production method provided in the embodiment of the present application;
[0049] Figure 5 It is a structural schematic diagram of the special effect parameter setting interface provided in an embodiment of the present application;
[0050] Figure 6 yes Figure 5 Schematic diagram of the effect when the particle special effect parameter group "Basic Form (Master)" is expanded and displayed;
[0051] Figure 7 yes Figure 5 Schematic diagram of the effect when the "Layer Map (Master)" of the particle special effect parameter group is expanded and displayed;
[0052] Figure 8 It is a schematic diagram of the structure of the three-dimensional model provided in the embodiment of the present application;
[0053] Fig. 9 It is a schematic structural diagram of the basic form of the overall composition of several particles provided in the embodiments of the present application;
[0054] Fig.10is a schematic diagram of the structure of a first rendering provided in an embodiment of the present application;
[0055] Fig.11 is a schematic diagram of the display effect of the entire particle after rendering at the current viewing angle provided by an embodiment of the present application;
[0056] Fig.12 yes Figure 5 Schematic diagram of the effect when the particle special effect parameter group "Fluid (Master)" is expanded and displayed;
[0057] Fig.13 is a schematic diagram of a frame of particle motion picture after rendering provided by an embodiment of the present application;
[0058] Fig.14 yes Figure 5 Schematic diagram of the effect when the "Visibility" of the particle effect parameter group is expanded;
[0059] Fig.15 It is a structural schematic diagram of a model special effects production device provided in an embodiment of the present application;
[0060] Fig.16 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0062] Embodiments of the present application provide a model special effects production method, device, storage medium and electronic device.
[0063] See also Figure 1 , Figure 1 A scene diagram of a model special effects production system provided in an embodiment of the present application. The model special effects production system may include any one of the model special effects production devices provided in the embodiments of the present application. The model special effects production device may be specifically integrated in an electronic device such as a terminal or a server, wherein the terminal may be a smart phone, a tablet computer, a smart Bluetooth device, a laptop computer, or a personal computer (PC) and the server may be a single server or a server cluster composed of multiple servers.
[0064] The electronic device can obtain model special effects material, which includes a three-dimensional model and a first rendering of the three-dimensional model at a first perspective; determine particle special effects parameters to be used for the three-dimensional model; determine a first material map of the three-dimensional model based on the first rendering; and generate particle special effects of the three-dimensional model based on the particle special effects parameters and the first material map.
[0065] Among them, the above-mentioned three-dimensional model can be produced by a preset three-dimensional software (for example, 3D Max, Maya and other existing mature three-dimensional animation rendering and production software). The above-mentioned first rendering image can be obtained by rendering the three-dimensional model produced by the three-dimensional software, and the corresponding first perspective is the rendering angle of the three-dimensional model, and the selection of the rendering angle of the three-dimensional model can be achieved by adjusting the camera perspective or the camera angle in the three-dimensional software. The above-mentioned particle special effect parameters are used to characterize the properties and movement mode of the particles generated based on the above-mentioned three-dimensional model, and can include particle size, particle shape, particle density, particle life and other particle attribute parameters related to particle attributes, as well as motion force type, motion force size, force field range and other particle motion parameters related to the particle operation mode. The above-mentioned particle special effects can be motion animations of multiple or single particles, and can be used to simulate the effects of convergence and dissipation of objects.
[0066] Specifically, Figure 1 As shown, the electronic device may be configured with a preset particle effect plug-in (for example, a form particle plug-in, a Particular particle plug-in, or other existing mature particle effect production plug-ins), and the particle effect plug-in is used to produce the particle effect of the three-dimensional model, and the three-dimensional software may be installed in the electronic device. When a user wants to produce a particle effect of a three-dimensional model, the electronic device may be triggered to obtain the three-dimensional model and the first rendering of the three-dimensional model from a local or cloud device, so that the electronic device obtains the model effect material of the three-dimensional model, and after obtaining the model effect material, the electronic device may start the particle effect plug-in in response to the user's start-up operation of the particle effect plug-in, and then determine the particle effect parameters of the three-dimensional model based on the particle effect plug-in, and use the first rendering as the first material map of the three-dimensional model based on the particle effect plug-in, and then the electronic device may generate the particle effect of the three-dimensional model according to the particle effect parameters of the three-dimensional model and the first material map, and export the corresponding particle effect file.
[0067] like Figure 2 As shown, Figure 2 : is a flow chart of a model special effect production method provided in an embodiment of the present application. The specific flow of the model special effect production method can be as follows:
[0068] S101. Acquire model special effects materials, where the model special effects materials include a three-dimensional model and a first rendering of the three-dimensional model at a first viewing angle.
[0069] In this embodiment, the above-mentioned model special effect production method can be applied to an electronic device installed with a preset special effect production software (for example, After Effects and other existing mature graphics and video processing software), and the special effect production software is used to produce special effects of a three-dimensional model, wherein the special effects are not limited to particle effects, and can also include luminous effects, shadow effects, halo effects or sharpening effects, etc. The above-mentioned model special effect material can be produced by material production software (for example, 3D Max, Maya and other existing mature three-dimensional animation rendering and production software), and the above-mentioned material production software and the above-mentioned special effect production software can be installed in the same electronic device, or in different electronic devices.
[0070] Specifically, the above-mentioned first rendering image can be obtained by rendering the three-dimensional model produced by the above-mentioned material production software, and the corresponding first perspective can be the rendering angle of the three-dimensional model, and in the above-mentioned material production software, the rendering angle of the three-dimensional model can be selected by adjusting the camera perspective or the camera angle.
[0071] For the convenience of description and understanding, the embodiment of the present application is described by taking the material production software and the special effect production software installed in the same electronic device as an example. Specifically, the user can make a three-dimensional model in the above-mentioned material production software in advance, and by rendering the three-dimensional model, obtain multiple two-dimensional renderings of the three-dimensional model at different perspectives (for example, the first rendering of the three-dimensional model at the first perspective, the second rendering of the three-dimensional model at the second perspective, etc.), and then the three-dimensional model and its two-dimensional renderings can be stored in the local storage or cloud storage in common model formats such as FBX or OBJ, and common image formats such as JPG or PNG. Afterwards, when the user wants to make particle special effects for the three-dimensional model, the above-mentioned electronic device can be triggered to obtain the three-dimensional model and at least one two-dimensional rendering from the local or cloud, so that the electronic device obtains the model special effect material of the three-dimensional model. Moreover, in specific implementation, the user can trigger the electronic device to display the special effect production interface by starting the special effect production software installed in the above-mentioned electronic device. For example, taking the special effect production software as After Effects as an example, the corresponding special effect production interface can be as follows Figure 3As shown, the electronic device can then respond to the user's model special effect material import operation on the special effect production interface, obtain the 3D model selected by the user and at least one 2D rendering of the 3D model from the local or cloud, and obtain the model special effect material. The specific implementation of the import operation can refer to the operation of importing models, images and other files in After Effects, so it will not be repeated here.
[0072] S102. Determine particle special effect parameters of the three-dimensional model.
[0073] Specifically, the above-mentioned particle special effects parameters can be used to characterize the properties and movement modes of particles generated based on the above-mentioned three-dimensional model in subsequent steps, which may specifically include particle attribute parameters related to particle attributes such as particle size, particle shape, particle density, and particle lifespan, as well as particle motion parameters related to particle movement such as motion force type, motion force magnitude, and force field range.
[0074] In one embodiment, Figure 4 As shown, the above S102 may specifically include:
[0075] S1021. In response to a start-up operation on a preset particle special effect plug-in, the particle special effect plug-in is started to display a special effect parameter setting interface.
[0076] Specifically, the electronic device may be configured with a preset particle effect plug-in (e.g., a form particle plug-in, a Particular particle plug-in, or other existing mature particle effect production plug-ins), and the particle effect plug-in may be called by the special effect production software to produce the particle effect of the three-dimensional model. Furthermore, during specific implementation, the electronic device may respond to the user's start-up operation of the preset particle effect plug-in on the special effect production interface, and call and start the particle effect plug-in through the special effect production interface to display the corresponding special effect parameter setting interface. For example, taking the particle effect plug-in as a form particle plug-in as an example, the corresponding special effect parameter setting interface may be as follows: Figure 5 As shown, the specific implementation method of the user's startup operation of the particle special effect plug-in can refer to the operation of starting the particle special effect plug-in in After Effects, so it will not be repeated here.
[0077] S1022. In response to the identification operation of the three-dimensional model on the special effect parameter setting interface, determine the particle special effect parameters to be used for the three-dimensional model based on the special effect parameter setting interface.
[0078] Specifically, Figure 5As shown, the above special effect parameter setting interface may include multiple particle special effect parameter groups 51 (for example, "basic form (Master)", "particle (Master)", "shadow (Master)", "layer map (Master)", etc.), and each particle special effect parameter group 51 may include multiple particle special effect parameters, for example, Figure 6 As shown in FIG. 1 , the particle effect parameter group “Master” may include a plurality of particle effect parameters for characterizing the basic form, size, position, rotation and other properties of the particle system. Figure 6 As shown, the user can change the value of the particle special effect parameter 61 "Basic form" to the OBJ model on the special effect parameter setting interface, and select the file of the above-mentioned three-dimensional model (for example, the model file with the file name "hua2") when setting the value of the particle special effect parameter 63 "3D model" to complete the identification operation of the three-dimensional model on the above-mentioned special effect parameter setting interface, so that the above-mentioned electronic device can respond to the identification operation, obtain the particle special effect parameters contained in the current special effect parameter setting interface, and obtain the particle special effect parameters to be used for the above-mentioned three-dimensional model.
[0079] In a specific embodiment, after the above S1022, the above S102 may further include:
[0080] S1023. Generate a particle special effect preview animation based on the three-dimensional model and the particle special effect parameters, and display the particle special effect preview animation in a preset window.
[0081] Specifically, after obtaining the above-mentioned particle special effect parameters, the above-mentioned electronic device can perform particle processing on the above-mentioned identified three-dimensional model based on the particle special effect parameters. For example, the nodes, edges, faces or volumes of the above-mentioned three-dimensional model can be converted into particles according to the particle special effect parameters to obtain a number of particles, and generate a particle special effect preview animation corresponding to the particle special effect parameters. Afterwards, the above-mentioned electronic device can also display the particle special effect preview animation in a preset window. For example, the complete particle special effect preview animation, or the first frame of the particle special effect preview animation can be displayed in the preset window, or any frame of the particle special effect preview animation selected by the user can be displayed in the preview window. In this way, the user can view and confirm the particle special effects corresponding to the particle special effect parameters in a timely manner, which greatly improves the visualization of the special effect production process.
[0082] And, in specific implementation, Figure 6As shown, the user can modify the value of the particle special effect parameter "Particles from" 64 on the special effect parameter setting interface to select which attribute (node, edge, surface or volume, etc.) of the three-dimensional model to generate particles. In this way, compared with the solution of generating a particle system based on a two-dimensional image in the prior art, a particle system with a three-dimensional form can be obtained, which is conducive to improving the realism of the object particle effect.
[0083] S1024. In response to the modification operation of the particle special effect parameters on the special effect parameter setting interface, determine the modified particle special effect parameters, and use the modified particle special effect parameters to update the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model.
[0084] Specifically, when the user modifies the particle special effect parameters included in the above special effect parameter setting interface, the above electronic device can respond to the user's modification operation, re-acquire the particle special effect parameters included in the above special effect parameter setting interface to obtain the modified particle special effect parameters, and based on the modified particle special effect parameters, perform particle processing on the identified three-dimensional model to obtain a number of particles, and generate and display the particle special effect preview animation corresponding to the modified particle special effect parameters in the above preset window to update the screen displayed in the above preset window. In this way, the user can timely view and confirm the particle special effect corresponding to the modified particle special effect parameters, which is conducive to improving the visualization of the special effect production process.
[0085] In a specific embodiment, the above S1024 may specifically include:
[0086] S1-1. In response to a selection operation on an animation frame in a particle special effect preview animation, the particle special effect parameters corresponding to the selected animation frame are displayed on a special effect parameter setting interface.
[0087] Among them, the above-mentioned animation frame can be a custom frame in the above-mentioned special effects production software (for example, the first frame of the particle special effects preview animation), or it can be any frame of the particle special effects preview animation selected by the user in the above-mentioned special effects production software.
[0088] S1-2. In response to a modification operation on the particle special effects parameters corresponding to the selected animation frame, determine the modified particle special effects parameters corresponding to the selected animation frame, and use the modified particle special effects parameters corresponding to the selected animation frame to update the selected animation frame in the particle special effects preview animation and the particle special effects parameters to be used in the three-dimensional model.
[0089] Specifically, after the user sets or modifies the particle special effect parameters corresponding to the selected animation frame on the special effect parameter setting interface, the electronic device can obtain the particle special effect parameters corresponding to the selected animation frame set or modified by the user, and can calculate the particle special effect parameters of other frames in the particle special effect preview animation based on the particle special effect parameters corresponding to the selected animation frame according to preset rules or user-selected rules. In addition, after the electronic device generates and displays the corresponding particle special effect preview animation based on the particle special effect parameters of each frame, the user can modify the particle special effect parameters corresponding to a frame that he is not satisfied with or wants to modify in the particle special effect preview animation to achieve more delicate and realistic special effects.
[0090] It is understandable that the above special effect parameter setting interface and preset window can be displayed independently from the above special effect production interface, or can be displayed superimposed on the special effect production interface. In addition, in addition to the above particle special effect plug-in, the above electronic device can also be configured with other special effect plug-ins, and different special effect plug-ins can be used to produce different special effects.
[0091] S103. Determine a first material map of the three-dimensional model according to the first rendering map.
[0092] Among them, Figure 4 As shown, the above S103 may specifically include:
[0093] S1033. In response to the operation of specifying the first rendering image as the model material on the special effect parameter setting interface, the first rendering image is used as the first material image of the three-dimensional model.
[0094] Specifically, the user can directly identify the first rendering as the first material map of the three-dimensional model on the special effect parameter setting interface, so that the electronic device can respond to the user's identification operation of the first rendering as the model material on the special effect parameter setting interface and use the first rendering as the first material map of the three-dimensional model. The specific implementation of the identification operation of the first rendering as the model material can refer to the identification operation of the image as a layer map in the form particle plug-in, for example, Figure 7 As shown, when the user sets the value of the particle special effect parameter "Layer" 71 in the particle special effect parameter group "Layer Map (Master)" on the above-mentioned special effect parameter setting interface, the user can select the file of the above-mentioned first rendering image (for example, an image file with the file name "00000") to complete the identification operation of the first rendering image as the model material on the above-mentioned special effect parameter setting interface.
[0095] In some specific embodiments, before the above S1033, the following may also be included:
[0096] S1031. Display the first rendering in the preset window.
[0097] Specifically, after obtaining the above-mentioned model special effects material, the above-mentioned electronic device can generate different layers based on the three-dimensional model and the first rendering image in the model special effects material, and display the layer for displaying the three-dimensional model and the layer for displaying the first rendering image separately or in superposition in the above-mentioned preset window.
[0098] S1032. In response to the adaptation operation on the three-dimensional model and the first rendering, adapt the first rendering to the three-dimensional model.
[0099] The purpose of adapting the first rendering image to the three-dimensional model is to ensure the rendering effect when the particles are rendered based on the first rendering image in the subsequent steps. In addition, in specific implementation, the step of adapting the first rendering image to the three-dimensional model may specifically include: adjusting the angle at which the three-dimensional model is displayed in the preset window so that the angle is consistent with the first viewing angle; and / or adjusting the size of the first rendering image displayed in the preset window so that the edge of the first rendering image in the preset window coincides with the edge of the layer where the first rendering image is located.
[0100] In a specific embodiment, the electronic device can automatically adjust the camera angle in the special effects production software to adjust the display angle of the three-dimensional model in the preset window to the same rendering angle (i.e., the first viewing angle) corresponding to the first rendering. In some alternative embodiments, the electronic device can also adjust the display angle of the three-dimensional model in the preset window in response to the user's adjustment operation of the camera angle on the special effects production interface, or in response to the user's adjustment operation of the angle of the three-dimensional model displayed in the preset window, and the user can repeatedly adjust and view the angle until the user believes that the display angle of the three-dimensional model in the preset window is the same as the first viewing angle.
[0101] In a specific embodiment, the electronic device may adjust the edge of the first rendering in the preset window to overlap with the edge of the layer where the first rendering is located by automatically adjusting the size of the first rendering displayed in the preset window. In some alternative embodiments, the electronic device may also adjust the size of the first rendering displayed in the preset window in response to a user's resizing operation (e.g., zooming, edge stretching, etc.) on the first rendering displayed in the preset window, and the user may repeatedly adjust and view the size until the user believes that the edge of the first rendering in the preset window has overlapped with the edge of the layer where the first rendering is located.
[0102] Accordingly, the above S1033 may specifically include:
[0103] In response to an identification operation of using the first rendering image as a model material on the special effect parameter setting interface, the adapted first rendering image is used as a first material image of the three-dimensional model.
[0104] In some alternative embodiments, the above S1032 can also be executed after the above S1033, that is, the above electronic device can first use the first rendering as the first material map, and then adapt the identified first rendering to the above three-dimensional model in the above preset window, and the specific implementation method of adapting the identified first rendering to the above three-dimensional model can refer to the above-mentioned specific implementation method of adapting the first rendering to the three-dimensional model, so it will not be repeated here.
[0105] S104. Generate particle effects of the three-dimensional model according to the particle effects parameters and the first material map.
[0106] In this embodiment, the particle special effects can be motion animations of multiple or single particles, and can be used to simulate the convergence, dissipation, and other effects of objects. The particle special effects parameters are used to characterize the properties and motion modes of particles generated based on the three-dimensional model, and can include particle attribute parameters related to particle attributes such as particle size, particle shape, particle density, and particle lifespan, as well as particle motion parameters related to the particle motion mode such as motion force type, motion force magnitude, and force field range. The first material map is used to provide color information of each particle generated based on the three-dimensional model.
[0107] Among them, Figure 4 As shown, the above S104 may specifically include:
[0108] S1041. Particleize the three-dimensional model according to the particle attribute parameters to obtain a plurality of particles.
[0109] Specifically, the electronic device may perform particle processing on the identified three-dimensional model according to the particle attribute parameters, wherein: Figure 6 As shown, the above-mentioned particle attribute parameters may include the particle attribute parameter "particle comes from" 64, and when the value of the particle attribute parameter "particle comes from" 64 is "edge", the corresponding electronic device can convert the edge of the above-mentioned three-dimensional model into particles to obtain a plurality of particles.
[0110] In one embodiment, Figure 8 As shown, the three-dimensional model 80 may have a plurality of nodes P, edges L and faces M, and when the above particles are generated based on the edges L of the three-dimensional model 80, as shown in FIG. Fig. 9 As shown, corresponding to the above particles ( Fig. 9The basic form of the particles (shown as white particles in the figure) as a whole (that is, the form without any special effects added) can be the same as the form of all edges L in the three-dimensional model 80. By analogy, when the particles are generated based on the nodes P of the three-dimensional model 80, the basic form of the particles as a whole can be the same as the form of all nodes P in the three-dimensional model 80; when the particles are generated based on the surfaces M of the three-dimensional model 80, the basic form of the particles as a whole can be the same as the form of all surfaces M in the three-dimensional model 80; when the particles are generated based on the volume of the three-dimensional model 80, the basic form of the particles as a whole can be the same as the volume form of the three-dimensional model 80.
[0111] In this way, compared with the solution of generating a particle system based on a two-dimensional image in the prior art, a particle system with a three-dimensional form can be obtained, which is conducive to improving the realism of the particle effect of the object.
[0112] S1042. Render the particles according to the first material map to obtain rendered particles.
[0113] In this embodiment, after rendering the above-mentioned plurality of particles, a plurality of rendered particles can be obtained, and the display effect diagram of the plurality of rendered particles as a whole at the current viewing angle can be as follows: Fig.11 As shown, the display effect diagram can be combined with the electronic device according to the particle attribute parameters to the first material diagram (such as Fig.10 It is understandable that the purpose of adapting the first rendering image to the three-dimensional model is to make the current viewing angle equal to or approximately the first viewing angle corresponding to the first rendering image when rendering the particles, so that each particle can be rendered, and then the display effect image of the rendered particles at the current viewing angle can be similar to the first material image to the greatest extent, so as to ensure the particle rendering effect.
[0114] In specific implementation, the electronic device can read the color information of the layer where the first material map is located (for example, attributes such as RGB, Alpha or Lightness), and use the read color information (for example, the values of attributes such as RGB, Alpha or Lightness) as the color information of the layer where the particles are located, so as to realize rendering of the particles.
[0115] S1043. Control the movement of the rendered particles according to the particle movement parameters to obtain particle special effects of the three-dimensional model.
[0116] Among them, Fig.12As shown, taking the particle special effect plug-in as the form particle plug-in as an example, the corresponding particle motion parameters may include "fluid force", "force life", "force relative position" and other particle special effect parameters that affect the flow effect of particles, among which, Fig.12 The particle special effect parameters contained in the special effect parameter setting interface correspond to a frame of particle motion after rendering. Fig.13 Furthermore, when making a dissipation effect of a three-dimensional model, the particle motion parameters may also include particle effect parameters related to the particle visibility of the key frame (such as Fig.14 shown).
[0117] In some embodiments, after completing the particle special effects of the above-mentioned three-dimensional model, the above-mentioned electronic device can also respond to user needs and use the particle special effects of the three-dimensional model as a basis in the above-mentioned special effects production software to add other special effects (for example, glowing special effects, shadow special effects, halo special effects or sharpening special effects, etc.) on the basis of the particle special effects of the three-dimensional model, so as to make the final displayed particle special effects more delicate and rich.
[0118] It is understandable that the particle special effects produced by the above S101 to S104 can be used as a model particle special effects template, and can be applied to other models that need to produce particle special effects. When applied to other models, it is only necessary to re-identify other models and a rendering of the model on the above special effect parameter setting interface. In this way, the model production cycle is greatly shortened and work efficiency is improved.
[0119] In the above embodiment, the above model special effect material may also include a second rendering of the three-dimensional model at a second viewing angle. Figure 4 As shown, after the above S104, it also includes:
[0120] S105. Determine a second material map of the three-dimensional model according to the second rendering map.
[0121] Among them, the specific implementation of the above S105 can refer to the specific implementation of determining the first material map of the three-dimensional model according to the first rendering map in the above S103. It is only necessary to replace the first rendering map with the second rendering map, and replace the first material map with the second material map in the description, so it will not be repeated here.
[0122] S106. Update the particle special effect using the second material and particle special effect parameters.
[0123] Specifically, the electronic device can generate a particle effect after modifying the material map according to the particle effect parameters and the second material map. Moreover, the specific implementation method of generating the particle effect after modifying the material map according to the particle effect parameters and the second material map can refer to the specific implementation method of generating the particle effect of the three-dimensional model according to the particle effect parameters and the first material map in S104 above, and it is only necessary to replace the first material map with the second material map in the description. In this way, after the particle effect of the three-dimensional model is completed, the color information of the particles in the particle effect can also be modified to facilitate the realization of different rendering effects.
[0124] From the above, it can be seen that the model special effects production method provided in this embodiment obtains model special effects materials, which include a three-dimensional model and a first rendering of the three-dimensional model at a first perspective, and then determines the particle special effects parameters to be used for the three-dimensional model, and determines the first material map of the three-dimensional model based on the first rendering map, and then generates the particle special effects of the three-dimensional model based on the particle special effects parameters and the first material map. Therefore, in the process of making model special effects, only one rendering of the model at the required perspective is required to complete the rendering of the model at one time, without the need for repeated rendering. This simplifies the production steps of the model special effects and saves rendering time while ensuring that the model special effects are delicate and realistic, thereby greatly shortening the production time of the model special effects.
[0125] Based on the method described in the above embodiment, this embodiment will be further described from the perspective of the model special effect production device. Fig.15 , Fig.15 The model special effect production device provided in the embodiment of the present application is specifically described, and the model special effect production device includes: an acquisition module 301, a first determination module 302, a first determination module 303 and a generation module 304, wherein:
[0126] (1) Acquisition module 301
[0127] The acquisition module 301 is used to acquire model special effect materials, where the model special effect materials include a three-dimensional model and a first rendering of the three-dimensional model at a first viewing angle.
[0128] In this embodiment, the above-mentioned model special effect production device can be integrated into an electronic device installed with a preset special effect production software (for example, After Effects and other existing mature graphics and video processing software), and the special effect production software is used to produce special effects of three-dimensional models, wherein the special effects are not limited to particle effects, and can also include luminous effects, shadow effects, halo effects or sharpening effects, etc. The above-mentioned model special effect material can be produced by material production software (for example, 3D Max, Maya and other existing mature three-dimensional animation rendering and production software). Specifically, the above-mentioned first rendering image can be obtained by rendering the three-dimensional model produced by the above-mentioned material production software, and the corresponding first viewing angle can be the rendering angle of the three-dimensional model, and the selection of the rendering angle of the three-dimensional model can be achieved by adjusting the camera viewing angle or the camera angle in the above-mentioned material production software.
[0129] (2) First determination module 302
[0130] The first determination module 302 is used to determine the particle special effect parameters to be used in the three-dimensional model.
[0131] The first determining module 302 may specifically include:
[0132] A starting unit, used to start the particle special effect plug-in in response to a start operation on a preset particle special effect plug-in, so as to display a special effect parameter setting interface;
[0133] The first determining unit is used to determine the particle special effect parameters to be used for the three-dimensional model based on the special effect parameter setting interface in response to the identification operation of the three-dimensional model on the special effect parameter setting interface.
[0134] In a specific embodiment, the first determining module 302 may further include:
[0135] A generating unit, used for generating a particle special effect preview animation based on the three-dimensional model and the particle special effect parameters, and displaying the particle special effect preview animation in a preset window;
[0136] The second determination unit is used to determine the modified particle special effect parameters in response to the modification operation of the particle special effect parameters on the special effect parameter setting interface, and use the modified particle special effect parameters to update the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model.
[0137] Specifically, the second determining unit may include:
[0138] A display subunit, for responding to a selection operation of an animation frame in a particle special effect preview animation, and displaying particle special effect parameters corresponding to the selected animation frame on a special effect parameter setting interface;
[0139] A determination subunit is used to determine the modified particle special effect parameters corresponding to the selected animation frame in response to a modification operation on the particle special effect parameters corresponding to the selected animation frame, and to update the selected animation frame in the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model using the modified particle special effect parameters corresponding to the selected animation frame.
[0140] (3) Second determination module 303
[0141] The second determination module 303 is used to determine a first material map of the three-dimensional model according to the first rendering map.
[0142] The second determining module 303 may specifically include:
[0143] The third determining unit is used to use the first rendering image as a first material image of the three-dimensional model in response to an identification operation of using the first rendering image as a model material on the special effect parameter setting interface.
[0144] In a specific embodiment, the second determining module 303 may further include:
[0145] A display unit, configured to display a first rendering in a preset window;
[0146] The adaptation unit is used to adapt the first rendering to the three-dimensional model in response to the adaptation operation on the three-dimensional model and the first rendering.
[0147] Accordingly, the third determining unit may be specifically configured to:
[0148] In response to an identification operation of using the first rendering image as a model material on the special effect parameter setting interface, the adapted first rendering image is used as a first material image of the three-dimensional model.
[0149] Specifically, the above adaptation unit may specifically include:
[0150] A first adjustment subunit, used to adjust the angle at which the three-dimensional model is displayed in the preset window so that the angle is consistent with the first viewing angle;
[0151] The second adjusting subunit is used to adjust the size of the first rendering image displayed in the preset window so that the edge of the first rendering image in the preset window overlaps with the edge of the layer where the first rendering image is located.
[0152] (4) Generation module 304
[0153] The generation module 304 is used to generate particle effects of the three-dimensional model according to the particle effect parameters and the first material map.
[0154] In this embodiment, the particle special effects can be motion animations of multiple or single particles, and can be used to simulate the convergence, dissipation, and other effects of objects. The particle special effects parameters are used to characterize the properties and motion modes of particles generated based on the three-dimensional model, and can include particle attribute parameters related to particle attributes such as particle size, particle shape, particle density, and particle lifespan, as well as particle motion parameters related to the particle motion mode such as motion force type, motion force magnitude, and force field range. The first material map is used to provide color information of each particle generated based on the three-dimensional model.
[0155] The particle special effect parameters may include particle attribute parameters and particle motion parameters. The generation module 304 may specifically include:
[0156] A generating unit, used for particle processing the three-dimensional model according to the particle attribute parameters to obtain a plurality of particles;
[0157] A rendering unit, used for rendering particles according to the first material map to obtain rendered particles;
[0158] The control unit is used to control the motion of the rendered particles according to the particle motion parameters to obtain the particle special effects of the three-dimensional model.
[0159] In the above embodiment, the above model special effect material may further include a second rendering of the three-dimensional model at a second viewing angle, and the above model special effect production device may further include:
[0160] (5) Third determination module
[0161] The third determining module is used to determine a second material map of the three-dimensional model according to the second rendering map.
[0162] (6) Update module
[0163] The update module is used to update the particle effect using the second material and the particle effect parameters.
[0164] In specific implementation, the above sub-units, units and modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above sub-units, units and modules can refer to the previous method embodiments and will not be repeated here.
[0165] As can be seen from the above, the model special effects production device provided in this embodiment includes an acquisition module for acquiring model special effects materials, the model special effects materials including a three-dimensional model, and a first rendering of the three-dimensional model at a first perspective; a first determination module for determining particle special effects parameters to be used for the three-dimensional model; a second determination module for determining the first material map of the three-dimensional model based on the first rendering; a generation module for generating particle special effects of the three-dimensional model based on the particle special effects parameters and the first material map, so that in the process of model special effects production, only one rendering of the model at a desired perspective is required to complete the rendering of the model at one time, without the need for repeated rendering, so that the model special effects production steps can be simplified and rendering time can be saved while ensuring that the model special effects are delicate and realistic, thereby greatly shortening the production time of the model special effects.
[0166] Accordingly, the embodiment of the present application also provides an electronic device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer, a personal digital assistant (PDA), or other terminal devices. Fig.16 As shown, Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0167] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400, executes various functions of the electronic device 400 and processes data by running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, thereby monitoring the electronic device 400 as a whole.
[0168] In the embodiment of the present application, the processor 401 in the electronic device 400 will load instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:
[0169] Acquire model special effects materials, where the model special effects materials include a three-dimensional model and a first rendering of the three-dimensional model at a first perspective;
[0170] Determine the particle special effect parameters to be used in the three-dimensional model;
[0171] Determine a first material map of the three-dimensional model according to the first rendering;
[0172] Generate a particle effect of the three-dimensional model according to the particle effect parameter and the first material map.
[0173] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0174] Optional, such as Fig.16 As shown, the electronic device 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Fig.16 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0175] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.
[0176] In an embodiment of the present application, the processor 401 executes a game application to generate a screen of a virtual three-dimensional scene on the touch display screen 403, which includes a graphical user interface (UI interface), and the graphical user interface includes a second spatial orientation indicator, which displays a spatial orientation mark corresponding to the target object, and the spatial orientation mark is used to indicate the position of the target object.
[0177] The touch screen 403 can be used to present images of a virtual three-dimensional scene and a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface.
[0178] The radio frequency circuit 404 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0179] The audio circuit 405 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another electronic device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0180] The input unit 406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0181] The power supply 407 is used to supply power to various components of the electronic device 400. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0182] although Fig.16 Not shown, the electronic device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0183] In the above embodiments, 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.
[0184] It can be seen from the above that the electronic device provided in this embodiment can save the production time of model special effects while ensuring that the model special effects are delicate and realistic.
[0185] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0186] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any one of the model special effects production methods provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0187] Acquire model special effects materials, where the model special effects materials include a three-dimensional model and a first rendering of the three-dimensional model at a first perspective;
[0188] Determine the particle special effect parameters to be used in the three-dimensional model;
[0189] Determine a first material map of the three-dimensional model according to the first rendering;
[0190] Generate a particle effect of the three-dimensional model according to the particle effect parameter and the first material map.
[0191] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0192] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0193] Since the computer program stored in the storage medium can execute the steps in any one of the model special effects production methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the model special effects production methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0194] The above is a detailed introduction to a model special effects production method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for producing model special effects, characterized in that: include: Acquire model special effects material, wherein the model special effects material includes a three-dimensional model and a first rendering of the three-dimensional model at a first viewing angle; Determining particle special effect parameters to be used in the three-dimensional model; Determine a first material map of the three-dimensional model according to the first rendering; Generate a particle effect of the three-dimensional model according to the particle effect parameters and the first material map; The particle special effect parameters include particle attribute parameters and particle motion parameters. The generating of the particle special effect of the three-dimensional model according to the particle special effect parameters and the first material map specifically includes: particle processing the three-dimensional model according to the particle attribute parameters to obtain a plurality of particles with a three-dimensional shape; The particles are rendered according to the first material map to obtain rendered particles, wherein the first material map is used to provide color information of each particle generated based on the three-dimensional model; the movement of the rendered particles is controlled according to the particle motion parameters to obtain particle special effects of the three-dimensional model.
2. The model special effects production method according to claim 1, characterized in that: Determining the particle special effect parameters to be used in the three-dimensional model specifically includes: In response to a start-up operation on a preset particle special effect plug-in, the particle special effect plug-in is started to display a special effect parameter setting interface; In response to an identification operation on the three-dimensional model on the special effect parameter setting interface, particle special effect parameters to be used for the three-dimensional model are determined based on the special effect parameter setting interface.
3. The model special effects production method according to claim 2, characterized in that: After determining the particle special effect parameters to be used by the three-dimensional model based on the special effect parameter setting interface, the method further includes: Generate a particle special effect preview animation based on the three-dimensional model and the particle special effect parameters, and display the particle special effect preview animation in a preset window; In response to a modification operation on the particle special effect parameters on the special effect parameter setting interface, the modified particle special effect parameters are determined, and the modified particle special effect parameters are used to update the particle special effect preview animation and the particle special effect parameters to be used by the three-dimensional model.
4. The model special effects production method according to claim 3, characterized in that: The step of determining the modified particle special effect parameters in response to the modification operation on the special effect parameter setting interface, and updating the particle special effect parameters to be used in the particle special effect preview animation and the three-dimensional model by using the modified particle special effect parameters, specifically includes: In response to a selection operation of an animation frame in the particle special effect preview animation, displaying particle special effect parameters corresponding to the selected animation frame on the special effect parameter setting interface; In response to a modification operation on the particle special effect parameters corresponding to the selected animation frame, the modified particle special effect parameters corresponding to the selected animation frame are determined, and the modified particle special effect parameters corresponding to the selected animation frame are used to update the selected animation frame in the particle special effect preview animation and the particle special effect parameters to be used in the three-dimensional model.
5. The model special effects production method according to claim 2, characterized in that: Determining the first material map of the three-dimensional model according to the first rendering map specifically includes: In response to an operation of specifying the first rendering as a model material on the special effect parameter setting interface, the first rendering is used as a first material map of the three-dimensional model.
6. The model special effect production method according to claim 5, characterized in that: Before using the first rendering as the first material map of the three-dimensional model in response to the identification operation of using the first rendering as the model material on the special effect parameter setting interface, the method further includes: Displaying the first rendering in a preset window; In response to the adaptation operation on the three-dimensional model and the first rendering, adapting the first rendering to the three-dimensional model; The using the first rendering image as the first material image of the three-dimensional model specifically includes: The adapted first rendering image is used as a first material image of the three-dimensional model.
7. The model special effect production method according to claim 6, characterized in that: The adapting the first rendering image to the three-dimensional model specifically includes: Adjusting the angle at which the three-dimensional model is displayed in the preset window so that the angle is consistent with the first viewing angle; The size of the first rendering image displayed in the preset window is adjusted so that an edge of the first rendering image in the preset window overlaps with an edge of a layer where the first rendering image is located.
8. The model special effects production method according to any one of claims 1 to 7, characterized in that: The model special effect material also includes a second rendering of the three-dimensional model at a second viewing angle, and after generating the particle special effect of the three-dimensional model according to the particle special effect parameter and the first material map, further includes: Determine a second material map of the three-dimensional model according to the second rendering map; The particle special effect is updated using the second material map and the particle special effect parameters.
9. A model special effects production device, characterized in that: include: An acquisition module, used to acquire model special effect materials, wherein the model special effect materials include a three-dimensional model and a first rendering of the three-dimensional model at a first viewing angle; A first determination module is used to determine the particle special effect parameters to be used in the three-dimensional model; A second determining module, configured to determine a first material map of the three-dimensional model according to the first rendering; A generation module, used for generating particle effects of the three-dimensional model according to the particle effects parameters and the first material map; The particle special effect parameters include particle attribute parameters and particle motion parameters. The generating of the particle special effect of the three-dimensional model according to the particle special effect parameters and the first material map specifically includes: particle processing the three-dimensional model according to the particle attribute parameters to obtain a plurality of particles with a three-dimensional shape; The particles are rendered according to the first material map to obtain rendered particles, wherein the first material map is used to provide color information of each particle generated based on the three-dimensional model; the movement of the rendered particles is controlled according to the particle motion parameters to obtain particle special effects of the three-dimensional model.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the model special effects production method as described in any one of claims 1-8.
11. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the steps in the model special effects production method according to any one of claims 1 to 8 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Image rendering method and device, storage medium and electronic device
CN110163943A
Animation file generation method and device, storage medium and electronic equipment
CN112150592A
Particle special effect rendering method, device and equipment and storage medium
CN112652044A