Mapping method and device and related equipment

By intercepting the target area in the virtual reality panorama, processing multimedia files and performing texture mapping, the problem of accurately adding dynamic effect images or videos in the virtual reality panorama is solved, and efficient user experience improvement is achieved.

CN118570356APending Publication Date: 2024-08-30HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310233796.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In a virtual reality panorama, how to accurately add dynamic effects images or videos to designated locations to achieve dynamic effects, which not only improves user experience but also takes into account performance and cost.

Method used

The target area in the sky box is intercepted by the computing device, processed to obtain the multimedia file, and texture mapping is performed according to the mapping data of the multimedia file, and the sub-region of the multimedia file is rotated and positioned to the specified position to realize the multimedia file without dividing it. An accurate mapping of its subregions.

Benefits of technology

It achieves the precise addition of images or videos in the virtual reality panorama, reduces the mapping complexity, avoids misalignment and increased complexity and network load, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570356A
    Figure CN118570356A
Patent Text Reader

Abstract

The invention provides a mapping method and device and related equipment. The method comprises the steps that computing equipment intercepts a target area in a sky box to obtain a target image; processing the target image based on the target image to obtain a multimedia file of an image or video type; wherein the target area spans k planes of the sky box; after the computing device obtains the multimedia file, the multimedia file needs to be mapped to the target area, the computing device conducts texture mapping on the multimedia file according to the k groups of mapping data corresponding to the multimedia file, and the multimedia file is mapped to the target area. Wherein each group of mapping data comprises position data and a rotation angle, and the k groups of mapping data are in one-to-one correspondence with k sub-regions of the multimedia file. Through the method, each sub-region of the multimedia file can be accurately mapped to the corresponding region of the target position, and meanwhile, when cross-plane occurs in the target region, the mapping complexity of the multimedia file can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a mapping method, device and related equipment. Background Art

[0002] Virtual reality (VR) panorama is widely used in cloud exhibition halls, cloud house viewing and other fields. VR panorama is a virtual reality technology that converts images and interacts on the browser or client of the device. Although the image-based panoramic scene supports users to view by dragging and dropping, the content in the scene is static. In practical applications, in order to achieve dynamic effects in VR panorama, it is usually adopted to locally superimpose dynamic effects in the panorama, while taking into account performance and cost while improving user experience. When superimposing dynamic effects in VR panoramic images, how to accurately add images or videos that achieve dynamic effects to specified locations is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides a mapping method, apparatus and related equipment, which can accurately map an image or video to a specified position of a sky box.

[0004] In the first aspect, the present application provides a mapping method, which includes: a computing device intercepts a target area in a skybox to obtain a target image; then processes the target image based on the target image to obtain a multimedia file of image or video type; wherein the above-mentioned target area spans k planes of the skybox, and the part of the target area on each plane is a sub-area of ​​the target area, and k is a positive integer; after obtaining the above-mentioned multimedia file, the computing device needs to map the multimedia file to the above-mentioned target area, and the computing device performs texture mapping on the multimedia file according to the k groups of mapping data corresponding to the multimedia file, and maps the multimedia file to the target area. wherein each group of mapping data includes position data and rotation angle, and the k groups of mapping data correspond one-to-one to the k sub-areas of the multimedia file.

[0005] When the above-mentioned multimedia file is mapped to the target area of ​​the skybox, a sub-area of ​​the multimedia file corresponds to a set of mapping data, and according to the rotation angle, it can be determined on which plane of the skybox a sub-area of ​​the multimedia file is mapped, and then according to the position data, it can be determined that the specific position of the area mapped to a plane of the skybox. In this way, when the multimedia file is mapped to the target area, it is not necessary to divide the multiple sub-areas of the multimedia file and then map them separately, but it is possible to rotate the sub-areas of the multimedia file according to the rotation angle without dividing the multimedia file, and then map them to the position indicated by the position data. Through the above method, each sub-area of ​​the multimedia file can be accurately mapped to the corresponding area of ​​the target position, and at the same time, when the target area appears across the surface, the complexity of mapping the multimedia file can be reduced. For example, when the multimedia file appears across the surface, if multiple sub-areas are divided and mapped separately, it may cause dislocation between different sub-areas, affecting the user experience; and if multiple sub-areas are mapped separately, multiple multimedia files need to be created, which increases the complexity of implementation. For another example, when the multimedia file is a video, if the sub-areas of the multimedia file are divided and mapped separately, that is, one video is divided into multiple videos, then multiple multimedia files and video players need to be created. This may cause frame errors in multiple video players due to the influence of network transmission, increasing the complexity of implementation and the load on the computing device, and also increasing the network load.

[0006] In a possible implementation, the above-mentioned position data indicates mapping a sub-area in the multimedia file to the area indicated by the position data, and the rotation angle indicates the angle of rotation relative to a preset initial position when mapping a sub-area in the multimedia file to the area indicated by the position data.

[0007] The rotation angle can determine which plane of the sky box a sub-area of ​​the multimedia file is mapped to, and the specific position of the area mapped to a plane of the sky box can be determined according to the position data. In this way, when mapping the multimedia file to the target area, it is not necessary to divide the multiple sub-areas of the multimedia file and then map them separately, but the sub-areas of the multimedia file can be rotated according to the rotation angle without dividing the multimedia file, and then mapped to the position indicated by the position data.

[0008] In a possible implementation, before performing texture mapping on the multimedia file according to the k groups of mapping data, the method further includes: creating k grids; wherein the k grids, the k groups of mapping data and the k sub-regions of the multimedia file correspond one to one;

[0009] The multimedia file is texture mapped according to the k groups of mapping data, including:

[0010] Texture mapping is performed according to the multimedia file, k grids and k groups of mapping data. The number of created grids is the same as the number of sub-regions of the multimedia file, and each grid is used for mapping one sub-region of the multimedia file.

[0011] When implementing VR panorama, the computing device needs to create a three-dimensional scene, a skybox, textures and basic materials corresponding to the multimedia file, geometric bodies and meshes corresponding to the multimedia file, etc. Among them, when the multimedia file is a video, the texture created above is a video texture; when the multimedia file is an image, the texture created is a picture texture.

[0012] In a possible implementation, before texture mapping the multimedia file according to the k groups of mapping data corresponding to the multimedia file, the method also includes: a computing device obtains the length and width of k sub-regions of the target area on the planes to which they belong, wherein a portion of the target area on a plane of the sky box is a sub-region of the target area; then, according to the length and width of each sub-region of the target area on the plane to which they belong, the mapping data corresponding to each sub-region of the multimedia file is determined to obtain the k groups of mapping data; wherein the k sub-regions of the target area correspond one-to-one to the k sub-regions of the multimedia file, and the size of each group of corresponding sub-regions is the same.

[0013] According to the length and width of each sub-area included in the target area, the position of each sub-area in the sky box can be determined respectively. The position of the sub-area of ​​the target area in the sky box is the position to which the corresponding sub-area in the multimedia file needs to be mapped, that is, the position data in the above mapping data. Each sub-area is in a plane of the sky box, and the above rotation angle can be determined based on the initial position and the plane where the target sub-area is located. Among them, the target sub-area refers to a sub-area of ​​the target area to which a sub-area of ​​the multimedia file needs to be mapped.

[0014] In a possible implementation, when the target area is located on the first plane of the sky box, before texture mapping the multimedia file according to k groups of mapping data corresponding to the multimedia file, it includes: obtaining the offset of the target area on the first plane, where the offset indicates the coordinates of a vertex of the target area on the first plane; and determining a group of mapping data corresponding to the multimedia file according to the length and width of the target area on the first plane, and the offset.

[0015] When a vertex of a sub-area of ​​the target area coincides with a vertex of the sky box, and two edges of the vertex of the sub-area coincide with two edges of the sky box, the above-mentioned offset is not required to determine the above-mentioned mapping data; if the vertex of the target area does not coincide with the vertex of the sky box, the above-mentioned offset is required to determine the mapping data. It should be understood that when the target area is the former case, the above-mentioned offset can also be obtained, and the above-mentioned mapping data can be determined based on the offset.

[0016] In a possible implementation, when the target area spans the first plane and the second plane of the sky box, before texture mapping the multimedia file according to k groups of mapping data corresponding to the multimedia file, the process includes: determining a first sub-area mapped to the first plane in the multimedia file and a second sub-area mapped to the second plane in the multimedia file according to the length and width of the target area on the first plane and the length and width of the target area on the second plane; determining mapping data corresponding to the first sub-area according to the offset of the first sub-area on the first plane and the length and width of the first sub-area on the first plane; determining mapping data corresponding to the second sub-area according to the offset of the first sub-area on the first plane and the length and width of the second sub-area on the second plane.

