Virtual reality equipment startup and shutdown animation display method and equipment and storage medium

By optimizing the image processing and display methods of virtual reality device switch animation, the low fluency and display deviation caused by excessive resources are solved, fast loading and efficient rendering are achieved, and better user experience and adaptability are provided.

CN119088330APending Publication Date: 2024-12-06HEFEI LONGQI INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411190528.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the existing virtual reality device switch animation display method, the loading and drawing image resources are too large, resulting in the inability to display high fluency effects, and the screen resolution of the device cannot be fully adapted to the display results, resulting in deviations in the display results.

Method used

By traversing the animation images of the switch, obtain the logical screen size and image size of the virtual reality device, process the image, draw it in the display areas on the left and right sides of the logic screen, and use IPD data to offset it to ensure image adaptation And optimize the display.

Benefits of technology

Reduces memory and time required to load image resources, improves animation fluency, supports higher resolution or longer animations, provides better user visual experience, and solves the long loading time caused by large resource size and Display deviation problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088330A_ABST
    Figure CN119088330A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual reality equipment startup and shutdown animation display method, equipment and a storage medium, and aims to improve the animation fluency by optimizing the image size and reducing the memory and time required for loading image resources; rapid loading and drawing are realized, animations with higher resolution or longer duration are supported, and the adaptability of virtual reality equipment is improved; and furthermore, the display area is shifted through the IPD data, so that a three-dimensional visual effect is realized, and the immersion feeling is enhanced. According to the virtual reality equipment provided by the invention, the startup and shutdown animation can be displayed in a more efficient and more optimized manner, and meanwhile, better user visual experience is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power supply control and management, and in particular to a method, device and storage medium for displaying power on and off animations of virtual reality equipment. Background Art

[0002] Various existing operating systems are developed for traditional flat-panel display devices, and their startup animations are usually displayed in the center area of ​​the screen, while the effective display areas of virtual reality devices are located in two areas on the left and right sides of the screen, and each display area corresponds to the field of vision of a single eye; therefore, when virtual reality devices using these operating systems are turned on, the startup animation located in the center of the screen cannot be correctly displayed to the user; because the screen of the virtual reality device is a logical screen assembled from two physical screens for the left and right eyes, the user's perspective when using the product radiates outward from the center point of the left and right physical screens, and the center area of ​​the logical screen, that is, the right boundary of the left physical screen and the left boundary of the right physical screen are unclear or even difficult to see.

[0003] In order to allow users to clearly watch the power-on / off animation in AR / VR products, the usual practice is to make the picture of the power-on / off animation into the size of the logical screen and then draw it, and place each frame of the image on the left and right sides of the picture to form a binocular resource, such as the implementation method disclosed in Chinese patent CN106569809A: use the acquired image material to produce each frame of the power-on animation in the left and right dual-screen format, and then compress and package each frame of the produced image to replace the original power-on animation package.

[0004] However, this method has the following disadvantages: monocular resources are first converted into binocular resources and then loaded, the binocular image resources are large in size, the memory required to load the image resources is large, and the time spent on loading and drawing the image resources is also longer; therefore, it is impossible to display the effect of a high-smoothness boot animation, and the effect of loading a long animation is not good; in addition, a screen resolution is virtualized at the software level for drawing binocular resources, and animation drawing cannot fully adapt to the screen resolution of the virtual reality device, and the display results may also be biased.

[0005] Therefore, it is urgent to propose a method for displaying power on and off animations of virtual reality devices to solve the problem of excessive power on and off animation image resources being loaded and drawn. Summary of the invention

[0006] The purpose of the present invention is to provide a method for displaying a power on / off animation of a virtual reality device, so as to solve the problem that the power on / off animation image resources to be loaded and drawn are too large.

[0007] In order to solve the above technical problems, the present invention provides a method for displaying a power on / off animation of a virtual reality device, comprising:

[0008] Traverse the power on and off animation images;

[0009] Obtaining the logical screen size of the virtual reality device and the image size;

[0010] Processing the image according to the size of the logical screen and the size of the image; and

[0011] The processed image is drawn in the display areas on the left and right sides of the logical screen respectively.

[0012] Optionally, the image is a monocular resource.

[0013] Optionally, the logical screen includes two adjacent and symmetrically arranged split screens, the split screens respectively corresponding to single-purpose visual areas, and the split screens include a left screen and a right screen.

