Cubic screen rendering method and device, electronic equipment and storage medium

By obtaining and drawing six-sided pictures and shadow pictures of the Rubik's Cube and displaying them to the cubic screen, the problem of poor three-dimensional effect display of existing cubic screens is solved, and a better three-dimensional effect is achieved.

CN119888035APending Publication Date: 2025-04-25SHENZHEN HUIDU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411934068.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The Rubik's Cube Special Effect Display Solution for the existing Cube Screen has the problem of poor three-dimensional effect.

Method used

By obtaining the picture of the six sides of the Rubik's Cube, draw it into the initial Rubik's Cube two-dimensional expansion diagram, obtain the candidate Rubik's Cube two-dimensional expansion diagram, and obtain the shadow picture, draw it into the candidate Rubik's Cube two-dimensional expansion diagram, obtain the target Rubik's Cube two-dimensional expansion diagram, and finally display the target Rubik's Cube two-dimensional expansion diagram on the cube screen to achieve the rendered three-dimensional Rubik's Cube.

Benefits of technology

By drawing shadow images, the images displayed on the cubic screen have a shadow effect, which improves the three-dimensional effect of the three-dimensional Rubik's Cube.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119888035A_ABST
    Figure CN119888035A_ABST
Patent Text Reader

Abstract

The invention discloses a cubic screen rendering method and device, electronic equipment and a storage medium. The method comprises the following steps: respectively obtaining pictures of six surfaces of the magic cube; drawing the pictures of the six surfaces of the Rubik's cube into the initial Rubik's cube two-dimensional expanded graph to obtain candidate Rubik's cube two-dimensional expanded graphs; obtaining a shadow picture, and drawing the shadow picture into the candidate magic cube two-dimensional expanded graph to obtain a target magic cube two-dimensional expanded graph; the target magic cube two-dimensional expanded view is displayed on a cubic screen, a rendered three-dimensional magic cube is obtained, and the cubic screen is a cube comprising six screens. According to the technical scheme, the shadow picture is drawn, so that the image displayed on the cube screen has a shadow effect, namely a three-dimensional effect, and the three-dimensional effect of the three-dimensional magic cube is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional display technology, and in particular to a cubic screen rendering method, device, electronic equipment and storage medium. Background Art

[0002] With the continuous development of Light Emitting Diode (LED) cube screens, there is an increasing demand for special effects suitable for LED cube screens, which are widely used in scenes such as stores, exhibition halls and squares.

[0003] In the process of realizing the present invention, the inventors found that there are at least the following technical problems in the prior art: the Rubik's Cube special effects display solution of the existing cubic screen has the problem of poor three-dimensional effect. Summary of the invention

[0004] The present invention provides a cubic screen rendering method, device, electronic equipment and storage medium to enhance the three-dimensional effect of displaying a magic cube on the cubic screen.

[0005] According to one aspect of the present invention, a cubic screen rendering method is provided, comprising:

[0006] Get the images of the six faces of the Rubik's Cube respectively;

[0007] Drawing the images of the six faces of the Rubik's Cube onto the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram;

[0008] Obtain a shadow image, and draw the shadow image into the candidate Rubik's Cube 2D expansion image to obtain a target Rubik's Cube 2D expansion image;

[0009] The two-dimensional unfolded image of the target Rubik's Cube is displayed on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0010] According to another aspect of the present invention, there is provided a cubic screen rendering device, comprising:

[0011] The Rubik's Cube six-side image acquisition module is used to obtain images of the six sides of the Rubik's Cube respectively;

[0012] A Rubik's Cube six-face picture drawing module is used to draw the pictures of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded picture to obtain a candidate Rubik's Cube two-dimensional unfolded picture;

[0013] A shadow picture drawing module is used to obtain a shadow picture, draw the shadow picture into the candidate Rubik's Cube 2D expansion picture, and obtain the target Rubik's Cube 2D expansion picture;

[0014] The three-dimensional Rubik's Cube rendering module is used to display the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] at least one processor;

[0017] and a memory communicatively coupled to the at least one processor;

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cubic screen rendering method described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cubic screen rendering method described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention obtains the images of the six faces of the Rubik's Cube respectively, draws the images of the six faces of the Rubik's Cube into the initial Rubik's Cube 2D expansion diagram, obtains the candidate Rubik's Cube 2D expansion diagram, and then obtains the shadow image, draws the shadow image into the candidate Rubik's Cube 2D expansion diagram, obtains the target Rubik's Cube 2D expansion diagram, and then displays the target Rubik's Cube 2D expansion diagram on the cube screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cube screen is a cube including six screens. The above technical solution, by drawing the shadow image, makes the image displayed on the cube screen have a shadow effect, that is, a three-dimensional stereoscopic effect, thereby improving the stereoscopic effect of the three-dimensional Rubik's Cube.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of a cubic screen rendering method provided according to the first embodiment of the present invention;

[0024] Figure 2A A static Rubik's Cube color block image of an unrotated Rubik's Cube provided by an embodiment of the present invention;

[0025] Figure 2B A Rubik's Cube color block image during a Rubik's Cube rotation process provided by an embodiment of the present invention;

[0026] Figure 2C A Rubik's Cube color block image obtained by rotating the Rubik's Cube provided by an embodiment of the present invention;

[0027] Figure 3A is an initial two-dimensional expansion diagram of a Rubik's Cube provided according to an embodiment of the present invention;

[0028] Figure 3B A candidate Rubik's Cube two-dimensional expansion diagram provided according to an embodiment of the present invention;

[0029] Figure 4A is a schematic diagram of a rendered three-dimensional Rubik's Cube provided according to an embodiment of the present invention;

[0030] Figure 4B This is a real product shot of a rendered three-dimensional Rubik's Cube provided according to an embodiment of the present invention;

[0031] Figure 5 is a flow chart of a cubic screen rendering method provided according to Embodiment 2 of the present invention;

[0032] Figure 6 A two-dimensional unfolded diagram of a target Rubik's Cube provided according to an embodiment of the present invention;

[0033] Figure 7 is a flow chart of a cubic screen rendering method provided according to Embodiment 3 of the present invention;

[0034] Figure 8 is a schematic diagram of a magic cube rotation provided according to an embodiment of the present invention;

[0035] Fig. 9 is a structural schematic diagram of a cubic screen rendering device provided according to a fourth embodiment of the present invention;

[0036] Fig.10 It is a structural schematic diagram of an electronic device for implementing the cubic screen rendering method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0039] Embodiment 1

[0040] Figure 1 This is a flow chart of a cube screen rendering method provided in the first embodiment of the present invention. This embodiment is applicable to the case where an LED cube screen performs a magic cube special effect display. The method can be executed by a cube screen rendering device. The cube screen rendering device can be implemented in the form of hardware and / or software. The cube screen rendering device can be configured in an electronic device such as an LED cube screen. The LED cube screen includes multiple display screens and control cards. Figure 1 As shown, the method includes:

[0041] S110, respectively obtaining images of the six faces of the Rubik's Cube.

[0042] In the embodiment of the present invention, the Rubik's Cube may be a Rubik's Cube of three levels or higher, which is not specifically limited here. The Rubik's Cube includes a front, a back, a left, a right, a top, and a bottom, and each face has a corresponding Rubik's Cube color block image. The image may be a static Rubik's Cube color block image (such as Figure 2A As shown), the picture can also be the color block image of the Rubik's Cube during the Rubik's Cube rotation process (as shown Figure 2B As shown), the picture can also be the color block image of the Rubik's Cube after the Rubik's Cube is rotated (as shown Figure 2C shown).

[0043] Specifically, obtain the front image of the Rubik's Cube; obtain the back image of the Rubik's Cube, wherein the front image and the back image are opposite sides in the Rubik's Cube; obtain the left image of the Rubik's Cube; obtain the right image of the Rubik's Cube, wherein the left image and the right image are opposite sides in the Rubik's Cube; obtain the top image of the Rubik's Cube; obtain the bottom image of the Rubik's Cube, wherein the top image and the bottom image are opposite sides in the Rubik's Cube.

[0044] S120, drawing the images of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded image to obtain a candidate Rubik's Cube two-dimensional unfolded image.

[0045] The initial two-dimensional expansion diagram of the Rubik's Cube is the expansion diagram template of the Rubik's Cube to be filled with the image (such as Figure 3A The candidate Rubik's Cube 2D expansion image is the expansion image of the image that fills the six faces of the Rubik's Cube (as shown in Figure 3B shown).

[0046] Specifically, the front image of the Rubik's Cube is drawn into the front image area of ​​the initial Rubik's Cube two-dimensional expansion image; the back image of the Rubik's Cube is drawn into the back image area of ​​the initial Rubik's Cube two-dimensional expansion image; the left image of the Rubik's Cube is drawn into the left image area of ​​the initial Rubik's Cube two-dimensional expansion image; the right image of the Rubik's Cube is drawn into the right image area of ​​the initial Rubik's Cube two-dimensional expansion image; the top image of the Rubik's Cube is drawn into the top image area of ​​the initial Rubik's Cube two-dimensional expansion image; the bottom image of the Rubik's Cube is drawn into the bottom image area of ​​the initial Rubik's Cube two-dimensional expansion image, and a candidate Rubik's Cube two-dimensional expansion image is obtained.

[0047] S130, obtaining a shadow image, and drawing the shadow image into the candidate Rubik's Cube 2D expansion image to obtain the target Rubik's Cube 2D expansion image.

[0048] The shadow image is used to attach to the Rubik's Cube color block image, so that the Rubik's Cube color block image has a shadow effect. The target Rubik's Cube two-dimensional expansion image refers to the Rubik's Cube two-dimensional expansion image with a shadow effect.

[0049] Exemplarily, the shape of the shadow image can be adjusted through geometric transformation methods such as stretching or shrinking, and then the shape-adjusted shadow image is drawn into the candidate Rubik's Cube 2D unfolded image, thereby obtaining a Rubik's Cube 2D unfolded image with a shadow effect.

[0050] S140, displaying the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0051] In the embodiment of the present invention, the three-dimensional Rubik's Cube refers to a cubic screen that can display a Rubik's Cube with a three-dimensional effect. For example, Figure 4A This is a schematic diagram of the rendered 3D Rubik's Cube. Figure 4BTake a photo of the real product of the rendered 3D Rubik's Cube.

[0052] Specifically, the cube screen includes a front screen, a back screen, a left screen, a back screen, an upper screen and a lower screen; accordingly, the target Rubik's Cube two-dimensional unfolded image is displayed on the cube screen to obtain a rendered three-dimensional Rubik's Cube, including: displaying the image in the front image area of ​​the target Rubik's Cube two-dimensional unfolded image on the front screen; displaying the image in the back image area of ​​the target Rubik's Cube two-dimensional unfolded image on the back screen; displaying the image in the left image area of ​​the target Rubik's Cube two-dimensional unfolded image on the left screen; displaying the image in the right image area of ​​the target Rubik's Cube two-dimensional unfolded image on the right screen; displaying the image in the upper image area of ​​the target Rubik's Cube two-dimensional unfolded image on the upper screen; displaying the image in the lower image area of ​​the target Rubik's Cube two-dimensional unfolded image on the lower screen, to obtain a rendered three-dimensional Rubik's Cube.

[0053] The technical solution of the embodiment of the present invention obtains the images of the six faces of the Rubik's Cube respectively, draws the images of the six faces of the Rubik's Cube into the initial Rubik's Cube 2D expansion diagram, obtains the candidate Rubik's Cube 2D expansion diagram, and then obtains the shadow image, draws the shadow image into the candidate Rubik's Cube 2D expansion diagram, obtains the target Rubik's Cube 2D expansion diagram, and then displays the target Rubik's Cube 2D expansion diagram on the cube screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cube screen is a cube including six screens. The above technical solution, by drawing the shadow image, makes the image displayed on the cube screen have a shadow effect, that is, a three-dimensional stereoscopic effect, thereby improving the stereoscopic effect of the three-dimensional Rubik's Cube.

[0054] Embodiment 2

[0055] Figure 5 A flowchart of a cubic screen rendering method provided in Embodiment 2 of the present invention, the method of this embodiment can be combined with each optional scheme in the cubic screen rendering method provided in the above embodiments. The cubic screen rendering method provided in this embodiment is further optimized. Optionally, the shadow image is drawn into the candidate Rubik's Cube 2D expansion image to obtain the target Rubik's Cube 2D expansion image, including: dividing the shadow image into a first shadow image, a second shadow image, a third shadow image and a fourth shadow image; drawing the first shadow image into the front image area of ​​the candidate Rubik's Cube 2D expansion image; drawing the second shadow image into the right image area of ​​the candidate Rubik's Cube 2D expansion image; drawing the third shadow image into the upper image area of ​​the candidate Rubik's Cube 2D expansion image; drawing the fourth shadow image into the back image area of ​​the candidate Rubik's Cube 2D expansion image to obtain the target Rubik's Cube 2D expansion image.

[0056] like Figure 5 As shown, the method includes:

[0057] S210, respectively obtain images of the six faces of the Rubik's Cube.

[0058] S220, drawing the images of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded image to obtain a candidate Rubik's Cube two-dimensional unfolded image.

[0059] S230: Obtain a shadow picture, and divide the shadow picture into a first shadow image, a second shadow image, a third shadow image, and a fourth shadow image.

[0060] The first shadow image, the second shadow image, the third shadow image and the fourth shadow image are sub-images of the shadow picture, which can be created by manual segmentation or other methods.

[0061] It should be noted that the shadows can be distributed on multiple faces of the Rubik's Cube, so the shadow image can be divided, and the divided shadow images are drawn into the image area corresponding to the candidate Rubik's Cube two-dimensional unfolded image. The embodiment of the present invention takes the top view as an example to divide the shadow image into the first shadow image, the second shadow image, the third shadow image and the fourth shadow image. In other embodiments, the shadow image can also be divided into other numbers of shadow images according to the viewing angle, which is not limited here.

[0062] S240, draw the first shadow image into the front image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the second shadow image into the right image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the third shadow image into the upper image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the fourth shadow image into the back image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, and obtain the target Rubik's Cube two-dimensional unfolded image.

[0063] For example, Figure 6 A target Rubik's Cube 2D expansion diagram is provided in an embodiment of the present invention. Specifically, the embodiment of the present invention takes a top-down perspective as an example, divides the shadow image into a first shadow image, a second shadow image, a third shadow image, and a fourth shadow image, and then draws the first shadow image to the front image area of ​​the candidate Rubik's Cube 2D expansion diagram, draws the second shadow image to the right image area of ​​the candidate Rubik's Cube 2D expansion diagram, draws the third shadow image to the upper image area of ​​the candidate Rubik's Cube 2D expansion diagram, and draws the fourth shadow image to the back image area of ​​the candidate Rubik's Cube 2D expansion diagram, to obtain a target Rubik's Cube 2D expansion diagram with a shadow effect.

[0064] S250, displaying the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0065] The technical solution of the embodiment of the present invention divides the shadow picture into a first shadow image, a second shadow image, a third shadow image and a fourth shadow image, and then draws the first shadow image to the front image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, draws the second shadow image to the right image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, draws the third shadow image to the upper image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, and draws the fourth shadow image to the lower image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, thereby obtaining a target Rubik's Cube two-dimensional unfolded image with a shadow effect, so that the image displayed on the cube screen has a shadow effect, that is, a three-dimensional stereoscopic effect, thereby enhancing the stereoscopic effect of the three-dimensional Rubik's Cube.

[0066] Embodiment 3

[0067] Figure 7 A flow chart of a cubic screen rendering method provided in Embodiment 3 of the present invention, the method of this embodiment can be combined with the various optional schemes in the cubic screen rendering method provided in the above embodiments. The cubic screen rendering method provided in this embodiment is further optimized. Optionally, after the pictures of the six faces of the Rubik's Cube are obtained respectively, it also includes: in response to the rotation operation of the Rubik's Cube, the pictures of the six faces of the Rubik's Cube are updated to obtain updated pictures of the six faces of the Rubik's Cube; accordingly, the pictures of the six faces of the Rubik's Cube are drawn into the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram, including: drawing the pictures of the six faces of the Rubik's Cube after the update into the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram.

[0068] like Figure 7 As shown, the method includes:

[0069] S310, respectively obtain images of the six faces of the Rubik's Cube.

[0070] S320. In response to the rotation operation of the Rubik's Cube, the images of the six faces of the Rubik's Cube are updated to obtain updated images of the six faces of the Rubik's Cube.

[0071] S330, drawing the updated images of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded image to obtain a candidate Rubik's Cube two-dimensional unfolded image.

[0072] S340, obtaining a shadow image, and drawing the shadow image into the candidate Rubik's Cube 2D expansion image to obtain the target Rubik's Cube 2D expansion image.

[0073] S350, displaying the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0074] For example, Figure 8A schematic diagram of a Rubik's Cube rotation provided by an embodiment of the present invention. Specifically, the Rubik's Cube can be rotated by 90 degrees or multiples of 90 degrees. During the Rubik's Cube rotation, images of the six faces corresponding to each rotation angle are obtained in real time, and the images of the six faces corresponding to each rotation angle obtained in real time are updated, drawn and displayed in real time, so that the cube screen displays a dynamically rotating Rubik's Cube animation.

[0075] It should be noted that the embodiments of the present invention can be drawn through an instantiated drawing application programming interface (API) of modern graphics or manually.

[0076] The technical solution of the embodiment of the present invention updates the images of the six faces of the Rubik's Cube in response to the rotation operation of the Rubik's Cube, obtains the updated images of the six faces of the Rubik's Cube, and then draws the updated images of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded image to obtain the candidate Rubik's Cube two-dimensional unfolded image, thereby realizing the real-time update drawing and real-time update display of the Rubik's Cube image, so that the cube screen displays a dynamically rotating Rubik's Cube animation.

[0077] Embodiment 4

[0078] Fig. 9 This is a schematic diagram of the structure of a cubic screen rendering device provided by Embodiment 4 of the present invention. Fig. 9 As shown, the device comprises:

[0079] The Rubik's Cube six-side image acquisition module 410 is used to respectively acquire images of the six sides of the Rubik's Cube;

[0080] The Rubik's Cube six-face picture drawing module 420 is used to draw the pictures of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded picture to obtain the candidate Rubik's Cube two-dimensional unfolded picture;

[0081] A shadow picture drawing module 430 is used to obtain a shadow picture, and draw the shadow picture into the candidate Rubik's cube two-dimensional unfolded picture to obtain a target Rubik's cube two-dimensional unfolded picture;

[0082] The three-dimensional Rubik's Cube rendering module 440 is used to display the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0083] The technical solution of the embodiment of the present invention obtains the images of the six faces of the Rubik's Cube respectively, draws the images of the six faces of the Rubik's Cube into the initial Rubik's Cube 2D expansion diagram, obtains the candidate Rubik's Cube 2D expansion diagram, and then obtains the shadow image, draws the shadow image into the candidate Rubik's Cube 2D expansion diagram, obtains the target Rubik's Cube 2D expansion diagram, and then displays the target Rubik's Cube 2D expansion diagram on the cube screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cube screen is a cube including six screens. The above technical solution, by drawing the shadow image, makes the image displayed on the cube screen have a shadow effect, that is, a three-dimensional stereoscopic effect, thereby improving the stereoscopic effect of the three-dimensional Rubik's Cube.

[0084] In some optional implementations, the magic cube six-side image acquisition module 410 can be specifically used to:

[0085] Get the front image of the Rubik's Cube;

[0086] Acquire a back image of the Rubik's Cube, wherein the front image and the back image are opposite sides in the Rubik's Cube;

[0087] Get the left image of the Rubik's Cube;

[0088] Acquire a right image of the Rubik's Cube, wherein the left image and the right image are opposite sides in the Rubik's Cube;

[0089] Get the top image of the Rubik's Cube;

[0090] A lower image of the Rubik's Cube is obtained, wherein the upper image and the lower image are opposite sides in the Rubik's Cube.

[0091] In some optional implementations, the magic cube six-sided picture drawing module 420 can be specifically used for:

[0092] Draw the front image of the Rubik's Cube into the front image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the back image of the Rubik's Cube into the back image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the left image of the Rubik's Cube into the left image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the right image of the Rubik's Cube into the right image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the top image of the Rubik's Cube into the top image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the bottom image of the Rubik's Cube into the bottom image area of ​​the initial Rubik's Cube two-dimensional unfolded image, and obtain a candidate Rubik's Cube two-dimensional unfolded image.

[0093] In some optional implementations, the shadow picture drawing module 430 may be specifically used for:

[0094] dividing the shadow picture into a first shadow image, a second shadow image, a third shadow image and a fourth shadow image;

[0095] Draw the first shadow image into the front image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the second shadow image into the right image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the third shadow image into the upper image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the fourth shadow image into the back image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, and obtain the target Rubik's Cube two-dimensional unfolded image.

[0096] In some optional embodiments, the cubic screen includes a front screen, a rear screen, a left screen, a rear screen, an upper screen and a lower screen;

[0097] Accordingly, the three-dimensional magic cube rendering module 440 can be specifically used for:

[0098] Display the image in the front image area of ​​the target Rubik's Cube two-dimensional unfolded view on the front screen; display the image in the back image area of ​​the target Rubik's Cube two-dimensional unfolded view on the back screen; display the image in the left image area of ​​the target Rubik's Cube two-dimensional unfolded view on the left screen; display the image in the right image area of ​​the target Rubik's Cube two-dimensional unfolded view on the right screen; display the image in the upper image area of ​​the target Rubik's Cube two-dimensional unfolded view on the upper screen; display the image in the lower image area of ​​the target Rubik's Cube two-dimensional unfolded view on the lower screen, to obtain a rendered three-dimensional Rubik's Cube.

[0099] In some optional implementations, the cubic screen rendering device further includes:

[0100] A Rubik's Cube rotation module, used for updating the images of the six faces of the Rubik's Cube in response to the rotation operation of the Rubik's Cube to obtain updated images of the six faces of the Rubik's Cube;

[0101] Accordingly, the magic cube six-sided picture drawing module 420 can be specifically used for:

[0102] The updated six-face images of the Rubik's Cube are drawn into the initial Rubik's Cube two-dimensional unfolded image to obtain a candidate Rubik's Cube two-dimensional unfolded image.

[0103] In some optional embodiments, the Rubik's Cube is a Rubik's Cube of three order or higher.

[0104] The cubic screen rendering device provided in the embodiment of the present invention can execute the cubic screen rendering method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0105] Embodiment 5

[0106] Fig.10A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0107] like Fig.10 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The I / O interface 15 is also connected to the bus 14.

[0108] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a cubic screen rendering method, which includes:

[0110] Get the images of the six faces of the Rubik's Cube respectively;

[0111] Drawing the images of the six faces of the Rubik's Cube onto the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram;

[0112] Obtain a shadow image, and draw the shadow image into the candidate Rubik's Cube 2D expansion image to obtain a target Rubik's Cube 2D expansion image;

[0113] The two-dimensional unfolded image of the target Rubik's Cube is displayed on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

[0114] In some embodiments, the cubic screen rendering method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the cubic screen rendering method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the cubic screen rendering method in any other appropriate manner (e.g., by means of firmware).

[0115] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0116] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0117] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0118] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0119] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0120] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A cubic screen rendering method, characterized in that: include: Get the images of the six faces of the Rubik's Cube respectively; Drawing the images of the six faces of the Rubik's Cube onto the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram; Obtain a shadow image, and draw the shadow image into the candidate Rubik's Cube 2D expansion image to obtain a target Rubik's Cube 2D expansion image; The two-dimensional unfolded image of the target Rubik's Cube is displayed on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

2. The method according to claim 1, characterized in that The step of respectively obtaining the images of the six faces of the Rubik's Cube comprises: Get the front image of the Rubik's Cube; Acquire a back image of the Rubik's Cube, wherein the front image and the back image are opposite sides in the Rubik's Cube; Get the left image of the Rubik's Cube; Acquire a right image of the Rubik's Cube, wherein the left image and the right image are opposite sides in the Rubik's Cube; Get the top image of the Rubik's Cube; A lower image of the Rubik's Cube is obtained, wherein the upper image and the lower image are opposite sides in the Rubik's Cube.

3. The method according to claim 2, characterized in that Drawing the six faces of the Rubik's Cube onto the initial Rubik's Cube two-dimensional expansion diagram to obtain a candidate Rubik's Cube two-dimensional expansion diagram includes: Draw the front image of the Rubik's Cube into the front image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the back image of the Rubik's Cube into the back image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the left image of the Rubik's Cube into the left image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the right image of the Rubik's Cube into the right image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the top image of the Rubik's Cube into the top image area of ​​the initial Rubik's Cube two-dimensional unfolded image; draw the bottom image of the Rubik's Cube into the bottom image area of ​​the initial Rubik's Cube two-dimensional unfolded image, and obtain a candidate Rubik's Cube two-dimensional unfolded image.

4. The method according to claim 1, characterized in that Drawing the shadow image into the candidate Rubik's Cube 2D expansion image to obtain the target Rubik's Cube 2D expansion image includes: dividing the shadow picture into a first shadow image, a second shadow image, a third shadow image and a fourth shadow image; Draw the first shadow image into the front image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the second shadow image into the right image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the third shadow image into the upper image area of ​​the candidate Rubik's Cube two-dimensional unfolded image; draw the fourth shadow image into the back image area of ​​the candidate Rubik's Cube two-dimensional unfolded image, and obtain the target Rubik's Cube two-dimensional unfolded image.

5. The method according to claim 1, characterized in that The cubic screen includes a front screen, a rear screen, a left screen, a rear screen, an upper screen and a lower screen; Accordingly, the two-dimensional unfolded image of the target Rubik's Cube is displayed on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, including: Display the image in the front image area of ​​the target Rubik's Cube two-dimensional unfolded view on the front screen; display the image in the back image area of ​​the target Rubik's Cube two-dimensional unfolded view on the back screen; display the image in the left image area of ​​the target Rubik's Cube two-dimensional unfolded view on the left screen; display the image in the right image area of ​​the target Rubik's Cube two-dimensional unfolded view on the right screen; display the image in the upper image area of ​​the target Rubik's Cube two-dimensional unfolded view on the upper screen; display the image in the lower image area of ​​the target Rubik's Cube two-dimensional unfolded view on the lower screen, to obtain a rendered three-dimensional Rubik's Cube.

6. The method according to claim 1, characterized in that After obtaining the images of the six faces of the Rubik's Cube respectively, the method further includes: In response to the rotation operation of the Rubik's Cube, the images of the six faces of the Rubik's Cube are updated to obtain updated images of the six faces of the Rubik's Cube; Accordingly, the step of drawing the images of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional expansion diagram to obtain the candidate Rubik's Cube two-dimensional expansion diagram includes: The updated six-face images of the Rubik's Cube are drawn into the initial Rubik's Cube two-dimensional unfolded image to obtain a candidate Rubik's Cube two-dimensional unfolded image.

7. The method according to any one of claims 1 to 6, characterized in that: The Rubik's Cube is a Rubik's Cube of three orders or higher.

8. A cubic screen rendering device, characterized in that: include: The Rubik's Cube six-side image acquisition module is used to obtain images of the six sides of the Rubik's Cube respectively; A Rubik's Cube six-face picture drawing module is used to draw the pictures of the six faces of the Rubik's Cube into the initial Rubik's Cube two-dimensional unfolded picture to obtain a candidate Rubik's Cube two-dimensional unfolded picture; A shadow picture drawing module is used to obtain a shadow picture, draw the shadow picture into the candidate Rubik's Cube 2D expansion picture, and obtain the target Rubik's Cube 2D expansion picture; The three-dimensional Rubik's Cube rendering module is used to display the two-dimensional unfolded image of the target Rubik's Cube on a cubic screen to obtain a rendered three-dimensional Rubik's Cube, wherein the cubic screen is a cube including six screens.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cubic screen rendering method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cubic screen rendering method according to any one of claims 1 to 7 when executed.