[0017] In a possible implementation, when the target area spans the first plane, the second plane, and the third plane of the sky box, before texture mapping the multimedia file according to the k groups of mapping data corresponding to the multimedia file, the process includes: determining a first sub-area mapped to the first plane in the multimedia file, a second sub-area mapped to the second plane in the multimedia file, and a third sub-area mapped to the third plane in the multimedia file according to the length and width of the target area on the first plane, the length and width of the target area on the second plane, and the length and width of the target area on the third plane; determining mapping data corresponding to the first sub-area according to the offset of the first sub-area on the first plane and the length and width of the first sub-area on the first plane; determining mapping data corresponding to the second sub-area according to the offset of the first sub-area on the first plane and the length and width of the second sub-area on the second plane; determining mapping data corresponding to the third sub-area according to the offset of the first sub-area on the first plane and the length and width of the third sub-area on the third plane.

[0018] In a second aspect, an embodiment of the present application provides a mapping device, the device comprising: a capture module, configured to capture a target area in a sky box to obtain a target image; wherein the target area spans k planes of the sky box, wherein k is a positive integer;

[0019] A processing module, used for obtaining a multimedia file based on a target image, where the multimedia file is an image or a video;

[0020] The mapping module is used to perform texture mapping on the multimedia file according to k groups of mapping data corresponding to the multimedia file, and map the multimedia file to a target area.

[0021] In a possible implementation, the above-mentioned position data indicates mapping a sub-area in the multimedia file to the area indicated by the position data, and the rotation angle indicates the angle of rotation relative to a preset initial position when mapping a sub-area in the multimedia file to the area indicated by the position data.

[0022] In a possible implementation, the processing module is also used to: create k grids; wherein the k grids, k groups of mapping data and k sub-areas of the multimedia file correspond one to one; and the texture mapping of the multimedia file according to the k groups of mapping data includes: texture mapping according to the multimedia file, k grids and k groups of mapping data.

[0023] In a possible implementation, the processing module is further used to: obtain the length and width of k sub-regions of the target area on the planes to which they belong, wherein the portion of the target area on a plane of the sky box is a sub-region of the target area; determine the mapping data corresponding to each sub-region of the multimedia file according to the length and width of each sub-region of the target area on the plane to which they belong, and obtain k groups of mapping data; wherein the k sub-regions of the target area correspond one-to-one to the k sub-regions of the multimedia file, and the size of each group of corresponding sub-regions is the same.

[0024] In a possible implementation, when the target area is located on the first plane of the sky box, the processing module is further used to: obtain the offset of the target area on the first plane, the offset indicating the coordinates of a vertex of the target area on the first plane; determine a set of mapping data corresponding to the multimedia file according to the length and width of the target area on the first plane, and the offset.

[0025] In a possible implementation, when the target area spans the first plane and the second plane of the sky box, the processing module is further used to: determine the first sub-area mapped to the first plane in the multimedia file and the second sub-area mapped to the second plane in the multimedia file according to the length and width of the target area on the first plane and the length and width of the target area on the second plane; determine the mapping data corresponding to the first sub-area according to the offset of the first sub-area on the first plane and the length and width of the first sub-area on the first plane; determine the mapping data corresponding to the second sub-area according to the offset of the first sub-area on the first plane and the length and width of the second sub-area on the second plane.

[0026] In a possible implementation, when the target area spans the first plane, the second plane, and the third plane of the sky box, the k groups of mapping data corresponding to the multimedia file are determined, including: determining the first sub-area mapped to the first plane in the multimedia file, the second sub-area mapped to the second plane, and the third sub-area mapped to the third plane in the multimedia file according to the length and width of the target area on the first plane, the length and width of the target area on the second plane, and the length and width of the target area on the third plane; determining the mapping data corresponding to the first sub-area according to the offset of the first sub-area on the first plane and the length and width of the first sub-area on the first plane; determining the mapping data corresponding to the second sub-area according to the offset of the first sub-area on the first plane and the length and width of the second sub-area on the second plane; determining the mapping data corresponding to the third sub-area according to the offset of the first sub-area on the first plane and the length and width of the second sub-area on the second plane.

[0027] In a possible implementation, the processing module is further used to: when the multimedia file is a video, create a video texture corresponding to the multimedia file; or when the multimedia file is an image, create a picture texture corresponding to the multimedia file.

[0028] In a third aspect, the present application provides a computing device comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, it performs a mapping method as described in the first aspect or any possible implementation of the first aspect.

[0029] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a server, the server executes the mapping method in the first aspect or any possible implementation of the first aspect.

[0030] In a fifth aspect, the present application provides a computer program product, which, when executed on a server, enables the server to execute the mapping method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 It is a flowchart of a mapping method provided in an embodiment of the present application;

[0033] Figure 2 is a schematic diagram of a target area provided in an embodiment of the present application;

[0034] Figure 3 is a schematic diagram of a three-dimensional coordinate system provided in an embodiment of the present application;

[0035] Figure 4 is a schematic diagram of an offset provided in an embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of mapping a multimedia file to a UV coordinate system provided by an embodiment of the present application;

[0037] Figure 6 It is a schematic diagram of a target area on a plane provided in an embodiment of the present application;

[0038] Fig. 7A This is a schematic diagram of a target area spanning two planes provided in an embodiment of the present application;

[0039] Figure 7B It is a schematic diagram of another target area spanning two planes provided in an embodiment of the present application;

[0040] Figure 7C It is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application;

[0041] Fig. 8A It is a schematic diagram of a target area spanning three planes provided in an embodiment of the present application;

[0042] Figure 8B It is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application;

[0043] Figure 8C It is a schematic diagram of another target area spanning three planes provided in an embodiment of the present application;

[0044] Fig.8D It is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application;

[0045] Fig. 8E is a schematic diagram of a target area across three planes provided in an embodiment of the present application;

[0046] Fig. 9A It is a schematic diagram of a target area spanning four planes provided in an embodiment of the present application;

[0047] Fig. 9B It is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application;

[0048] Fig.10 is a structural schematic diagram of a mapping device provided in an embodiment of the present application;

[0049] Fig.11 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0050] Fig.12 It is a schematic diagram of the structure of a computing cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0052] VR panorama is widely used in cloud exhibition halls, cloud house viewing and other fields. VR panorama is a virtual reality technology that converts images and interacts on the browser or client of the device. Although the panoramic scene based on panoramic images supports users to view by dragging, the content in the scene is static.

[0053] In practical applications, in order to create a more immersive scene experience, it is often necessary to achieve dynamic effects in panoramic scenes. In order to achieve dynamic effects in VR panoramas, it is usually adopted to locally superimpose dynamic effects in the panorama, while improving user experience and taking into account performance and cost. When superimposing dynamic effects in the panorama, how to accurately add images or videos that achieve dynamic effects to specified locations to achieve pixel-level alignment is a technical problem that needs to be solved.

[0054] The present application provides a mapping method, in which a computing device determines a target area spanning one or more planes from a scene corresponding to a skybox, and obtains a target image from the target area. The skybox is converted from one or more images. Then, a multimedia file is processed based on the target image, which can be an image or a video. Finally, the multimedia file is mapped to the above-mentioned target area of ​​the skybox model by texture mapping, so that the image or video is accurately added to the target area, and pixel-level alignment is achieved in the skybox.

[0055] The mapping method provided in the embodiment of the present application can be used in user devices such as computers, smart phones, tablet computers, head-mounted display devices, etc., to achieve superimposed dynamic effects in static scenes and enhance user experience. For example, a user can select a target area in the scene displayed by the application, and the user device intercepts the target area to obtain a target image, and provides a variety of materials to the user. The target image is processed according to the material selected by the user to obtain the above-mentioned multimedia file, and then the multimedia file is mapped to the above-mentioned target area according to the method provided in the embodiment of the present application. It should be understood that the software and hardware resources for implementing the mapping method provided in the embodiment of the present application can also be deployed in the edge cloud or the central cloud. When the user device displays the panorama, it obtains the user's needs through the interactive interface provided by the application, and sends the user's needs to the edge cloud or the central cloud. The above method is implemented by the software and hardware resources deployed in the edge cloud or the central cloud, and then the result is sent to the user device for display.

[0056] In the embodiment of the present application, the application of the mapping method provided in the embodiment of the present application can be implemented by technologies such as hypertext markup language (HTML), scripting language, graphics library, and three-dimensional development library. For example, in a browser-based application, HTML5 is responsible for describing the structure of the user interface (UI), JavaScript is responsible for the behavior, the rendering engine parses the HTML content and presents it on the user interface, WebGL is responsible for drawing 3D graphics, and three.js or krpano implements upper-level application development. Among them, three.js or krpano is a 3D development library based on WebGL, which encapsulates the underlying complex graphics implementation details.

[0057] The mapping method provided by the embodiment of the present application is described below in conjunction with the accompanying drawings. Figure 1 As shown, Figure 1 1 is a flow chart of a mapping method provided in an embodiment of the present application. The method includes the following S201 to S204.

[0058] S201. Create a 3D scene and skybox.

[0059] The computing device creates a three-dimensional scene, and creates a skybox according to one or more images corresponding to the scene to be displayed, to obtain a VR panorama. For example, a spherical model panorama is converted into a cube skybox. In the embodiment of the present application, a cube skybox with six faces is taken as an example. Optionally, the computing device can further tile each face of the cube to improve the loading speed and user experience during display.

[0060] S202. Determine a target area in the sky box, and capture an image in the target area to obtain a target image.

