Three-dimensional virtual camera creation method and device, equipment and storage medium

By obtaining arc screen parameters and viewpoint positions of the audience, the arc screen model of the virtual camera is established, which solves the problem that the pupil distance and zero aberration surface are difficult to control at the same time in the virtual camera, and the three-dimensional effect optimization is achieved at different distances to ensure that The best visual experience for virtual cameras.

CN119228999APending Publication Date: 2024-12-31FANTAWILD DIGITAL FILM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411243384.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, the pupil distance and zero aberration surface of the virtual camera are difficult to control at the same time, resulting in uncomfortable three-dimensional effects, especially difficult to adjust at different distances.

Method used

By obtaining arc screen parameters and viewer viewpoint positions, creating arc screen models, and establishing the correlation between pupil distance and zero aberration surface, calculating the viewpoint positions and pupil distances of virtual stereo cameras to ensure adaptive adjustments at different distances .

Benefits of technology

Automatic adaptability adjustment of the pupil distance and zero aberration surface at different distances is achieved, avoiding the problem of discomfort in the three-dimensional effect, making it convenient for the producer to adjust in the virtual camera, and ensuring the best presentation of the three-dimensional effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119228999A_ABST
    Figure CN119228999A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional virtual camera creating method and device, equipment and a storage medium. The method comprises the steps that arc screen parameters and audience viewpoint positions are acquired; creating an arc-shaped screen model according to the arc-shaped screen parameters and determining a viewpoint position of the virtual stereo camera; and establishing a correlation between the interpupillary distance and the zero aberration surface based on the arc screen model. According to the invention, the interpupillary distance and the zero aberration surface are associated, and when one attribute is changed, the other attribute is also adaptively changed, so that a producer only needs to select a subject needing to be expressed under different distances without knowing the appropriate interpupillary distance, the producer can conveniently adjust, and the production efficiency is improved. The problem that the displayed three-dimensional effect is uncomfortable due to the fact that the pupil distance attribute is too large when the main body is located at a certain distance is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and more specifically to a three-dimensional virtual camera creation method, device, equipment and storage medium. Background Art

[0002] At present, in the process of making 3D movies in virtual engines, the pupil distance and zero aberration plane of the program in the production software Maya are adjusted separately. The producer cannot control the two properties at the same time to make the picture achieve the most suitable state of 3D effect. When some subjects are at certain distances, the pupil distance may be too large, causing 3D discomfort.

[0003] Chinese patent, publication number CN117379785A discloses a control method, device and electronic device for a virtual camera, which maps the sphere information of a preset polyhedron that matches the preset camera motion trajectory to the surface of a target polyhedron, and obtains a target camera motion trajectory suitable for shooting a target model, so that the method can automatically adapt to the camera motion trajectory of different object models, thereby improving the camera shooting effect. Similar to this application, both have the creation control of a virtual camera, but the application and creation method are different.

[0004] A Chinese patent, publication number CN117596349A, discloses a method and system for space virtual shooting based on a virtual engine, as well as a storage medium and an electronic device, wherein the method includes: importing a virtual model in a created virtual scene into a virtual engine, and constructing a virtual scene by using an algorithm and real-time rendering of computer graphics data; capturing image or video information in the constructed virtual scene by a panoramic camera, and constructing a 360-degree virtual scene in the virtual scene according to the captured image or video information; and sending the constructed 360-degree virtual scene to a VR head-mounted display. This technology can generate realistic virtual scenes in real time by using computer graphics and rendering technology, and present them to users at a high frame rate. By using a panoramic camera or rendering technology, panoramic images or videos can be captured or generated, allowing users to experience the virtual environment from a 360-degree perspective. It is also applied to the virtual engine space as in this application, but this technology is to construct a virtual scene and transmit it to a VR head-mounted display after rendering. Both the creation method and the usage scenario are different. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a three-dimensional virtual camera creation method, device, equipment and storage medium, aiming to solve the problem that the pupil distance and the zero aberration surface properties cannot be controlled simultaneously, making it difficult to present the stereoscopic effect in the most appropriate state.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for creating a three-dimensional virtual stereo camera, comprising:

[0008] Obtain the curved screen parameters and the viewer's viewpoint position;

[0009] Creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera;

[0010] The relationship between pupil distance and zero aberration surface is established based on the curved screen model.

[0011] Furthermore, the step of creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera includes:

[0012] Divide the width of the curved screen into several equal parts;

[0013] A virtual stereo camera is set in each equally divided area;