[0014] Optionally, the process of processing the image according to the size of the logical screen and the size of the image includes:

[0015] When the size of the image is smaller than the size of the split screen, the image is not processed or the size of the image is enlarged to match the size of the split screen;

[0016] When the size of the image is equal to the size of the split screen, no processing is performed;

[0017] When the size of the image is larger than the size of the split screen, the size of the image is scaled or cropped to match the size of the split screen.

[0018] Optionally, the process of drawing the processed image in the display areas on the left and right sides of the logical screen respectively includes:

[0019] The center point of the image is aligned with the center point of the left screen and the center point of the right screen respectively, and the image is rotated, flipped or not processed.

[0020] Optionally, a coordinate system is created, in which the center point of the image is aligned with the center point of the left screen and the center point of the right screen, respectively, and the coordinates of the display area of ​​the image on the left screen and the right screen are calculated based on the size of the logical screen and the size of the processed image.

[0021] Optionally, also include:

[0022] Get the IPD data of the virtual reality device;

[0023] offsetting the display area according to the IPD data and the coordinates of the display areas of the left screen and the right screen to obtain offset areas of the left screen and the right screen respectively;

[0024] The processed pictures are drawn in the offset areas of the left screen and the right screen respectively.

[0025] The present invention also provides a virtual reality device, which is used to implement the steps of the above method, including:

[0026] An image processing unit, used for acquiring an image and processing the animation image according to the size of the logical screen and the size of the animation image;

[0027] A display area drawing unit: used for calculating the coordinates of the display area according to the size of the logical screen and the size of the processed image;

[0028] The animation rendering unit is used to render the processed animation image in the display areas on the left and right sides of the logical screen respectively.

[0029] Optionally, an offset region drawing unit is further included, which is used to offset the display region according to the IPD data and the coordinates of the display region to obtain the coordinates of the offset region.

[0030] Optionally, the animation rendering unit is further used to draw the processed animation image in the offset areas on the left and right sides of the logical screen respectively.

[0031] Optionally, it also includes an animation package generating unit, which is used to compress each frame of the image and pack all the compressed images into a power on / off animation package.

[0032] The present invention also provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are executed.

[0033] Compared with the prior art, the present invention has at least the following technical effects:

[0034] The present invention provides a method, device and storage medium for displaying a power on / off animation of a virtual reality device, which optimizes the size of an animation image, reduces the memory and time required for loading image resources, and improves the fluency of the power on / off animation; realizes a fast loading, drawing and rendering process; supports power on / off animations with higher resolution or longer duration, and improves the adaptability of the virtual reality device; the virtual reality device provided by this embodiment can display the power on / off animation in a more efficient and optimized manner, while providing a better user visual experience, and solves the problems that the size of animation image resources required due to the large resolution of the device is large, the memory required for loading image resources is large, and the time spent is long, which leads to the inability to display the power on / off animation effect with high fluency or for a long time; and further solves the problem that when the animation resource cannot adapt to the screen resolution, the display result may be biased. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a block diagram of a method for displaying a power on / off animation of a virtual reality device in an embodiment of the present invention;

[0036] Figure 2 The figure is a functional block diagram of a virtual reality device in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following is a description of a virtual reality device power on / off animation display method, device and storage medium of the present invention in conjunction with a schematic diagram, which shows a preferred embodiment of the present invention. It should be understood that those skilled in the art can modify the present invention described herein and still achieve the beneficial effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation of the present invention.

[0038] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the accompanying drawings are in very simplified form and are not in exact proportions, and are only used to facilitate and clearly assist in illustrating the purpose of the embodiments of the present invention.

[0039] This embodiment provides a method for displaying a power on / off animation of a virtual reality device. Figure 1 ,include:

[0040] S1, traverse the power on and off animation images;

[0041] S2. Obtaining the logical screen size of the virtual reality device and the image size;

[0042] S3, processing the image according to the size of the logical screen and the size of the image; and

[0043] S4. Drawing the processed image in the display areas on the left and right sides of the logic screen respectively.

