CN115967779A - Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium - Google Patents

Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium Download PDF

Info

Publication number
CN115967779A
CN115967779A CN202211707636.0A CN202211707636A CN115967779A CN 115967779 A CN115967779 A CN 115967779A CN 202211707636 A CN202211707636 A CN 202211707636A CN 115967779 A CN115967779 A CN 115967779A
Authority
CN
China
Prior art keywords
virtual
virtual camera
camera
bitmap
preview
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211707636.0A
Other languages
Chinese (zh)
Inventor
高巧展
张琳晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202211707636.0A priority Critical patent/CN115967779A/en
Publication of CN115967779A publication Critical patent/CN115967779A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a medium for displaying a virtual camera machine bitmap, wherein the method comprises the following steps: generating a two-dimensional top view of the virtual preview scene; acquiring a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track; generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera; and displaying the preview picture of each frame and the position of the virtual camera when the preview picture of each frame is shot in the machine bitmap. According to the embodiment of the invention, the two-dimensional top view of the virtual preview scene is generated, the preview picture shot by the virtual camera and the machine bitmap of the virtual camera are output together, and the machine bitmap and the picture effect can be prevented from being disjointed, so that when the virtual camera moves, the preview picture, the moving track of the virtual camera and the position of the virtual camera in the virtual preview scene can be displayed intuitively.