[0061] In an embodiment of the present application, a user can select a target area in the panorama displayed by the sky box as needed, capture an image corresponding to the target area, save it as an image, and obtain a target image, the size of which is the same as the size of the target area.

[0062] The target area spans k planes of the skybox, where k is a positive integer and the value of k is less than or equal to the number of planes included in the skybox. For example, if the skybox is a cube, then k is less than or equal to 6. That is, the target area can be an area located on one plane of the skybox, or it can be an area spanning multiple planes of the skybox. Figure 2 As shown in the dashed box, Figure 2 It is a schematic diagram of a target area provided in an embodiment of the present application. Figure 2 exemplarily shows the case where the target area is located on one plane of the skybox, and the case where the target area spans two planes and three planes of the skybox. It should be understood that Figure 2 This is just an example. When the target area is on one plane of the skybox, the target area can be the area of ​​any plane of the skybox; when the target area spans two or three planes of the skybox, the target area can also be the area of ​​the other two or three planes of the skybox. Figure 2 The other methods shown span two or three planes of the sky box, which are not listed here one by one; the target area can also span more planes of the sky box, for example, span 4 or 5 planes of the sky box, etc., which are not shown here one by one.

[0063] In the embodiment of the present application, if the target area spans k planes of the skybox, the target area includes k sub-areas, and a sub-area is an area of ​​the target area on a plane of the skybox. The above-mentioned target image also includes k sub-areas, and the k sub-areas of the target image correspond one-to-one with the k sub-areas of the target area, that is, the image of a sub-area of ​​the target image is the image corresponding to a sub-area of ​​the target area in the skybox.

[0064] S203. Process the target image to obtain a multimedia file.

[0065] In an embodiment of the present application, the computing device processes the target image based on the above-mentioned target image to obtain a corresponding multimedia file, which may be an image or video obtained based on the target image. For example, the target area is a cabinet with a light, and the light in the cabinet is off in the sky box. After obtaining the target image corresponding to the cabinet by intercepting the target area, the light in the cabinet can be set to the on state through image processing technology (such as a gradient animation algorithm), and processed into a dynamic image that alternates between off and shining states, to achieve a local dynamic effect of turning on and off the light; or add a neon light to the cabinet to achieve a dynamic effect of flashing neon lights and export a video. It should be understood that the target area may also contain other objects or scenes, and the gradient animation algorithm may be a Tween algorithm, etc., which is not specifically limited in the embodiment of the present application.

[0066] It should be noted that when the multimedia file is an image, the size of the image is the same as the size of the target image. If the multimedia file is a video, the size of each frame in the video is the same as the size of the target image. Since the target image is captured from the target area, the size of the multimedia file is the same as the size of the target area in the sky box.

[0067] Since the multimedia file is obtained after processing based on the target image, the multimedia file also includes k sub-regions. The k sub-regions of the multimedia file correspond one-to-one to the k sub-regions of the target image, and the k sub-regions of the multimedia file correspond one-to-one to the k sub-regions of the target region.

[0068] S204. Perform texture mapping on the multimedia file according to the k groups of mapping data corresponding to the multimedia file, and map the multimedia file to the target area.

[0069] In the embodiment of the present application, the above k groups of mapping data correspond to the k sub-areas of the target area one by one, and the k groups of mapping data are used to map the above multimedia file to the target area of ​​the skybox, and each group of mapping data includes position data and a rotation angle. The rotation angle indicates the angle that a sub-area of ​​the multimedia file needs to rotate relative to a preset initial position when mapping a sub-area of ​​the multimedia file to the area indicated by the position data; the initial position can be a plane parallel to any plane of the skybox, or a plane of the skybox; the position data indicates the position of a sub-area of ​​the above target area, indicating that a sub-area of ​​the multimedia file is mapped to a sub-area of ​​the target area on the skybox model.

[0070] It should be understood that, according to the initial position and the rotation angle, it can be determined to which plane of the sky box a sub-area of ​​the multimedia file is mapped, and then according to the position data, it can be determined to map the area to a specific position of a plane of the sky box. If the above-mentioned target area is only located in one plane of the sky box, k is equal to 1, and according to the rotation angle, it can be determined to map the multimedia file to the plane to which the target area belongs, and according to the position data, it can be determined to map the multimedia file to the specific position of the plane, that is, the position of the target area. If the above-mentioned target area spans multiple planes of the sky box, that is, when the value of k is greater than 1, the above-mentioned target area has k sub-areas, and the multimedia file also corresponds to k sub-areas, and the k sub-areas of the target area correspond to the k sub-areas of the multimedia file one by one, and the sizes of the two corresponding sub-areas are the same. Then the computing device can determine which plane of the sky box a sub-area of ​​the multimedia file is mapped to according to the rotation angle in a set of mapping data, and the sub-area of ​​the multimedia file can be mapped to a sub-area of ​​the corresponding target area according to the position data in the group of mapping data. It should be noted that when multiple sub-areas of a multimedia file are to be mapped to multiple sub-areas of a target area, the multimedia file is not divided into multiple sub-areas and then mapped to the sky box separately, but the sub-area of ​​the single multimedia file is rotated according to the above-mentioned rotation angle and then mapped to a sub-area of ​​the target area on the sky box.

[0071] Taking the target area across multiple planes of the skybox as an example, the above position data refers to the coordinates of at least one point on a sub-area of ​​the target area in the O-xyz coordinate system. For example, in the embodiment of the present application, the coordinates of the center point of the sub-area are used as the position data. Figure 3 As shown, Figure 3 It is a schematic diagram of a three-dimensional coordinate system provided in an embodiment of the present application. Figure 3 In the 3D coordinate system O-xyz, the center of the cube skybox is used as the origin of the coordinates, and the six planes of the skybox are named front (F), back (B), left (L), right (R), top (A), and bottom (D). The plane located in the positive direction of the z axis is the F plane, the plane located in the negative direction of the z axis is the B plane, the plane located in the positive direction of the x axis is the R plane, the plane located in the negative direction of the x axis is the L plane, the plane located in the positive direction of the y axis is the A plane, and the plane located in the negative direction of the y axis is the D plane.

[0072] Figure 3 In the example, the target area spans the L plane and the B plane, and the preset initial position is the B plane, to illustrate the above position data and rotation angle. When the target area spans two planes of the sky box, that is, the target area includes two sub-areas, the multimedia file also includes two sub-areas, and the two sub-areas of the multimedia file are mapped to the two sub-areas of the target area. Figure 3The coordinates of the center point of a sub-region of the target area on the L surface are the coordinates of point O1. If the counterclockwise rotation is taken as the positive direction, the rotation angle corresponding to the sub-region to be mapped to the L surface in the multimedia file is π / 2; the coordinates of the center point of a sub-region of the target area on the B surface are the coordinates of O2. The rotation angle corresponding to the sub-region to be mapped to the B surface in the multimedia file is 0.

[0073] In a possible implementation, each group of mapping data further includes an area range, which is used to indicate mapping the area specified by the area range in the multimedia file to the position indicated by the position data in the group of mapping data, that is, the area range is used to determine a sub-area in the multimedia file.

[0074] In the embodiment of the present application, the method for determining k groups of mapping data corresponding to the multimedia file is described in detail later and will not be repeated here.

[0075] In an embodiment of the present application, taking the example that the target area includes k sub-areas, after determining k groups of mapping data through the above method, for each sub-area of ​​the multimedia file, a sub-area in the multimedia file is mapped to a sub-area of ​​the target area on the sky box through texture technology through a corresponding set of mapping data.

[0076] Exemplarily, if the value of k is 3, the target area includes three sub-areas A1, A2 and A3, and the multimedia file includes three sub-areas B1, B2 and B3. Among them, sub-area B1 corresponds to sub-area A1, sub-area B2 corresponds to sub-area A2, and sub-area B3 corresponds to sub-area A3. After obtaining three sets of mapping data C1, C2 and C3, sub-area B1 is mapped to sub-area A1 according to mapping data C1, sub-area B2 is mapped to sub-area A2 according to mapping data C2, and sub-area B3 is mapped to sub-area A3 according to mapping data C3.

[0077] In the embodiment of the present application, the method for mapping multimedia files according to k groups of mapping data will be described in detail later and will not be described here in detail.

[0078] In a possible implementation, before texture mapping is performed on the multimedia file according to the k groups of mapping data, the computing device needs to create a grid, and the computing device determines the number of grids to be created according to the number of planes across the target area. The computing device creates k grids, and then maps the multimedia file to the target area of ​​the sky box according to the k sub-areas of the multimedia file, the k groups of mapping data, and the k grids. The k groups of mapping data, the k grids, the k sub-areas of the target area, and the k sub-areas of the multimedia file correspond one to one, and each grid is used for mapping a sub-area of ​​the multimedia file.

[0079] It should be understood that when implementing VR panorama, the computing device needs to create a texture corresponding to the multimedia file before creating k grids. When the multimedia file is a video, a video texture corresponding to the multimedia file is created. When the multimedia file is an image, a picture texture corresponding to the multimedia file is created; then the basic material and plane geometry corresponding to the multimedia file are created.