[0044] In this embodiment, the image is processed according to the size of the logical screen and the size of the image to match the size of the logical screen, so that each frame image of the power on and off animation does not exceed the display area on the left and right sides of the logical screen, presenting a complete and normal power-on animation effect; and then the processed image is drawn in the display area on the left and right sides of the logical screen respectively; the present invention replaces the method of first making the image into a left and right dual-screen format and then drawing it by drawing the animation image into the display area on the left and right sides respectively. The size of the image loaded by the method of the present invention is greatly reduced, the memory required for loading image resources is reduced, the time spent on loading and drawing image resources is reduced, the animation fluency is improved, the power-on animation duration is reduced, and it also provides the possibility of adapting animations with higher resolution or longer duration.

[0045] In step S1, all frame images required for the power on / off animation are identified and loaded, and the images are monocular resources.

[0046] In a dual-screen scenario, this embodiment realizes an animation drawing method for displaying a complete binocular effect with minimal image memory by drawing single-eye animation resources in the display areas on the left and right sides respectively.

[0047] In step S2, the logical screen includes two adjacent and symmetrically arranged split screens, each of which corresponds to a single-purpose visual area, and the split screen includes a left screen and a right screen.

[0048] Further, in step S3, the process of processing the image according to the size of the logical screen and the size of the image includes:

[0049] When the size of the image is smaller than the size of the split screen, the image is not processed or the size of the image is enlarged to match the size of the split screen;

[0050] When the size of the image is equal to the size of the split screen, no processing is performed;

[0051] When the size of the image is larger than the size of the split screen, the size of the image is scaled or cropped to match the size of the split screen.

[0052] In this embodiment, the logical screen is formed by assembling two physical screens on the left and right, and the image is configured to match the size of the split screen. Specifically, if the image size is smaller than the split screen size: directly use the original image, or enlarge the image size to match the size of the split screen, that is, enlarge it to a size not exceeding the split screen size while avoiding image distortion. If the image size is equal to the split screen size, no processing is required and the image can be used directly. If the image size is larger than the split screen size: scale the image size to reduce it to match the split screen size, that is, scale it to a size not exceeding the split screen size while maintaining image quality; or select a portion of the image and crop it to a size that matches the image size and the split screen size. The cropping position and area can be determined based on the image content and importance.

[0053] When performing image processing, the image size should match the split screen size to ensure that the image quality does not significantly decrease during scaling or cropping; especially during cropping, it is necessary to ensure that the cropped image still conveys important information of the original image; the processed image should provide a comfortable visual experience to avoid discomfort caused by size mismatch. Ensure that users can get the best visual effect when watching the power on and off animations.

[0054] In step S4, the process of drawing the processed image in the display areas on the left and right sides of the logical screen respectively includes: aligning the center point of the image with the center point of the left screen and the center point of the right screen respectively, rotating, flipping or not processing the image.

[0055] It should be noted that "no processing" is a relative concept. Whether the image needs to be processed depends on the initial state of the image, the required display effect, and the specific requirements of the user or system. If the image has been adjusted to a state suitable for display during the processing, then no additional rotation or flipping processing is required.

[0056] In this embodiment, the size and position of each frame of the image are adjusted. Preferably, the size of each frame of the image is the minimum size that covers the largest animation frame content, and the animation elements to be displayed in each frame of the monocular image are placed in a specific area, which the user can observe normally and completely through the device, ensuring that the user can obtain the best visual effect when watching the power on and off animation.

[0057] Furthermore, step S4 also includes the following specific steps:

[0058] Create a coordinate system in which the image and the split screen are both located, align the center point of the image with the center point of the left screen and the center point of the right screen respectively, and calculate the coordinates of the display area of ​​the image on the left screen and the right screen according to the size of the logical screen and the size of the processed image.

[0059] In a specific example, the process of calculating the coordinates of the animation image display area may specifically include the following steps:

[0060] 1. Define the coordinate system:

[0061] For example: take the upper left vertex of the screen as the origin, the x-axis to the right is the positive direction, and the y-axis downward is the positive direction.

[0062] 2. Get the size data of the logical screen, the length is screen_h, the width is screen_w, the coordinates of the center point of the left screen are (screen_w / 4, screen_h / 2), and the coordinates of the center point of the right screen are (screen_w*3 / 4, screen_h / 2).

[0063] 3. Get the size data of the image, the length is picture_h, and the width is picture_w.

[0064] 4. The center point of the image is aligned with the center point of the left screen and the center point of the right screen respectively.

