Control unit, control method, and program
The control device generates virtual viewpoint information by correcting the position and orientation of the virtual viewpoint based on structure shape data, simplifying the process of creating natural-looking camera paths over complex structures.
Patent Information
- Application Number
- JP2023191402
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2023-11-09
- Publication Date
- 2024-09-03
AI Technical Summary
Existing techniques require complex operations to generate a natural-looking camera path when imaging large structures with complex shapes, leading to unnatural virtual perspectives and increased user burden.
A control device that acquires shape data of the structure and generates virtual viewpoint information by correcting the position and orientation of the virtual viewpoint based on the structure's shape, ensuring the camera path remains natural and simple to achieve.
Enables a desired camera path over complex structures with simpler operations, maintaining a natural viewing experience by automatically adjusting the virtual viewpoint to avoid obstacles and maintain consistent distance from the structure.
Smart Images

Figure 2024119737000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a virtual viewpoint control technique for generating a virtual viewpoint image. [Background technology]
[0002] There is a technology that generates an image (virtual viewpoint image) that shows a view from a virtual viewpoint specified by a user's operation by installing multiple imaging devices at different positions and capturing images synchronously, and using the multiple captured images obtained by the capturing. When generating a virtual viewpoint image, the user operates a joystick or the like to continuously set the position and attitude of a new virtual viewpoint in a time series while referring to a previously generated virtual viewpoint image corresponding to a virtual viewpoint capturing a desired object (subject). The movement path of the virtual viewpoint set in this way is generally called a "camera path." The user can move the virtual viewpoint around the entire three-dimensional space of the imaging target, but when, for example, a person as an object is running on a large structure with a complex shape, it is necessary to take care not to make the virtual viewpoint unnatural in relation to the large structure. In this regard, Patent Document 1 discloses a technology that corrects the position of the virtual viewpoint by moving the camera area outside the obstacle when a part of the camera area indicating the movable range of the virtual camera (≒ virtual viewpoint) overlaps with an obstacle (no-entry area) such as a wall of a building. Furthermore, Patent Document 2 discloses a technology for correcting the movement path of a virtual camera (≒virtual viewpoint) when the user changes the movement path from the default movement path so that the distance to an obstacle (e.g., the wall of a narrow passage) does not become less than a predetermined distance. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2012-063958 A [Patent Document 2] JP 2005-250800 A Summary of the Invention [Problem to be solved by the invention]
[0004] When the shape of a large structure becomes complex, it is difficult for a user to obtain a desired camera path with a simple operation, for example, complicated operations are required to obtain a natural camera path using the techniques of Patent Documents 1 and 2. The present disclosure has been made in consideration of the above problem. [Means for solving the problem]
[0005] The control device according to the present disclosure has an acquisition means for acquiring shape data representing the shape of a structure existing in three-dimensional space, a receiving means for receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image, and a generation means for generating virtual viewpoint information indicating the position and attitude of the virtual viewpoint identified based on the operation signal, wherein the generation means determines a camera path indicating the movement path of the virtual viewpoint in a specific area of the three-dimensional space based on the shape data of the structure, and when the position of the virtual viewpoint identified based on the operation signal is included in the specific area, corrects the position of the virtual viewpoint indicated by the operation signal so that it is on the camera path, thereby generating the virtual viewpoint information. Effect of the Invention
[0006] According to the present disclosure, a desired camera path can be obtained with simple operations even when a large structure with a complex shape exists in three-dimensional space. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1A is a diagram showing a state in which multiple imaging devices are installed on a bank, and FIG. 1B is a diagram explaining the definitions of the world coordinate system and the virtual viewpoint coordinate system (camera coordinate system). [Diagram 2] FIG. 1 is a diagram showing an example of the configuration of an image processing system. [Diagram 3] An explanatory diagram of a joystick. [Figure 4] FIG. 2 is a diagram showing an example of the hardware configuration of an information processing device and a control device. [Diagram 5]FIG. 4 is a block diagram showing an example of a functional configuration of a control device. [Figure 6] 13A and 13B are diagrams showing an example of information included in structure data. [Figure 7] 11 is a flowchart showing the flow of a process for generating virtual viewpoint information. [Figure 8] 11A and 11B are diagrams showing a state in which a start position and a start posture of a virtual viewpoint are specified. [Figure 9] FIG. 13 is a diagram showing a state in which the position of the virtual camera is included in the correction control area. [Figure 10] FIG. 4 is a diagram showing an example of a reference camera path. [Figure 11] FIG. 13 is a diagram for explaining how height information (Z coordinate) is assigned to a two-dimensional movement path. [Figure 12] 1 is a diagram illustrating a method for determining the angle of the pan axis of a virtual camera. [Figure 13] 1A and 1B are diagrams illustrating a method for determining the angle of the tilt axis of a virtual camera. [Figure 14] A diagram showing an example of a course used in BMX freestyle park competitions. [Figure 15] A diagram showing the positions of the correction control areas set within the course of a park competition. [Figure 16] A diagram showing the two-dimensional movement path of the virtual camera in the spine correction control area. [Figure 17] A diagram showing the three-dimensional movement path of the virtual camera in the spine correction control area. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, the present embodiment will be described with reference to the drawings. Note that the following embodiment does not necessarily limit the present invention. Furthermore, not all of the combinations of features described in the present embodiment are necessarily essential to the solution of the present invention.
[0009] <Check the assignment> For example, consider the case where a virtual viewpoint image is generated for soccer played on a large, flat field. The user can set a camera path in the imaging space with a high degree of freedom, for example, starting to follow a player from a position where the player is captured from behind, and going around to a position where the player is captured from the front when the ball is kicked toward the goal. Here, the "imaging space" means a virtual three-dimensional space expressed by computer graphics or the like, which corresponds to a three-dimensional space where multiple imaging devices actually capture images. In contrast, consider the case where a virtual viewpoint image is generated for a track bicycle race. In track bicycle races, athletes run on a circuit course that is generally called a "bank," and in which curved sections with gradually changing inclinations and a maximum inclination of 30 degrees to 45 degrees are continuously connected to flat straight sections. In this case, even with the technologies of Patent Documents 1 and 2 described above, it was difficult to set a natural camera path. For example, suppose that the technology of Patent Document 1 is applied to set a camera path that runs parallel to the athletes circling the bank. In this case, when the athlete enters the curved section, the inclination angle of the running surface gradually increases with the movement of the virtual viewpoint running alongside the athlete, and the position of the virtual viewpoint is corrected every time the camera area overlaps with the no-entry area. The camera path obtained in this way causes the virtual viewpoint to draw a zigzag trajectory up and down as the athlete moves, and a virtual viewpoint image that is not tolerable to viewing is not obtained. Furthermore, when the athlete leaves the curved section, the inclination angle of the running surface gradually becomes gentler as the athlete moves, and the camera area does not overlap with the no-entry area, so the position of the virtual viewpoint is not corrected at all. In the camera path obtained in this way, the distance between the virtual viewpoint and the running surface gradually deviates. To avoid this, delicate operations are required to maintain the virtual viewpoint at a constant height from the running surface, whose height gradually changes, which places a heavy burden on the user. Furthermore, when the technology of Patent Document 2 is applied, for example, if the position of the virtual viewpoint is corrected at the entrance to a curve section with a gentle angle of incline, and then that state is maintained while moving to a point with a greater angle of incline, the position of the virtual viewpoint will become buried inside the bank.To avoid this, it is necessary to temporarily remove the position of the virtual viewpoint from the default camera path and then perform the correction again, but this makes the operation of the virtual viewpoint extremely complicated.
[0010] As described above, in the conventional technology, when an object moves on a large structure having a complex three-dimensional shape such as a bank, complex virtual viewpoint operations are required to set a natural camera path without creating an awkward feeling. The technology disclosed herein has been made in consideration of such points, and its purpose is to enable a natural camera path to be set with simpler operations.
[0011] <Explanation of imaging space> FIG. 1(a) is a diagram showing a state in which multiple imaging devices (real cameras) 102 are installed on a bank 101, which is a bicycle track stadium, according to this embodiment. As described above, the bank 101 is a circular track consisting of straight sections and curved sections. The bank 101 is designed with an angle on the track to allow bicycles to travel at high speeds, with the angle being maximum in the curved sections and gradually becoming gentler as the straight sections progress. In the example of FIG. 1(a), multiple imaging devices 102 are installed to surround the bank 101.
[0012] FIG. 1(b) is a diagram for explaining the definition of the world coordinate system and the virtual viewpoint coordinate system (camera coordinate system) when the three-dimensional space including the bank 101 is the imaging target. In this embodiment, the world coordinate system is defined with the center of the bank 101 as the origin, the long side direction of the bank 101 as the X axis, the short side direction of the bank 101 as the Y axis, and the direction perpendicular to the X axis and the Y axis as the Z axis, and the X axis, Y axis, and Z axis are respectively written as Xw, Yw, and Zw. In this case, the direction of the arrows of each of the Xw, Yw, and Zw axes represents the positive direction. In this embodiment, the camera coordinate system is defined with the optical center of the virtual viewpoint (virtual camera) 110 as the origin, the optical axis direction as the Z axis, the horizontal direction (left-right direction) of the virtual camera 110 as the X axis, and the vertical direction (up-down direction) of the virtual camera 110 as the Y axis. The XYZ axes are respectively written as Xc, Yc, and Zc. In this case, the direction of the arrows of each of the Xc, Yc, and Zc axes represents the positive direction. The direction of virtual camera 110 is represented by a rotation (pan) around an axis in the up-down direction relative to the attitude of the virtual viewpoint, a rotation (tilt) around an axis in the left-right direction relative to the attitude of the virtual viewpoint, and a rotation (roll) around an axis in the front-back direction relative to the attitude of the virtual viewpoint. That is, pan P is a parameter representing the rotation of the optical axis of virtual camera 110 in the left-right direction, and is the rotation of virtual camera 110 around the pan axis. Tilt T is a parameter representing the rotation of the optical axis of virtual camera 110 up-down, and is the rotation of virtual camera 110 around the tilt axis. Roll R is a parameter representing the rotation around the optical axis of virtual camera 110, and is the rotation of the virtual viewpoint around the roll axis.
[0013] The above definitions of the world coordinate system and the virtual viewpoint coordinate system are merely examples, and they may be defined by other methods.
[0014] <System configuration> 2 is a diagram showing an example of the configuration of an image processing system according to this embodiment. The image processing system includes an information processing device 201 and a control device 202, and the information processing device 201 is connected to a plurality of image capturing devices 102.
[0015] The multiple imaging devices 102 are arranged so that each captures a part or the whole of the bank 101 and so that the angles of view of at least two of the imaging devices overlap, and are connected to each other, for example, via a transmission cable. The multiple imaging devices 102 are installed facing a preset point of interest. When multiple points of interest are set, each point of interest is captured from different directions by two or more imaging devices 102. Images captured by the multiple imaging devices 102 are transmitted to the information processing device 201. Note that the images captured by the multiple imaging devices 102 may be still images, moving images, or both still images and moving images. Note that in this embodiment, unless otherwise specified, the term "image" includes both still images and moving images.
[0016] The information processing device 201 is an image processing server that generates a virtual viewpoint image based on a plurality of captured images obtained by capturing an object (subject) from a plurality of directions by a plurality of imaging devices 102. The virtual viewpoint image is also called a free viewpoint video, and is an image corresponding to a virtual viewpoint freely (arbitrarily) designated by a user in a three-dimensional space of an imaging target. In addition, although the present embodiment will mainly describe a case where the virtual viewpoint image is a moving image, the virtual viewpoint image may be a still image. The information processing device 201 acquires captured images captured by a plurality of imaging devices 102 installed in the bank 101 at a predetermined frame rate. The predetermined frame rate is, for example, a frame rate of 60 frames / second, but is not limited thereto. The information processing device 201 acquires a plurality of captured images from the plurality of imaging devices 102 by a wired or wireless communication module, or an image transmission module such as SDI.
[0017] The information processing device 201 uses the virtual viewpoint information received from the control device 202 and the multiple captured images received from the multiple imaging devices 102 to generate an image representing a view from a virtual viewpoint specified by the virtual viewpoint information as a virtual viewpoint image. The virtual viewpoint image is generated, for example, by using image-based rendering (IBR). IBR is a rendering method that generates a virtual viewpoint image by deforming and combining multiple captured images without performing modeling (a process of creating the shape of an object using geometric figures). However, the virtual viewpoint image may be generated without relying on IBR, and may be generated, for example, by using model-based rendering (MBR). MBR is a method of generating a virtual viewpoint image using three-dimensional shape data (3D model) of an object generated based on multiple captured images obtained by capturing an object (subject) from multiple directions. The above-mentioned MBR generates a virtual viewpoint image by using a 3D model of an object obtained by a three-dimensional shape restoration method such as a visual volume intersection method. When the information processing device 201 generates a virtual viewpoint image by MBR, for example, a 3D model or texture information of the 3D model may be generated. The virtual viewpoint image generated by IBR or MBR is stored in a storage device in an image format such as MXF (Material eXchange Format), and is further compressed in MPEG2 format. The data format described here is an example, and any image format and data compression method may be used. Moreover, compression encoding is not necessary. The control device 202 is an information processing device that generates virtual viewpoint information, such as a personal computer, a smartphone, or a tablet terminal. The control device 202 has an input interface, such as a mouse, a keyboard, a joystick, or a touch panel, for a user to perform various operations including the operation of the virtual camera 110.
[0018] FIG. 3 is a diagram for explaining a joystick as an input interface of the control device 202. The joystick 300 is composed of a left stick 301, a right stick 302, a left button 303, and a right button 304. The joystick 300 can input directions by tilting the left stick 301 and the right stick 302 forward, backward, left, and right. The left stick 301 is a stick for controlling the position of the virtual camera 110. For example, when the left stick 301 is tilted forward, the virtual camera 110 moves forward, when tilted backward, when tilted left, it moves left, and when tilted right, it moves right. In addition, when the left stick 301 is operated while the left button 303 is pressed, the mode is switched to one in which the virtual camera 110 moves up and down. When the left stick 301 is tilted forward, the virtual camera 110 moves upward, and when tilted backward, it moves downward. The right stick 302 is a stick for controlling the attitude of the virtual camera 110. For example, by tilting the right stick 302 forward or backward, the virtual camera 110 can be rotated on the tilt axis, and by operating it forward, it can be rotated upward, and by operating it backward, it can be rotated downward. In addition, by tilting the right stick 302 left or right, the virtual camera 110 can be rotated on the pan axis, and by operating it left, it can be rotated left, and by operating it right, it can be rotated right. In addition, by tilting the right stick 302 left or right while pressing the right button 304, the virtual camera 110 can be rotated on the roll axis, and by operating it left, it can be rotated left, and by operating it right, it can be rotated right.
[0019] The control device 202 generates information (virtual viewpoint information) indicating the position and orientation of the virtual camera 110 at any time based on the operation signal of the joystick 300, and outputs the information to the information processing device 201. When generating the virtual viewpoint information, the control device 202 has a function of automatically correcting the position and orientation of the virtual viewpoint specified by the operation signal based on structure data. The virtual viewpoint correction function will be described in detail later.
[0020] <Hardware configuration> Next, an example of the hardware configuration of the information processing device 201 and the control device 202 will be described with reference to FIG.
[0021] The controller unit 400 includes a CPU 401, a ROM 402, a RAM 403, a HDD 404, an operation I / F (interface) 405, a display I / F 406, and a communication I / F 407. These components are connected to each other via a system bus 408.
[0022] The CPU 401 controls the operations of the ROM 402 , the RAM 403 , the HDD 404 , the operation I / F 405 , the display I / F 406 , and the communication I / F 407 via a system bus 408 . The CPU 401 starts the OS by a boot program stored in the ROM 402. The CPU 401 executes an application program stored in, for example, the HDD 404 on the started OS. The CPU 401 executes the application program, thereby realizing various processes in each of the information processing device 201 and the control device 202. The RAM 403 is used as a temporary storage area such as the main memory and work area of the CPU 401. The HDD 404 stores the application program and the like as described above. The CPU 401 may be composed of one processor or multiple processors.
[0023] The operation I / F 405 is an interface with the operation unit 409. The operation I / F 405 sends operation information input by a user in the operation unit 409 to the CPU 401. The operation unit 409 has devices capable of receiving user operations, such as a mouse, a keyboard, and a touch panel. The display I / F 406 is an interface with the display device 410. The display I / F 406 outputs, for example, image data to be displayed on the display device 410 to the display device 410. The display device 410 is composed of, for example, a liquid crystal display, and may have a touch panel function. In the case of a display having a touch panel function, the display device 410 also functions as the operation unit 409.
[0024] The communication I / F 407 is an interface for performing communication such as Ethernet (registered trademark). The communication I / F 407 is connected to a transmission cable and includes a connector for receiving the transmission cable. The communication I / F 407 inputs and outputs information between the communication I / F 407 and an external device via the transmission cable. The communication I / F 407 may be, for example, a circuit or antenna for performing wireless communication such as a baseband circuit or an RF circuit. The controller unit 400 can also control an external display device 410 connected via a cable or a network to display an image. In this case, the controller unit 400 realizes display control by outputting display data to the external display device 410. The hardware configuration shown in FIG. 4 is an example, and some of the hardware configurations may be omitted or configurations not shown may be added, and the configurations shown in the figures may be combined. For example, the information processing device 201 may not have the display device 410. For example, in the above description, the controller unit 400 has been described as having the CPU 401, but instead of the CPU 401 or in addition to the CPU 401, the controller unit 400 may have hardware such as an ASIC, a DSP, or an FPGA. In that case, the ASIC or DSP may perform some or all of the processing performed by the CPU 401.
[0025] <Control device functional configuration> Fig. 5 is a block diagram showing an example of a functional configuration of the control device 202. The control device 202 has a transmission / reception unit 501, a structure data acquisition unit 502, a virtual viewpoint information generation unit 503, and a display control unit 504. Note that each functional unit shown in Fig. 5 is realized, for example, by the CPU 401 of the control device 202 reading out various programs recorded in the ROM 402 and executing control of each unit. Each functional unit will be described below.
[0026] The transmitter / receiver 501 receives, for example, an operation signal of the joystick 300 by the user via the operation I / F 405. Every time the user operates the joystick 300 to cause a change in the position / posture of the virtual viewpoint, an operation signal is generated and transmitted to the control device 202. The received operation signal is output to the virtual viewpoint information generating unit 503. In addition, the transmitting / receiving unit 501 transmits the virtual viewpoint information generated by the virtual viewpoint information generating unit 503 to the information processing device 201 via the communication I / F 407, and receives a virtual viewpoint image corresponding to the virtual viewpoint information from the information processing device 201 via the communication I / F 407. The received virtual viewpoint image is displayed by the display control unit 504 on a UI screen for setting a virtual viewpoint (hereinafter referred to as a "virtual viewpoint setting screen").
[0027] The structure data acquisition unit 502 reads and acquires data capable of identifying the surface shape of a large structure existing in the imaging space (hereinafter, referred to as "structure data") from the HDD 404 serving as a DB (database) that stores the structure data. FIGS. 6(a) and 6(b) are diagrams showing an example of information included in the structure data of the bank 101. FIG. 6(a) is an example of two-dimensional data showing the overall shape of the bank 101 when viewed from directly above. In FIG. 6(a), a semicircular double-headed arrow 601 indicates a curve section from the first corner to the second corner of the bank 101, and a point 602 indicates the center point of the curve section 601. A semicircular double-headed arrow 603 indicates a curve section from the third corner to the fourth corner of the bank 101, and a point 604 indicates the center point of the curve section 603. The two-dimensional data also includes information on the radii of curvature of the curve sections 601 and 603 and the position coordinates of the center points 602 and 604. FIG. 6(b) is an example of three-dimensional data showing the shape of the maximum inclination part in the curve section of the bank 101. The three-dimensional data includes position coordinates indicating the heights from the ground (heights from the XY plane) of a plurality of points 612 on a curved surface 611. In this case, the plurality of points 612 correspond to lattice points on the XY plane. For convenience of explanation, a portion of the curve section of the bank 101 has been used for the explanation, but the three-dimensional data includes information on the entire bank 101. The above-mentioned structure data may be acquired from the HDD 404 inside the control device 202, or may be acquired from an external device (not shown) (for example, an external server that collectively manages structure data). The acquired structure data is output to the virtual viewpoint information generating unit 503.
[0028] The virtual viewpoint information generating unit 503 generates virtual viewpoint information based on the operation signal of the joystick 300 received from the transmitting / receiving unit 501. At this time, the virtual viewpoint information corresponding to the operation signal is also automatically corrected using a camera path generated based on the structure data. The details of the virtual viewpoint information generation process including this automatic correction will be described later. The generated virtual viewpoint information is transmitted to the information processing device 201 by the transmitting / receiving unit 501.
[0029] The display control unit 504 performs various controls related to information displayed on the display device 410 via the display I / F 406, such as display control of various UI screens including the above-mentioned virtual viewpoint setting screen.
[0030] <Generation of virtual viewpoint information> Next, the process of generating virtual viewpoint information in the control device 202 will be described with reference to an example in which the user operates the joystick 300 while referring to a virtual viewpoint image that has already been generated to successively set the position and orientation of a new virtual viewpoint in a time series. FIG. 7 is a flowchart showing the process of generating virtual viewpoint information in real time according to this embodiment. The following description will be given with reference to the flowchart in FIG. 7. Note that, before the series of processes shown in the flowchart in FIG. 7 start, structure data such as a bank that exists in the imaging space is acquired by the structure data acquisition unit 502 and expanded in the RAM 403, and the data is in a state that the CPU 401 can refer to as appropriate. In the following description, the symbol "S" means a step.
[0031] In S701, the display control unit 504 reads out screen data of a virtual viewpoint setting screen (not shown) prepared in advance from the HDD 404 or ROM 402, and displays it on the display device 410. On the basic screen displayed immediately after the start of the generation process, for example, a preview image of an overhead view of the entire imaging space is displayed, which allows the user to specify the start position of the virtual viewpoint in the next S702.
[0032] In S702, the virtual viewpoint information generating unit 503 determines the start position and start posture of the virtual viewpoint based on the user's instruction input via the virtual viewpoint setting screen. FIG. 8 shows a state in which the start position and start posture of the virtual viewpoint (virtual camera) are specified in a preview image displayed on the virtual viewpoint setting screen. In the example of FIG. 8, the start position and start posture of the virtual camera 802 are specified in the preview image of the bird's-eye view of the bank 101 so as to capture the player 801 circling the bank 101 counterclockwise from the side (right side) of the outer periphery of the bank. Note that FIG. 8 shows only the start position on the XY plane and does not show information on the Z axis, but for example, the height of the line of sight of a person standing on the running track is determined as the start position on the Z axis. The user can realize the image capture by the virtual camera 802 from the side so as to move along the player 801 by tilting the left stick 301 of the joystick 300 to the right in accordance with the movement of the player 801. In this case, as a runner 801 running along a straight section of the bank 101 approaches a curved section, the virtual camera 802 also approaches the curved section.
[0033] In S703, the transmitting / receiving unit 501 starts receiving an operation signal sent from time to time as the user continuously operates the joystick 300. The received operation signal is output to the virtual viewpoint information generating unit 503. The next process from S704 onwards is executed on a frame-by-frame basis. For example, when imaging is performed at 60 fps, the process may be executed for every frame, or may be executed at a predetermined frame interval or at a specific key frame to fill in the gaps between frames with an interpolation process.
[0034] In S704, the virtual viewpoint information generating unit 503 judges whether the position of the virtual camera corresponding to the input operation signal when viewed from directly above is included in a specific area (hereinafter referred to as a "correction control area") that is the target of correction control. FIG. 9 is a diagram showing a state in which the position of the virtual camera is included in a correction control area set for a curve section of the bank 101. The correction control area shown by the dashed line 901 in FIG. 9 is a rectangular area that is set on the bird's-eye view of the bank 101 and includes a curve section in which the slope of the road gradually changes. The slope of the curve section is not constant, and the boundary with the straight section is the gentlest and the midpoint is the steepest. The correction control area 901 may be set manually on a preview image of a planar surface of a large structure that is displayed on a UI screen when the user determines the starting position and starting posture of the virtual camera. Alternatively, the correction control area 901 may be set automatically by detecting an area in which the slope changes based on the shape data of the large structure. If the result of the determination is that the position of the virtual camera 802 corresponding to the input operation signal is included in the corrected control area 901, the process of S705 is executed next. Then, prior to the process of S705, information on the user operation when the virtual camera 802 is included (entered) in the corrected control area for the first time is stored. For example, as shown in FIG. 8, when the virtual camera 802 is moved so as to run alongside the player 801 and an image is taken of the player 801, the virtual camera 802 is directed in the direction of travel by tilting the left stick 301 of the joystick 300 to the right. Therefore, if the virtual camera 802 proceeds into the corrected control area 901 as it is, information is stored that the rightward operation of the left stick 301 is an operation to direct the virtual camera 802 in the direction of travel. On the other hand, if the position of the virtual camera 802 corresponding to the input operation signal is not included in the corrected control area 901, the process of S710 is executed next.
[0035] In S705, the virtual viewpoint information generating unit 503 judges whether a reference camera path already exists. Here, the reference camera path is a camera path that is a reference in the correction control area and is referred to when automatically correcting the position and attitude of the virtual viewpoint corresponding to the operation signal input continuously. In the camera path, which is data that continuously defines the position and attitude of the virtual viewpoint in a time series, the position of the virtual viewpoint at a certain time (frame) is indicated by three-dimensional coordinates in the world coordinate system, and the attitude of the virtual viewpoint is indicated by the angles of the pan axis, tilt axis, and roll axis. FIG. 10 is a diagram showing an example of a moving path of the virtual viewpoint (virtual camera) set as the reference camera path in a view of the curve section of the bank 101 viewed from directly above. In FIG. 10, a solid arc 1001 represents the trajectory of the movement of the virtual camera 802 when it passes through the correction control area 901, and is defined by two-dimensional coordinates on the XY plane of the world coordinate system. In addition, a point O is the center point of the arc 1001 that draws a semicircle, and its position is defined by two-dimensional coordinates in the structure data. If such a reference camera path has not been generated, the process proceeds to step S706. On the other hand, if the reference camera path has already been generated, step S706 is skipped and the process proceeds to step S707.
[0036] In S706, the virtual viewpoint information generating unit 503 generates the above-mentioned reference camera path based on the structure data. Hereinafter, a detailed explanation will be given by taking as an example a case where a reference camera path that draws the above-mentioned arc 1001 shown in FIG.
[0037] <How to generate the reference camera path> First, a moving path of the virtual camera 802 on the XY plane is determined. Specifically, a two-dimensional moving path is determined, in which a point A where the virtual camera 802 enters the correction control area 901 is the starting point (starting point), a point B where the virtual camera 802 leaves the correction control area 901 is the end point, and a straight line connecting the point A (B) and a center point O has a radius of r. The moving path determined here includes a plurality of two-dimensional coordinates (x, y) corresponding to each point on the semicircle 1001. Once the moving path of the virtual camera 802 on the XY plane is determined, next, the height of the virtual camera 802 on the moving path is determined. Specifically, a one-dimensional coordinate (z) representing the height from the ground is determined for each of the two-dimensional coordinates (x, y) of each point on the determined two-dimensional moving path. FIG. 11 is a diagram for explaining a state in which a Z coordinate is assigned as height information to the determined two-dimensional moving path 1001. In FIG. 11, a thick arc 1101 indicates a three-dimensional movement path to which height information is added to the two-dimensional movement path 1001. The value of the Z coordinate indicating the height given here is the sum of the height 1102 of the road surface of the bank 101 and the height 1103 of the virtual camera 802 from the road surface. The height 1102 of the road surface is a Z coordinate in three-dimensional coordinates acquired from the structure data using the two-dimensional coordinates (x, y) corresponding to each point of the determined two-dimensional movement path 1001. The height 1103 of the virtual camera 802 from the road surface is equal to the height from the ground to the virtual camera 802 at the time when the virtual camera 802 enters the corrected control area 901. In other words, it is a value obtained by subtracting the Z coordinate acquired from the structure data based on the XY coordinate in the three-dimensional coordinates of the point where the virtual camera 802 is located from the Z coordinate of the three-dimensional coordinates when the virtual camera 802 enters the corrected control area. In this manner, a three-dimensional movement path 1101 is determined.
[0038] When the three-dimensional movement path is determined, the attitude of the virtual camera 802 at each point on the three-dimensional movement path, specifically the angles of the pan axis and the tilt axis, are then determined. FIG. 12 is a diagram for explaining a method for determining the angle of the pan axis of the virtual camera 802, and FIG. 13 is a diagram for explaining a method for determining the angle of the tilt axis. First, the method for determining the angle of the pan axis will be described with reference to FIG. 12. In FIG. 12, which shows the curve section of the bank 101 from a bird's-eye view, points C and D are positions on the movement path 1101 of the virtual camera 802 shown in FIG. 10 and FIG. 11 described above. The solid line virtual camera 1201 corresponding to point C indicates the position and attitude of the virtual viewpoint at a point when the virtual camera 802 has progressed somewhat from the point when it entered the correction control area 901, and the dashed line virtual camera 1202 corresponding to point D indicates the position and attitude of the virtual viewpoint when it has progressed to the position where the inclination is greatest. A solid line virtual camera 1202' indicates the attitude of the virtual viewpoint after the pan axis of the dashed line virtual camera 1202 is corrected. When the angle of the pan axis in the virtual camera 1202 is determined, an angle α when the virtual camera 1201 moves to the virtual camera 1202 is calculated. The angle α is an angle formed by two straight lines connecting the center point O of the reference camera path 1101, which is a semicircle, with the virtual camera 1201 and the virtual camera 1202. The pan axis of the virtual camera 1202 is corrected based on the calculated angle α. Specifically, the virtual camera 1202 is rotated leftward by the angle α around the pan axis of the virtual camera 1202. As a result, the optical axis 1203 of the virtual camera 1202 is changed to the optical axis 1203'. A solid line virtual camera 1202' indicates the attitude of the virtual viewpoint that has become the optical axis 1203'. Next, a method of determining the angle of the tilt axis will be described with reference to FIG. 13. Now, in Figure 13, which is a vertical cross-sectional view of a curved section of bank 101, there are shown a solid line virtual camera 1201 corresponding to point C in Figure 12, and a dashed line virtual camera 1202 corresponding to point D. In Figure 13, a solid line virtual camera 1202' indicates the attitude of the virtual viewpoint after correcting the tilt axis of dashed line virtual camera 1202. When determining the angle of the tilt axis of virtual camera 1202, an angle β when virtual camera 1201 moves towards virtual camera 1202 is calculated.Angle β is the angle formed by two straight lines connecting inner diameter 1300 of the track of bank 101 with virtual camera 1201 and virtual camera 1202. The tilt axis of virtual camera 1202 is corrected based on the calculated angle β. Specifically, virtual camera 1202 is rotated downward by angle β around the tilt axis of virtual camera 1202. As a result, optical axis 1301 of virtual camera 1202 is changed to optical axis 1301'. Virtual camera 1202' shown by a solid line indicates the attitude of the virtual camera with optical axis 1301'. Note that, although the calculation of angle β has been described using inner diameter 1300 of the bank, this is not limiting, and the calculation may be performed based on another point such as the center point O of the bank.
[0039] In this manner, the reference camera path is generated based on the structure data. Returning to the explanation of the flowchart in FIG.
[0040] In S707, the virtual viewpoint information generating unit 503 corrects the two-dimensional coordinates (x, y) representing the position on the XY plane of the virtual viewpoint corresponding to the input operation signal, based on the reference camera path.
[0041] In S708, the virtual viewpoint information generating unit 503 corrects the one-dimensional coordinate (z) representing the position (height) on the Z axis of the virtual viewpoint corresponding to the input operation signal, based on the reference camera path.
[0042] In S709, the virtual viewpoint information generating unit 503 corrects the angles of the pan axis and tilt axis that specify the attitude of the virtual viewpoint corresponding to the input operation signal, based on the reference camera path.
[0043] In S710, the transmitting / receiving unit 501 transmits virtual viewpoint information including the position and orientation of the virtual viewpoint corresponding to the input operation signal or the position and orientation of the virtual viewpoint corrected in the above-mentioned S707 to S709 to the information processing device 201. The information processing device 201 generates a virtual viewpoint image according to the received virtual viewpoint information and transfers the completed virtual viewpoint image to the control device 202.
[0044] In S711, the display control unit 504 displays the virtual viewpoint image received by the transmission / reception unit 501 from the information processing device 201 on the UI screen of the display device 410 via the display I / F 407.
[0045] In S712, it is determined whether or not to end the generation of the virtual viewpoint image. If the user inputs an instruction to end the generation of the virtual viewpoint image, this process ends. On the other hand, if the generation of the virtual viewpoint image is to continue, the process returns to S704 and continues.
[0046] The above is the flow of processing when the control device 202 generates virtual viewpoint information in real time. Note that a configuration may be adopted in which the correction function in the virtual viewpoint information generation unit 503 can be turned on / off. For example, a button for turning the correction function on / off is provided on the joystick 300, so that the user can set whether or not to use the correction function by operating the button. In this way, it may be possible to control the automatic correction of the virtual viewpoint to be turned on / off. In the above example, the generation of the reference camera path is started on the condition that the virtual viewpoint outside the correction control area is included in the correction control area. However, when it is predicted based on the input operation signal that the virtual viewpoint will enter the correction control area from outside the correction control area, the generation of the reference camera path may be started with the predicted entry point as the starting point. Furthermore, the start position of the virtual viewpoint may be within the correction control area from the beginning. For example, it is assumed that the start position of the virtual viewpoint is specified within the correction control area 901 corresponding to the above-mentioned curve section. In this case, a circle with a radius r is first determined as a straight line connecting the specified start position and the center point O, and a two-dimensional movement path is determined that draws a semicircle with the starting point and the end point being the position where the determined circle intersects with the outer edge of the correction control area 901. Then, the height of the determined two-dimensional movement path may be determined as the reference camera path.
[0047] <Specific example of correction based on reference camera path> Here, a concrete example will be used to explain how the position and orientation of the virtual viewpoint corresponding to the input operation signal is corrected based on the reference camera path. Here, the degree of inclination of the left stick 301 and the moving distance of the virtual viewpoint (virtual camera) are linked, and the greater the degree of inclination, the greater the moving distance.
[0048] Example 1 Assume that the content represented by the input operation signal is an operation to tilt the left stick 301 to the right. This operation would normally move the virtual camera to the left, and therefore directly upward in Figs. 9 and 10. However, in the case of this embodiment, a correction is performed to move the virtual viewpoint position on the movement path in the reference camera path toward the traveling direction by an amount corresponding to the degree of tilt of the left stick 301. Then, attitude information at the corrected virtual viewpoint position on the movement path in the reference camera path is acquired, and a correction is performed to set the attitude defined by the acquired attitude information as the attitude at the corrected virtual viewpoint position.
[0049] Example 2 Assume that the input operation signal represents an operation of tilting the left stick 301 to the left. This operation would normally move the virtual camera to the right, so in Figures 9 and 10, it moves directly downward (direction opposite to the direction the player is moving). However, in the case of this embodiment, a correction is performed to move the virtual viewpoint position in the opposite direction to the traveling direction (to return) on the movement path of the reference camera path by an amount corresponding to a movement distance according to the tilt degree of the left stick 301. Then, attitude information on the corrected virtual viewpoint position on the movement path of the reference camera path is obtained, and a correction is performed to set the attitude defined by the obtained attitude information as the attitude at the corrected virtual viewpoint position.
[0050] Example 3 Assume that the input operation signal indicates an operation of tilting the left stick 301 to the right while tilting it forward. This operation would normally move the virtual camera forward while moving leftward, so that it moves diagonally upward to the left in Figs. 9 and 10. However, in the case of this embodiment, a correction is performed in which the virtual viewpoint position is advanced in a direction perpendicular to the traveling direction (i.e., the virtual camera 802 approaches the player 801) by a movement distance corresponding to the tilt degree of the left stick 301, based on the current position of the virtual viewpoint. Note that, if the left stick 301 is tilted backward while tilting rightward, a correction opposite to the above is performed, that is, the virtual viewpoint position is moved backward in a direction perpendicular to the traveling direction (the virtual camera 802 moves away from the player 801). The attitude at the virtual viewpoint position after the correction is determined in accordance with the above-mentioned <<Specific Example 1>> and <<Specific Example 2>>.
[0051] Example 4 Assume that the input operation signal indicates an operation of tilting the right stick 302 forward while tilting the left stick 301 to the right. In this case, the same processing as in the above-mentioned <<Specific Example 1>> is performed for the position of the virtual viewpoint. In addition, for the attitude of the virtual viewpoint, attitude information at the corrected virtual viewpoint position on the movement path in the reference camera path is acquired, and a correction is performed to rotate the tilt axis upward by an amount corresponding to the degree of tilt of the right stick 302, based on the attitude specified by the attitude information.
[0052] <Modification> In the above embodiment, the track bicycle race is described as an example, but the application is not necessarily limited to this. For example, the present invention can be applied to other sports competitions that are held on courses that include curved sections, such as BMX (Bicycle Motocross) freestyle park competitions and snowboarding half-pipe competitions. Furthermore, the present invention can be applied to performances such as live performances and concerts by artists held in halls with special shapes. FIG. 14 shows an example of a course used in a park BMX freestyle competition, viewed from an overhead perspective. BMX freestyle is a competition in which competitors perform tricks such as jumps and tricks over various obstacles, and compete on the difficulty and originality of the tricks. The course 1400 shown in FIG. 14 is composed of three obstacles (spine 1401, quarter ramps 1402 and 1403). Now, rectangular parallelepipeds with the bottoms of the obstacles (areas shown by diagonal lines) as their bottoms, as shown by dashed lines in FIG. 15, are set for the course 1400 as correction control areas 1501 to 1503. The shape of the correction control area is not limited to a rectangular parallelepiped, and may be another polyhedron. The virtual viewpoint information generating unit 503 determines a moving path (reference camera path) of the virtual camera moving in the corrected control area at the moment when the virtual camera enters the corrected control area 1501-1503. FIG. 16 is a diagram showing a two-dimensional moving path of the virtual camera in the corrected control area 1501 set for the spine 1401. Now, a player 1601 is moving toward the spine 1401, and a virtual camera 1602 captures an image of the player 1601 from the side while following the movement of the player 1601. The virtual viewpoint information generating unit 503 first determines a two-dimensional moving path of the virtual camera 1602 when the virtual camera 1602 passes through the corrected control area 1501 at the moment when the virtual camera 1602 enters the corrected control area 1501. In FIG. 16, a thick arrow 1603 indicates the determined two-dimensional moving path. Now, the movement path 1603 is a straight line connecting point A, where the virtual camera 1602 entered the correction control area 1501, to point B, which is indicated by the movement direction immediately before the virtual camera 1602 entered the correction control area 1501, and is composed of the two-dimensional coordinates (x, y) of each point on the straight line. Next, the virtual viewpoint information generating unit 503 determines a one-dimensional coordinate (z) indicating the height from the ground for each of the two-dimensional coordinates (x, y) of each point on the moving path 1603. FIG. 17 is a cross-sectional view of the spine 1401 cut vertically and viewed from the side, and explains how a Z coordinate is assigned as height information to the two-dimensional moving path 1603. In FIG. 17, a thick arrow 1701 indicates a three-dimensional moving path to which height information is assigned to the two-dimensional moving path 1603. The value of the Z coordinate assigned here is the sum of the "height of the spine 1401 from the road surface" indicated by a double arrow 1702 and the "height of the virtual camera 1602 from the road surface" indicated by a double arrow 1703. Here, the height 1702 of the road surface is the Z coordinate in the three-dimensional coordinates obtained from the structure data using the two-dimensional coordinates (x, y) corresponding to each point on the two-dimensional moving path 1603. 17, the height 1703 of the virtual camera 1602 from the road surface is equal to the height from the ground to the virtual camera 1602 at the time when the virtual camera 1602 enters the corrected control area 1501. In this way, a three-dimensional movement path 1701 is determined. Note that although the generation of the movement path in the corrected control area 1501 of the spine 1401 has been described above, the movement paths can also be generated in a similar manner for the quarter ramps 1402 and 1403. In addition, for the three-dimensional movement path generated for the course 1400 shown in FIG. 14, a process of determining the attitude of the virtual camera 1602 at each point on the path is not necessary. There are two main reasons for this. One is that the two-dimensional movement path 1603 on which it is based is linear and does not draw an arc (see FIG. 16), so it is sufficient to maintain the angle of the pan axis at the time of entering the correction control area, and it is not necessary to correct the pan axis over time. The other is that in the above example, even if the angle of the tilt axis is not changed as it is in the generated three-dimensional movement path 1701, it is possible to set a virtual camera that always captures the player 1601 from the side in accordance with the movement of the player 1601. Therefore, the attitude of the virtual camera 1602 at the time when the virtual camera 1602 enters the correction control area 1501 is maintained. In the above example, the process of determining the attitude of the virtual camera at each point on the three-dimensional movement path is not necessary, and the attitude of the virtual camera at each point on the path may be corrected or changed. In this case, for example, the user may be allowed to select whether or not to change the attitude of the virtual camera 1602 within the correction limited area 1501, and an attitude change operation may be accepted in response to the user's selection. In this case, the selection of whether or not to change the attitude may be allowed for each correction limited area, or may be allowed for all correction limited areas at once.
[0053] In the above embodiment, the height from the ground (road surface) is kept constant, but the present invention can be applied to situations where the distance from the ceiling or side walls is kept constant. Specifically, a reference camera path can be generated based on the structure data of a tunnel whose ceiling height is not constant, and a camera path that runs parallel to a person walking in the tunnel can be obtained based on the reference camera path while keeping the distance from the ceiling constant.
[0054] In the above embodiment, the virtual viewpoint information for a virtual viewpoint image based on a plurality of images obtained by capturing an image of a real three-dimensional space by a plurality of imaging devices is generated, but the present invention is not limited to this. For example, the present invention can be applied to the generation of virtual viewpoint information for a virtual viewpoint image in a game or metaverse, such as a character of a person or an animal moving in a virtual three-dimensional space that does not exist in reality and is generated by computer graphics.
[0055] In the above embodiment, the position and orientation of the virtual viewpoint are corrected based on the reference camera path, but this is not limiting. For example, the position of the virtual viewpoint may be restricted to a position on the reference camera path. If the content of the input operation signal is an operation to tilt the left stick 301 forward, the input will move toward the center point O in Figures 9 and 10, but since it is not a position on the reference camera path 1001, the input will not be reflected.
[0056] As described above, according to this embodiment, when a user wants to move the virtual viewpoint parallel to an object moving along a large-scale structure having a complex shape, the distance between the surface of the large-scale structure and the virtual viewpoint can be maintained constant without performing complex operations. This allows the user to obtain the desired natural camera path with simple operations.
[0057] (Other embodiments) The present disclosure can also be realized by a process in which a program for implementing one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more functions.
[0058] The present disclosure also includes the following configurations and methods.
[0059] [Configuration 1] An acquisition means for acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving means for receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating means for generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; having The generating means includes: determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is corrected so as to be on the camera path, thereby generating the virtual viewpoint information. A control device comprising:
[0060] [Configuration 2] The control device according to configuration 1, characterized in that the generation means determines the camera path when the position of a virtual viewpoint identified based on the operation signal received in time series by the receiving means enters the specific area from outside the specific area.
[0061] [Configuration 3] The control device according to configuration 2, wherein the generation means determines the camera path using the position of the virtual viewpoint when entering the specific area from outside the specific area as a starting point.
[0062] [Configuration 4] The control device described in configuration 1, characterized in that the generation means determines the camera path when it is predicted that the position of a virtual viewpoint identified based on the operation signals received in time series by the receiving means will enter the specific area from outside the specific area.
[0063] [Configuration 5] The control device according to configuration 2, characterized in that the generation means determines the camera path starting from the position of the virtual viewpoint at which entry is predicted when entry from outside the specific area into the specific area is predicted.
[0064] [Configuration 6] The shape data includes height information that defines the height of the structure in three-dimensional coordinates, the camera path includes height information of a virtual viewpoint on the movement path; The generating means includes: in determining the camera path, a height obtained by adding together a height from the ground surface of the structure indicated by the height information included in the shape data and a height of the virtual viewpoint indicated by the operation signal when the position of the virtual viewpoint is included in the specific area is determined as a height of the virtual viewpoint on the movement path; generating the virtual viewpoint information by correcting the height of the position of the virtual viewpoint indicated by the operation signal based on height information included in the camera path; 6. The control device according to any one of configurations 1 to 5.
[0065] [Configuration 7] The camera path further includes orientation information of a virtual viewpoint on the movement path, when the position of the virtual viewpoint indicated by the operation signal is included in the specific area, the generating means corrects the attitude of the virtual viewpoint indicated by the operation signal based on attitude information included in the camera path to generate the virtual viewpoint information. 7. The control device according to any one of configurations 1 to 6.
[0066] [Configuration 8] the specific area is set so as to include a portion of the structure where the height of the structure is not constant in the bird's-eye view of the structure; the generating means determines the camera path when the position of the virtual viewpoint indicated by the received operation signal is included in the specific area on the overhead view, or when the position of the virtual viewpoint indicated by the received operation signal is predicted to be included in the specific area on the overhead view. 6. The control device according to any one of configurations 1 to 5.
[0067] [Configuration 9] the shape data includes information on two-dimensional coordinates of the portion having a non-constant height; the generating means determines the camera path based on a position of a virtual viewpoint indicated by the operation signal when the position is included in the specific area on the overhead view and two-dimensional coordinates of a portion of the structure whose height is not constant and is included in the shape data. 9. The control device according to configuration 8,
[0068] [Configuration 10] The structure is a structure consisting of a straight section having a constant height and a curved section having a gradually changing height, The shape data includes information defining a center point of the arc of the curve section by two-dimensional coordinates on an overhead view of the structure, the generating means determines a camera path that draws an arc based on a center point of the arc of the curve section defined by the two-dimensional coordinates; 10. The control device according to configuration 9.
[0069] [Configuration 11] The attitude of the virtual viewpoint is expressed by pan, tilt, and roll, The generating means includes: determining an angle of a pan axis of the virtual viewpoint at a second point when the virtual viewpoint moves from a first point to a second point on the movement path based on an angle formed between a straight line connecting the center point and the first point and a straight line connecting the center point and the second point, and determining an angle of a tilt axis of the virtual viewpoint at the second point when the virtual viewpoint moves from the first point to the second point on the movement path based on an angle formed between a straight line connecting an inner radius of an arc of the curve section and the first point and a straight line connecting an inner radius of an arc of the curve section and the second point, thereby determining a camera path that draws the arc including angle information of the pan axis and tilt axis of the virtual viewpoint at each point on the movement path; when the position of the virtual viewpoint indicated by the operation signal is included in the specific area, the generating means corrects an attitude of the virtual viewpoint indicated by the operation signal based on angle information included in the camera path that draws the arc, to generate the virtual viewpoint information. 11. The control device according to configuration 10.
[0070] [Configuration 12] The structure is a structure in which a plurality of obstacles are arranged in one direction, the shape data includes information indicating a height from the ground of each of the plurality of obstacles; The generating means determines a camera path that maintains a constant height from a surface of each of the plurality of obstacles. 10. The control device according to configuration 9.
[0071] [Configuration 13] The control device according to any one of configurations 1 to 12, wherein the generation means generates the virtual viewpoint information by correcting the position of the virtual viewpoint indicated by the operation signal so that it is on the movement path indicated by the camera path.
[0072] [Configuration 14] 6. The control device according to any one of configurations 1 to 5, further comprising a display control means for causing a display means to display a virtual viewpoint image corresponding to the virtual viewpoint information generated by the generation means.
[0073] [Configuration 15] The control device according to configuration 14, characterized in that the display control means displays the virtual viewpoint image as part of a UI screen for a user to operate a joystick for operating a virtual viewpoint in the three-dimensional space.
[0074] [Configuration 16] the operation signal is an operation signal of the joystick, and a tilt degree of the joystick is associated with a moving distance of a virtual viewpoint; the generating means corrects the position of the virtual viewpoint indicated by the operation signal by moving the position on the movement path indicated by the camera path by a movement distance corresponding to the tilt degree of the joystick indicated by the operation signal; 16. The control device according to configuration 15,
[0075] [Configuration 17] 18. The control device according to any one of configurations 1 to 17, further comprising a setting unit that sets whether or not the correction is to be performed in the generating unit.
[0076] [Configuration 18] An acquisition means for acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving means for receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating means for generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; having The generating means includes: determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is controlled so as not to deviate from the camera path, thereby generating the virtual viewpoint information. A control device comprising:
[0077] [Method 1] A method for controlling an apparatus for generating virtual viewpoint information, comprising: An acquisition step of acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving step of receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating step of generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; Including, In the generating step, determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is corrected so as to be on the movement path, thereby generating the virtual viewpoint information. A control method comprising:
[0078] [Configuration 19] A program for causing a computer to function as the control device according to any one of configurations 1 to 18.
Claims
1. An acquisition means for acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving means for receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating means for generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; having The generating means includes: determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is corrected so as to be on the camera path, thereby generating the virtual viewpoint information. A control device comprising:
2. The control device according to claim 1, characterized in that the generation means determines the camera path when the position of a virtual viewpoint identified based on the operation signal received in chronological order by the receiving means enters the specific area from outside the specific area.
3. The control device according to claim 2 , wherein the generating means determines the camera path using as a starting point a position of the virtual viewpoint when the virtual viewpoint enters the specific area from outside the specific area.
4. The control device according to claim 1, characterized in that the generation means determines the camera path when it is predicted that the position of a virtual viewpoint identified based on the operation signals received in chronological order by the receiving means will enter the specific area from outside the specific area.
5. The control device according to claim 2, characterized in that the generation means determines the camera path starting from the position of the virtual viewpoint at which entry is predicted when entry from outside the specific area into the specific area is predicted.
6. The shape data includes height information that defines the height of the structure in three-dimensional coordinates, the camera path includes height information of a virtual viewpoint on the movement path; The generating means includes: in determining the camera path, a height obtained by adding together a height from the ground surface of the structure indicated by the height information included in the shape data and a height of the virtual viewpoint indicated by the operation signal when the position of the virtual viewpoint is included in the specific area is determined as a height of the virtual viewpoint on the movement path; generating the virtual viewpoint information by correcting the height of the position of the virtual viewpoint indicated by the operation signal based on height information included in the camera path; The control device according to claim 1 .
7. The camera path further includes orientation information of a virtual viewpoint on the movement path, when the position of the virtual viewpoint indicated by the operation signal is included in the specific area, the generating means corrects the attitude of the virtual viewpoint indicated by the operation signal based on attitude information included in the camera path to generate the virtual viewpoint information. The control device according to claim 1 .
8. the specific area is set so as to include a portion of the structure where the height of the structure is not constant in the bird's-eye view of the structure; the generating means determines the camera path when the position of the virtual viewpoint indicated by the received operation signal is included in the specific area on the overhead view, or when the position of the virtual viewpoint indicated by the received operation signal is predicted to be included in the specific area on the overhead view. The control device according to claim 1 .
9. the shape data includes information on two-dimensional coordinates of the portion having a non-constant height; the generating means determines the camera path based on a position of a virtual viewpoint indicated by the operation signal when the position is included in the specific area on the overhead view and two-dimensional coordinates of a portion of the structure whose height is not constant and is included in the shape data. The control device according to claim 8 .
10. The structure is a structure consisting of a straight section having a constant height and a curved section having a gradually changing height, The shape data includes information defining a center point of the arc of the curve section by two-dimensional coordinates on an overhead view of the structure, the generating means determines a camera path that draws an arc based on a center point of the arc of the curve section defined by the two-dimensional coordinates; The control device according to claim 9 .
11. The attitude of the virtual viewpoint is expressed by pan, tilt, and roll, The generating means includes: determining an angle of a pan axis of the virtual viewpoint at a second point when the virtual viewpoint moves from a first point to a second point on the movement path based on an angle formed between a straight line connecting the center point and the first point and a straight line connecting the center point and the second point, and determining an angle of a tilt axis of the virtual viewpoint at the second point when the virtual viewpoint moves from the first point to the second point on the movement path based on an angle formed between a straight line connecting an inner radius of an arc of the curve section and the first point and a straight line connecting an inner radius of an arc of the curve section and the second point, thereby determining a camera path that draws the arc including angle information of the pan axis and tilt axis of the virtual viewpoint at each point on the movement path; when the position of the virtual viewpoint indicated by the operation signal is included in the specific area, the generating means corrects an attitude of the virtual viewpoint indicated by the operation signal based on angle information included in the camera path that draws the arc, to generate the virtual viewpoint information. The control device according to claim 10 .
12. The structure is a structure in which a plurality of obstacles are arranged in one direction, the shape data includes information indicating a height from the ground of each of the plurality of obstacles; The generating means determines a camera path that maintains a constant height from a surface of each of the plurality of obstacles. The control device according to claim 9 .
13. 2. The control device according to claim 1, wherein the generating means generates the virtual viewpoint information by correcting the position of the virtual viewpoint indicated by the operation signal so that the position is on a movement path indicated by the camera path.
14. 6. The control device according to claim 1, further comprising a display control unit that causes a display unit to display a virtual viewpoint image corresponding to the virtual viewpoint information generated by the generation unit.
15. The control device according to claim 14 , wherein the display control means displays the virtual viewpoint image as a part of a UI screen for a user to operate a joystick for operating a virtual viewpoint in the three-dimensional space.
16. the operation signal is an operation signal of the joystick, and a tilt degree of the joystick is associated with a moving distance of a virtual viewpoint; the generating means corrects the position of the virtual viewpoint indicated by the operation signal by moving the position on the movement path indicated by the camera path by a movement distance corresponding to the tilt degree of the joystick indicated by the operation signal; 16. The control device according to claim 15.
17. 2. The control device according to claim 1, further comprising a setting unit that sets whether or not the correction is to be performed in the generating unit.
18. An acquisition means for acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving means for receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating means for generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; having The generating means includes: determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is controlled so as not to deviate from the camera path, thereby generating the virtual viewpoint information. A control device comprising:
19. A method for controlling an apparatus for generating virtual viewpoint information, comprising: An acquisition step of acquiring shape data representing a shape of a structure existing in a three-dimensional space; a receiving step of receiving an operation signal for controlling a virtual viewpoint for generating a virtual viewpoint image; a generating step of generating virtual viewpoint information indicating a position and a posture of a virtual viewpoint specified based on the operation signal; Including, In the generating step, determining a camera path indicating a movement path of a virtual viewpoint in the specific area of the three-dimensional space based on the shape data of the structure; When the position of the virtual viewpoint specified based on the operation signal is included in the specific area, the position of the virtual viewpoint indicated by the operation signal is corrected so as to be on the movement path, thereby generating the virtual viewpoint information. A control method comprising:
20. A program for causing a computer to execute the control method according to claim 19.
Citation Information
Patent Citations
Game program and game device
JP2005250800A
Game program and game device
JP2012063958A