[0080] The following describes a method for a computing device to determine k groups of mapping data corresponding to a multimedia file in conjunction with the accompanying drawings.

[0081] In the embodiment of the present application, when determining the above k groups of mapping data, the center of the cube skybox is used as the coordinate origin to establish the following Figure 3 In the three-dimensional coordinate system O-xyz shown, the side length of the cube skybox is L. If a sub-area of ​​the multimedia file needs to be mapped to the F, B, L and R surfaces of the skybox, the B surface of the skybox is set as the initial position, with the counterclockwise rotation around the y-axis as the positive direction; if a sub-area of ​​the multimedia file needs to be mapped to the A and D surfaces of the skybox, the counterclockwise rotation around the x-axis is the positive direction.

[0082] In one possible implementation, when determining the above k groups of mapping data, the computing device first obtains the length and width of each sub-area of ​​the target area and the side length of the cube sky box; then determines the above k groups of mapping data based on the side length L of the cube sky box and the length and width of each sub-area of ​​the target area.

[0083] In another possible implementation, when determining the k groups of mapping data, the computing device first obtains the length and width of each sub-area of ​​the target area, the side length of the cube skybox, and the offset of a vertex of a sub-area of ​​the target area on the plane where the sub-area is located. The offset can be represented by the coordinates of a vertex of the sub-area on the plane to which it belongs. Figure 4 As shown, Figure 4 It is a schematic diagram of an offset provided in an embodiment of the present application. Figure 4 It is shown that when the target area spans two planes of the sky box, the offset of a vertex T of the sub-area A1 of the target area, the coordinates of the vertex T are (X, Y), that is, the offset of the sub-area A1 is (X, Y). The computing device then determines the above k groups of mapping data based on the side length L of the cube sky box, the length and width of each sub-area of ​​the target area, and the offset. It should be understood that when a vertex of the target area is not offset relative to a plane of the above sky box, it can be regarded as an offset of 0. When obtaining the offset, the offset of any vertex of any sub-area of ​​the target area can be selected, and the embodiments of the present application are not specifically limited.

[0084] It should be noted that in actual applications, the computing device will map the above multimedia files to the uv coordinate system. When determining the above area range, the computing device determines the area range in each set of mapping data based on the uv coordinate system. The following takes the L and B surfaces of the target area cross-domain skybox as an example to introduce the method for the computing device to determine the above area range based on the uv coordinate system. Figure 5 As shown, Figure 5 It is a schematic diagram of mapping a multimedia file to a uv coordinate system provided by an embodiment of the present application. In the uv coordinate system, the length and width of the multimedia file are both regarded as 1. Figure 5 In the figure, the target area includes sub-area A1 of the L surface and sub-area A2 of the B surface, the multimedia file includes sub-area B1 and sub-area B2, sub-area B1 corresponds to sub-area A1, sub-area B2 corresponds to sub-area A2, the length and width of sub-area A1 are w1 and h1 respectively, the length and width of sub-area A2 are w2 and h2 respectively, wherein h1=h2. Since the size of the multimedia file is the same as the size of the target area, in the uv coordinate system, sub-area B1 is an area determined by the four coordinates (0, 0), (0, 1), (w1 / (w1+w2), 1) and (w1 / (w1+w2), 0), and the sub-area B1 determined by the area range needs to be mapped to sub-area A1; sub-area B2 is an area determined by the four coordinates (w1 / (w1+w2), 1), (w1 / (w1+w2), 0), (1, 0) and (1, 1), and the sub-area B2 determined by the area range needs to be mapped to sub-area A2.

[0085] The following describes methods for a computing device to determine k groups of mapping data corresponding to a multimedia file when a target area spans different numbers of planes of a sky box.

[0086] In one possible implementation, Figure 6 As shown, Figure 6 It is a schematic diagram of a target area on a plane provided in an embodiment of the present application. Figure 6 In the example, the target area is on the L plane. When the target area is intercepted to obtain the target image, the computing device obtains the length w and width h of the target area, and obtains the offset of the target area. The offset refers to the coordinates of a vertex of the target area on the L plane. Figure 6 As shown, Figure 6 , a schematic diagram of a rectangular coordinate system xOy established with the L plane is shown, and the coordinates of a vertex T of the target area are (X1, Y1).

[0087] After obtaining the length and width of the target area and a vertex coordinate T, the computing device can determine the coordinates of the center point O1 of the target area in the three-dimensional coordinate system O-xyz as The above mapping data includes the data shown in Table 1 below. The mapping data indicates that the multimedia file is rotated by π / 2 around the y axis from the initial position and mapped to the center The area of ​​​​the multimedia file is mapped to Place.

[0088] Table 1

[0089]

[0090] Optionally, if the computing device maps the multimedia file to the uv coordinate system, since the target area is located in only one plane, and both the target area and the multimedia file include only one sub-area, the computing device determines the area range as the range determined by the four coordinate points (0, 0), (0, 1), (1, 1) and (1, 0). The mapping data includes the data shown in Table 2 below. The mapping data indicates that the area range of the multimedia file is rotated by π / 2 around the y axis from the initial position and mapped to the center The area, that is, the center of the above area is mapped to Place.

[0091] Table 2

[0092]

[0093] In one possible implementation, Fig. 7A As shown, Fig. 7A This is a schematic diagram of a target area spanning two planes provided in an embodiment of the present application. Fig. 7A In the target area, the first plane and the second plane of the skybox are spanned. For example, the first plane and the second plane are the L plane and the B plane of the skybox. When the computing device intercepts the target image of the target image area, it obtains the length and width of each sub-area. The target area includes the sub-area A1 of the L plane and the sub-area A2 of the B plane. The length and width of the sub-area A1 are w1 and h1 respectively, and the length and width of the sub-area A2 are w2 and h2 respectively. The offset (X2, Y2) of the vertex T of one of the sub-areas A1 is obtained. Fig. 7A In the example, h1=h2.

[0094] After obtaining the length and width of each sub-region of the target region and a vertex coordinate T, the computing device can determine the coordinates of the center point of each sub-region in the three-dimensional coordinate system O-xyz. The coordinates of the center point O1 of the sub-region A1 in the three-dimensional coordinate system are The coordinates of the center point O2 of sub-area A2 in the three-dimensional coordinate system are

[0095] The above-mentioned target area includes two sub-areas A1 and A2, and the multimedia file also includes two sub-areas: a first sub-area B1 and a second sub-area B2. Among them, the first sub-area B1 is the part of the multimedia file with a length of w1 and a width of h1, and the second sub-area B2 is the part of the multimedia file with a length of w2 and a width of h2. When mapping the multimedia file to the target area, it is necessary to map the first sub-area B1 to sub-area A1, and map the second sub-area B2 to sub-area A2. Since the initial position is the B surface and sub-area A1 is located on the L surface of the sky box, the computing device determines that the rotation angle corresponding to the first sub-area B1 is π / 2 around the y-axis, and the rotation angle corresponding to the second sub-area B2 is 0 degrees around the y-axis. The computing device determines that the above-mentioned mapping data includes the data shown in Table 3 below, which indicates that the first sub-area B1 of the multimedia file is rotated from the initial position around the y-axis by π / 2 and mapped to the center is The center of the first sub-area B1 is mapped to The second sub-area B2 of the multimedia file is not rotated from the initial position and mapped to the center The center of the second sub-area B2 is mapped to Place.

[0096] Table 3

[0097]

[0098]

[0099] Optionally, if the computing device maps the multimedia file into the uv coordinate system, such as Figure 5 As shown in . Since the size of the target area is the same as the size of the multimedia file, the computing device can determine the area range corresponding to each sub-area in the uv coordinate system based on the length and width of each sub-area obtained. Among them, the area range corresponding to the first sub-area B1 is the area determined by the four coordinates (0, 0), (0, 1), (w1 / (w1+w2), 1) and (w1 / (w1+w2), 0), and the area range corresponding to the second sub-area B2 is the area determined by the four coordinates (w1 / (w1+w2), 1), (w1 / (w1+w2), 0), (1, 0) and (1, 1). The above mapping data includes the data shown in Table 4 below. The mapping data indicates that a first sub-area B1 of the multimedia file is determined by four coordinate points (0,0), (0,1), (w1 / (w1+w2),1) and (w1 / (w1+w2),0) in the uv coordinate system, and the first sub-area B1 is rotated by π / 2 around the y axis from the initial position to the center of The area, that is, the center of the above area is mapped to In the uv coordinate system, a second sub-region B2 of the multimedia file is determined by the four coordinate points (w1 / (w1+w2),1), (w1 / (w1+w2),0), (1,0) and (1,1), and the second sub-region B2 is mapped from the initial position to the center without rotation. The area, that is, the center of sub-area B2 is mapped to Place.

[0100] Table 4

[0101]

[0102] In one possible implementation, Figure 7B As shown, Figure 7B This is a schematic diagram of another target area spanning two planes provided in an embodiment of the present application. Figure 7B In the example, the first plane and the second plane spanning the target area are the L plane and the A plane of the skybox. When the computing device intercepts the target image of the target area, it obtains the length and width of each sub-area. The target area includes the sub-area A1 of the L plane and the sub-area A2 of the A plane. The length and width of the sub-area A1 are w1 and h1 respectively, and the length and width of the sub-area A2 are w2 and h2 respectively. The offset (X3, Y3) of the vertex T of one of the sub-areas A1 is obtained. Figure 7B In the example, w1=w2, Y3=0.