Description

Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium
Technical Field
The invention relates to the technical field of virtual movie and television production, in particular to a machine position diagram of a virtual camera
A presentation method, a presentation apparatus of a virtual camera bitmap, an electronic device, and a computer 5-readable storage medium.
Background
The preview is applied to the earlier stage of movie making, and can be used for simulating mirror movement, moving routes and picture preview of a camera in the actual shooting process so as to assist the actual shooting process.
In the conventional preview mode, a photographer is usually required to draw a camera planar machine bitmap, and lines in the machine 0 map are used for indicating the moving route of the camera. When drawing a bitmap of a flat surface machine, a photographer generally determines a machine position corresponding to a photographed image by imagining the photographed image, and draws a movement route. However, after the photographer draws the machine bitmap, the photographer cannot visually see the picture effect taken when the camera moves according to the machine bitmap, and other photographers can only backtrack the picture effect according to the machine bitmap, that is, the machine bitmap and the picture effect are disjointed.
5 along with the development of virtual movie and television production, the construction of the previewing scene does not only stop on the paper surface, the 3D visualization is gradually realized, and the previewing scene effect can be simulated in software through modeling. The movement of the camera in the previewing process can also be separated from the paper, the camera can move in the virtual previewing scene by means of software and graphic calculation power, the previewing picture shot when the virtual camera moves is observed in real time, and the picture effect shot actually is simulated through the previewing picture. At this time, although the movement of the camera and the simulated image effect are related in real time, the camera bitmap for guiding the actual shooting is lacked 0, and the camera bitmap still needs to be manually drawn again.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a method for presenting a virtual camera machine bitmap, an apparatus for presenting a virtual camera machine bitmap, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a method for displaying a virtual camera machine bitmap, including:
generating a two-dimensional top view of the virtual preview scene;
acquiring a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track;
generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera;
and displaying the preview picture of each frame and the position of the virtual camera when the preview picture of each frame is shot in the machine bitmap.
Optionally, the generating a two-dimensional top view of the virtual preview scene includes:
establishing a map camera in a virtual preview scene;
and shooting the virtual preview scene by adopting the map camera to obtain a two-dimensional top view of the virtual preview scene.
Optionally, the establishing a map camera in the virtual preview scene includes:
acquiring the length of a preset two-dimensional top view and the visual angle of a map camera;
determining the position coordinate of a central point of the two-dimensional top view according to the length of the preset two-dimensional top view, and taking the position coordinate of the central point as the plane position coordinate of the map camera;
calculating according to the length of the preset two-dimensional top view and the visual angle to obtain a height position coordinate of the map camera;
and establishing the map camera in the virtual preview scene according to the plane position coordinate and the height position coordinate.
Optionally, the calculating according to the preset two-dimensional top view length and the viewing angle to obtain the height position coordinate of the map camera includes:
and calculating the height position coordinate of the map camera by taking the tangent value of the half value of the visual angle as a denominator and taking the half value of the length of the preset two-dimensional top view as a numerator.
Optionally, the method further comprises:
responding to a first click operation acting on the moving track in the machine bitmap, determining a first target position corresponding to the click operation, and displaying a preview picture corresponding to the first target position, a lens direction of the virtual camera and position coordinates of the virtual camera.
Optionally, the method further comprises:
and responding to a second click operation acted on the machine bitmap, determining a second target position corresponding to the second click operation, and controlling the virtual camera to move to the second target position.
Optionally, the method further comprises:
and responding to the sliding operation acted on the machine bitmap, determining a sliding track corresponding to the sliding operation, and controlling the virtual camera to move along the sliding track.
The embodiment of the invention also discloses a display device of the virtual camera machine bitmap, which comprises:
the top view generation module is used for generating a two-dimensional top view of the virtual preview scene;
the track acquisition module is used for acquiring a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track;
a machine bitmap generation module, configured to generate a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera;
and the display module is used for displaying each frame of the preview picture and the position of the virtual camera when each frame of the preview picture is shot in the machine bitmap.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on and executable on said memory, said computer program, when executed by said processor, implementing the steps of the method for presenting a virtual camera bitmap as described above.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for displaying the bitmap of the virtual camera are realized.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the two-dimensional top view of the virtual preview scene is generated and the moving track of the virtual camera in the virtual preview scene is acquired, so that the machine bitmap of the virtual camera can be generated based on the two-dimensional top view and the moving track, the preview picture acquired simultaneously with the moving track is displayed while the machine bitmap is generated in real time by acquiring the moving track, the preview picture shot by the virtual camera and the machine bitmap of the virtual camera can be output together, the effect of the machine bitmap and the picture can be prevented from being disjointed, and the preview picture, the moving track of the virtual camera and the position of the virtual camera in the virtual preview scene can be intuitively displayed simultaneously when the virtual camera moves.
Drawings
Fig. 1 is a view of a camera in a conventional movie production;
fig. 2 is a flowchart illustrating steps of a method for displaying a virtual camera machine bitmap according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a virtual rehearsal;
fig. 4 is a flowchart illustrating steps of another method for displaying a virtual camera bitmap according to an embodiment of the present invention;
fig. 4A is a flowchart illustrating sub-steps of another method for displaying a virtual camera bitmap according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a ground map camera for shooting a preview scene from a top view according to an embodiment of the present invention;
FIG. 6 is a machine diagram provided by an embodiment of the present invention;
fig. 7 is a flowchart of generating a virtual camera machine bitmap according to an embodiment of the present invention;
fig. 8 is a flowchart of deriving a preview video and a machine position map according to an embodiment of the present invention;
fig. 9 is a block diagram of a structure of a device for displaying a virtual camera machine bitmap according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
In traditional movie and television production, a photographer needs to draw a camera plane bitmap and indicate a moving route of a camera by lines. Referring to fig. 1, a machine position diagram of a camera in a conventional movie production is shown, in which the camera can perform preview shooting in a preview scene, a camera a can move back and forth to shoot a preview picture, and a camera B can move left and right to shoot a preview picture. However, with the conventional camera flat surface machine bitmap, the picture effect shot when the camera moves according to the machine bitmap cannot be seen visually, and the machine bitmap and the picture effect are disjointed.
With the development of virtual movie and television production, a virtual preview scene can be set up, the movement of the entity camera is simulated through the virtual camera, and a preview picture shot when the virtual camera moves is observed in real time. At this time, although the movement of the camera and the simulated picture effect are related in real time, the machine position diagram of the virtual camera cannot be viewed, and the shot picture effect and the machine position diagram of the camera cannot be viewed intuitively at the same time.
One of the core ideas of the embodiments of the present invention is that a two-dimensional top view of a virtual preview scene is generated and a movement track of a virtual camera in the virtual preview scene is acquired, so that a machine bitmap of the virtual camera can be generated based on the two-dimensional top view and the movement track, and a preview picture acquired simultaneously with the movement track is displayed while the machine bitmap is generated in real time by acquiring the movement track, so that the preview picture taken by the virtual camera and the machine bitmap of the virtual camera can be output together, and the machine bitmap and the picture effect can be prevented from being disjointed, so that the preview picture, the movement track of the virtual camera and the position of the virtual camera in the virtual preview scene can be displayed intuitively when the virtual camera moves.
Referring to fig. 2, a flowchart illustrating steps of a method for displaying a virtual camera machine bitmap provided in an embodiment of the present invention is shown, where the method specifically includes the following steps:
step 201, generating a two-dimensional top view of the virtual preview scene.
The method for displaying the virtual camera bitmap provided in the embodiment of the present invention may be applied to a terminal device capable of presenting a graphical user interface, for example, a mobile phone, a tablet computer, a notebook computer, and the like, which is not limited in the embodiment of the present invention.
The virtual preview scene may refer to a three-dimensional scene obtained by modeling by simulating a real preview scene in movie and television production software, and the two-dimensional top view may refer to a two-dimensional view obtained by shooting the virtual preview scene in a top view. In practical application, the motion of an entity camera actually shot can be simulated by controlling the movement of the virtual camera in the built virtual preview scene, and preview picture content shot by the virtual camera can be watched from a screen of the terminal equipment along with the movement of the virtual camera, so that virtual preview is carried out. Referring to fig. 3, a schematic diagram of a virtual preview is shown. As shown in the right diagram of fig. 3, the position of the virtual camera in the virtual preview scene may be displayed by the terminal device, and as shown in the left diagram of fig. 3, when the virtual camera is controlled to move to shoot the virtual preview scene, a preview picture obtained by shooting the virtual preview scene by the virtual camera may be displayed by the terminal device.
In the virtual preview process, the virtual camera can move in the virtual preview scene, and the terminal device can generate a two-dimensional top view of the virtual preview scene, so that the machine position map of the virtual camera is generated based on the two-dimensional top view.
Step 202, obtaining a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track.
Specifically, movie and television production software can be run on the terminal device, and when the virtual camera moves in the virtual preview scene, the motion of the virtual camera can be captured through the movie and television production software, and the position coordinates of the virtual camera are recorded, so that the position coordinates of the virtual camera at each moment and the preview picture shot at each moment are obtained, and the moving track of the virtual camera is generated according to the position coordinates of the virtual camera at each moment. The preview picture may be a video picture obtained by shooting a virtual preview scene by the virtual camera in the preview process.
Illustratively, when the virtual camera moves in the virtual preview scene at time t1, the terminal device may acquire the position coordinates of the virtual camera at time t 1; when the virtual camera moves at the time t2, the terminal device can acquire the position coordinates of the virtual camera at the time t2 and generate a movement track M of the virtual camera according to the position coordinates at the times t1 and t 2; when the virtual camera moves at the time t3, the terminal device may acquire the position coordinates of the virtual camera at the time t3 and the preview picture taken by the virtual camera at the time t3, draw the position coordinates at the time t3 along the movement track M, and generate a movement track N of the virtual camera at the time t 3.
Step 203, generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera.
Specifically, the terminal device may draw a movement trajectory of the virtual camera on a two-dimensional top view of the virtual preview scene, and generate a machine bitmap of the virtual camera. The machine position diagram of the virtual camera may be a two-dimensional view used for recording the position of the virtual camera when the virtual camera shoots each preview picture.
In practical application, movie and television production software can be operated on terminal equipment, when the virtual camera moves in the virtual preview scene, the motion of the virtual camera can be captured through the movie and television production software, the position coordinates of the virtual camera are recorded, and the position coordinates of the virtual camera are projected and mapped onto the two-dimensional top view of the virtual preview scene, so that the track points of the virtual camera are marked on the two-dimensional top view. With the movement of the virtual camera, the position coordinates of the virtual camera at each moment can be recorded, the position coordinates at each moment are projected and mapped onto the two-dimensional top view of the virtual preview scene, track points of the virtual camera at each moment are marked on the two-dimensional top view, and the track points are sequentially connected, so that the movement track of the virtual camera is drawn on the two-dimensional top view, and the machine position diagram of the virtual camera is obtained. The set-top-view of the virtual camera may be updated as the virtual camera moves. At the time t1, the terminal device can record the position coordinates of the virtual camera at the time t1, mark track points of the virtual camera at the time t1 on a two-dimensional top view of the virtual preview scene, generate a machine position diagram P1 of the virtual camera at the time t1, and display the position of the virtual camera at the time t1 on the machine position diagram P1; at the time t2, the terminal device may record the position coordinates of the virtual camera at the time t2, mark track points of the virtual camera at the time t2 on a two-dimensional top view of the virtual preview scene, connect the track points of the virtual camera at the time t1 and the time t2 to draw a movement track M of the virtual camera, generate a machine position map P2 of the virtual camera at the time t2, and display the position of the virtual camera at the time t2 on the machine position map P2.
By generating the machine position map of the virtual camera based on the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera, the movement track of the virtual camera at a certain moment and the position of the virtual camera in the virtual preview scene at the moment can be viewed from the machine position map when the virtual camera moves in the virtual preview scene.
And 204, displaying the preview picture of each frame and the position of a virtual camera when the preview picture of each frame is shot in the machine bitmap.
The position of the virtual camera in the preview scene can be displayed in the machine bitmap, and each frame of preview picture shot by the virtual camera and the position of the virtual camera when each frame of preview picture is shot can be displayed on the screen of the terminal equipment. In practical application, movie and television production software can be operated on terminal equipment, the position coordinates of the virtual camera at the current moment can be recorded through the movie and television production software, meanwhile, a preview picture shot by the virtual camera at the current moment is captured, the position coordinates of the virtual camera at the current moment are projected and mapped onto a two-dimensional top view of a two-dimensional virtual scene, track points of the virtual camera are marked on the two-dimensional top view, and the track points are connected with track points at the previous moment, so that the moving track of the virtual camera at the current moment is drawn, and a machine position diagram of the virtual camera at the current moment is generated. When the machine position diagram of the virtual camera at the current moment is drawn, the captured preview picture at the current moment can be rendered in real time, the rendered preview picture is output in real time, the rendered preview picture output in real time is associated with the machine position diagram generated in real time, and the position of the virtual camera in the machine position diagram at the same moment and the rendered preview picture can be displayed on the screen of the terminal equipment at the same time.
It should be noted that, with the conventional movie and television production software, only the virtual camera moving in the virtual preview scene and the preview picture taken by the virtual camera can be viewed, and a bitmap of the machine still needs to be manually drawn. The movie and television making software adopted by the embodiment of the invention not only can draw and generate the moving track of the virtual camera on the two-dimensional top view, but also can associate the track point with each captured preview picture by recording the position coordinate of the virtual camera and projecting and mapping the position coordinate to the track point of the marked virtual camera on the two-dimensional top view, thereby simultaneously displaying the preview picture at the current moment and the position of the virtual camera when the preview picture at the current moment is shot in a machine bitmap, and enabling a user to simultaneously check the moving track of the virtual camera, the position of the virtual camera at the current moment and the preview picture shot by the virtual camera at the current moment.
In the embodiment of the invention, the two-dimensional top view of the virtual preview scene is generated and the moving track of the virtual camera in the virtual preview scene is acquired, so that the machine bitmap of the virtual camera can be generated based on the two-dimensional top view and the moving track, the preview picture acquired simultaneously with the moving track is displayed while the machine bitmap is generated in real time by acquiring the moving track, the preview picture shot by the virtual camera and the machine bitmap of the virtual camera can be output together, the effect of the machine bitmap and the picture can be prevented from being disjointed, and the preview picture, the moving track of the virtual camera and the position of the virtual camera in the virtual preview scene can be intuitively displayed simultaneously when the virtual camera moves.
Referring to fig. 4, a flowchart illustrating steps of a method for displaying a virtual camera machine bitmap provided in an embodiment of the present invention is shown, where the method specifically includes the following steps:
step 401, a map camera is established in a virtual preview scene.
The map camera may refer to a virtual camera for shooting a virtual preview scene in an overhead view to obtain a two-dimensional map of the virtual preview scene. In the embodiment of the invention, by establishing the map camera in the virtual preview scene, the two-dimensional map of the preview scene can be shot by the map camera in a downward view mode, so that the machine bitmap of the virtual camera is generated based on the two-dimensional map and is displayed together with the preview picture shot by the virtual camera, and the moving track of the virtual camera, the position of the virtual camera at the current moment and the preview picture shot by the virtual camera at the current moment can be simultaneously checked.
In an alternative embodiment, the step 401 may comprise the following substeps S11-S14:
and a substep S11 of acquiring the preset two-dimensional top view length and the view angle of the map camera.
Referring to fig. 5, a schematic diagram of a ground map camera for shooting a preview scene from a top view according to an embodiment of the present invention is shown. The left diagram of fig. 5 and the right diagram of fig. 5 are schematic diagrams respectively showing that the preset two-dimensional top view lengths are different, (1) the preset two-dimensional top view lengths set by a user in a self-defined manner can be represented, and (2) the height of the map camera when the map camera shoots a virtual preview scene in a top view manner can be represented.
The user can select a preview scene map area needing to be shot through the terminal device, and set the size of a corresponding map range, namely the length of the preset two-dimensional top view, and the terminal device can acquire the length of the preset two-dimensional top view. The viewing angle of the map camera to be established may be fixed, for example, the viewing angle of the map camera to be established may be 60 °.
And a substep S12 of determining the position coordinate of the central point of the two-dimensional top view according to the preset length of the two-dimensional top view and taking the position coordinate of the central point as the plane position coordinate of the map camera.
Specifically, on a map area of a preview scene to be shot, a map range is divided according to a preset two-dimensional top view length to obtain a two-dimensional top view, a position coordinate of a central point of the two-dimensional top view is determined, and the position coordinate of the central point of the two-dimensional top view is used as a plane position coordinate of the map camera.
In practical application, when a map to be shot by a user is square, the terminal device can acquire a preset two-dimensional top view length, can divide a preview scene map area according to the preset two-dimensional top view length to obtain a square two-dimensional top view, and takes the position of the central point of the square two-dimensional top view as the plane position coordinate of the map camera; when the map to be shot by the user is rectangular, the terminal device can acquire two preset two-dimensional top view lengths, divide the preview scene map area based on the two preset lengths to obtain a rectangular two-dimensional top view, and take the position of the central point of the rectangular two-dimensional top view as the plane position coordinate of the map camera. The shape type of the two-dimensional top view may be a square or a rectangle, which is merely an example of the present invention, and a person skilled in the art may set the shape of the two-dimensional top view according to actual requirements, for example, when a map to be photographed is a circle, the two-dimensional top view may be obtained by dividing the two-dimensional top view by using a preset length of the two-dimensional top view as a map radius, and the present invention is not limited herein.
In the embodiment of the invention, the position coordinate of the central point of the two-dimensional top view is used as the plane position coordinate of the map camera to be established, so that the shooting range of the map camera can meet the map range required by a user.
And a substep S13, calculating according to the length of the preset two-dimensional top view and the visual angle to obtain the height position coordinate of the map camera.
Specifically, the height position coordinate of the map camera can be obtained by calculating by using a trigonometric function according to the preset two-dimensional top view length and the view angle of the map camera to be established.
In an alternative embodiment, the substep S13 may comprise: and calculating the height position coordinate of the map camera by taking the tangent value of the half value of the visual angle as a denominator and taking the half value of the length of the preset two-dimensional top view as a numerator.
Specifically, θ may represent a viewing angle of the virtual camera to be built, L represents a preset two-dimensional top view length, h represents a height of the map camera to be built, and h = (L/2)/[ tan (θ/2) ] is adopted to calculate the height of the map camera to be built as a height position coordinate of the map camera to be built.
And a substep S14, establishing the map camera in the virtual preview scene according to the plane position coordinate and the height position coordinate.
Exemplarily, when a map to be shot by a user is a square, the length of the preset two-dimensional top view may be 10m, a planar rectangular coordinate system may be constructed with a vertex of the square map as an origin, the viewing angle of the map camera to be established may be 60 °, a horizontal axis coordinate range of the two-dimensional top view obtained by dividing according to the length of the preset two-dimensional top view may be (0, 10), a vertical axis coordinate range may be (0, 10), a position coordinate of a center point of the two-dimensional top view is (5,5), and 5,5 is taken as a planar position coordinate of the virtual camera to be established; the height of the map camera to be built is calculated to be 8.66 through h = (L/2)/[ tan (θ/2) ], and as the height position coordinate of the virtual camera to be built, the map camera is built at (5,5,8.66) according to the plane position coordinate and the height position coordinate, thereby building the map camera in the virtual preview scene.
Step 402, shooting the virtual preview scene by using the map camera to obtain a two-dimensional top view of the virtual preview scene.
After the map camera is established in the virtual preview scene, the virtual preview scene can be shot through the map camera in a downward view mode to obtain a two-dimensional top view of the virtual preview scene, and therefore the machine position map of the virtual camera is generated based on the two-dimensional top view.
Step 403, acquiring a moving track of the virtual camera in the virtual preview scene and a preview picture shot along the moving track.
Step 404, generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera.
The terminal device can generate a machine position diagram of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera. Referring to fig. 7, a flowchart for generating a virtual camera machine bitmap according to an embodiment of the present invention is shown. After the virtual preview scene is built, a map camera can be built, and a two-dimensional top view of the virtual preview scene is shot through the map camera. When the virtual camera moves in the preview scene, the terminal device may record the position coordinates of the virtual camera at each time by acquiring the position information of the virtual camera, so as to draw a movement track of the virtual camera, draw a movement track of the virtual camera on a two-dimensional top view of the virtual preview scene, and display the current position of the virtual camera, thereby generating a machine position diagram of the virtual camera.
Step 405, displaying the preview picture of each frame and the position of the virtual camera when the preview picture of each frame is shot in the machine bitmap.
The plurality of virtual cameras can move in the virtual preview scene at the same time, and the terminal device can acquire the moving tracks of the plurality of virtual cameras at the same time and draw the moving tracks in the two-dimensional top view of the virtual preview scene, so that the machine position diagram of the virtual cameras is generated. Referring to fig. 6, a machine bitmap provided in an embodiment of the present invention is shown, where a track (1) may be a moving track of a virtual camera a, a track (2) may be a moving track of a virtual camera B, and through the machine bitmap, the moving track of the virtual camera, a position of the virtual camera in a virtual preview scene at a current time, and a lens direction of the virtual camera at the current time can be viewed.
In the embodiment of the invention, when the preview picture at the current moment and the position of the virtual camera corresponding to the preview picture at the current moment in the machine bitmap are displayed, the terminal equipment can respond to the machine bitmap export instruction at any moment and export the machine bitmap of the virtual camera at any moment; the movie and television production software can be operated on the terminal equipment, and the preview video can be exported at any time based on the preview picture shot by the virtual camera in response to the preview video export instruction.
Referring to fig. 8, a flowchart for deriving a preview video and a machine location map according to an embodiment of the present invention is shown. After the user sets the preset two-dimensional top view length, the terminal device can obtain the preset two-dimensional top view length and the view angle of the map camera to be established, and the position coordinate of the map camera is obtained through calculation based on the preset two-dimensional top view length and the view angle, so that the map camera is established at the position coordinate, and the two-dimensional top view of the virtual preview scene is shot through the map camera. When a user controls a virtual camera for shooting a virtual preview picture to move, the terminal equipment can record the position coordinates of the virtual camera at each moment in real time and obtain the preview picture shot at each moment through obtaining the position information of the virtual camera, so that the preview picture shot at each moment is recorded to generate a preview video, and the preview video is derived in response to a preview video deriving instruction; drawing a movement track of the virtual camera on the two-dimensional top view based on the position coordinates of each time to generate a machine bitmap of the virtual camera, and deriving the machine bitmap in response to a machine bitmap derivation instruction.
In an optional embodiment, the method further comprises: responding to a first click operation acting on the moving track in the machine bitmap, determining a first target position corresponding to the click operation, and displaying a preview picture corresponding to the first target position, a lens direction of the virtual camera and position coordinates of the virtual camera.
In practical application, in the process of generating the machine bitmap, the position coordinate projection of the virtual camera at the current moment can be mapped to the two-dimensional top view of the two-dimensional virtual scene to obtain track points, and the lens direction projection of the virtual camera at the current moment can be mapped to the two-dimensional top view at the same time, so that the track points at the current moment, the position coordinates of the virtual camera and the lens direction of the virtual camera are recorded on the same frame of top view image, the track points and the lens direction of the virtual camera when the preview picture is shot and the position coordinates projected and mapped to the track points are associated on the same frame of top view image, and all the track points forming the moving track are associated with the corresponding lens direction and the position coordinates. When the terminal equipment detects the click operation of a moving track in a bitmap, the target position corresponding to the click operation can be identified, the track point closest to the target position is searched, the lens direction and the position coordinate associated with the track point are displayed, and meanwhile, the preview picture after real-time rendering is displayed.
In the process of moving and shooting by the virtual camera, the preview picture shot by the virtual camera and the machine position diagram of the virtual camera can be simultaneously output, and the preview picture, the moving track of the virtual camera and the position of the virtual camera in the virtual preview scene can be checked. At this time, the user may click the movement track, and the terminal device may determine, in response to the click operation applied to the movement track, a target position corresponding to the click operation, and simultaneously display, on a screen of the terminal device, a preview picture corresponding to the target position, a lens direction of the virtual camera when the preview picture is taken at the target position, and a target position coordinate, that is, a position coordinate of the virtual camera.
In the embodiment of the present invention, when the user simultaneously views the preview picture, the moving track of the virtual camera, and the position of the virtual camera in the virtual preview scene, the user clicks any position on the moving track, so as to view the preview picture taken by the virtual camera at any position, the lens direction taken by the virtual camera at any position when the preview picture is taken by the virtual camera, and the position coordinates of the virtual camera.
In an optional embodiment, the method further comprises: and responding to a second click operation acted on the machine bitmap, determining a second target position corresponding to the second click operation, and controlling the virtual camera to move to the second target position.
In practical application, a planar rectangular coordinate system is constructed by taking the vertex of the two-dimensional top view as an origin, the planar rectangular coordinate system can be constructed by taking the vertex of the machine bitmap as the origin through projection mapping of the position coordinates of the virtual camera, and the position coordinates of each track point in the machine bitmap can be the position coordinates of the associated virtual camera. When the terminal equipment detects the click operation acting on the machine bitmap, the position coordinates of the target position corresponding to the click operation can be identified, the position parameters of the virtual camera are adjusted, the position coordinates of the virtual camera are adjusted to the position coordinates of the target position, and therefore the virtual camera is controlled to move to the target position.
When the user simultaneously looks up the preview picture and the machine bitmap of the virtual camera, the user can click any position in the machine bitmap, the terminal equipment can respond to the click operation acting on the machine bitmap and determine the target position corresponding to the click operation, and therefore the virtual camera is controlled to move to the target position.
In the embodiment of the invention, the terminal equipment can control the virtual camera to move to the shooting position expected by the user by responding to the clicking operation acting on the machine bitmap, thereby simplifying the control operation for controlling the movement of the virtual camera and improving the interactivity of the machine bitmap.
In an optional embodiment, the method further comprises: and responding to the sliding operation acted on the machine bitmap, determining a sliding track corresponding to the sliding operation, and controlling the virtual camera to move along the sliding track.
In practical application, when the terminal device detects a sliding operation acting on the machine bitmap, the terminal device can identify position coordinates of a plurality of position points on a sliding track corresponding to the sliding operation, adjust position parameters of the virtual camera, and sequentially adjust the position coordinates of the virtual camera to the position coordinates of each position point on the sliding track, so that the virtual camera is controlled to move along the sliding track.
When the user looks at the preview picture and the machine position map of the virtual camera, the user can slide at any position in the machine position map, and the terminal equipment can respond to the sliding operation acting on the machine position map to determine the sliding track corresponding to the sliding operation, so that the virtual camera is controlled to move along the sliding track.
In the embodiment of the invention, the terminal equipment can control the virtual camera to move to the shooting position expected by the user by responding to the sliding operation acting on the machine bitmap, thereby simplifying the control operation for controlling the movement of the virtual camera and improving the interchangeability of the machine bitmap.
In the embodiment of the invention, by generating the two-dimensional top view of the virtual preview scene and acquiring the moving track of the virtual camera in the virtual preview scene, the machine bitmap of the virtual camera can be generated based on the two-dimensional top view and the moving track, and by displaying the preview picture acquired simultaneously with the moving track while acquiring the moving track to generate the machine bitmap in real time, the preview picture shot by the virtual camera and the machine bitmap of the virtual camera can be output together, so that the machine bitmap and the picture effect can be prevented from being disjointed, and the preview picture, the moving track of the virtual camera and the position of the virtual camera in the virtual preview scene can be intuitively displayed simultaneously when the virtual camera moves.
In the embodiment of the invention, the map camera is established in the virtual preview scene, and the two-dimensional map of the preview scene can be shot by the map camera in a overlooking way, so that the machine bitmap of the virtual camera is generated based on the two-dimensional map and is displayed together with the preview picture shot by the virtual camera.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 9, a block diagram of a structure of a device for displaying a virtual camera machine bitmap according to an embodiment of the present invention is shown, which may specifically include the following modules:
a top view generating module 901, configured to generate a two-dimensional top view of a virtual preview scene;
a track obtaining module 902, configured to obtain a moving track of a virtual camera in the virtual preview scene and a preview picture taken along the moving track;
a machine bitmap generation module 903, configured to generate a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement trajectory of the virtual camera;
a display module 904, configured to display each frame of the preview picture and a position of the virtual camera when each frame of the preview picture is captured in the machine bitmap.
In an optional embodiment, the top view generating module includes:
the establishing submodule is used for establishing a map camera in the virtual preview scene;
and the two-dimensional top view generation submodule is used for shooting the virtual preview scene by adopting the map camera to obtain a two-dimensional top view of the virtual preview scene.
In an optional embodiment, the establishing sub-module includes:
the preset length acquisition unit is used for acquiring the preset two-dimensional top view length and the view angle of the map camera;
the central point determining unit is used for determining the position coordinate of the central point of the two-dimensional top view according to the preset length of the two-dimensional top view and taking the position coordinate of the central point as the plane position coordinate of the map camera;
the height position calculation unit is used for calculating according to the length of the preset two-dimensional top view and the visual angle to obtain a height position coordinate of the map camera;
and the camera establishing unit is used for establishing the map camera in the virtual preview scene according to the plane position coordinate and the height position coordinate.
In an alternative embodiment, the height-based position calculating unit includes:
and the tangent calculating subunit is used for calculating the height position coordinate of the map camera by taking the tangent value of the half value of the visual angle as a denominator and taking the half value of the preset two-dimensional top view length as a numerator.
In an optional embodiment, the method further comprises:
and the click display module is used for responding to a first click operation acting on the moving track in the machine bitmap, determining a first target position corresponding to the click operation, and displaying a preview picture corresponding to the first target position, the lens direction of the virtual camera and the position coordinate of the virtual camera.
In an optional embodiment, the method further comprises:
and the click moving module is used for responding to a second click operation acted on the machine bitmap, determining a second target position corresponding to the second click operation and controlling the virtual camera to move to the second target position.
In an optional embodiment, the method further comprises:
and the sliding moving module is used for responding to the sliding operation acted on the machine bitmap, determining a sliding track corresponding to the sliding operation and controlling the virtual camera to move along the sliding track.
In the embodiment of the invention, the two-dimensional top view of the virtual preview scene is generated and the moving track of the virtual camera in the virtual preview scene is acquired, the machine bitmap of the virtual camera can be generated based on the two-dimensional top view and the moving track, the preview picture acquired simultaneously with the moving track is displayed while the machine bitmap is generated in real time by acquiring the moving track, the preview picture shot by the virtual camera and the machine bitmap of the virtual camera can be output together, the effect of the machine bitmap and the picture can be prevented from being disjointed, and the virtual camera can be shot
When the machine moves, the preview picture, the moving track of the virtual camera and the position of the virtual camera 5 in the virtual preview scene are simultaneously and intuitively displayed.
In the embodiment of the invention, the map camera is established in the virtual preview scene, and the two-dimensional map of the preview scene can be shot by the map camera in a overlooking way, so that the machine bitmap of the virtual camera is generated based on the two-dimensional map and is displayed together with the preview picture shot by the virtual camera.
For the apparatus embodiment, since it is basically similar to the method embodiment, the description of comparison 0 is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
comprising a processor, a memory and a computer program stored on said memory and capable of running on said processor, which computer program, when executed by the processor, implements the above-mentioned virtual camera machine bitmap
Each process of the method embodiment is shown, and the same technical effect can be achieved, and for avoiding repetition, the description of 5 is omitted.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above-mentioned method for displaying a virtual camera machine bitmap, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
0 the embodiments in the present specification are described in a progressive manner, each embodiment focuses on the differences from the other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal apparatus that comprises the element.
The method and the device for displaying the virtual camera machine bitmap provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for displaying a virtual camera machine bitmap is characterized by comprising the following steps:
generating a two-dimensional top view of the virtual preview scene;
acquiring a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track;
generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera;
and displaying the preview picture of each frame and the position of the virtual camera when the preview picture of each frame is shot in the machine bitmap.
2. The method of claim 1, wherein generating a two-dimensional overhead view of the virtual preview scene comprises:
establishing a map camera in a virtual preview scene;
and shooting the virtual preview scene by adopting the map camera to obtain a two-dimensional top view of the virtual preview scene.
3. The method of claim 2, wherein establishing a map camera in the virtual preview scene comprises:
acquiring the length of a preset two-dimensional top view and the visual angle of a map camera;
determining the position coordinate of a central point of the two-dimensional top view according to the length of the preset two-dimensional top view, and taking the position coordinate of the central point as the plane position coordinate of the map camera;
calculating according to the length of the preset two-dimensional top view and the visual angle to obtain a height position coordinate of the map camera;
and establishing the map camera in the virtual preview scene according to the plane position coordinate and the height position coordinate.
4. The method of claim 3, wherein the calculating according to the preset two-dimensional top view length and the viewing angle to obtain the height position coordinate of the map camera comprises:
and calculating the height position coordinate of the map camera by taking the tangent value of the half value of the visual angle as a denominator and the half value of the length of the preset two-dimensional top view as a numerator.
5. The method of claim 1, further comprising:
responding to a first click operation acting on the moving track in the machine bitmap, determining a first target position corresponding to the click operation, and displaying a preview picture corresponding to the first target position, a lens direction of the virtual camera and position coordinates of the virtual camera.
6. The method of claim 1, further comprising:
and responding to a second click operation acted on the machine bitmap, determining a second target position corresponding to the second click operation, and controlling the virtual camera to move to the second target position.
7. The method of claim 1, further comprising:
and responding to the sliding operation acted on the machine bitmap, determining a sliding track corresponding to the sliding operation, and controlling the virtual camera to move along the sliding track.
8. A display device of a virtual camera machine bitmap is characterized by comprising:
the top view generating module is used for generating a two-dimensional top view of the virtual preview scene;
the track acquisition module is used for acquiring a moving track of a virtual camera in the virtual preview scene and a preview picture shot along the moving track;
the machine bitmap generation module is used for generating a machine bitmap of the virtual camera according to the two-dimensional top view of the virtual preview scene and the movement track of the virtual camera;
and the display module is used for displaying each frame of the preview picture and the position of the virtual camera when each frame of the preview picture is shot in the machine bitmap.
9. An electronic device, comprising: processor, memory and a computer program stored on and executable on said memory, said computer program, when executed by said processor, implementing the steps of the method of presentation of a virtual camera bitmap according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for presentation of a virtual camera bitmap according to any one of claims 1 to 7.
CN202211707636.0A 2022-12-27 2022-12-27 Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium Pending CN115967779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211707636.0A CN115967779A (en) 2022-12-27 2022-12-27 Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211707636.0A CN115967779A (en) 2022-12-27 2022-12-27 Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115967779A true CN115967779A (en) 2023-04-14