[0065] Then the display area of ​​the left screen is to take (screen_w / 4-picture_w / 2, screen_h / 2-picture_h / 2) as the vertex, extend picture_w to the right, and extend picture_h downward.

[0066] The display area of ​​the right screen takes (screen_w*3 / 4-picture_w / 2, screen_h / 2-picture_h / 2) as the vertex, extends picture_w to the right, and extends picture_h downward.

[0067] Furthermore, in order to present different visual effects, the following steps are further included after step S4:

[0068] S5. Obtaining IPD (Interpupillary distance) data of the virtual reality device;

[0069] S6, offsetting the display area according to the IPD data and the coordinates of the display areas of the left screen and the right screen to obtain offset areas of the left screen and the right screen respectively;

[0070] S7: Draw the processed pictures in the offset areas of the left screen and the right screen respectively.

[0071] The device IPD data is obtained, and the display offset area of ​​the left and right screens is calculated according to the coordinates of the left and right display areas and the IPD data, so that the data drawn by the left and right eyes are different, and a 3D stereo effect can be reflected when the image is combined. Finally, the processed image data is drawn in the display offset area of ​​the left and right screens respectively. In this embodiment, the offset direction of the image is from the edge of the logical screen to the center.

[0072] Specifically, the device IPD data is obtained, and the coordinates of the display area of ​​the left screen are offset to the right by IPD / 2 units; the coordinates of the display area of ​​the right screen are further offset to the left by IPD / 2 units, that is, from the edge of the logical screen to the center; OpenGL (Open Graphics Library) is used to draw the processed images in the offset areas of the left and right screens respectively.

[0073] In other examples, other suitable image drawing methods may be selected according to requirements, and the specific drawing method is not described in this embodiment.

[0074] In this embodiment, the monocular animation resources are drawn onto the left and right split screens respectively, and then the coordinates of the offset area are obtained according to the device IPD data, and the image is offset so that the data drawn in the left and right areas are different, and a 3D stereoscopic effect can be reflected when the image is combined.

[0075] It should be noted that the IPD data of each user may be different. When the virtual reality device is used for the first time, the offset area coordinates are calculated by obtaining the default IPD value. During the operation of the device, the user can reset the IPD according to their own situation and usage experience, and then the modified IPD value will be used to calculate the offset area coordinates.

[0076] In this embodiment, the size of the loaded animation image can be greatly reduced, the memory required to load the image resources is reduced, the time spent on rendering and drawing the animation resources is reduced, the animation is smoother, and a better visual effect is presented.

[0077] In the dual-screen scenario, when drawing the animation resources for a single eye on the left and right screens respectively, the size of the animation picture needs to be processed. First, the logical screen size and the size of the animation picture are obtained respectively. If the size of the animation picture is smaller than half of the logical screen size, it can be left unprocessed or enlarged to a suitable size to match half of the logical screen size. If the size of the animation picture is larger than half of the logical screen size, the size of the animation picture is scaled and cropped to match half of the logical screen size, and then the regional coordinates of the animation picture on the left and right screens are calculated according to the parameters of the processed animation picture.

[0078] Please refer to Figure 2 In an embodiment of the present invention, a virtual reality device is further provided, which is used to implement the above method steps, including:

[0079] An image processing unit, used for acquiring an image and processing the animation image according to the size of the logical screen and the size of the animation image;

[0080] A display area drawing unit: used for calculating the coordinates of the display area according to the size of the logical screen and the size of the processed image;

[0081] The animation rendering unit is used to render the processed animation image in the display areas on the left and right sides of the logical screen respectively.

[0082] Furthermore, the 3D stereoscopic effect is reflected, and an offset area drawing unit is also included, which is used to offset the display area according to the IPD data and the coordinates of the display area to obtain the coordinates of the offset area.

[0083] Furthermore, the animation rendering unit is further used to render the processed animation image in the offset areas on the left and right sides of the logical screen respectively.

[0084] Furthermore, it also includes an animation package generating unit, which is used to compress each frame of the image and pack all the compressed images into a power on / off animation package.

[0085] In a specific example, the animation package generation unit is used to store each frame of animation image in a corresponding directory according to the stage of playback; create an animation attribute description text file, and configure the number of frames of images in each directory, the number of times each directory is looped, and the size of each frame of the image in the animation attribute description text file; package the animation attribute description text file and all directories containing boot animation images into a compressed file as a power on and off animation resource package.

[0086] Accordingly, other embodiments of the present application may also provide a computer-readable storage medium in which computer executable instructions are stored, and when the computer executable instructions are executed by the processor, the various method embodiments of the present application are implemented. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0087] In summary, the present invention provides a method, device and storage medium for displaying power-on and power-off animations of a virtual reality device, which can optimize the image size, reduce the memory and time required for loading image resources, improve the animation fluency, achieve fast loading and drawing, support animations with higher resolution or longer duration, and improve the adaptability of the virtual reality device. Furthermore, through IPD data adjustment, a stereoscopic visual effect can be achieved to enhance the sense of immersion. The virtual reality device provided in this embodiment can display the power-on and power-off animations in a more efficient and optimized manner, while providing a better user visual experience.

[0088] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for displaying a power on / off animation of a virtual reality device, characterized in that: include: Traverse the power on and off animation images; Obtaining the logical screen size of the virtual reality device and the image size; Processing the image according to the size of the logical screen and the size of the image; as well as The processed image is drawn in the display areas on the left and right sides of the logical screen respectively.

2. The method for displaying a virtual reality device power on / off animation according to claim 1, characterized in that: The image is a monocular resource.

3. The method for displaying the power on and off animation of a virtual reality device according to claim 1, characterized in that: The logical screen includes two adjacent and symmetrically arranged split screens, each of which corresponds to a single-purpose visual area, and the split screen includes a left screen and a right screen.

4. The method for displaying the power on / off animation of a virtual reality device according to claim 3, characterized in that: The process of processing the image according to the size of the logical screen and the size of the image comprises: When the size of the image is smaller than the size of the split screen, the image is not processed or the size of the image is enlarged to match the size of the split screen; When the size of the image is equal to the size of the split screen, no processing is performed; When the size of the image is larger than the size of the split screen, the size of the image is scaled or cropped to match the size of the split screen.

5. The method for displaying the power on / off animation of a virtual reality device according to claim 3, characterized in that: The process of drawing the processed image in the display areas on the left and right sides of the logical screen respectively includes: The center point of the image is aligned with the center point of the left screen and the center point of the right screen respectively, and the image is rotated, flipped or not processed.

6. The method for displaying a virtual reality device power on / off animation according to claim 5, characterized in that: A coordinate system is created, the center point of the image is aligned with the center point of the left screen and the center point of the right screen respectively, and the coordinates of the display area of ​​the image on the left screen and the right screen are calculated according to the size of the logical screen and the size of the processed image.

7. The method for displaying a virtual reality device power on / off animation according to claim 6, wherein: Also includes: Get the IPD data of the virtual reality device; offsetting the display area according to the IPD data and the coordinates of the display areas of the left screen and the right screen to obtain offset areas of the left screen and the right screen respectively; The processed pictures are drawn in the offset areas of the left screen and the right screen respectively.

8. A virtual reality device, characterized in that: The steps for implementing the method according to any one of claims 1 to 7 include: An image processing unit, used for acquiring an image and processing the animation image according to the size of the logical screen and the size of the animation image; A display area drawing unit: used for calculating the coordinates of the display area according to the size of the logical screen and the size of the processed image; The animation rendering unit is used to render the processed animation image in the display areas on the left and right sides of the logical screen respectively.

9. The virtual reality device according to claim 8, characterized in that: It also includes an offset region drawing unit, which is used to offset the display region according to the IPD data and the coordinates of the display region to obtain the coordinates of the offset region.

10. The virtual reality device according to claim 9, characterized in that: The animation rendering unit is also used to draw the processed animation image in the offset areas on the left and right sides of the logical screen respectively.

11. The virtual reality device according to claim 9, characterized in that: It also includes an animation package generating unit, which is used to compress each frame of the image and pack all the compressed images into a power on / off animation package.

12. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Method and device for realizing boot animation of virtual reality equipment

    CN106569809A

  • Virtual reality mode processing method, device and system

    CN106997234A

  • Method and device for adapting webpage animation to screens

    CN108205398A

  • Application interface display method and apparatus

    CN108604385A

  • Display method and device of boot logo and computer storage medium

    CN109710318A