[0103] After obtaining the length and width of each sub-region of the target region and a vertex coordinate T, the computing device can determine the coordinates of the center point of each sub-region in the three-dimensional coordinate system O-xyz. The coordinates of the center point O1 of the sub-region A1 in the three-dimensional coordinate system are The coordinates of the center point O2 of sub-area A2 in the three-dimensional coordinate system are

[0104] The above-mentioned target area includes two sub-areas A1 and A2, and the multimedia file also includes two sub-areas: a first sub-area B1 and a second sub-area B2. Among them, the first sub-area B1 is the part of the multimedia file with a length of w1 and a width of h1, and the second sub-area B2 is the part of the multimedia file with a length of w2 and a width of h2. When mapping the multimedia file to the target area, it is necessary to map the first sub-area B1 to sub-area A1, and map the second sub-area B2 to sub-area A2. Since the initial position is the B surface, sub-area A1 is located on the L surface of the sky box, so the computing device determines that the rotation angle corresponding to the first sub-area B1 is π / 2 around the y-axis; sub-area A2 is on the A surface, so the computing device determines that the rotation angle corresponding to the second sub-area B2 is π / 2 around the x-axis. The computing device determines that the above-mentioned mapping data includes the data shown in Table 5 below, which indicates that the first sub-area B1 of the multimedia file is rotated from the initial position around the y-axis by π / 2 and mapped to the center is The center of the first sub-area B1 is mapped to The second sub-area B2 of the multimedia file is rotated by π / 2 around the x-axis from the initial position and mapped to the center The center of the second sub-area B2 is mapped to Place.

[0105] Table 5

[0106]

[0107] Optionally, if the computing device maps the multimedia file into the uv coordinate system, such as Figure 7C As shown, Figure 7C It is another schematic diagram of mapping multimedia files into the uv coordinate system provided by an embodiment of the present application. The computing device can determine the area range corresponding to each sub-area in the uv coordinate system based on the length and width of each sub-area obtained. Among them, the computing device determines that the area range corresponding to the first sub-area B1 is the area determined by the four coordinates (0, 0), (0, h1 / (h1+h2)), (h1 / (h1+h2), 1) and (1, 0), and the area range corresponding to the second sub-area B2 is the area determined by the four coordinates (0, h1 / (h1+h2)), (0, 1), (1, 1) and (1, h1 / (h1+h2)). The above-mentioned mapping data includes the data shown in Table 6 below. The mapping data indicates that a first sub-area B1 of the multimedia file is determined by four coordinate points (0, 0), (0, h1 / (h1+h2)), (h1 / (h1+h2), 1) and (1, 0) in the uv coordinate system, and the first sub-area B1 is rotated by π / 2 around the y axis from the initial position to the center of The area, that is, the center of the above area is mapped to In the uv coordinate system, a second sub-region B2 of the multimedia file is determined by four coordinate points (0, h1 / (h1+h2)), (0, 1), (1, 1) and (1, h1 / (h1+h2)). The second sub-region B2 is mapped from the initial position to the center without rotation. The center of the second sub-area B2 is mapped to Place.

[0108] Table 6

[0109]

[0110] Above 7A to 7C Taking the target area shown in the figure spanning two planes of the skybox as an example, a method for determining k groups of mapping data corresponding to a multimedia file and a method for mapping the multimedia file according to the mapping data when the target area spans two planes of the skybox are introduced. It should be understood that there are other cases where the target area spans two planes of the skybox, such as the target area spanning the L surface and the F surface of the skybox, the target area spanning the F surface and the R surface of the skybox, the target area spanning the B surface and the D surface of the skybox, etc. When the target area spans two other adjacent planes of the skybox, the method for the computing device to determine k groups of mapping data corresponding to the multimedia file and the method for mapping the multimedia file according to the mapping data are the same as those described above. 7A to 7C The methods in the corresponding embodiments are similar and will not be described again here.

[0111] In one possible implementation, Fig. 8A As shown, Fig. 8A It is a schematic diagram of a target area spanning three planes provided in an embodiment of the present application. Fig. 8A In the target area, the target area spans the L surface, A surface, and B surface of the skybox. When the computing device intercepts the target image of the target area, it obtains the length and width of each sub-area. The target area includes sub-area A1 of the L surface, sub-area A2 of the B surface, and sub-area A3 of the A surface. The length and width of sub-area A1 are w1 and h1 respectively, the length and width of sub-area A2 are w2 and h2 respectively, and the length and width of sub-area A3 are w3 and h3 respectively. Fig. 8A In the example, w1=w3, w2=h3, h1=h2.

[0112] After obtaining the length and width of each sub-region of the target region, the computing device can determine the coordinates of the center point of each sub-region in the three-dimensional coordinate system O-xyz. The coordinates of the center point O1 of the sub-region A1 in the three-dimensional coordinate system are: The coordinates of the center point O2 of sub-area A2 in the three-dimensional coordinate system are The coordinates of the center point O3 of sub-area A3 in the three-dimensional coordinate system are

[0113] The above-mentioned target area includes two sub-areas A1, A2 and A3, and the multimedia file also includes three sub-areas: the first sub-area B1, the second sub-area B2 and the third sub-area B3. Among them, the first sub-area B1 is the part of the multimedia file with a length of w1 and a width of h1, the second sub-area B2 is the part of the multimedia file with a length of w2 and a width of h2, and the third sub-area B3 is the part of the multimedia file with a length of w3 and a width of h3. When mapping the multimedia file to the target area, it is necessary to map the first sub-area B1 to the sub-area A1, the second sub-area B2 to the sub-area A2, and the third sub-area B3 to the sub-area A3. Since the initial position is the B surface, the sub-area A1 is located on the L surface of the sky box, so the computing device determines that the rotation angle corresponding to the first sub-area B1 is π / 2 around the y axis; the sub-area A2 is on the B surface, so the computing device determines that the rotation angle corresponding to the second sub-area B2 is 0 degrees around the y axis; the sub-area A3 is on the A surface, so the computing device determines that the rotation angle corresponding to the third sub-area B3 is π / 2 around the x axis. The computing device determines that the mapping data includes the data shown in Table 7 below. The mapping data indicates that the first sub-area B1 of the multimedia file is rotated by π / 2 around the y-axis from the initial position and mapped to the center The center of the first sub-area B1 is mapped to The second sub-area B2 of the multimedia file is rotated 0 degrees around the y-axis from the initial position and mapped to the center The center of the second sub-area B2 is mapped to The third sub-area B3 of the multimedia file is mapped from the initial position around the x-axis π / 2 to the center The center of the second sub-area B2 is mapped to Place.

[0114] Table 7

[0115]

[0116] Optionally, if the computing device maps the multimedia file into the uv coordinate system, such as Figure 8B As shown, Figure 8BThis is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application. The computing device can determine the area range corresponding to each sub-area in the uv coordinate system according to the length and width of each sub-area obtained. Among them, the computing device determines that the area range corresponding to the first sub-area B1 is the area determined by the four coordinates (0, 0), (0, h1 / (h1+h3)), (w1 / (w1+w2), h1 / (h1+h3)) and (w1 / (w1+w2), 0); the area range corresponding to the second sub-area B2 is the area determined by the four coordinates (w1 / (w1+w2), 0), (w1 / (w1+w2), h1 / (h1+h3)), (1, h2 / (h1+h3)) and (1, 0); the area range corresponding to the third sub-area B3 is the area determined by the four coordinates (0, h1 / (h1+h3)), (0, 1), (w3 / (w1+w2), 1) and (w3 / (w1+w2), h1 / (h1+h3)).

[0117] The mapping data includes the data shown in Table 8. The mapping data indicates that in the uv coordinate system, a first sub-area B1 of the multimedia file is determined by four coordinate points (0, 0), (0, h1 / (h1+h3)), (w1 / (w1+w2), h1 / (h1+h3)) and (w1 / (w1+w2), 0), and the first sub-area B1 is rotated by π / 2 around the y axis from the initial position and mapped to the center The area, that is, the center of the above area is mapped to In the uv coordinate system, a second sub-region B2 of the multimedia file is determined by the four coordinate points (w1 / (w1+w2), 0), (w1 / (w1+w2), h1 / (h1+h3)), (1, h2 / (h1+h3)) and (1, 0), and the second sub-region B2 is mapped from the initial position to the center without rotation. The center of the second sub-area B2 is mapped to In the uv coordinate system, a third sub-region B3 of the multimedia file is determined by four coordinate points (0, h1 / (h1+h3)), (0, 1), (w3 / (w1+w2), 1) and (w3 / (w1+w2), h1 / (h1+h3)), and the third sub-region B3 is rotated π / 2 around the x-axis from the initial position and mapped to the center The area, that is, the center of the above area is mapped to Place.

[0118] Table 8

[0119]

[0120] In one possible implementation, Figure 8C As shown, Figure 8C This is a schematic diagram of another target area spanning three planes provided in an embodiment of the present application. Figure 8C In the target area, the target area spans the L, B, and R surfaces of the skybox. When the computing device intercepts the target image of the target area, it obtains the length and width of each sub-area. The target area includes sub-area A1 of the L surface, sub-area A2 of the B surface, and sub-area A3 of the R surface. The length and width of sub-area A1 are w1 and h1 respectively, the length and width of sub-area A2 are w2 and h2 respectively, and the length and width of sub-area A3 are w3 and h3 respectively. The offset (X4, Y4) of the vertex T of one of the sub-areas A1 is obtained. Figure 8C In the example, h1=h2=h3.

[0121] After obtaining the length and width of each sub-region of the target region, the computing device can determine the coordinates of the center point of each sub-region in the three-dimensional coordinate system O-xyz. The coordinates of the center point O1 of the sub-region A1 in the three-dimensional coordinate system are: The coordinates of the center point O2 of sub-area A2 in the three-dimensional coordinate system are The coordinates of the center point O3 of sub-area A3 in the three-dimensional coordinate system are

[0122] The above-mentioned target area includes two sub-areas A1, A2 and A3, and the multimedia file also includes three sub-areas: the first sub-area B1, the second sub-area B2 and the third sub-area B3. Among them, the first sub-area B1 is the part of the multimedia file with a length of w1 and a width of h1, the second sub-area B2 is the part of the multimedia file with a length of w2 and a width of h2, and the third sub-area B3 is the part of the multimedia file with a length of w3 and a width of h3. When mapping the multimedia file to the target area, it is necessary to map the first sub-area B1 to the sub-area A1, the second sub-area B2 to the sub-area A2, and the third sub-area B3 to the sub-area A3. Since the initial position is the B surface, the sub-area A1 is located on the L surface of the sky box, so the computing device determines that the rotation angle corresponding to the first sub-area B1 is π / 2 around the y axis; the sub-area A2 is on the B surface, so the computing device determines that the rotation angle corresponding to the second sub-area B2 is 0 degrees around the y axis; the sub-area A3 is on the R surface, so the computing device determines that the rotation angle corresponding to the third sub-area B3 is -π / 2 around the y axis. The computing device determines that the mapping data includes the data shown in Table 9 below. The mapping data indicates that the first sub-area B1 of the multimedia file is rotated by π / 2 around the y-axis from the initial position and mapped to the center The center of the first sub-area B1 is mapped to The second sub-area B2 of the multimedia file is rotated 0 degrees around the y-axis from the initial position and mapped to the center The center of the second sub-area B2 is mapped to The third sub-area B3 of the multimedia file is mapped from the initial position around the y-axis -π / 2 to the center The area, that is, the center of the third sub-area B3 is mapped to Place.

[0123] Table 9

[0124]

[0125] Optionally, if the computing device maps the multimedia file into the uv coordinate system, such as Fig.8D As shown, Fig.8D This is another schematic diagram of mapping a multimedia file into a uv coordinate system provided by an embodiment of the present application. The computing device can determine the area range corresponding to each sub-area in the uv coordinate system according to the length and width of each sub-area obtained. Among them, the computing device determines that the area range corresponding to the first sub-area B1 is the area determined by the four coordinates (0, 0), (0, 1), (w1 / (w1+w2+w3), 1) and (w1 / (w1+w2+w3), 0); the area range corresponding to the second sub-area B2 is the area determined by the four coordinates (w1 / (w1+w2+w3), 0), (w1 / (w1+w2+w3), 1), ((w1+w2) / (w1+w2+w3), 1) and ((w1+w2) / (w1+w2+w3), 0); the area range corresponding to the third sub-area B3 is the area determined by the four coordinates ((w1+w2) / (w1+w2+w3), 0), ((w1+w2) / (w1+w2+w3), 1), (1, 1) and (1, 0).

[0126] The mapping data includes the data shown in Table 10. The mapping data indicates that a first sub-area B1 of the multimedia file is determined by four coordinate points (0, 0), (0, 1), (w1 / (w1+w2+w3), 1) and (w1 / (w1+w2+w3), 0) in the uv coordinate system, and the first sub-area B1 is rotated by π / 2 around the y axis from the initial position and mapped to the center The area, that is, the center of the above area is mapped to In the uv coordinate system, a second sub-region B2 of the multimedia file is determined by the four coordinate points (w1 / (w1+w2+w3), 0), (w1 / (w1+w2+w3), 1), ((w1+w2) / (w1+w2+w3), 1) and ((w1+w2) / (w1+w2+w3), 0), and the second sub-region B2 is mapped from the initial position to the center without rotation. The center of the second sub-area B2 is mapped to In the uv coordinate system, a third sub-region B3 of the multimedia file is determined by the four coordinate points ((w1+w2) / (w1+w2+w3), 0), ((w1+w2) / (w1+w2+w3), 1), (1, 1) and (1, 0), and the third sub-region B3 is rotated -π / 2 around the y axis from the initial position to the center. The area, that is, the center of the above area is mapped to Place.

[0127] Table 10

[0128]

[0129] Above FIG. 8A to FIG. 8D Taking the target area spanning three planes of the skybox as an example, a method for determining k groups of mapping data corresponding to a multimedia file and a method for mapping the multimedia file according to the mapping data when the target area spans three planes of the skybox are introduced. It should be understood that there are other situations where the target area spans three planes of the skybox, such as Fig. 8E As shown in the dashed box, Fig. 8E is a schematic diagram of a target area spanning three planes provided by an embodiment of the present application. When the target area spans the other three planes of the sky box, the method for the computing device to determine the k groups of mapping data corresponding to the multimedia file and the method for mapping the multimedia file according to the mapping data are the same as those described above. FIG. 8A to FIG. 8D The methods in the corresponding embodiments are similar and will not be described again here.

[0130] In one possible implementation, Fig. 9A As shown, Fig. 9A It is a schematic diagram of a target area spanning four planes provided in an embodiment of the present application. Fig. 9AIn the target area, the target area spans the L surface, B surface, R surface and F surface of the skybox. When the computing device intercepts the target image of the target area, it obtains the length and width of each sub-area. The target area includes sub-area A1 of the L surface, sub-area A2 of the B surface, sub-area A3 of the R surface and sub-area A4 of the F surface. The length and width of sub-area A1 are w1 and h1 respectively, the length and width of sub-area A2 are w2 and h2 respectively, the length and width of sub-area A3 are w3 and h3 respectively, the length and width of sub-area A4 are w4 and h4 respectively, and the offset (X5, Y5) of the vertex T of one of the sub-areas A1 is obtained. In this case, Figure 8C In the example, h1=h2=h3=h4, X5=0.

[0131] After obtaining the length and width of each sub-region of the target region, the computing device can determine the coordinates of the center point of each sub-region in the three-dimensional coordinate system O-xyz. The coordinates of the center point O1 of the sub-region A1 in the three-dimensional coordinate system are: The coordinates of the center point O2 of sub-area A2 in the three-dimensional coordinate system are The coordinates of the center point O3 of sub-area A3 in the three-dimensional coordinate system are The coordinates of the center point O4 of sub-area A4 in the three-dimensional coordinate system are

[0132] The target area includes two sub-areas A1, A2, A3 and A4, and the multimedia file also includes four sub-areas: a first sub-area B1, a second sub-area B2, a third sub-area B3 and a fourth sub-area B4. The first sub-area B1 is a portion of the multimedia file with a length of w1 and a width of h1, the second sub-area B2 is a portion of the multimedia file with a length of w2 and a width of h2, the third sub-area B3 is a portion of the multimedia file with a length of w3 and a width of h3, and the fourth sub-area B4 is a portion of the multimedia file with a length of w4 and a width of h4. When mapping the multimedia file to the target area, it is necessary to map the first sub-area B1 to the sub-area A1, the second sub-area B2 to the sub-area A2, the third sub-area B3 to the sub-area A3, and the fourth sub-area B4 to the sub-area A4.

[0133] Since the initial position is the B surface, and sub-area A1 is located on the L surface of the sky box, the computing device determines that the rotation angle corresponding to the first sub-area B1 is π / 2 around the y-axis; sub-area A2 is on the B surface, so the computing device determines that the rotation angle corresponding to the second sub-area B2 is 0 degrees around the y-axis; sub-area A3 is on the R surface, so the computing device determines that the rotation angle corresponding to the third sub-area B3 is -π / 2 around the y-axis; sub-area A4 is on the F surface, so the computing device determines that the rotation angle corresponding to the third sub-area B3 is 0 degrees around the y-axis. The computing device determines that the above-mentioned mapping data includes the data shown in Table 11 below, which indicates that the sub-area B1 of the multimedia file is rotated from the initial position around the y-axis by π / 2 and mapped to the center The center of the first sub-area B1 is mapped to The second sub-area B2 of the multimedia file is rotated 0 degrees around the y-axis from the initial position and mapped to the center The center of the second sub-area B2 is mapped to The third sub-area B3 of the multimedia file is mapped from the initial position around the y-axis -π / 2 to the center The area, that is, the center of the third sub-area B3 is mapped to The fourth sub-area B4 of the multimedia file is rotated around the y-axis by π from the initial position and mapped to the center The center of the fourth sub-region B4 is mapped to Place.