Family

ID=87363037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211707636.0A Pending CN115967779A (en) 2022-12-27 2022-12-27 Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115967779A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143982A1 (en) * 2012-03-29 2013-10-03 Robert Bosch Gmbh Method for automatically operating a monitoring system
JP2015079354A (en) * 2013-10-17 2015-04-23 株式会社ジオ技術研究所 Three-dimensional map display system using virtual reality
CN110162236A (en) * 2019-04-28 2019-08-23 深圳市思为软件技术有限公司 Methods of exhibiting, device and the computer equipment of virtual model room
WO2019179314A1 (en) * 2018-03-22 2019-09-26 腾讯科技(深圳)有限公司 Method for displaying marker point position, electronic device, and computer readable storage medium
CN111698390A (en) * 2020-06-23 2020-09-22 网易(杭州)网络有限公司 Virtual camera control method and device, and virtual studio implementation method and system
CN113240700A (en) * 2021-05-27 2021-08-10 广州博冠信息科技有限公司 Image processing method and device, computer readable storage medium and electronic device
CN114945090A (en) * 2022-04-12 2022-08-26 阿里巴巴达摩院(杭州)科技有限公司 Video generation method and device, computer readable storage medium and computer equipment
CN115442542A (en) * 2022-11-09 2022-12-06 北京天图万境科技有限公司 Method and device for splitting mirror

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143982A1 (en) * 2012-03-29 2013-10-03 Robert Bosch Gmbh Method for automatically operating a monitoring system
JP2015079354A (en) * 2013-10-17 2015-04-23 株式会社ジオ技術研究所 Three-dimensional map display system using virtual reality
WO2019179314A1 (en) * 2018-03-22 2019-09-26 腾讯科技(深圳)有限公司 Method for displaying marker point position, electronic device, and computer readable storage medium
CN110162236A (en) * 2019-04-28 2019-08-23 深圳市思为软件技术有限公司 Methods of exhibiting, device and the computer equipment of virtual model room
CN111698390A (en) * 2020-06-23 2020-09-22 网易(杭州)网络有限公司 Virtual camera control method and device, and virtual studio implementation method and system
CN113240700A (en) * 2021-05-27 2021-08-10 广州博冠信息科技有限公司 Image processing method and device, computer readable storage medium and electronic device
CN114945090A (en) * 2022-04-12 2022-08-26 阿里巴巴达摩院(杭州)科技有限公司 Video generation method and device, computer readable storage medium and computer equipment
CN115442542A (en) * 2022-11-09 2022-12-06 北京天图万境科技有限公司 Method and device for splitting mirror

