A 3D view conversion method and device for animation production
By acquiring and generating intermediate screen parameters during animation production, and adjusting screen parameters in real-time perspective, the problems of slow 3D view transition speed and abrupt effects are solved, achieving a faster and smoother screen transition effect.
Patent Information
- Application Number
- CN202210891008.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-07-27
AI Technical Summary
Existing technologies in animation production result in long adjustment times and abrupt effects during 3D view transitions, making it difficult to achieve smooth and natural screen transitions.
By acquiring the screen parameters of the start and end positions before the 3D view transformation, intermediate screen parameters are generated, and the screen parameters are adjusted in real time during the view rotation. The minimum parameter adjustment value and rounding method are used to achieve a smooth transition.
It speeds up 3D view transitions, ensures smooth and natural transitions, and improves the fluidity of the transition effect.
Smart Images

Figure CN115205426B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of animation production, and particularly relates to a 3D view conversion method and device for animation production. BACKGROUND
[0002] In the process of producing animation, according to the plot development of the animation, the 3D model needs to be continuously converted in view to obtain the corresponding two-dimensional picture.
[0003] The prior art is usually as follows: a virtual camera is set at a certain position, the shooting view of the camera is rotated according to the requirement to obtain a picture of different view, and then the corresponding picture parameters are adjusted to achieve the desired picture effect. This method has problems such as long adjustment time and abrupt adjustment effect. SUMMARY
[0004] In order to solve the above problems of the prior art, the present application provides a 3D view conversion method and device for animation production to achieve the picture effect after 3D view conversion faster and more smoothly.
[0005] In order to achieve the above purpose, the technical scheme adopted by the present application is as follows:
[0006] In a first aspect, the present application provides a 3D view conversion method for animation production, comprising:
[0007] Step S1, before 3D view conversion, obtaining the current picture parameters of the starting position and the expected picture parameters of the end position of 3D view conversion;
[0008] Step S2, generating intermediate picture parameters smoothly transitioned from the current picture parameters to the expected picture parameters;
[0009] Step S3, during 3D view conversion, obtaining a picture following the real-time view of the camera and the real-time picture parameters corresponding to the real-time view.
[0010] The present application has the beneficial effect that during 3D view conversion, the adjustment of the picture parameters is incorporated in the view rotation process of the camera, thereby speeding up the 3D view conversion, and at the same time, due to the existence of the intermediate picture parameters for smooth transition, the connection between the pictures before and after the 3D view conversion is more smooth and natural, thereby achieving the picture effect after 3D view conversion faster and more smoothly.
[0011] Optionally, each picture parameter has a minimum parameter adjustment value, and the step S2 comprises:
[0012] Step S21, obtaining an expected conversion view when the starting position is rotated to the end position during 3D view conversion, and obtaining an expected conversion step value according to the expected conversion view and the minimum conversion adjustment value.
[0013] Step S22, obtaining an expected parameter adjustment value of each picture parameter when rotating from the starting position to the ending position during the 3D view conversion, and obtaining an expected parameter step value of each picture parameter according to the expected parameter adjustment value of each picture parameter and the minimum parameter adjustment value corresponding to each picture parameter;
[0014] Step S23, changing the corresponding each picture parameter at each conversion view angle corresponding to the 3D view conversion process according to the proportional relationship between the expected conversion step value and the expected parameter step value, so as to generate intermediate picture parameters smoothly transitioning from the current picture parameter to the expected picture parameter.
[0015] Optionally, the step S23 of changing the corresponding each picture parameter at each conversion view angle corresponding to the 3D view conversion process comprises:
[0016] dividing the expected conversion step value by the expected parameter step value to obtain a view angle-parameter proportional value;
[0017] At each conversion view angle during the 3D view conversion process, accumulating the minimum parameter adjustment value on the current picture parameter according to the integer value of the difference between the real-time view angle and the starting view angle and the view angle-parameter proportional value, to obtain a real-time picture parameter under the real-time view angle.
[0018] According to the above description, the picture parameters under each conversion view angle are adjusted more reasonably according to the minimum adjustment value of different parameters, so that the pictures before and after the 3D view conversion are more natural.
[0019] Optionally, the rounding is rounding off.
[0020] According to the above description, compared with the upward rounding or the downward rounding, the rounding off can enter the picture parameter change situation earlier, so that the whole parameter change is more smooth and natural.
[0021] Optionally, the picture parameters include the distance of the camera and the blur degree of the picture.
[0022] In a second aspect, the present application provides a 3D view conversion device for animation production, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the following when executing the computer program:
[0023] Step S1, obtaining a current picture parameter of a starting position and an expected picture parameter of an ending position of a 3D view conversion before the 3D view conversion;
[0024] Step S2, generating intermediate picture parameters which are smoothly transitioned from the current picture parameters to the expected picture parameters;
[0025] Step S3, obtaining a picture following a real-time view angle of a camera and a real-time picture parameter corresponding to the real-time view angle during 3D view transition.
[0026] Optionally, each picture parameter has a minimum parameter adjustment value, and the step S2 comprises:
[0027] Step S21, obtaining an expected transition view angle when rotating from a start position to an end position during 3D view transition, and obtaining an expected transition step value according to the expected transition view angle and a minimum transition adjustment value;
[0028] Step S22, obtaining an expected parameter adjustment value of each picture parameter when rotating from a start position to an end position during 3D view transition, and obtaining an expected parameter step value of each picture parameter according to the expected parameter adjustment value of each picture parameter and a corresponding minimum parameter adjustment value;
[0029] Step S23, changing each corresponding picture parameter at each corresponding transition view angle during 3D view transition according to a proportional relationship between the expected transition step value and the expected parameter step value, so as to generate intermediate picture parameters which are smoothly transitioned from the current picture parameters to the expected picture parameters.
[0030] Optionally, the step S23 of changing each corresponding picture parameter at each corresponding transition view angle during 3D view transition comprises:
[0031] dividing the expected transition step value by the expected parameter step value to obtain a view-angle-parameter proportional value;
[0032] At each transition view angle during 3D view transition, accumulating a minimum parameter adjustment value on the current picture parameter according to an integer value of a difference between the real-time view angle and a start view angle and the view-angle-parameter proportional value, so as to obtain a real-time picture parameter under the real-time view angle.
[0033] Optionally, the integer value is a rounding integer value.
[0034] Optionally, the picture parameters comprise a distance of the camera and a blur degree of the picture.
[0035] The technical effects of the 3D view transition device for animation production provided by the second aspect are referred to the related descriptions of the 3D view transition method for animation production provided by the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1A main flowchart of a 3D view conversion method for an animation production according to an embodiment of the present application;
[0037] Figure 2 A structure diagram of a 3D view conversion device for an animation production according to an embodiment of the present application.
[0038] [Explanation of reference signs]
[0039] 1: A 3D view conversion device for an animation production;
[0040] 2: A processor;
[0041] 3: A memory. DETAILED DESCRIPTION
[0042] In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present application can be understood more clearly, thoroughly and completely, and so that the scope of the present application can be accurately conveyed to those skilled in the art.
[0043] Embodiment One
[0044] Please refer to Figure 1 A 3D view conversion method for an animation production, comprising:
[0045] Step S1, before 3D view conversion, obtaining current picture parameters of a starting position and expected picture parameters of an ending position for 3D view conversion;
[0046] In the present embodiment, the picture parameters involved in the current picture parameters and the expected picture parameters include the distance of the camera and the blurring degree of the picture. Among them, the distance of the camera and the blurring degree of the picture are sometimes also closely related, such as long shots are more blurred and close-ups are more clear, which can be selected according to the performance to be presented by the current picture.
[0047] Step S2, generating intermediate picture parameters smoothly transitioning from the current picture parameters to the expected picture parameters;
[0048] In the present embodiment, each picture parameter has a minimum parameter adjustment value, and then step S2 includes:
[0049] Step S21, obtaining an expected conversion view angle when rotating from the starting position to the ending position during 3D view conversion, and obtaining an expected conversion step value according to the expected conversion view angle and the minimum conversion adjustment value;
[0050] In this embodiment, the camera view angle is 45° at the start position and 90° at the end position, the expected conversion view angle is 45°, the minimum parameter adjustment value is 1°, and the expected parameter step value is 45.
[0051] It should be noted that the view conversion of the camera in the 3D animation scene is three-dimensional, not planar. This embodiment is illustrated by planar conversion. The three-dimensional view conversion involves at least two angles. The same as above, this embodiment will not be described in detail.
[0052] In step S22, the expected parameter adjustment value of each picture parameter when the 3D view conversion is rotated from the start position to the end position is obtained. The expected parameter step value of each picture parameter is obtained according to the expected parameter adjustment value of each picture parameter and the corresponding minimum parameter adjustment value.
[0053] In this embodiment, the blurring degree of the picture has five scales from the clearest to the blurriest. The blurring degree of the start position and the end position differs by three scales, and thus the expected parameter step value is 3.
[0054] In step S23, according to the proportional relationship between the expected conversion step value and the expected parameter step value, each picture parameter corresponding to each conversion view angle in the 3D view conversion process is changed, so as to generate intermediate picture parameters smoothly transitioning from the current picture parameter to the expected picture parameter.
[0055] In this embodiment, the changing of each picture parameter corresponding to each conversion view angle in the 3D view conversion process in step S23 includes:
[0056] The value obtained by dividing the expected conversion step value by the expected parameter step value is the view-parameter proportional value.
[0057] At each conversion view angle in the 3D view conversion process, the difference between the real-time view angle and the start view angle and the integer value of the view-parameter proportional value are accumulated on the current picture parameter by the minimum parameter adjustment value, to obtain the real-time picture parameter under the real-time view angle.
[0058] In this embodiment, the rounding is rounding off.
[0059] Specifically, the expected conversion step value is 45, the expected parameter step value of the blur degree of the picture, which is a picture parameter, is 3, the ratio of the two is 15, the initial view angle of the camera at the initial position is 45°, when the real-time view angle is 46°, the difference between the real-time view angle and the initial view angle is 1, the rounding of 1 and 15 is 0, and the blur degree of the picture is not adjusted, until the real-time view angle is 53°, the difference between the real-time view angle and the initial view angle is 8, the rounding of 8 and 15 is 1, and the blur degree is increased by one scale at the conversion view angle of 53°, and so on.
[0060] That is, steps S21 to S23 in step S2 are to obtain each picture parameter corresponding to each conversion view angle in the 3D view conversion process in advance.
[0061] It should be understood that the intermediate picture parameters are a general term of the real-time picture parameters.
[0062] Step S3, during the 3D view conversion, the picture is obtained following the real-time view angle of the camera and the real-time picture parameter corresponding to the real-time view angle.
[0063] In step S3, since the picture parameters corresponding to each view angle have been obtained in advance, during the view conversion, only the corresponding parameters need to be adjusted, which ensures the smoothness of the 3D view conversion.
[0064] Therefore, during the 3D view conversion, the adjustment of the picture parameters is incorporated in the view angle rotation process of the camera, thereby accelerating the speed of the 3D view conversion, and at the same time, the intermediate picture parameters are used for smooth transition, so that the connection between the pictures before and after the 3D view conversion is more smooth and natural, thereby achieving the picture effect after the 3D view conversion faster and more smoothly.
[0065] Embodiment two
[0066] Please refer to Figure 2 A 3D view conversion device 1 for animation production, comprising a memory 3, a processor 2, and a computer program stored in the memory 3 and executable on the processor 2, wherein the processor 2 implements the steps in the above-mentioned embodiment one when executing the computer program.
[0067] Since the system / device described in the above-mentioned embodiments of the present application is the system / device used for implementing the method of the above-mentioned embodiments of the present application, the specific structure and modifications of the system / device can be understood by those skilled in the art based on the method described in the above-mentioned embodiments of the present application, and thus will not be described here. Any system / device used for the method of the above-mentioned embodiments of the present application belongs to the scope of the present application.
[0068] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, a system or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code thereon for use by or in connection with an instruction execution system. For the purposes of this description, a computer-usable or computer readable storage medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
[0069] The present application is described in reference to the flowchart and / or block diagrams of the method, apparatus (system) and computer program product according to embodiments of the present application. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions of the flowchart and / or block diagrams.
[0070] It should be noted that the description of the application is not limited to the embodiments described above. It will be apparent to those skilled in the art that various modifications and variations can be made to the specific embodiments without departing from the scope or spirit of the application. One of the skills in the art will be apparent that the application can also be embodied in an article of manufacture that includes a computer usable medium having computer readable program code embodied therein. It should also be noted that the use of the terms "include", "includes", "including", "have", "has", "having", or variants thereof are intended to be equivalent to the term "comprise", "comprises", "comprising", "comprised", "comprising", "comprises" or "comprising" and are not intended to exclude other additives, components, elements, or steps. It should further be noted that the use of the terms "first", "second" and "third" are intended to be illustrative only and are not intended to connote any order or precedence. The terms "first", "second", and "third" are intended to be understood as part of the description and not as part of the claims.
[0071] In addition, it should be noted that the description of the application in this specification uses terms such as "one embodiment", "some embodiments", "an embodiment", "example", "specific example" or "some examples" to describe various embodiments of the application. The specific features, structures, materials or characteristics described in conjunction with these embodiments or examples are included in at least one embodiment or example of the application. In this specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.
[0072] Although the preferred embodiments of the application have been described, those skilled in the art will make further changes and modifications to these embodiments after learning the basic inventive concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the application.
[0073] It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.
Claims
1. A method for 3D view conversion in animation production, characterized in that, include: Step S1: Before the 3D view transformation, obtain the current screen parameters at the starting position and the expected screen parameters at the ending position of the 3D view transformation. Step S2: Generate intermediate frame parameters that smoothly transition from the current frame parameters to the expected frame parameters; Step S3: During 3D view transformation, the image is obtained by following the camera's real-time viewing angle and the real-time image parameters corresponding to the real-time viewing angle; The image parameters include the camera's distance and the degree of image blur. Each image parameter has a minimum adjustment value. Therefore, step S2 includes: Step S21: Obtain the expected transformation perspective when rotating from the starting position to the ending position during 3D view transformation, and obtain the expected transformation step value based on the expected transformation perspective and the minimum transformation adjustment value; Step S22: Obtain the expected parameter adjustment value of each screen parameter when rotating from the starting position to the ending position during 3D view transformation; obtain the expected parameter step value of each screen parameter based on the expected parameter adjustment value of each screen parameter and the corresponding minimum parameter adjustment value. Step S23: According to the ratio between the expected conversion step value and the expected parameter step value, change each corresponding screen parameter when corresponding to each conversion perspective in the 3D view conversion process, thereby generating intermediate screen parameters that smoothly transition from the current screen parameters to the expected screen parameters; In step S23, changing each corresponding screen parameter at each perspective during the 3D view transformation process includes: The viewpoint-parameter ratio value is obtained by dividing the expected conversion step value by the expected parameter step value. During each viewpoint transition in the 3D view transition process, the minimum parameter adjustment value is accumulated on the current screen parameters according to the difference between the real-time viewpoint and the initial viewpoint and the integer value of the viewpoint-parameter ratio, to obtain the real-time screen parameters under the real-time viewpoint.
2. The 3D view conversion method for animation production according to claim 1, characterized in that, The rounding mentioned refers to rounding to the nearest integer.
3. A 3D view conversion device for animation production, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it performs the following: Step S1: Before the 3D view transformation, obtain the current screen parameters at the starting position and the expected screen parameters at the ending position of the 3D view transformation. Step S2: Generate intermediate frame parameters that smoothly transition from the current frame parameters to the expected frame parameters; Step S3: During 3D view transformation, the image is obtained by following the camera's real-time viewing angle and the real-time image parameters corresponding to the real-time viewing angle; The image parameters include the camera's distance and the degree of image blur. Each image parameter has a minimum adjustment value. Therefore, step S2 includes: Step S21: Obtain the expected transformation perspective when rotating from the starting position to the ending position during 3D view transformation, and obtain the expected transformation step value based on the expected transformation perspective and the minimum transformation adjustment value; Step S22: Obtain the expected parameter adjustment value of each screen parameter when rotating from the starting position to the ending position during 3D view transformation; obtain the expected parameter step value of each screen parameter based on the expected parameter adjustment value of each screen parameter and the corresponding minimum parameter adjustment value. Step S23: According to the ratio between the expected conversion step value and the expected parameter step value, change each corresponding screen parameter when corresponding to each conversion perspective in the 3D view conversion process, thereby generating intermediate screen parameters that smoothly transition from the current screen parameters to the expected screen parameters; In step S23, changing each corresponding screen parameter at each perspective during the 3D view transformation process includes: The viewpoint-parameter ratio value is obtained by dividing the expected conversion step value by the expected parameter step value. During each viewpoint transition in the 3D view transition process, the minimum parameter adjustment value is accumulated on the current screen parameters according to the difference between the real-time viewpoint and the initial viewpoint and the integer value of the viewpoint-parameter ratio, to obtain the real-time screen parameters under the real-time viewpoint.
4. The 3D view conversion device for animation production according to claim 3, characterized in that, The rounding mentioned refers to rounding to the nearest integer.
Citation Information
Patent Citations
Animation playing method and device, electronic equipment and storage medium
CN113658300A
Three-dimensional parking display method, vehicle, and storage medium
WO2021228250A1