[0134] Table 11

[0135]

[0136] Optionally, if the computing device maps the multimedia file into the uv coordinate system, such as Fig. 9B As shown, Fig. 9BIt is another schematic diagram of mapping multimedia files to the uv coordinate system provided by an embodiment of the present application. The computing device can determine the area range corresponding to each sub-area in the uv coordinate system based on the length and width of each sub-area obtained. Among them, the computing device determines that the area range corresponding to the first sub-area B1 is the area determined by the four coordinates (0, 0), (0, 1), (w1 / (w1+w2+w3+w4), 1) and (w1 / (w1+w2+w3+w4), 0), the area range corresponding to the second sub-area B2 is the area determined by the four coordinates (w1 / (w1+w2+w3+w4), 0), (w1 / (w1+w2+w3+w4), 1), ((w1+w2) / (w1+w2+w3+w4), 1) and ((w1+w2) / (w1+w2+w3+w4), 0), and the area range corresponding to the third sub-area B3 is the area determined by the four coordinates (w1 / (w1+w2+w3+w4), 0). The domain range is the area determined by the four coordinates ((w1+w2) / (w1+w2+w3+w4), 0), ((w1+w2) / (w1+w2+w3+w4), 1), ((w1+w2+w3) / (w1+w2+w3+w4), 1) and ((w1+w2+w3) / (w1+w2+w3+w4), 0). The area range corresponding to the fourth sub-area B4 is the area determined by the four coordinates ((w1+w2+w3) / (w1+w2+w3+w4), 0), ((w1+w2+w3) / (w1+w2+w3+w4), 1), (1, 1) and (1, 0).

[0137] The mapping data includes the data shown in Table 12. The mapping data indicates that in the uv coordinate system, a first sub-area B1 of the multimedia file is determined by four coordinate points (0, 0), (0, 1), (w1 / (w1+w2+w3+w4), 1) and (w1 / (w1+w2+w3+w4), 0), and the first sub-area B1 is rotated by π / 2 around the y axis from the initial position and mapped to the center The area, that is, the center of the above area is mapped to In the uv coordinate system, a second sub-region B2 of the multimedia file is determined by the four coordinate points (w1 / (w1+w2+w3+w4), 0), (w1 / (w1+w2+w3+w4), 1), ((w1+w2) / (w1+w2+w3+w4), 1) and ((w1+w2) / (w1+w2+w3+w4), 0), and the second sub-region B2 is mapped from the initial position to the center without rotation. The center of the second sub-area B2 is mapped to In the uv coordinate system, a third sub-region B3 of the multimedia file is determined by the four coordinate points ((w1+w2) / (w1+w2+w3+w4), 0), ((w1+w2) / (w1+w2+w3+w4), 1), ((w1+w2+w3) / (w1+w2+w3+w4), 1) and ((w1+w2+w3) / (w1+w2+w3+w4), 0), and the third sub-region B3 is rotated -π / 2 around the y-axis from the initial position to the position centered at The area, that is, the center of the above area is mapped to In the uv coordinate system, a fourth sub-region B4 of the multimedia file is determined by the four coordinate points ((w1+w2+w3) / (w1+w2+w3+w4), 0), ((w1+w2+w3) / (w1+w2+w3+w4), 1), (1, 1) and (1, 0), and the fourth sub-region B4 is rotated by π around the y axis from the initial position to be mapped to the center The area, that is, the center of the above area is mapped to Place.

[0138] Table 12

[0139]

[0140] Above Fig. 9A and Fig. 9B Taking the target area shown in the figure spanning four planes of the skybox as an example, a method for determining k groups of mapping data corresponding to a multimedia file and a method for mapping the multimedia file according to the mapping data when the target area spans four planes of the skybox are introduced. It should be understood that there are other cases where the target area spans three planes of the skybox, such as spanning four surfaces of the skybox, namely, the L surface, the A surface, the R surface, and the D surface, and spanning four surfaces of the skybox, namely, the L surface, the B surface, the A surface, and the R surface. When the target area spans the other four planes of the skybox, the method for the computing device to determine k groups of mapping data corresponding to the multimedia file and the method for mapping the multimedia file according to the mapping data are the same as those described above. Fig. 9A and Fig. 9B The methods in the corresponding embodiments are similar and will not be described again here.

[0141] It should be understood that the target area can also span more planes of the sky box, such as 5 planes, 6 planes, etc. When the target area spans more planes of the sky box, the method for the computing device to determine the k groups of mapping data corresponding to the multimedia files and the method for mapping the multimedia files according to the mapping data are similar to the methods in the above embodiments and will not be repeated here.

[0142] It should be noted that, for the above method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited to the described order of actions. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.

[0143] Other reasonable step combinations that can be thought of by those skilled in the art based on the above description also fall within the scope of protection of the present invention. Secondly, those skilled in the art should also be familiar with the fact that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.

[0144] The data method provided by the embodiment of the present application is described in detail above with reference to the accompanying drawings. Figures 10 to 12 , describing the mapping device and computing equipment provided according to the embodiments of the present application.

[0145] Fig.10 is a schematic diagram of a mapping device provided in an embodiment of the present application. The mapping device 110 includes an interception module 111, a processing module 112 and a mapping module 113, wherein:

[0146] The interception module 111 is used to intercept the target area in the sky box to obtain the target image; wherein the target area spans k planes of the sky box, and the method of spanning k planes of the sky box by the target area can refer to the above Figures 2 to 9B , I will not go into details here.

[0147] The processing module 112 is used to obtain a multimedia file based on the target image, wherein the multimedia file is an image or a video; determine k groups of mapping data corresponding to the multimedia file, wherein the mapping data includes position data and rotation angles, and the k groups of mapping data correspond to the k sub-regions of the multimedia file. The method for the processing module 112 to obtain the multimedia file based on the target image can refer to the relevant description in S203 above, which will not be repeated here; the method for the processing module 112 to determine the mapping data can refer to S204 above and S206 above. Figures 6 to 9B The relevant description will not be repeated here.

[0148] The mapping module is used to perform texture mapping on the multimedia file according to the k groups of mapping data, and map the multimedia file to the target area. The mapping method performed by the mapping module 113 can refer to the above S204 and the above Figures 6 to 9B The relevant description will not be repeated here.

[0149] It should be understood that the mapping device 110 of the embodiment of the present application can be implemented by a central processing unit (CPU) or a graphics processing unit (GPU), etc., or by an application-specific integrated circuit (ASIC), or a programmable logic device (PLD), and the above PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. It can also be implemented by software Figure 1 The mapping method shown in, that is, the mapping device 110 and its various modules can also be software modules, which can be deployed on a user device or in a server that provides the mapping method. The server can be a server of a central cloud or an edge cloud, which will not be repeated here.

[0150] Specifically, the operation of the mapping device 110 to implement mapping of multimedia files can refer to the operation steps of the method executed by the computing device in the above method embodiment, and will not be described in detail here.

[0151] See also Fig.11 , Fig.11 8 is a schematic diagram of a computing device 800 provided in an embodiment of the present application. The computing device 800 includes: one or more processors 810, a communication interface 820, and a memory 830. The processor 810, the communication interface 820, and the memory 830 are interconnected via a bus 840.

[0152] The specific implementation of the processor 810 performing various operations may refer to the specific operations in the above method embodiments, which will not be described in detail here.

[0153] The processor 810 may have a variety of specific implementation forms, for example, the processor 810 may be a CPU or a graphics processing unit (GPU), and the processor 810 may also be a single-core processor or a multi-core processor. The processor 810 may be a combination of a CPU and a hardware chip. The hardware chip may be an ASIC, a PLD, or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL, or any combination thereof. The processor 810 may also be implemented using a logic device with built-in processing logic, such as an FPGA or a digital signal processor (DSP).

[0154] The communication interface 820 may be a wired interface or a wireless interface for communicating with other modules or devices. The wired interface may be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface may be a cellular network interface or a wireless local area network interface, etc.

[0155] The memory 830 may be a non-volatile memory, such as a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 830 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0156] The memory 830 may be used to store program instructions and data, so that the processor 810 calls the program instructions stored in the memory 830 to execute the operation steps of implementing multimedia file mapping in the above method embodiment. In addition, the computing device 800 may include a Fig.11 Show more or fewer components, or have different component configurations.

[0157] The bus 840 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 840 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0158] Optionally, the computing device 800 may further include an input / output interface 850 , to which an input / output device is connected for receiving input information and outputting operation results.

[0159] Specifically, the specific implementation of the above-mentioned computing device 800 performing various operations can refer to the specific operations of the computing device in the above-mentioned method embodiment, which will not be repeated here.