Similar Documents

Publication Publication Date Title
US8644467B2 (en) Video conferencing system, method, and computer program storage device
TWI547901B (en) Simulating stereoscopic image display method and display device
US11044398B2 (en) Panoramic light field capture, processing, and display
US20220067968A1 (en) Motion capture calibration using drones with multiple cameras
CN108280873A (en) Model space position capture and hot spot automatically generate processing system
WO2009093136A2 (en) Image capture and motion picture generation
KR101649752B1 (en) Generating method for multiview image using interface with image matrix and generating system for multiview image
JP6110780B2 (en) Additional information display system
US20230342973A1 (en) Image processing method and apparatus, device, storage medium, and computer program product
JP5252703B2 (en) 3D image display device, 3D image display method, and 3D image display program
CN117395386A (en) Interactive shooting method, device, equipment and medium of virtual delay video
CN108734791B (en) Panoramic video processing method and device
Doubek et al. Cinematographic rules applied to a camera network
JP2009246917A (en) Video display device, and video processing apparatus
EP4125044A2 (en) Image processing apparatus, image processing method, and program
US20230018921A1 (en) Smoothly changing a focus of a camera between multiple target objects
CN111064947A (en) Panoramic-based video fusion method, system, device and storage medium
CN111064946A (en) Video fusion method, system, device and storage medium based on indoor scene
CN115967779A (en) Method and device for displaying bitmap of virtual camera machine, electronic equipment and medium
US11656578B2 (en) Holographic imagery for on set eyeline reference
CN115580691A (en) Image rendering and synthesizing system for virtual film production
CN108510433B (en) Space display method and device and terminal
JP2006211531A (en) Video generating device and program
CN113485547A (en) Interaction method and device applied to holographic sand table
CN112312041A (en) Image correction method and device based on shooting, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination