Method, electronic device and readable storage medium for dynamically displaying real-world scenes
By monitoring the distance between components and the boundary of the virtual scene in the VR system, the dynamic display perspective window displays the real-world scene, which solves the problem of poor user experience in the existing technology and achieves a more natural transition and improved user experience.
Patent Information
- Application Number
- CN202010661112.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-07-10
AI Technical Summary
Existing VR technology suddenly switches to a real-world scene when the user moves, resulting in poor immersion experience.
By monitoring the distance between specific components in the virtual reality system and the boundary of the virtual scene, if the distance is between specific thresholds, the perspective window is dynamically displayed to display the real-world scene and avoid sudden switching.
It achieves a gentle transition when the user gradually approaches the boundary of the virtual scene, improving the user experience, and stops displaying VR content when necessary to display the complete real-world scene.
Smart Images

Figure CN113760086B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a virtual reality (VR) display technology, and in particular to a method for dynamically displaying a real-world scene, an electronic device and a computer-readable storage medium. Background Art
[0002] In the prior art, when a VR user is immersed in a VR environment, he or she may move his or her body along with the VR content. In order to prevent the user from colliding with nearby objects or walls in the real world scene while moving his or her body, the VR system will stop presenting the VR content when the user's body approaches the boundary of the virtual scene, and instead present the real world scene in front of the user.
[0003] However, for users, the above approach may cause users immersed in the VR environment to be suddenly pulled back to the real-world scene, which may result in a poor user experience. Summary of the invention
[0004] In view of this, the present invention provides a method for dynamically displaying a real-world scene, an electronic device, and a computer-readable storage medium, which can be used to solve the above-mentioned technical problems.
[0005] The present invention provides a method for dynamically displaying a real-world scene, comprising: obtaining a virtual scene boundary of a virtual reality environment; monitoring a first specific distance between a specific component in a virtual reality system and the virtual scene boundary, wherein the virtual reality system is used to provide the virtual reality environment; and in response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in a virtual reality content of the virtual reality environment, wherein the perspective window displays a real-world scene.
[0006] The present invention provides an electronic device, which includes a storage circuit and a processor. The storage circuit stores a plurality of modules. The processor is coupled to the storage circuit and accesses the aforementioned modules to perform the following steps: obtaining a virtual scene boundary of a virtual reality environment; monitoring a first specific distance between a specific component in a virtual reality system providing the virtual reality environment and the virtual scene boundary; and in response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in a virtual reality content of the virtual reality environment, wherein the perspective window displays a real world scene.
[0007] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium records an executable computer program, wherein the executable computer program is loaded by an electronic device to execute the following steps: obtaining a virtual scene boundary of a virtual reality environment; monitoring a first specific distance between a specific component in a virtual reality system and the virtual scene boundary, wherein the virtual reality system is used to provide the virtual reality environment; and in response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in a virtual reality content of the virtual reality environment, wherein the perspective window displays a real-world scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention.
[0009] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0010] Figure 2 is a flow chart of a method for dynamically displaying a real-world scene according to an embodiment of the present invention.
[0011] Figure 3A is a schematic diagram of displaying a perspective window in VR content according to an embodiment of the present invention.
[0012] Figure 3B is based on Figure 3A A schematic diagram of increasing the size of the perspective window shown in an embodiment.
[0013] Figure 3C is based on Figure 3A and Figure 3B A schematic diagram of stopping displaying VR content is shown. DETAILED DESCRIPTION
[0014] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0015] Please refer to Figure 1 , which is a schematic diagram of an electronic device according to an embodiment of the present invention. In different embodiments, the electronic device 100 is, for example, a computer device in a VR system for providing / generating VR content, and the VR content can be presented to the wearer of the head-mounted display through the head-mounted display in the VR system, but is not limited thereto.
[0016] like Figure 1As shown, the electronic device 100 may include a storage circuit 102 and a processor 104. The storage circuit 102 may be, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk or other similar device or a combination of these devices, and may be used to record a plurality of program codes or modules.
[0017] The processor 104 is coupled to the memory circuit 102 and may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, a controller, a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), any other type of integrated circuit, a state machine, an Advanced RISC Machine (ARM) based processor, and the like.
[0018] In an embodiment of the present invention, the processor 104 can access the modules and program codes recorded in the storage circuit 102 to implement the method of dynamically displaying a real-world scene proposed by the present invention, the details of which are described as follows.
[0019] Please refer to Figure 2 , which is a flow chart of a method for dynamically displaying a real-world scene according to an embodiment of the present invention. The method of this embodiment can be Figure 1 The electronic device 100 is executed as follows: Figure 1 Description of components shown Figure 2 Details of each step.
[0020] First, in step S210, the processor 104 may obtain a virtual scene boundary of the VR environment. In one embodiment, this virtual scene boundary may be set by the user when setting the VR system, and generally represents the boundary of the user's movable space in the real environment when using the VR system. In one embodiment, the VR environment is provided by, for example, a VR system to which the electronic device 100 belongs. Generally speaking, a VR system may include components such as a head-mounted display, a position tracking device, and / or a controller that can be held by a user, and during the process of the user installing the VR system, the corresponding virtual scene boundary is generally set according to the requirements of the VR system. Therefore, the processor 104 may directly access the relevant system settings to obtain the virtual scene boundary, but the present invention is not limited to this.
[0021] Then, in step S220, the processor 104 may monitor a first specific distance between a specific component in the VR system and a boundary of the virtual scene, which may represent a distance between the user and the boundary of the virtual scene. In different embodiments, the specific component may be a head mounted display or a controller in the VR system, but is not limited thereto.
[0022] Next, in step S230, in response to determining that the first specific distance is greater than the first threshold value and less than the second threshold value (which is greater than the first threshold value), the processor 104 may display a perspective window in the VR content of the VR environment. FIG. 3A to FIG. 3C For explanation.
[0023] Please refer to Figure 3A , which is a schematic diagram of displaying a perspective window in VR content according to an embodiment of the present invention. In this embodiment, it is assumed that the head mounted display 310 is the so-called specific component. In this case, the processor 104 can monitor the head mounted display 310 and the virtual scene boundary VB (which can be understood as Figure 3A In another embodiment, the perspective window 322 is displayed in the VR content 320 when the first specific distance D1 is between a first threshold value (e.g., 0 cm) and a second threshold value (e.g., 50 cm). The perspective window 322 can display the real world scene 330. In another embodiment, the perspective window 322 is displayed in the VR content 320 when the first specific distance D1 is less than the second threshold value, without considering the first threshold value.
[0024] In one embodiment, the specific component may be a controller in a VR system. In this case, the processor 10 controller 4 may monitor the second specific distance D2 between the controller and the virtual scene boundary VB, and display a perspective window 322 in the VR content 320 and display a real world scene 330 when the second specific distance D2 is between a third threshold value and a fourth threshold value (e.g., 50 cm). Among them, the first specific distance D1 and the second specific distance D2 may be the same or different, the first threshold value and the third threshold value may be the same or different, and the second threshold value and the fourth threshold value may be the same or different. In another embodiment, the perspective window 322 is displayed in the VR content 320 when the second specific distance D2 is less than the fourth threshold value.
[0025] In one embodiment, the head mounted display 310 may have a front lens, and the front lens may be used to capture the real world scene in front of the wearer 399 of the head mounted display 310. Furthermore, when the processor 104 displays the perspective window 322 in the VR content 320, the processor 104 may present a portion of the real world scene captured by the front lens as the real world scene 330 in the perspective window 322.
[0026] It can be seen that compared with the prior art method of directly switching all VR content to a complete real-world scene, the present invention can let the wearer 399 know more gently through the perspective window 322 that the wearer 399 is gradually approaching the virtual scene boundary according to the distance between the wearer 399 and the boundary of the VR environment, thereby avoiding the wearer 399 who is immersed in the VR environment from having a bad experience.
[0027] In some embodiments, the center point of the perspective window 322 may correspond to the center point of gaze of the wearer 399. In other words, when the center point of gaze of the wearer 399 changes due to actions such as turning the head or raising the head, the position of the perspective window 322 will also change accordingly, and the real world scene 330 displayed therein will also correspondingly present the real world scene under the corresponding perspective.
[0028] In addition, in some embodiments, the processor 104 may also monitor a third specific distance between the controller 340 in the VR system and the virtual scene boundary VB. In response to determining that the third specific distance is less than a fifth threshold value (which may be set by the system or determined by the designer according to needs), the processor 104 may display the virtual scene boundary VB in the VR content 320. In short, when the distance between the controller 340 and the virtual scene boundary VB is relatively close, the processor 104 may display the virtual scene boundary VB in the VR content 320 (for example, Figure 3A ), to prompt the wearer 399 that he is currently close to the virtual scene boundary VB. On the other hand, when the controller 340 is far away from the virtual scene boundary VB, the processor 104 may not display the virtual scene boundary VB in the VR content 320, so that the wearer 399 can be better immersed in the VR environment, but the present invention is not limited thereto.
[0029] In addition, after presenting the perspective window 322, the processor 104 may continue to monitor the first specific distance D1. In one embodiment, if the first specific distance D1 changes to be greater than the second threshold value, the processor 104 may stop displaying the perspective window 322 accordingly, so that the wearer 399 can watch the complete VR content 320, but it is not limited thereto.
[0030] In one embodiment, the size of the perspective window 322 may be negatively correlated to the first specific distance D1. In other words, the smaller the first specific distance D1 is, the larger the size of the perspective window 322 is, and vice versa. Figure 3B , which is based on Figure 3A A schematic diagram of increasing the size of the perspective window shown in an embodiment.
[0031] exist Figure 3B In the example, assuming that the wearer 399 is Figure 3A The situation is closer to the virtual scene boundary VB, making Figure 3B The first specific distance D1 is less than Figure 3A In this case, Figure 3B The size of the middle perspective window 322 may be larger than Figure 3A The size of the perspective window 322 is increased, thereby allowing the wearer 399 to observe a larger range of the real-world scene 330.
[0032] Please refer to Figure 3C , which is based on Figure 3A and Figure 3B Schematic diagram of stopping displaying VR content. In this embodiment, it is assumed that the wearer 399 continues to move toward the virtual scene boundary VB until the head mounted display 120 reaches or exceeds the virtual scene boundary VB. At this time, the processor 104 may stop displaying VR content so that the wearer 399 can view the complete real world scene 330 in front of him. That is, at this time, the head mounted display 310 can directly present the scenery captured by its front lens to the wearer 399 for viewing, but it is not limited to this.
[0033] From another perspective, the perspective window 320 can be understood as a window connecting the VR environment and the real world. In this case, as the wearer 399 gradually approaches the virtual scene boundary VB, the wearer 399 can feel the size of the perspective window 320 gradually increase, and when the head mounted display 310 exceeds the virtual scene boundary VB, the wearer 399 can experience the novel feeling of looking through the perspective window 320 into the real world.
[0034] In addition, although the above embodiments all depict the perspective window 322 as a circular shape, in other embodiments, the perspective window may be in any geometric shape according to the designer's needs, such as various polygons, but is not limited thereto.
[0035] In some embodiments, the boundary between the real-world scene and the VR environment displayed by the perspective window 32 may be blurred so that the boundary between the real-world scene and the VR environment is not too sharp and abrupt visually.
[0036] The present invention also provides a computer-readable storage medium for executing the aforementioned method of dynamically displaying a real-world scene. The computer-readable storage medium is composed of a plurality of program instructions (e.g., setting program instructions and deployment program instructions) implemented therein. These program instructions can be loaded into the electronic device 100 and executed by the electronic device 100 to execute the method of dynamically displaying a real-world scene and the aforementioned functions.
[0037] In summary, the present invention can continuously monitor the first specific distance between a specific component (such as a head mounted display) in a VR system and the boundary of a virtual scene, and when the first specific distance is between a first threshold value and a second threshold value, a perspective window for displaying (a portion of) a real world scene is presented in the VR content. In this way, the wearer can be more gently aware that he or she is approaching the boundary of the virtual scene, thereby improving the user experience.
[0038] In addition, in some embodiments, the size of the perspective window may gradually increase as the first specific distance decreases, so that the wearer can be more gently aware that he or she is gradually approaching the boundary of the virtual scene, thereby improving the user experience. In addition, when the first specific distance changes to less than a first threshold value (e.g., 0 cm), the present invention may also stop displaying VR content, so that the wearer can view the complete real world scene in front of him or her, thereby providing the user with a novel experience.
[0039] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for dynamically displaying real-world scenes, It is characterized in that include: Using a front camera of an electronic device to capture a real-world scene in front of a user of the electronic device; Obtaining a virtual scene boundary of a virtual reality environment; monitoring a first specific distance between a specific component in a virtual reality system and a boundary of the virtual scene, wherein the virtual reality system is used to provide the virtual reality environment; as well as In response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in the virtual reality content of the virtual reality environment, wherein the second threshold value is greater than the first threshold value, and the perspective window displays the real world scene captured by the front lens, wherein a size of the perspective window is negatively correlated to the first specific distance, In response to determining that the first specific distance is reduced, increasing the size of the perspective window; In response to determining that the first specific distance becomes larger, the size of the perspective window is reduced.
2. The method according to claim 1, wherein the specific component is a head-mounted display in the virtual reality system.
3. The method according to claim 1, wherein the specific component is a controller in the virtual reality system. The method according to claim 1 , wherein the first threshold value is 0.
5. The method according to claim 1, further comprising: include: Monitoring a second specific distance between a controller in the virtual reality system and a boundary of the virtual scene; In response to determining that the second specific distance is less than a third threshold value, the virtual scene boundary is displayed in the virtual reality content.
6. The method according to claim 1, wherein in response to determining that the first specific distance is less than the first threshold value, the method further comprises stopping providing the virtual reality content.
7. The method according to claim 1, wherein after the step of displaying the perspective window in the virtual reality content of the virtual reality environment, the method further comprises: include: In response to determining that the first specific distance changes to be greater than the second threshold value, the display of the perspective window is stopped.
8. The method according to claim 1, wherein the virtual reality system comprises the electronic device, and the electronic device is a head-mounted display.
9. The method according to claim 1, wherein the virtual reality system comprises a head-mounted display, and the center point of the perspective window corresponds to the gaze center point of a wearer of the head-mounted display.
10. An electronic device, It is characterized in that include: a front camera to capture a real-world scene in front of a user of the electronic device; A storage circuit storing a plurality of modules; as well as A processor is coupled to the storage circuit and the front camera, and accesses the plurality of modules to perform the following steps: Obtaining a virtual scene boundary of a virtual reality environment; Monitoring a first specific distance between a specific component of a virtual reality system providing the virtual reality environment and a boundary of the virtual scene; and In response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in the virtual reality content of the virtual reality environment, wherein the second threshold value is greater than the first threshold value, and the perspective window displays the real world scene captured by the front lens, wherein a size of the perspective window is negatively correlated to the first specific distance, In response to determining that the first specific distance is reduced, increasing the size of the perspective window; In response to determining that the first specific distance becomes larger, the size of the perspective window is reduced.
11. The electronic device according to claim 10, wherein the specific component is a head mounted display in the virtual reality system.
12. The electronic device according to claim 10, wherein the specific component is a controller in the virtual reality system. The electronic device according to claim 10 , wherein the first threshold value is 0.
14. The electronic device of claim 10, wherein the processor is further configured to: Monitoring a second specific distance between a controller in the virtual reality system and a boundary of the virtual scene; In response to determining that the second specific distance is less than a third threshold value, the virtual scene boundary is displayed in the virtual reality content.
15. The electronic device of claim 10, wherein in response to determining that the first specific distance is less than the first threshold value, the processor is further configured to stop providing the virtual reality content.
16. The electronic device of claim 10, wherein after displaying the see-through window in the virtual reality content of the virtual reality environment, the processor is further configured to: In response to determining that the first specific distance changes to be greater than the second threshold value, the display of the perspective window is stopped.
17. The electronic device according to claim 10, wherein the electronic device is a head mounted display of the virtual reality system.
18. The electronic device according to claim 10, wherein the virtual reality system comprises a head-mounted display, and the center point of the perspective window corresponds to the gaze center point of a wearer of the head-mounted display.
19. A computer-readable storage medium, It is characterized in that The computer-readable storage medium records an executable computer program, and the executable computer program is loaded by the electronic device to perform the following steps: Using a front camera of an electronic device to capture a real-world scene in front of a user of the electronic device; Obtaining a virtual scene boundary of a virtual reality environment; monitoring a first specific distance between a specific component in a virtual reality system and a boundary of the virtual scene, wherein the virtual reality system is used to provide the virtual reality environment; as well as In response to determining that the first specific distance is greater than a first threshold value and less than a second threshold value, displaying a perspective window in the virtual reality content of the virtual reality environment, wherein the second threshold value is greater than the first threshold value, and the perspective window displays the real world scene captured by the front lens, wherein a size of the perspective window is negatively correlated to the first specific distance, In response to determining that the first specific distance is reduced, increasing the size of the perspective window; In response to determining that the first specific distance becomes larger, the size of the perspective window is reduced.
Citation Information
Patent Citations
Techniques to change location of objects in a virtual / augmented reality system
CN108700942A
Warning a vehicle occupant before an intense movement
US20170113702A1