[0160] Since the method provided in the present application can be implemented by software, the present application also provides a computing cluster, which includes one or more computing devices. The multiple modules included in the mapping device 110 can be distributed and deployed on multiple computing devices in the same environment or different environments. Therefore, the present application also provides a Fig.12 The system shown includes multiple computing devices 800, each of which includes one or more processors 810, a communication interface 820, and a memory 830, wherein the processor 810, the communication interface 820, and the memory 830 are interconnected via a bus 840, and the bus 840 may include a path for transmitting information between various components of the computing device 800 (e.g., the processor 810, the communication interface 820, and the memory 830). The specific form of the processor 810 may refer to the above description of the processor 810 in the computing device 800, the specific form of the communication interface 820 may refer to the above description of the communication interface 820 in the computing device 800, and the specific form of the memory 830 may refer to the above description of the memory 830 in the computing device 800, which will not be repeated here.

[0161] A communication path is established between each of the computing devices 800 through a communication network. Any one or more of the multiple modules of the mapping device 110 are run on each computing device 800. For example, the interception module 111 is deployed in the first computing device, the processing module 112 is deployed in the second computing device, and the mapping module 113 is deployed in the third computing device. Among them, any computing device 800 can be a computer (e.g., a server) in a cloud service platform, or a computer in an edge data center.

[0162] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a processor, the method steps in the above method embodiment can be implemented. The specific implementation of the processor of the computer-readable storage medium in executing the above method steps can refer to the specific operations of the above method embodiment, which will not be repeated here.

[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0164] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).

[0165] The steps in the method of the embodiment of the present application can be adjusted in order, combined or deleted according to actual needs; the modules in the device of the embodiment of the present application can be divided, combined or deleted according to actual needs.

[0166] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A mapping method, It is characterized in that include: Intercepting a target area of ​​the sky box to obtain a target image; wherein the target area spans k planes of the sky box, wherein k is a positive integer; Obtaining a multimedia file based on the target image, wherein the multimedia file is an image or a video; Texture mapping is performed on the multimedia file according to k groups of mapping data corresponding to the multimedia file, and the multimedia file is mapped to the target area; the mapping data includes position data and a rotation angle, and the k groups of mapping data correspond to the k sub-areas of the multimedia file one by one.

2. The method according to claim 1, It is characterized in that The position data indicates mapping a sub-region in the multimedia file to the region indicated by the position data, and the rotation angle indicates an angle of rotation relative to a preset initial position when mapping a sub-region in the multimedia file to the region indicated by the position data.

3. The method according to claim 1 or 2, It is characterized in that Before performing texture mapping on the multimedia file according to the k groups of mapping data, the method further comprises: Creating k grids; wherein the k grids, the k groups of mapping data and the k sub-areas of the multimedia file correspond one to one; Performing texture mapping on the multimedia file according to the k groups of mapping data includes: Texture mapping is performed according to the multimedia file, the k grids, and the k groups of mapping data.

4. The method according to any one of claims 1 to 3, It is characterized in that Also includes: Obtain the lengths and widths of k sub-regions of the target region on their respective planes, wherein a portion of the target region on a plane of the sky box is a sub-region of the target region; According to the length and width of each sub-area of ​​the target area on the plane to which they belong, the mapping data corresponding to each sub-area of ​​the multimedia file is determined to obtain the k groups of mapping data; wherein the k sub-areas of the target area correspond one-to-one to the k sub-areas of the multimedia file, and the sizes of the corresponding sub-areas in each group are the same.

5. The method according to any one of claims 1 to 4, It is characterized in that In the case where the target area is located on the first plane of the sky box, the method further includes: Acquire an offset of the target area on the first plane, where the offset indicates coordinates of a vertex of the target area on the first plane; A set of mapping data corresponding to the multimedia file is determined according to the length and width of the target area on the first plane and the offset.

6. The method according to any one of claims 1 to 4, It is characterized in that In the case where the target area spans across the first plane and the second plane of the sky box, the method further includes: Determine, according to the length and width of the target area on the first plane and the length and width of the target area on the second plane, a first sub-area in the multimedia file mapped to the first plane and a second sub-area in the multimedia file mapped to the second plane; Determine mapping data corresponding to the first sub-region according to an offset of the first sub-region on the first plane, and a length and a width of the first sub-region on the first plane; Mapping data corresponding to the second sub-region is determined according to the offset of the first sub-region on the first plane and the length and width of the second sub-region on the second plane.

7. The method according to any one of claims 1 to 4, It is characterized in that In the case where the target area spans the first plane, the second plane and the third plane of the sky box, the further comprising: Determine, according to the length and width of the target area on the first plane, the length and width of the target area on the second plane, and the length and width of the target area on the third plane, a first sub-area of ​​the multimedia file mapped to the first plane, a second sub-area of ​​the multimedia file mapped to the second plane, and a third sub-area of ​​the multimedia file mapped to the third plane; Determine mapping data corresponding to the first sub-region according to an offset of the first sub-region on the first plane, and a length and a width of the first sub-region on the first plane; Determine mapping data corresponding to the second sub-region according to an offset of the first sub-region on the first plane and a length and a width of the second sub-region on the second plane; Mapping data corresponding to the third sub-region is determined according to the offset of the first sub-region on the first plane and the length and width of the third sub-region on the third plane.

8. The method according to any one of claims 1 to 7, It is characterized in that Before creating k grids, the method further includes: When the multimedia file is a video, creating a video texture corresponding to the multimedia file; or, When the multimedia file is an image, a picture texture corresponding to the multimedia file is created.

9. A mapping device, It is characterized in that include: An interception module, used for intercepting a target area of ​​the sky box to obtain a target image; wherein the target area spans k planes of the sky box, wherein k is a positive integer; A processing module, used for obtaining a multimedia file based on the target image, wherein the multimedia file is an image or a video; A mapping module is used to perform texture mapping on the multimedia file according to k groups of mapping data corresponding to the multimedia file, and map the multimedia file to the target area; the mapping data includes position data and rotation angle, and the k groups of mapping data correspond to the k sub-areas of the multimedia file one by one.

10. The device according to claim 9, It is characterized in that The position data indicates mapping a sub-region in the multimedia file to the region indicated by the position data, and the rotation angle indicates an angle of rotation relative to a preset initial position when mapping a sub-region in the multimedia file to the region indicated by the position data.

11. The device according to claim 9 or 10, It is characterized in that The processing module is also used for: Creating k grids; wherein the k grids, the k groups of mapping data and the k sub-areas of the multimedia file correspond one to one; Performing texture mapping on the multimedia file according to the k groups of mapping data includes: Texture mapping is performed according to the multimedia file, the k grids, and the k groups of mapping data.

12. The device according to any one of claims 9 to 11, It is characterized in that The processing module is also used for: Obtain the lengths and widths of k sub-regions of the target region on their respective planes, wherein a portion of the target region on a plane of the sky box is a sub-region of the target region; According to the length and width of each sub-area of ​​the target area on the plane to which they belong, the mapping data corresponding to each sub-area of ​​the multimedia file is determined to obtain the k groups of mapping data; wherein the k sub-areas of the target area correspond one-to-one to the k sub-areas of the multimedia file, and the sizes of the corresponding sub-areas in each group are the same.

13. The device according to any one of claims 9 to 12, It is characterized in that When the target area is located at the first plane of the sky box, the processing module is further used for: Acquire an offset of the target area on the first plane, where the offset indicates coordinates of a vertex of the target area on the first plane; A set of mapping data corresponding to the multimedia file is determined according to the length and width of the target area on the first plane and the offset.

14. The device according to any one of claims 9 to 12, It is characterized in that In the case where the target area spans across the first plane and the second plane of the sky box, the processing module is further configured to: Determine, according to the length and width of the target area on the first plane and the length and width of the target area on the second plane, a first sub-area in the multimedia file mapped to the first plane and a second sub-area in the multimedia file mapped to the second plane; Determine mapping data corresponding to the first sub-region according to an offset of the first sub-region on the first plane, and a length and a width of the first sub-region on the first plane; Mapping data corresponding to the second sub-region is determined according to the offset of the first sub-region on the first plane and the length and width of the second sub-region on the second plane.

15. The device according to any one of claims 9 to 12, It is characterized in that In the case where the target area spans the first plane, the second plane and the third plane of the sky box, the processing module is further configured to: Determine, according to the length and width of the target area on the first plane, the length and width of the target area on the second plane, and the length and width of the target area on the third plane, a first sub-area of ​​the multimedia file mapped to the first plane, a second sub-area of ​​the multimedia file mapped to the second plane, and a third sub-area of ​​the multimedia file mapped to the third plane; Determine mapping data corresponding to the first sub-region according to an offset of the first sub-region on the first plane, and a length and a width of the first sub-region on the first plane; Determine mapping data corresponding to the second sub-region according to an offset of the first sub-region on the first plane and a length and a width of the second sub-region on the second plane; Mapping data corresponding to the third sub-region is determined according to the offset of the first sub-region on the first plane and the length and width of the third sub-region on the third plane.

16. The device according to any one of claims 9 to 15, It is characterized in that The processing module is also used for: When the multimedia file is a video, creating a video texture corresponding to the multimedia file; or, When the multimedia file is an image, a picture texture corresponding to the multimedia file is created.

17. A computing device, It is characterized in that The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method as claimed in any one of claims 1 to 8 is executed.

18. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device, the computing device performs the method according to any one of claims 1 to 8.