[0014] When the camera viewing angle width of the virtual stereo camera is aligned with the width of the corresponding equally divided area, the placement position of the virtual stereo camera is determined;

[0015] The placement position is used as the viewpoint position of the virtual stereo camera, and the virtual stereo camera is placed at the viewpoint position.

[0016] Furthermore, the establishing of the association between the pupil distance and the zero aberration plane based on the curved screen model includes:

[0017] Set the desired interpupillary distance between the two cameras of the virtual stereo camera;

[0018] The zero-disparity surfaces of the two cameras of the virtual stereo camera are calculated according to the expected pupil distance.

[0019] Furthermore, the zero-disparity surfaces of the two cameras of the virtual stereo camera are calculated according to the expected pupil distance, and the calculation formula is as follows:

[0020] Where DE is the value of the zero aberration surface, AF is the pupil distance, AC is the equivalent focal length, and BG is the film width.

[0021] Furthermore, after establishing the association between the pupil distance and the zero aberration surface based on the curved screen model, the method further includes:

[0022] When simulating shooting, obtain the parameters of the real stereo camera;

[0023] The viewpoint position of the real stereo camera is calculated according to the parameters of the real stereo camera.

[0024] Furthermore, the viewpoint position of the real stereo camera is calculated according to the parameters of the real stereo camera, and the calculation formula is as follows:

[0025] Where OE is the viewpoint, EH is the equivalent focal length, CD is the film width, AB is the chord length of the curved screen, FG is the chord height of the curved screen, and OF is the radius of the curved screen.

[0026] In a second aspect, the present invention further provides a three-dimensional virtual stereo camera creation device, comprising a first acquisition unit, a creation unit and an association unit;

[0027] The first acquisition unit is used to acquire the curved screen parameters and the viewer's viewpoint position;

[0028] The creation unit is used to create a curved screen model according to the curved screen parameters and determine the viewpoint position of the virtual stereo camera;

[0029] The association unit is used to establish the association between the pupil distance and the zero aberration surface based on the curved screen model.

[0030] Furthermore, it also includes a second acquisition unit and a calculation unit;

[0031] The second acquisition unit is used to acquire parameters of a real stereo camera during simulated shooting;

[0032] The calculation unit is used to calculate the viewpoint position of the real stereo camera according to the parameters of the real stereo camera.

[0033] In a third aspect, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned three-dimensional virtual stereo camera creation method when executing the computer program.

[0034] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the three-dimensional virtual stereo camera creation method as described above.

[0035] Compared with the prior art, the present invention has the following beneficial effects: a method for creating a three-dimensional virtual stereo camera, comprising: obtaining curved screen parameters and the viewpoint position of the audience; creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera; and establishing an association between pupil distance and the zero aberration plane based on the curved screen model. The present invention associates pupil distance with the zero aberration plane, and when one attribute changes, the other attribute will also be adaptively changed, so that the producer does not need to know how much pupil distance is appropriate at different distances, but only needs to select the subject to be presented, which facilitates the producer's adjustment and avoids the problem that the pupil distance attribute is too large when the subject is at certain distances, resulting in an uncomfortable stereo effect.

[0036] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0038] Figure 1 A process of creating a three-dimensional virtual camera provided by a specific embodiment of the present invention Figure 1 ;

[0039] Figure 2 A process of creating a three-dimensional virtual camera provided by a specific embodiment of the present invention Figure 2 ;

[0040] Figure 3 A schematic block diagram of a three-dimensional virtual camera creation device provided by a specific embodiment of the present invention Figure 1 ;

[0041] Figure 4 A schematic block diagram of a three-dimensional virtual camera creation device provided by a specific embodiment of the present invention Figure 2 ;

[0042] Figure 5 A schematic block diagram of a computer device provided for a specific embodiment of the present invention;

[0043] Figure 6 A schematic diagram of a zero aberration surface provided by a specific embodiment of the present invention;

[0044] Figure 7 A schematic diagram of aligning the camera viewing angle width of a virtual stereo camera provided by a specific embodiment of the present invention with the width of the corresponding equally divided area;

[0045] Figure 8 A schematic diagram of the solution principle of the zero aberration surface provided by a specific embodiment of the present invention;

[0046] Fig. 9 A schematic diagram of the solution principle of the viewpoint position of a real stereo camera provided in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0049] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0050] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] In order to understand the present invention more clearly, the technical terms involved in the present invention are explained as follows:

[0052] Zero disparity plane: refers to the area on the plane where the images captured by the left and right cameras (also called binocular cameras) in a stereo camera have no disparity. When objects on this plane are presented in a stereo image, there is no stereoscopic visual dislocation. This plane is usually the area where the audience feels most comfortable. Figure 6 As shown, in Figure 6 The materials captured by the two cameras on the middle red convergence plane completely overlap, with no aberration, and the red plane is the zero aberration plane.

[0053] Interpupillary distance: refers to the distance between the left and right cameras in a stereo camera. When creating stereo images, the expected interpupillary distance is generally set to be close to the interpupillary distance of the human eye in order to simulate a true 3D visual effect.

[0054] Curved screen: refers to a curved screen used to display images or videos. This type of screen is usually used to provide a wider field of view and a more immersive experience. In the process of creating a 3D virtual stereo camera, the curved screen is used as a reference to determine the placement and viewing angle of the camera.

[0055] The present invention is described below by means of specific embodiments.

[0056] like Figure 1 As shown, an embodiment of the present invention provides a method for creating a three-dimensional virtual stereo camera, including the following steps: S10-S30.

[0057] S10, obtaining curved screen parameters and audience viewpoint position.

[0058] The curved screen parameters and the audience's viewpoint position are data from actual scenes and can be obtained from actual scene measurements. The curved screen parameters include the curved screen radius, curved screen angle, and curved screen height, which can all be obtained from actual scenes.

[0059] S20, creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera.

[0060] By creating an accurate curved screen model and determining the viewpoint position of the virtual stereo camera, it can be ensured that the viewing angle of the virtual stereo camera can cover the entire curved screen.

[0061] In one embodiment, step S20 specifically includes the following steps: S201 - S204 .

[0062] S201, dividing the width of the curved screen into several equal parts.

[0063] The entire curved screen is divided into several equal areas, for example, three equal areas, four equal areas, etc., so as to set a virtual stereo camera in each area. Specifically, according to the total width of the curved screen and the number of cameras required, the screen width is evenly divided into several equal areas. The width of each equal area should be equal to ensure that the area covered by each camera is consistent.

[0064] S202: Set a virtual stereo camera in each equally divided area.

[0065] A virtual stereo camera is set in each equally divided area. The viewing angle of each camera should be aligned with the width of its corresponding area to ensure that each camera can cover its corresponding equally divided area and the coverage range of all cameras can be combined to fully cover the entire screen.

[0066] S203: When the camera viewing angle width of the virtual stereo camera is aligned with the width of the corresponding equally divided area, the placement position of the virtual stereo camera is determined.

[0067] Adjust the position of each virtual stereo camera so that the width of its field of view is exactly aligned with the width of the region.

[0068] S204: Use the placement position as the viewpoint position of the virtual stereo camera, and place the virtual stereo camera at the viewpoint position.

[0069] The previously determined camera placement position is used as the viewpoint position of each camera, and the camera is actually placed at the position, ensuring that the camera's orientation and angle are correct to cover the corresponding equally divided area.

[0070] For steps S201-S204, it can be ensured that the position and viewing angle of each virtual stereo camera are accurately adjusted so as to completely cover the curved screen. Figure 7 As shown, the curved screen is divided into three equal areas, each of which is equipped with a virtual stereo camera. Figure 7 It is the state when the camera viewing angle widths of the three virtual stereo cameras are aligned with the widths of the corresponding equally divided areas.

[0071] S30. Establishing a relationship between pupil distance and zero aberration surface based on the curved screen model.

[0072] In one embodiment, step S30 specifically includes the following steps: S301 - S302 .

[0073] S301 , setting the desired pupil distance of two cameras of the virtual stereo camera.

[0074] The expected pupil distance can be set according to actual conditions. Generally, the expected pupil distance can be set with reference to the pupil distance of the human eye, that is, the expected pupil distance between the left and right cameras of the virtual stereo camera is set to match the pupil distance of the human eye.

[0075] S302: Calculate zero-disparity surfaces of two cameras of the virtual stereo camera according to the expected pupil distance.

[0076] The calculation formula is as follows:

[0077] Where DE is the value of the zero aberration surface, AF is the pupil distance, AC is the equivalent focal length, and BG is the film width.

[0078] For a clearer understanding of the above formula, please refer to Figure 8 , Figure 8 In the figure, △ABC and △ADE are similar triangles, the equivalent focal length = AC, and the value of the zero aberration surface translateZ = Tz (ie DE).

[0079] So we have:

[0080] It should be noted that in actual applications, the units need to be converted and converted into centimeters for calculation. 2.54 is the conversion coefficient from inches to centimeters. At the same time, 1.2 is a coefficient, which is a parameter value that meets the comfortable stereo effect obtained through repeated experimental tests. With the addition of this coefficient, the actual stereo experience will be more comfortable. The last division in the formula is 100 to convert from centimeters to meters for actual reference.

[0081] By associating the pupil distance and the zero aberration plane, when one of the variables is known, the other variable can be obtained. In specific applications, the producer does not need to know the appropriate pupil distance at different distances, but only needs to select the subject to be expressed, which facilitates the producer's adjustment and avoids the problem of the pupil distance being too large when the subject is at a certain distance, resulting in an uncomfortable three-dimensional effect.

[0082] like Figure 2 As shown, in one embodiment, after step S30, the following steps are further included: S301-S302.

[0083] S301, during simulation shooting, obtaining parameters of a real stereo camera;

[0084] S302: Calculate the viewpoint position of the real stereo camera according to the parameters of the real stereo camera.

[0085] For S301-S302, when performing simulated shooting, it is necessary to use it as a real-shot camera. It is necessary to obtain the film width and equivalent focal length of the real stereo camera, and then use the formula to calculate the viewpoint position of the real stereo camera, and adjust the real stereo camera to the viewpoint position. The calculation formula is as follows:

[0086] Wherein, OE is the movable range of the viewpoint position, E is the viewpoint position, CD is the film width, AB is the chord length of the curved screen, FG is the chord height of the curved screen, and OF is the radius of the curved screen.

[0087] For a clearer understanding of the above formula, please refer to Fig. 9 , Fig. 9 AFB is the arc screen, E is the camera viewpoint, O is the center of the arc screen, AB is the arc screen chord length, FG is the arc screen chord height, CD is the camera film width, and EH is the equivalent focal length. △ABE and △CDE are similar triangles.

[0088] Based on this formula, the viewpoint That is, OE represents the distance the viewpoint should move.

[0089] By utilizing the parameters of the real-life camera and simulating real-life shooting based on the above formula, shooting is completed in a virtual three-dimensional environment and all-round data measurement is performed, including data such as the height of the camera from the ground, the distance from the camera to the object, and the height difference between the object and the camera.

[0090] The embodiment of the present invention further provides a 3D virtual stereo camera creation device, which is used to execute the steps in any embodiment of the above 3D virtual stereo camera creation method. Figure 3 , Figure 3 A schematic block diagram of a 3D virtual stereo camera creation device 100 provided in an embodiment of the present application is shown, and the 3D virtual stereo camera creation device 100 specifically includes a first acquisition unit 110, a creation unit 120, and an association unit 130. The first acquisition unit 110 is used to acquire arc screen parameters and the viewer's viewpoint position. The creation unit 120 is used to create an arc screen model according to the arc screen parameters and determine the viewpoint position of the virtual stereo camera. The association unit 130 is used to establish an association between the pupil distance and the zero aberration surface based on the arc screen model.

[0091] In one embodiment, the creation unit 120 includes a division module, a setting module, an alignment module, and an adjustment module. The division module is used to divide the width of the arc screen into a number of equal parts. The setting module is used to set a virtual stereo camera in each equal area. The alignment module is used to determine the placement position of the virtual stereo camera when the camera viewing angle width of the virtual stereo camera is aligned with the width of the corresponding equal area. The adjustment module is used to use the placement position as the viewpoint position of the virtual stereo camera and place the virtual stereo camera to the viewpoint position.

[0092] In one embodiment, the association unit 130 includes a setting module and a calculation module. The setting module is used to set the desired pupil distance of the two cameras of the virtual stereo camera. The calculation module is used to calculate the zero disparity surface of the two cameras of the virtual stereo camera according to the desired pupil distance.

[0093] like Figure 4 As shown, in one embodiment, the 3D virtual stereo camera creation device 100 further includes a second acquisition unit 140 and a calculation unit 150. The second acquisition unit 140 is used to acquire the parameters of the real stereo camera during the simulation shooting. The calculation unit 150 is used to calculate the viewpoint position of the real stereo camera according to the parameters of the real stereo camera.

[0094] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned three-dimensional virtual stereo camera creation device 100 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0095] The above-mentioned three-dimensional virtual stereo camera creation device can be implemented in the form of a computer program, which can be used in Figure 5 Runs on the computer device shown.

[0096] See also Figure 5 , Figure 5700 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 700 may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.

[0097] like Figure 5 As shown, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned three-dimensional virtual stereo camera creation method are implemented.

