Method, apparatus and head mounted display device for displaying a view
By controlling the scrolling of the view and mask in the head-mounted display device, a dynamic three-dimensional depth effect is achieved, and resources are released when the view leaves the display area. This solves the problem of interface display effects in scenes such as virtual reality, and improves the visual experience and system performance.
Patent Information
- Application Number
- CN202210296801.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-24
AI Technical Summary
In virtual reality, augmented reality or mixed reality scenarios, existing technology has not been able to effectively solve how to ensure the interface display effect when using a head-mounted display device to scroll the view.
By determining the scrolling direction and scrolling distance of the view, the first view is controlled to scroll with its corresponding first mask. The size of the mask is smaller than the view, and the scrolling speed is greater than the view, achieving a dynamic three-dimensional depth effect, and releasing the scroll when the view leaves the display area. Process resources.
It improves the visual three-dimensional sense, reduces the chance of system lag, and improves the dynamic effect of interface display.
Smart Images

Figure CN114610217B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a method, apparatus and head-mounted display device for displaying a view. Background Art
[0002] In scenarios such as virtual reality (VR), augmented reality (AR) or mixed reality (MR), the terminal provides users with an interactive and immersive experience by building a virtual environment.
[0003] When a user uses a head mounted display device, the interactive interface can be displayed through a scroll view to enhance the interface display effect. How to ensure the interface display effect when using a scroll view is an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure is proposed. Embodiments of the present disclosure provide a method, an apparatus and a head mounted display device for displaying a view.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for displaying a view, including:
[0006] In response to receiving the view scrolling instruction, determining a view scrolling direction and a scrolling distance in a target interface displayed by the head mounted display device;
[0007] Based on the view scrolling direction and the scrolling distance, control the first view and the first mask corresponding to the first view to scroll, wherein the target interface includes at least one first view, the first mask covers a part of the first view, the size of the first mask is smaller than the size of the first view, and the scrolling speed of the first mask is greater than the scrolling speed of the first view;
[0008] In response to the first view being scrolled out of the view display area of the target interface, the scroll processing resources of the first view are released.
[0009] According to a second aspect of an embodiment of the present disclosure, there is provided a device for displaying a view, including:
[0010] A scroll information determination module, configured to determine a scroll direction and a scroll distance of a view in a target interface displayed by a head mounted display device in response to receiving a view scroll instruction;
[0011] A scroll control module, configured to control the first view and the first mask corresponding to the first view to scroll based on the view scrolling direction and the scrolling distance, wherein the target interface includes at least one first view, the first mask covers a part of the first view, the size of the first mask is smaller than the size of the first view, and the scrolling speed of the first mask is greater than the scrolling speed of the first view;
[0012] The scroll processing resource releasing module is used to release the scroll processing resources of the first view in response to the first view scrolling out of the view display area of the target interface.
[0013] According to a third aspect of an embodiment of the present disclosure, a head mounted display device includes the apparatus for displaying a view according to the second aspect.
[0014] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0015] processor;
[0016] a memory for storing processor-executable instructions;
[0017] The processor is used to read executable instructions from the memory and execute the instructions to implement the method for displaying a view of the first aspect.
[0018] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for executing the method for displaying a view of the first aspect.
[0019] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0021] Figure 1 is an exemplary system architecture diagram of an embodiment of a method or apparatus for displaying a view that can be applied to the present disclosure;
[0022] Figure 2 is a flowchart of a method for displaying a view in one embodiment of the present disclosure;
[0023] Figure 3 is a schematic diagram of a target interface at a first moment in an example of the present disclosure;
[0024] Figure 4 is a side view schematic diagram of a wearable device in use at a first moment in an example of the present disclosure;
[0025] Figure 5 is a side view schematic diagram of a wearable device in use at a second moment in an example of the present disclosure;
[0026] Figure 6 is a side view schematic diagram of using a wearable device at a third moment in an example of the present disclosure;
[0027] Figure 7 This disclosure Figure 6 A schematic diagram of the moving direction of view 12 after entering the target interface in the example shown;
[0028] Figure 8 is a flow chart of step SC in one embodiment of the present disclosure;
[0029] Fig. 9 is a structural block diagram of an apparatus for displaying a view in one embodiment of the present disclosure;
[0030] Fig.10 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0032] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0033] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0034] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0035] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0036] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0037] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0038] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0039] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0040] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0041] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0042] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0043] Figure 1is an exemplary system architecture diagram of an embodiment of a method or apparatus for displaying a view that can be applied to the present disclosure.
[0044] like Figure 1 As shown, the system architecture may include a head mounted display device 1, a network 2 and a server 3. The network 2 may be a medium for a communication link between the head mounted display device 1 and the server 3. The network 2 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0045] The head-mounted display device 1 may be an electronic device with an image display function, including but not limited to AR smart glasses, VR smart glasses, etc. The head-mounted display device 1 may be an all-in-one device, that is, the head-mounted display device 1 may be installed with various client applications. Alternatively, the head-mounted display device 1 may also be used in conjunction with a terminal device to realize a split device with an image display function, in which case the terminal device may assume the computing function of the head-mounted display device. Here, for the sake of convenience, the all-in-one device and the split device may be collectively referred to as a head-mounted display device.
[0046] The head mounted display device 1 can provide various services, such as controlling the scrolling of the first view and the first mask in the target interface after receiving a view scrolling instruction, and releasing the scrolling processing resources of the first view after the first view leaves the viewing image display area of the target interface.
[0047] It should be noted that the method for displaying a view provided in the embodiment of the present disclosure is generally executed by the head-mounted electronic device 1 , and accordingly, the device for displaying a view is generally arranged in the head-mounted electronic device 1 .
[0048] Optionally, the method for displaying a view provided by the embodiment of the present disclosure may also be executed by a terminal device connected to the head-mounted electronic device 1, and accordingly, the device for displaying a view may also be provided in the terminal device.
[0049] It should also be pointed out that although the solution of the present disclosure can be applied to a head-mounted display device, it does not exclude that the solution can also be applied to server 3, which can be a background server. When the solution of the present disclosure is applied to server 3, after receiving the view scrolling instruction, the server controls the first view and the first mask in the target interface to scroll, and releases the scrolling processing resources of the first view after the first view leaves the visual image display area of the target interface. In this case, the method for displaying the view can be executed by server 3, and accordingly, the device for displaying the view can also be set in server 3.
[0050] Exemplary Methods
[0051] Figure 2is a flow chart of a method for displaying a view in one embodiment of the present disclosure. This embodiment can be applied to a dual-screen stereoscopic display device, such as an AR head-mounted display device, a VR head-mounted display device, etc. Figure 1 In this embodiment, as shown. Figure 2 As shown, the method for displaying a view may include the following steps:
[0052] S2: In response to receiving a view scrolling instruction, determining a view scrolling direction and a scrolling distance in a target interface displayed by a head mounted display device.
[0053] A view scrolling instruction may be sent to the head mounted display device through a controller of the head mounted display device. The view scrolling instruction is used to control the scrolling of the view in the target interface displayed by the head mounted display device. The controller may be a real controller that communicates with the head mounted display device, such as a control terminal such as a mobile phone. The controller may also be a virtual controller, such as a virtual controller generated in a virtual area displayed by the head mounted display device.
[0054] The controller may render a target interface, in which a plurality of views may be currently displayed. For example, a plurality of views may be displayed on the target interface in an arrangement of rows and columns. Figure 3 is a schematic diagram of a target interface at the first moment in an example of the present disclosure. Figure 3 As shown, in this example, the target interface displays 8 views in total at the first moment, and the 8 views are arranged in 2 rows and 4 columns for display. The x direction is the horizontal direction of the target interface, and the y direction is the vertical direction of the target interface.
[0055] After receiving the view scrolling instruction, the view scrolling direction and scrolling distance in the target interface displayed by the head mounted display device are obtained through the view scrolling instruction. The view scrolling direction can be one of the view scrolling up, the view scrolling down, the view scrolling left, and the view scrolling right. Figure 3 For example, the view scrolling instruction can control the view in the target interface to scroll in the positive y-axis direction, the negative y-axis direction, the positive x-axis direction, or the negative x-axis direction. The scrolling distance can be determined according to the distance indicated by the scrolling instruction.
[0056] Generally, the view scrolling instruction can be generated in a variety of ways. For example, the user generates a view scrolling instruction by sliding the target interface upwards. At this time, the view scrolling direction indicated by the view scrolling instruction can be in the upward direction of the target interface, and the view scrolling distance can be determined according to the distance the user slides on the target interface.
[0057] S4: Based on the view scrolling direction and the scrolling distance, control the first view and the first mask corresponding to the first view to scroll, wherein the target interface includes at least one first view, the first mask covers a part of the first view, the size of the first mask is smaller than the size of the first view, and the scrolling speed of the first mask is greater than the scrolling speed of the first view.
[0058] The size of the first mask may be a size corresponding to the hollowed-out portion of the first mask frame, which is smaller than the size of the first view, so that part of the first view can be displayed through the first mask. It is understandable that the controller may render the first mask and the corresponding first view at different display depths, respectively, wherein the first mask is closer to the head-mounted display device than the first view. The scrolling speed of the first mask is greater than the scrolling speed of the first view, and during the scrolling of the first view and the first mask, the content of the first view displayed through the first mask in the rendered image may change dynamically, thereby producing a dynamic three-dimensional depth effect.
[0059] It is understandable that the device used to display the view in the present application may be a dual-screen stereoscopic display device such as an AR head-mounted display device, a VR head-mounted display device, etc. Therefore, the controller may render different objects at different display depths for stereoscopic display. For example, the controller may render the first view and the corresponding first mask at different display depths. Figure 4 FIG. 1 is a side view schematic diagram of a wearable device in use at the first moment in an example of the present disclosure. Figure 3 and Figure 4 As shown, the first view may include at least Figure 8 The first mask may include at least Figure 8 The z-axis direction is the display depth direction of the head mounted display device, and the mask 8 is the outer frame mask. Figure 8 The dotted line between the two is parallel to the z-axis direction, and the depth of the mask 8 is less than the visual Figure 8 Depth.
[0060] In one example of the present disclosure, a background control can be used to control the view Figure 8 Use the mask control to control the mask 8 to scroll. Use the background control to control the view Figure 8 The scrolling method may include: background control obtains the view Figure 8 View rendering data, which can include view Figure 8 Use background controls to control the rendering position, size, and content of the Figure 8The method of using the mask control to control the mask 8 to scroll may include: the mask control obtains rendering data of the mask 8, including the rendering position, rendering size and rendering content of the mask 8; and uses the mask control to scroll the mask 8 according to the view scrolling direction.
[0061] At the first moment, due to the shielding of the mask 8, the user uses the head mounted display device to watch the video. Figure 8 When Figure 8 This area includes the Figure 8 A area.
[0062] After receiving the view scrolling instruction, you can use the background control and mask control to control the view respectively. Figure 8 and mask 8 to scroll. Since the size of mask 8 is smaller than the visual Figure 8 The size of the mask 8 is greater than the scrolling speed of the visual Figure 8 The scroll speed of the Figure 8 When the mask 8 is scrolled, the view can be seen through the mask 8. Figure 8 The content will be updated as the view scrolls, giving users of head-mounted display devices a strong sense of three-dimensional stereo.
[0063] Figure 5 is a side view schematic diagram of using a wearable device at a second moment in an example of the present disclosure. The second moment may be a visual Figure 8 A certain moment after scrolling according to the view scrolling instruction. Figure 5 As shown, Figure 8 After scrolling, due to the visual Figure 8 The scroll speed of mask 8 is different. Figure 8 The position of the A region in the hollow region of the mask 8 changes significantly.
[0064] S6: In response to the first view scrolling out of the view display area of the target interface, releasing the scrolling processing resources of the first view.
[0065] During the process of the first view scrolling according to the view scrolling direction and scrolling distance in the view scrolling instruction, if the first view leaves the view display area of the target interface before completing the scrolling distance in the view scrolling instruction, for example, the view scrolling direction is the first preset direction, the scrolling distance is L1, and the distance between the first view and the boundary of the view display area of the target interface in the first preset scrolling direction is L2, and L1>L2. When the first view scrolls the distance L2 but does not complete the scrolling distance L1, the first view has left the view display area of the target interface, and the scrolling processing resources of the first view are released, thereby avoiding the system jamming caused by the view leaving the user's visual area using the scrolling processing resources.
[0066] The scroll processing resource may include a control for controlling the first view to scroll, for example, when the view Figure 8 After leaving the view display area of the target interface, you can release the control view. Figure 8 The background control for scrolling can also release the mask 8 to scroll the mask control.
[0067] In this embodiment, after receiving the view scrolling instruction, the first view and the first mask in the target interface are controlled to scroll. During the scrolling process, the first mask blocks the first view, so that the visible area of the first view of the head-mounted display device changes continuously, which can bring a sense of dynamic change in depth to the user using the head-mounted display device, thereby enhancing the visual three-dimensional stereoscopic sense. When the first view leaves the view display area of the target interface, the scroll processing resources of the first view are released, thereby reducing the probability of image freeze caused by the view leaving the user's visual area using the scroll processing resources.
[0068] In an optional embodiment of the present disclosure, before step S2, the following may also be included:
[0069] S0: Generate a background control and a mask control based on the rendering data of the first view. The background control can control the scrolling of the first view. For example, the background control obtains the view size information of the first view, the number of pixels included in the first view, and the pixel value of each pixel. When the scrolling of the first view needs to be controlled, the background control can control all the pixels included in the first view to move synchronously. The mask control can control the scrolling of the first mask. For example, the mask control obtains the size information of the first mask, the number of pixels included in the first mask, and the pixel value of each pixel. When the scrolling of the first mask needs to be controlled, the mask control can control all the pixels included in the first mask to move synchronously.
[0070] In this embodiment, before the first view is scrolled, a background control and a mask control may be generated, and the first view and the first mask may be scrolled by the background control and the mask control, and the scrolling control may be highly accurate. It is understandable that the background control and the corresponding mask control may also be generated based on the first view when a view scrolling instruction is received, and there is no unique limitation here.
[0071] In an optional embodiment of the present disclosure, after step S6, the following may also be included:
[0072] S8: Reusing the scroll processing resources of the first view for the current view in the target interface, wherein the scroll processing resources of the first view may include a control for controlling the scrolling of the first view and the first mask.
[0073] In this embodiment, when the first view leaves the current display area of the target interface, the control for controlling the scrolling of the first view and the first mask can be released, and the released control can be reused on the newly appearing view in the target interface to control the scrolling of the newly appearing view. By reusing controls, the system resource consumption can be further reduced, thereby further reducing the chance of image freeze.
[0074] In one embodiment of the present disclosure, the view scrolling direction includes a first preset direction, for example, the first preset direction may be an upward scrolling direction of the view. The method for displaying a view may further include:
[0075] SA-2: In response to receiving a view scroll instruction, render a second view and a second mask corresponding to the second view, wherein the distance between the second view and the target interface in the depth direction is a preset distance, the second mask covers a portion of the second view, and the size of the second mask may be smaller than the size of the second view.
[0076] Before receiving the view scrolling instruction, the target interface and the view in the target interface may be rendered.
[0077] When a view scroll instruction is received, the second view may be rendered according to the view rendering data of the second view, and the second mask may be rendered according to the rendering data of the second mask. At this time, the display depth of the second view may be greater than the depth of the first view. That is, in the display depth direction, the first view is closer to the head mounted display device. It should also be noted that the second view and the second mask corresponding to the second view are at least partially blocked in the target interface.
[0078] It is understandable that when rendering the second view, the controller sets a second mask corresponding to the second view, so that the second view only displays the content corresponding to the hollowed-out area of the second mask, and the display area and the amount of displayed content are controllable.
[0079] SA-4: When the first view is scrolled along the first preset direction, the second view and the second mask are controlled to move toward the target interface so that the distance between the second view and the target interface in the depth direction gradually decreases.
[0080] Figure 6 FIG. 1 is a side view schematic diagram of a wearable device used at a third moment in an example of the present disclosure. The third moment may be between the first moment and the second moment. Figure 3 and Figure 6 As shown, in one example of the present disclosure, the second view may include view 12, and when the first view is scrolled along the first preset direction, view 12 moves toward a direction close to the target interface.
[0081] SA-6: When the preset point of the first view scrolls to the first critical line, the second view and the second mask are controlled to move along the first preset direction. The first critical line is the critical line of the target interface in the first preset direction, and the movement speed of the second mask along the first preset direction is greater than the movement speed of the second view along the first preset direction.
[0082] In an example of the present disclosure, the preset point of the first view may be a preset point of the first view in a first preset direction. For example, when the first preset direction is the view scrolling upward, the preset point of the first view may be one of the pixels in the first row of pixels in the first view from bottom to top. It is preset that when the preset point of the first view reaches the first critical line, the second view just reaches the target interface, and the second view stops moving in the direction of decreasing depth. Figure 7 This disclosure Figure 6 The example shown is a schematic diagram of the moving direction of view 12 after entering the target interface. Figure 7 As shown Figure 8 When the preset point of the view 12 is scrolled to the first critical line, the view 12 just reaches the target interface, and the depth of the view 12 can be the same as the display depth of the target interface. Then, the view 12 can continue to be controlled to move upward according to the view scrolling instruction.
[0083] In this embodiment, when a view scrolling instruction is received, the second view and the second mask can be rendered. Compared with the method of rendering the second view and the second mask in advance, the system resource consumption can be reduced and the probability of display jamming can be reduced. In addition, the first view and the second view are rendered at different display depths respectively. When the first view moves in the first preset direction, the second view is controlled to move in the direction close to the target interface, so that the change in the relative position of the view in the spatial depth can be reflected, and the three-dimensional visual experience can be further enhanced. When the preset point of the first view is scrolled to the first critical line, the second view and the second mask can be controlled to move in the first preset direction. Through the shielding of the second view by the second mask and the difference in moving speed between the second mask and the second view, the visible area of the second view of the head-mounted display device is constantly changing, which can bring a sense of depth change to the user using the head-mounted display device, thereby enhancing the three-dimensional stereoscopic effect.
[0084] In one embodiment of the present disclosure, in the process of controlling the second view to move toward the target interface, the process further includes: as the distance between the second view and the target interface decreases, controlling the transparency parameter of the second view to increase so that the transparency of the second view gradually increases. The greater the transparency of the second view, the clearer the second view; the smaller the transparency of the second view, the blurrier the second view.
[0085] In this embodiment, as the second view moves toward the target interface, the transparency of the second view is controlled to gradually increase, giving the user a visual experience that the view in the distance gradually becomes clearer as it approaches the user, thereby improving the three-dimensional display effect.
[0086] In one embodiment of the present disclosure, the view scrolling direction includes a second preset direction, for example, the second preset direction may be a view scrolling downward direction. The method for displaying a view may further include:
[0087] SC: After the preset point of the first view is scrolled to the second critical line, the first view is controlled to move in a direction away from the target interface so that the distance between the first view and the target interface in the depth direction gradually increases. The second critical line is the critical line of the target interface in the second preset direction.
[0088] In an example of the present disclosure, the preset point of the first view may be a preset point of the first view in a second preset direction. For example, when the first preset direction is a view scrolling direction downward, the preset point of the first view may be a pixel point in the first row of pixels in the first view from top to bottom. When the preset point of the first view reaches a preset second critical line, the first view starts to move in a direction away from the target interface and with increasing depth.
[0089] In this embodiment, after the preset point of the first view scrolls to the second critical line, the first view is controlled to move away from the target interface, giving the user a visual feeling that the first view is gradually moving away from the user, which can further enhance the three-dimensional display effect.
[0090] In one embodiment of the present disclosure, during the process of the first view moving away from the target interface, the method further includes: as the distance between the first view and the target interface increases, controlling the transparency parameter of the first view to decrease. The greater the transparency of the first view, the clearer the first view; the smaller the transparency of the first view, the blurrier the first view.
[0091] In this embodiment, when the first view moves away from the target interface, the transparency of the first view is controlled to gradually decrease, giving the user a visual experience that the view becomes gradually blurred as the nearby view moves away from the user, which can further enhance the three-dimensional display effect.
[0092] Figure 8 FIG. 1 is a flow chart of step SC in one embodiment of the present disclosure. Figure 8 As shown, step SC may include:
[0093] SC-2: Obtaining the distance difference between the scrolling distance and the preset point moving distance, wherein the preset point moving distance is the distance between the initial position of the preset point of the first view and the second critical line.
[0094] The initial position of the preset point of the first view is the position of the preset point of the first view in the target interface before scrolling according to the view scrolling instruction. In an example of the present disclosure, the scrolling distance corresponding to the view scrolling instruction is L1, the distance between the initial position of the preset point of the first view and the second critical line position is L2, and L1>L2. The distance difference between the scrolling distance and the preset point moving distance is L3, where L3=L1-L2.
[0095] SC-4: Determine the moving distance of the first view in the direction away from the target interface based on the distance difference and the moving distance transformation relationship, wherein the moving distance transformation relationship is the distance transformation relationship between the moving distance in the second preset direction and the moving distance in the direction away from the target interface.
[0096] In one embodiment of the present disclosure, the moving distance transformation relationship is 1:K, that is, when the preset point of the first view scrolls to the second critical line, the original first view continues to move 1 unit distance in the second preset direction, and is transformed into the first view moving K unit distances away from the target interface. Suppose the moving distance of the first view away from the target interface is L4, then L4=K*L3.
[0097] In this embodiment, when the first view is controlled to scroll in the second preset direction according to the view scrolling instruction, if the critical point of the first view has not executed the scrolling distance corresponding to the view scrolling instruction when scrolling to the second critical line, the moving direction of the first view is changed, and the first view is controlled to move in the direction away from the target interface. By changing the view movement direction, the first view can not only move along the second preset direction at the same display depth, but also move at different display depths, thereby enhancing the three-dimensional visual effect.
[0098] In an optional embodiment of the present disclosure, step S8 may further include:
[0099] When the preset point of the first view is scrolled to the second critical line, a first distance value is obtained, wherein the first distance value is the distance value between the initial position of the preset point of the first view and the second critical line, and the initial position of the preset point of the first view is the position of the preset point of the first view before scrolling according to the view scrolling instruction.
[0100] Based on the scrolling distance and the first distance value, a second distance value is determined, wherein the distance value obtained by subtracting the first distance value from the distance value corresponding to the scrolling distance is used as the second distance value.
[0101] Based on the second distance value, the movement distance of the first view in the direction away from the target interface is controlled. For example, when the preset point of the first view is scrolled to the second critical line, it is moved by the second distance value in the direction away from the target interface.
[0102] In this embodiment, when the first view is controlled to scroll in the second preset direction according to the view scrolling instruction, if the critical point of the first view has not executed the scrolling distance corresponding to the view scrolling instruction when scrolling to the second critical line, the original moving direction of the first view is changed to continue moving. By changing the view moving direction, the first view can not only move along the second preset direction at the same display depth, but also move at different display depths, thereby enhancing the three-dimensional visual effect.
[0103] In one embodiment of the present disclosure, step SA-6 includes: when the preset point of the first view is scrolled to the first critical line, the second view moves to the target interface, and the second view is determined as the first view and then moves along the first preset direction. In this embodiment, after the second view moves to the target interface, the second view can be determined as the first view in the target interface. After receiving the view scrolling instruction, the methods provided in each embodiment can be executed to control the first view to move along the view scrolling direction. It can be understood that when the scrolling direction is the first preset direction, the above-mentioned controller can render a new second view and a corresponding second mask.
[0104] In this embodiment, when the preset point of the first view scrolls to the first critical line, the second view just moves to the target interface. Thereafter, the second view can be determined as the first view and moved along the first preset direction. This method can continuously update the first view displayed in the target interface during view scrolling, and cyclically execute the methods provided in the above embodiments.
[0105] Any method for displaying a view provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any method for displaying a view provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any method for displaying a view mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
[0106] Exemplary Devices
[0107] Fig. 9 FIG. 1 is a structural block diagram of a device for displaying a view in one embodiment of the present disclosure. Fig. 9 As shown, the device for displaying a view includes:
[0108] A scroll information determination module 100, configured to determine a scroll direction and a scroll distance of a view in a target interface displayed by a head mounted display device in response to receiving a view scroll instruction;
[0109] A first view control module 200, configured to control a first view and a first mask corresponding to the first view to scroll based on the view scrolling direction and the scrolling distance, wherein the target interface includes at least one first view, the first mask covers a part of the first view, the size of the first mask is smaller than the size of the first view, and the scrolling speed of the first mask is greater than the scrolling speed of the first view;
[0110] The scroll processing resource releasing module 300 is used to release the scroll processing resources of the first view in response to the first view scrolling out of the view display area of the target interface.
[0111] In one embodiment of the present disclosure, the apparatus for displaying a view may further include:
[0112] The scroll processing resource reuse module is used to reuse the scroll processing resources of the first view for the current view in the target interface, wherein the scroll processing resources of the first view include controls for controlling the scrolling of the first view and the first mask.
[0113] In one embodiment of the present disclosure, the apparatus for displaying a view may further include:
[0114] a rendering module, configured to render a second view and a second mask corresponding to the second view in response to receiving the view scrolling instruction, wherein the distance between the second view and the target interface in the depth direction is a preset distance, the second mask covers a partial area of the second view, and the size of the second mask is smaller than the size of the second view;
[0115] The second view control module is used to control the second view and the second mask to move toward the target interface when the first view is scrolled along the first preset direction, so that the distance between the second view and the target interface in the depth direction gradually decreases; the second view control module is also used to control the second view and the second mask to move along the first preset direction when the preset point of the first view is scrolled to the first critical line, wherein the first critical line is the critical line of the target interface in the first preset direction, and the moving speed of the second mask along the first preset direction is greater than the moving speed of the second view along the first preset direction.
[0116] In one embodiment of the present disclosure, the second view control module is further used to control the transparency parameter of the second view to increase as the distance between the second view and the target interface decreases during the process of controlling the second view to move toward the target interface.
[0117] In one embodiment of the present disclosure, the first view control module 200 is also used to control the first view to move in a direction away from the target interface after the preset point of the first view is scrolled to the second critical line, so that the distance between the first view and the target interface in the depth direction gradually increases, wherein the second critical line is the critical line of the target interface in the second preset direction.
[0118] In one embodiment of the present disclosure, the first view control module 200 is further configured to control a transparency parameter of the first view to decrease as the distance between the first view and the target interface increases during the process in which the first view moves away from the target interface.
[0119] In one embodiment of the present disclosure, the first view control module 200 is used to obtain the distance difference between the scrolling distance and the preset point moving distance, wherein the preset point moving distance is the distance between the initial position of the first view and the second critical line; the first view control module 200 is also used to determine the moving distance of the first view away from the target interface based on the distance difference and the moving distance transformation relationship, wherein the moving distance transformation relationship is the distance transformation relationship between the moving distance in the second preset direction and the moving distance in the direction away from the target interface.
[0120] In one embodiment of the present disclosure, the second view control module is used to move the second view to the target interface when the preset point of the first view scrolls to the first critical line, and move the second view along the first preset direction after determining the second view as the first view.
[0121] It should be noted that the specific implementation of the device for displaying a view in the embodiment of the present disclosure is similar to the specific implementation of the method for displaying a view in the embodiment of the present disclosure. Please refer to the part of the method for displaying a view for details. In order to reduce redundancy, it will not be described in detail.
[0122] Exemplary Electronic Devices
[0123] Below, reference Fig.10 To describe the electronic device according to the embodiment of the present disclosure. Fig.10 As shown, the electronic device includes one or more processors 10 and a memory 20 .
[0124] The processor 10 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0125] The memory 20 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 10 may run the program instructions to implement the method for displaying a view and / or other desired functions of the various embodiments of the present disclosure described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0126] In one example, the electronic device may further include: an input device 30 and an output device 40, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 30 may be, for example, a keyboard, a mouse, etc. The output device 40 may include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto, etc.
[0127] Of course, to simplify, Fig.10 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0128] Exemplary computer-readable storage media
[0129] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0130] In addition, an embodiment of the present disclosure also provides a head-mounted display device, including the device for displaying a view of the above embodiment.
[0131] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0132] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0133] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0134] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0135] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0136] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0137] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for displaying a view, comprising: In response to receiving the view scrolling instruction, determining a view scrolling direction and a scrolling distance in a target interface displayed by the head mounted display device; Based on the view scrolling direction and the scrolling distance, control the first view and the first mask corresponding to the first view to scroll, wherein the target interface includes at least one first view, the first mask covers a partial area of the first view, the size of the first mask is smaller than the size of the first view, the scrolling speed of the first mask is greater than the scrolling speed of the first view, and the first mask and the first view are rendered at different display depths respectively; In response to the first view scrolling out of the view display area of the target interface, releasing the scroll processing resources of the first view; Wherein, the view scrolling direction is a first preset direction, and the method further includes: In response to receiving the view scrolling instruction, rendering a second view and a second mask corresponding to the second view, wherein the distance between the second view and the target interface in the depth direction is a preset distance, the second mask covers a partial area of the second view, and the size of the second mask is smaller than the size of the second view; When the first view is scrolled along the first preset direction, the second view and the second mask are controlled to move toward the target interface, so that the distance between the second view and the target interface in the depth direction gradually decreases.
2. The method according to claim 1, after releasing the scroll processing resources of the first view, further comprising: The scroll processing resources of the first view are reused for the current view in the target interface, wherein the scroll processing resources of the first view include controls for controlling the scrolling of the first view and the first mask.
3. The method according to claim 1, further comprising: When the preset point of the first view scrolls to the first critical line, the second view and the second mask are controlled to move along the first preset direction, wherein the first critical line is the critical line of the target interface in the first preset direction, and the moving speed of the second mask along the first preset direction is greater than the moving speed of the second view along the first preset direction.
4. The method according to claim 3, wherein: The process of controlling the second view to move toward the target interface further includes: As the distance between the second view and the target interface decreases, the transparency parameter controlling the second view increases.
5. The method according to claim 1, wherein: The view scrolling direction is a second preset direction, and the method further includes: After the preset point of the first view scrolls to the second critical line, the first view is controlled to move away from the target interface so that the distance between the first view and the target interface in the depth direction gradually increases, wherein the second critical line is the critical line of the target interface in the second preset direction.
6. The method according to claim 5, wherein: In the process of the first view moving in a direction away from the target interface, the method further includes: As the distance between the first view and the target interface increases, the transparency parameter controlling the first view decreases.
7. The method according to claim 5, wherein: The controlling the first view to move in a direction away from the target interface includes: Acquire a distance difference between the scrolling distance and a preset point moving distance, wherein the preset point moving distance is a distance between an initial position of the preset point of the first view and the second critical line; Based on the distance difference and the moving distance transformation relationship, the moving distance of the first view along the direction away from the target interface is determined, wherein the moving distance transformation relationship is the distance transformation relationship between the moving distance in the second preset direction and the moving distance in the direction away from the target interface.
8. The method according to claim 3, wherein: When the preset point of the first view scrolls to the first critical line, controlling the second view to move along the first preset direction includes: When the preset point of the first view scrolls to the first critical line, the second view moves to the target interface, and the second view is determined as the first view and then moves along the first preset direction.
9. An apparatus for displaying a view, comprising: a scroll information determination module, configured to determine a scroll direction and a scroll distance of a view in a target interface displayed by a head mounted display device in response to receiving a view scroll instruction, wherein the view scroll direction is a first preset direction; a first view control module, configured to control a first view and a first mask corresponding to the first view to scroll based on the view scrolling direction and the scrolling distance, wherein the target interface includes at least one first view, the first mask covers a part of the first view, the size of the first mask is smaller than the size of the first view, the scrolling speed of the first mask is greater than the scrolling speed of the first view, and the first mask and the first view are rendered at different display depths respectively; a scroll processing resource releasing module, configured to release the scroll processing resources of the first view in response to the first view scrolling out of the view display area of the target interface; a rendering module, configured to render a second view and a second mask corresponding to the second view in response to receiving the view scrolling instruction, wherein the distance between the second view and the target interface in the depth direction is a preset distance, the second mask covers a partial area of the second view, and the size of the second mask is smaller than the size of the second view; The second view control module is used to control the second view and the second mask to move toward the target interface when the first view is scrolled along the first preset direction, so that the distance between the second view and the target interface in the depth direction gradually decreases.
10. A head mounted display device, comprising the apparatus for displaying a view according to claim 9.
11. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for displaying a view described in any one of claims 1 to 8.
12. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method for displaying a view according to any one of claims 1 to 8.