[0098] The computer device 700 may be a terminal or a server. The computer device 700 includes a processor 720 , a memory, and a network interface 750 connected via a system bus 710 , wherein the memory may include a non-volatile storage medium 730 and an internal memory 740 .

[0099] The non-volatile storage medium 730 may store an operating system 731 and a computer program 732. When the computer program 732 is executed, the processor 720 may execute a method for creating a three-dimensional virtual stereo camera.

[0100] The processor 720 is used to provide computing and control capabilities and support the operation of the entire computer device 700.

[0101] The internal memory 740 provides an environment for the operation of the computer program 732 in the non-volatile storage medium 730. When the computer program 732 is executed by the processor 720, the processor 720 can execute the three-dimensional virtual stereo camera creation method.

[0102] The network interface 750 is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device 700 to which the present application scheme is applied. The specific computer device 700 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. The processor 720 is used to run the program code stored in the memory to implement the steps of the three-dimensional virtual stereo camera creation method.

[0103] Those skilled in the art will understand that Figure 5 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 5The embodiments shown are consistent and will not be described again here.

[0104] It should be understood that in the embodiment of the present application, the processor 720 may be a central processing unit (CPU), and the processor 720 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0105] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the method for creating a three-dimensional virtual stereo camera disclosed in the embodiment of the present invention is implemented.

[0106] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0107] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.

[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.

[0111] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for creating a three-dimensional virtual stereo camera, characterized in that: include: Obtain the curved screen parameters and the viewer's viewpoint position; Creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera; The relationship between pupil distance and zero aberration surface is established based on the curved screen model.

2. A method for creating a three-dimensional virtual stereo camera according to claim 1, characterized in that: The step of creating a curved screen model according to the curved screen parameters and determining the viewpoint position of the virtual stereo camera includes: Divide the width of the curved screen into several equal parts; A virtual stereo camera is set in each equally divided area; When the camera viewing angle width of the virtual stereo camera is aligned with the width of the corresponding equally divided area, the placement position of the virtual stereo camera is determined; The placement position is used as the viewpoint position of the virtual stereo camera, and the virtual stereo camera is placed at the viewpoint position.

3. The method for creating a three-dimensional virtual stereo camera according to claim 1, characterized in that: The method of establishing the association between the pupil distance and the zero aberration surface based on the curved screen model includes: Set the desired interpupillary distance between the two cameras of the virtual stereo camera; The zero-disparity surfaces of the two cameras of the virtual stereo camera are calculated according to the expected pupil distance.

4. The method for creating a three-dimensional virtual stereo camera according to claim 3, characterized in that: The zero-disparity surfaces of the two cameras of the virtual stereo camera are calculated according to the expected pupil distance, and the calculation formula is as follows: Where DE is the value of the zero aberration surface, AF is the pupil distance, AC is the equivalent focal length, and BG is the film width.

5. The method for creating a three-dimensional virtual stereo camera according to claim 1, characterized in that: After the association between the pupil distance and the zero aberration surface is established based on the curved screen model, the method further includes: When simulating shooting, obtain the parameters of the real stereo camera; The viewpoint position of the real stereo camera is calculated according to the parameters of the real stereo camera.

6. A method for creating a three-dimensional virtual stereo camera according to claim 5, characterized in that: The viewpoint position of the real stereo camera is calculated according to the parameters of the real stereo camera, and the calculation formula is as follows: Where OE is the viewpoint, EH is the equivalent focal length, CD is the film width, AB is the chord length of the curved screen, FG is the chord height of the curved screen, and OF is the radius of the curved screen.

7. A three-dimensional virtual stereo camera creation device, characterized in that: It includes a first acquisition unit, a creation unit and an association unit; The first acquisition unit is used to acquire the curved screen parameters and the viewer's viewpoint position; The creation unit is used to create a curved screen model according to the curved screen parameters and determine the viewpoint position of the virtual stereo camera; The association unit is used to establish the association between the pupil distance and the zero aberration surface based on the curved screen model.

8. The device for creating a three-dimensional virtual stereo camera according to claim 7, characterized in that: It also includes a second acquisition unit and a calculation unit; The second acquisition unit is used to acquire parameters of a real stereo camera during simulated shooting; The calculation unit is used to calculate the viewpoint position of the real stereo camera according to the parameters of the real stereo camera.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for creating a three-dimensional virtual stereo camera as claimed in any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the three-dimensional virtual stereo camera creation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Virtual camera control method and device and electronic equipment

    CN117379785A

  • Method and system for carrying out space virtual shooting based on virtual engine

    CN117596349A