Method and device for processing tactile media file

By receiving and processing the tactile media file description information sent by the display engine and writing it into the tactile media buffer, it solves the problem of tactile media file rendering in the scene description framework and improves the realism and user experience of the virtual scene.

CN118736067APending Publication Date: 2024-10-01HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311231339.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2023-09-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively support tactile media files in the scene description framework, especially when the tactile material attribute type is a reference, tactile values ​​need to be obtained from the tactile media files, but there is a lack of effective processing and rendering mechanisms.

Method used

A method and device for processing tactile media files is provided. By receiving the tactile media file description information in the scene description file sent by the display engine, the tactile rendering data is obtained and written into the tactile media buffer, so that the display engine can render the data. Access and render related data when using a 3D scene.

Benefits of technology

It supports the rendering of tactile media files in the scene description framework, improves the realism and user experience of virtual scenes, and solves the problem of data acquisition and rendering when the tactile material attribute type is used as a reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736067A_ABST
    Figure CN118736067A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a processing method and device for a tactile media file, and relates to the technical field of video processing. Comprising the following steps: receiving description information of a tactile media file declared in an MPEG media description module of a scene description file sent by a display engine; obtaining tactile rendering data of the tactile media file according to the description information of the tactile media file; writing tactile rendering data of the tactile media file into a tactile media buffer so as to enable a display engine to access the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to description information of a tactile media accessor when the to-be-rendered three-dimensional scene is triggered to execute the target tactile action; the description information of the tactile media accessor is accessor description information acquired by the display engine according to a target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered. Some embodiments of the invention are used for supporting haptic media files in a scene description framework.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on January 10, 2023 with application number 2023100367908, and the priority of the Chinese patent application filed with the Chinese Patent Office on March 20, 2023 with application number 202310275300X, the contents of which are incorporated by reference into this application. Technical Field

[0002] Some embodiments of the present application relate to the field of video processing technology, and more specifically, to a method and device for processing tactile media files. Background Art

[0003] As 3D media content becomes increasingly rich, users have higher requirements for the realism and richness of virtual scenes. As part of the senses, touch has become an object experience that needs to be considered and added in immersive media. For example, users can experience an explosion in a virtual scene, which requires not only the participation of vision and hearing, but also the participation of touch as a sensory experience to enhance the realism and presence of this virtual explosion effect.

[0004] In the relevant technical standards, each tactile material attribute is represented by a texture array, and texture arrays of different attributes are combined to form a specific tactile perception. Each array element contains a tactile texture and a tactile material attribute type represented as an enumeration, and the tactile material attribute types include: high resolution (High_resolution), low resolution (Low_resolution), reference (Reference) and other (Other). In the case where the tactile material attribute type is high resolution or low resolution, the texture image of the texture index or the tactile texture material data packet stores not color values, but tactile values. These tactile values ​​can be directly obtained by the display engine and tactile rendering is performed. However, when the tactile material attribute type is reference, each pixel in the texture image or tactile texture material data packet does not directly store the tactile value. The tactile value of the tactile material attribute of the reference type needs to be obtained from the tactile media file. Therefore, how to support tactile media files in the scene description framework to support tactile material attributes of the reference type has become one of the research hotspots in this field. Summary of the invention

[0005] An exemplary embodiment of the present application provides a method and apparatus for processing tactile media files, which are used to support tactile media files in a scene description framework.

[0006] Some embodiments of the present application provide the following technical solutions:

[0007] In a first aspect, some embodiments of the present application provide a method for processing a tactile media file, including:

[0008] Receiving description information of a tactile media file declared in a moving picture experts group (MPEG) media description module of a scene description file sent by a display engine;

[0009] Acquire tactile rendering data of the tactile media file according to the description information of the tactile media file;

[0010] The tactile rendering data of the tactile media file is written into a tactile media buffer, so that when the three-dimensional scene to be rendered is triggered to perform a target tactile action, the display engine accesses the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor; the description information of the tactile media accessor is the accessor description information obtained by the display engine according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and the target tactile object description module is the tactile object description module corresponding to the tactile object associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action.

[0011] In a second aspect, some embodiments of the present application provide a device for processing a tactile media file, including:

[0012] a memory configured to store a computer program;

[0013] The processor is configured to, when calling the computer program, enable the tactile media file processing device to implement the tactile media file processing method according to the first aspect.

[0014] In a third aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computing device, the computing device implements the method for processing tactile media files described in the first aspect.

[0015] In a fourth aspect, some embodiments of the present application provide a computer program product, which, when executed on a computer, enables the computer to implement the method for processing tactile media files.

[0016] As can be seen from the above technical solutions, the processing method of the tactile media file provided in the embodiment of the present application can obtain the tactile rendering data of the tactile media file according to the description information of the tactile media file after receiving the description information of the tactile media file declared in the MPEG media description module of the scene description file sent by the display engine, and write the tactile rendering data of the tactile media file into the tactile media buffer. Since the processing method of the tactile media file provided in the embodiment of the present application can obtain the tactile rendering data of the tactile media file and write the tactile rendering data of the tactile media file into the tactile media buffer, the display engine can obtain the description information of the tactile media accessor according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and when triggering the three-dimensional scene to be rendered to perform the target tactile action, read the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, and then render the target action node according to the tactile rendering data of the tactile media file associated with the target action node, so the embodiment of the present application can support tactile media files in the scene description file. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the implementation methods of some embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0018] Figure 1 A schematic diagram showing the structure of an immersive media description framework in some embodiments of the present application is shown;

[0019] Figure 2 A schematic diagram showing the structure of a scene description file in some embodiments of the present application is shown;

[0020] Figure 3 A schematic diagram showing the structure of a scene description file in some other embodiments of the present application is shown;

[0021] Figure 4 A schematic diagram showing a data model of tactile data in some embodiments of the present application is shown;

[0022] Figure 5 A schematic diagram showing the layered structure of the human body in some embodiments of the present application is shown;

[0023] Figure 6 A schematic diagram showing the structure of a tactile signal encoder in some embodiments of the present application is shown;

[0024] Figure 7A schematic diagram showing the structure of a tactile signal decoder in some embodiments of the present application is shown;

[0025] Figure 8 A schematic diagram showing the structure of a scene description file in some other embodiments of the present application is shown;

[0026] Fig. 9 A schematic diagram showing the structure of a scene description file in some other embodiments of the present application is shown;

[0027] Fig.10 A flowchart showing the steps of a method for generating a scene description file in some embodiments of the present application is shown;

[0028] Fig.11 A flowchart showing the steps of a method for parsing a scene description file in some embodiments of the present application is shown;

[0029] Fig.12 A flowchart showing the steps of a method for processing a tactile media file in some embodiments of the present application is shown;

[0030] Fig.13 A flowchart showing the steps of a three-dimensional scene rendering method in some embodiments of the present application is shown;

[0031] Fig.14 A flowchart of the steps of the cache management method in some embodiments of the present application is shown. DETAILED DESCRIPTION

[0032] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0033] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

[0034] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0035] References to "some implementations", "some embodiments", etc. in the specification indicate that the described implementations or embodiments may include specific features, structures, or characteristics, but not every embodiment may include the specific features, structures, or characteristics. In addition, such phrases do not necessarily refer to the same implementation. In addition, when a specific feature, structure, or characteristic is described in connection with an embodiment, it is considered to be within the knowledge of those skilled in the art to implement such feature, structure, or characteristic in connection with other implementations (whether or not explicitly described herein).

[0036] Some embodiments of the present application relate to scene description of immersive media. Figure 1 The scene description framework of immersive media shown in the figure decouples the access and processing of media files from the rendering of media files in order to enable the display engine 11 to focus on media rendering, and designs a media access function (Media Access Function, MAF) 12 to be responsible for the access and processing functions of media files. At the same time, a media access function application programming interface (Application Programming Interface, API) is designed, and the display engine 11 and the media access function 12 interact with each other through the media access function API. The display engine 11 can issue instructions to the media access function 12 through the media access function API, and the media access function 12 can also request instructions from the display engine 11 through the media access function API.

[0037] The general workflow of the scene description framework of immersive media includes: 1) The display engine 11 obtains the scene description document provided by the immersive media service provider. 2) The display engine 11 parses the scene description document to obtain the access address of the media file, the attribute information of the media file (media type and encoding and decoding parameters, etc.) and the format requirements of the processed media file and other parameters or information, and calls the media access function API to pass all or part of the information obtained by parsing the scene description file to the media access function 12. 3) According to the information transmitted by the display engine 11, the media access function 12 requests to download the specified media file from the media resource server or obtains the specified media file from the local, and establishes a corresponding pipeline for the media file, and then decapsulates, decrypts, decodes and other processes on the media file in the pipeline to convert the media file from the encapsulation format to the format specified by the display engine 11. 4) The pipeline stores the output data obtained after all processing in the specified cache. 5) Finally, the display engine 11 reads the fully processed data in the specified cache and renders the media file according to the data read from the cache.

[0038] The following further describes the files and functional modules involved in the scene description framework of immersive media.

[0039] 1. Scene Description File

[0040] In the workflow of the scene description framework for immersive media, the scene description file is used to describe the structure of the three-dimensional scene (its features can be described by a three-dimensional mesh), texture (such as texture resources, etc.), animation (rotation, translation), camera viewpoint position (rendering perspective), and other contents.

[0041] In the related art, GL Transmission Format 2.0 (glTF 2.0) has been identified as a candidate format for scene description files that can meet the requirements of MPEG-Immersive (MPEG-I) and 6-degrees of Freedom (6DoF) applications. For example, glTF 2.0 is described in the Khronos Group's GL Transmission Format (glTF) version 2.0 available at github.com / KhronosGroup / glTF / tree / master / specification / 2.0#specifying-extensions. Figure 2 As shown, Figure 2 This is a schematic diagram of the structure of the scene description file in the glTF2.0 scene description standard (ISO / IEC12113). Figure 2 As shown, the scene description file in the glTF2.0 scene description standard includes but is not limited to: scene description module (scene) 201, node description module (node) 202, mesh description module (mesh) 203, accessor description module (accessor) 204, cache slice description module (bufferView) 205, buffer description module (buffer) 206, camera description module (camera) 207, lighting description module (light) 208, material description module (material) 209, texture description module (texture) 210, sampler description module (sampler) 211 and texture resource description module (image) 212, animation description module (animation) 213, skin description module (skin) 214.

[0042] Figure 2The scene description module (scene) 201 in the scene description file is used to describe the three-dimensional scene contained in the scene description file. A scene description file may contain any number of three-dimensional scenes, and each three-dimensional scene is described using a scene description module 201. The scene description modules 201 are in parallel with each other, that is, the three-dimensional scenes are in parallel with each other.

[0043] Figure 2 The node description module (node) 202 in the scene description file shown is the next level description module of the scene description module 201, which is used to describe the objects contained in the three-dimensional scene described by the scene description module 201. There may be many specific objects in each three-dimensional scene, such as virtual digital people, three-dimensional objects in the vicinity, and background images in the distance. The scene description file will describe these specific objects through the node description module 201. Each node description module 202 can represent an object or a set of objects composed of several objects. The relationship between the node description modules 202 reflects the relationship between the various components in the three-dimensional scene described by the scene description module 201. The three-dimensional scene described by a scene description module 201 can contain one or more nodes. There can be a parallel relationship or a hierarchical relationship between multiple nodes, that is, there is a relationship of inclusion and inclusion between the node description modules 202, which allows multiple specific objects to be integrated together for description, or multiple specific objects can be described separately. If a node is included by another node, the included node is called a child node (children), and the child node is represented by "children" instead of "node". By flexibly combining nodes and sub-nodes, a hierarchical node structure can be formed to express rich scene content.

[0044] Figure 2The mesh description module (mesh) 203 in the scene description file shown is a description module of the next level of the node description module 202, which is used to describe the characteristics of the object represented by the node description module 202. The mesh description module 203 is a set of one or more primitives, each of which can include an attribute. The attributes of the primitives define the attributes that the graphics processing unit (GPU) needs to use when rendering. The attributes can include: position (three-dimensional coordinates), normal (normal vector), tangent (tangent vector), texcoord_n (texture coordinates), color_n (color: RGB or RGBA), joints_n (attributes related to the skin description module 210), weights_n (attributes related to the skin description module 210), etc. Since the number of vertices contained in the mesh description module 203 is very large, and each vertex contains multiple attribute information, it is inconvenient to directly store a large amount of media data contained in the media file in the mesh description module 203 of the scene description file. Instead, the access address (URI) of the media file is pointed out in the scene description file, and the data in the media file can be downloaded when it is needed, thereby realizing the separation of the scene description file and the media file. Therefore, in general, the mesh description module 203 does not store media data, but stores the index value of the accessor description module (accessor) 204 corresponding to each attribute, and points to the corresponding data in the cache slice (bufferView) of the buffer (buffer) through the accessor description module 204.

[0045] In some embodiments, the scene description file and the media file may be merged to form a binary file, thereby reducing the types and number of files.

[0046] In addition, the primitives of the mesh description module 203 may also contain a syntax element called mode. The syntax element mode is used to describe the topological structure of a three-dimensional mesh when a graphics processing unit (GPU) draws the mesh. For example, mode=0 represents scattered points, mode=1 represents lines, and mode=4 represents triangles.

[0047] The definition of the syntax elements in the attributes (mash.primitives.attributes) of the primitives of the mesh description module 203 is shown in Table 1 below:

[0048] Table 1

[0049]

[0050] The definition of the accessor type of the index in the attributes (mash.primitives.attributes) of the primitives of the grid description module 203 is shown in the following Table 2:

[0051] Table 2

[0052] Accessor Types Number of component channels meaning SCALAR 1 Scalar VEC2 2 2D vector VEC3 3 3D Vector VEC4 4 Four-dimensional vector MAT2 4 Two-dimensional matrix MAT3 9 Three-dimensional matrix MAT4 16 Four-dimensional matrix

[0053] The definition of component types in the attributes (mash.primitives.attributes) of the primitives of the mesh description module 203 is shown in Table 3 below:

[0054] Table 3

[0055] Type Code Data Types With or without sign Number of bits 5120 signed byte Signed 8 5121 unsigned byte Unsigned 8 5122 Signed short Signed 16 5123 Unsigned short Unsigned 16 5125 unsigned int Unsigned 32 5126 Floating point numbers (float) Signed 32

[0056] For example, the following is a JSON example of a grid description module 203:

[0057]

[0058]

[0059] In the above mesh description module 203, the value of "position" is 1, pointing to the accessor description module with index 1, and finally pointing to the vertex coordinate data stored in the buffer; the value of "color_0" is 2, pointing to the accessor description module with index 2, and finally pointing to the color data stored in the buffer.

[0060] Figure 2 The accessor description module (accessor) 204, the buffer slice description module (bufferView) 205, and the buffer description module (buffer) 206 in the scene description file are used to implement the layer-by-layer refined indexing of the rendering data of the media file by the grid description module 203. As mentioned above, the grid description module 203 does not store specific media data, but stores the index value of the corresponding accessor description module 204, and accesses the specific media data through the accessor description module 204 indexed by the index value. The indexing process of the media data by the grid description module 203 includes: first, the index value declared by the syntax element in the attribute of the primitive of the grid description module 203 will point to the corresponding accessor description module 204; then the accessor description module 204 will point to the corresponding buffer slice description module 205; finally, the cache slice description module 205 will point to the corresponding buffer description module 206. Figure 2The buffer description module 206 in the scene description file shown is mainly responsible for pointing to the corresponding media file, including the URI of the media file, the byte length of the media file, etc., and is used to describe the buffer for caching the rendering data of the media file. A buffer can be divided into multiple cache slices. The cache slice description module 205 is mainly responsible for partial access to the rendering data of the media file in the cache, including the starting byte offset of the access data and the byte length of the access data, etc. Partial access to the rendering data of the media file can be achieved through the cache slice description module 205 and the cache description module 206. The accessor description module 204 is mainly responsible for adding additional information to the partial data delineated in the cache slice description module 205, such as the data type, the number of data of this type, the numerical range of data of this type, etc. Such a three-layer structure can realize the function of retrieving partial data from a media file, which is conducive to the accurate access of data and also convenient for reducing the number of media files.

[0061] Figure 2 The camera description module (camera) 207 in the scene description file is a next-level description module of the node description module 202, and is used to describe the viewpoint, viewing angle, and other information related to visual viewing when the user views the object described by the node description module 202. In order to allow the user to be in the three-dimensional scene and view the three-dimensional scene, the node description module 202 can also point to the camera description module 207, and the camera description module 207 describes the viewpoint, viewing angle, and other information related to visual viewing when the user views the object described by the node description module 202.

[0062] Figure 2 The light description module (light) 208 in the scene description file is a next-level description module of the node description module 202, and is used to describe the light intensity, ambient light color, light direction, light source position and other light-related information of the object described by the node description module 202.

[0063] Figure 2The material description module (material) 209 in the scene description file shown is a description module of the next level of the mesh description module 203, which is used to describe the material information of the three-dimensional object described by the mesh description module 203. When describing a three-dimensional object, it is impossible to improve the realism of the three-dimensional object by only using the mesh description module 203 to describe the geometric information of the three-dimensional object, or monotonously defining the color and / or position of the three-dimensional object, which requires adding more information to the surface of the three-dimensional object. For conventional three-dimensional model technology, this process can also be referred to as texture mapping or adding textures. The scene description file in the glTF2.0 scene description standard also uses this description module. The material description module 209 uses a set of general parameters to define the material to describe the material information of the geometric objects appearing in the three-dimensional scene. The material description module 209 generally uses the metal-roughness model to describe the material of the virtual object, and the material characteristic parameters based on the metal-roughness model are represented by the widely used physically based rendering (PBR) material. Based on this, the material description module 209 makes a detailed description of the metal-roughness material attribute of the object. The definition of the syntax elements in the material description module 209 is shown in Table 4:

[0064] Table 4

[0065]

[0066] In some embodiments, the syntax elements in the metal-roughness (material.PbrMetarialRoughness) in the material description module 209 are defined as shown in Table 5 below:

[0067] Table 5

[0068]

[0069] The value of each attribute in the material description module 209 metal-roughness (material.PbrMetarialRoughness) can be defined using factors and / or textures (e.g. baseColorTexture and baseColorFactor). If no texture is given, all corresponding texture components in this material model must be assumed to have a value of 1.0. If both factors and textures are present, the factor value acts as a linear multiplier for the corresponding texture value. Texture bindings are defined by the index of the texture object and an optional texture coordinate index.

[0070] For example, the following is a JSON example of a material description module 209:

[0071]

[0072] By parsing the material description module 209, it is possible to determine that the current material is named "gold" through the material name syntax element and its value ("name":"gold"), and then determine that the base color value of the current material is [1.000,0.766,0.336,1.0] through the color syntax element under the metal-roughness array (pbrMetallicRoughness) and its value ("basecolorFactor":[1.000,0.766,0.336,1.0]), and that the metallic value of the current material is "1.0" through the metallic syntax element under the metal-roughness array (pbrMetallicRoughness) and its value ("metalnessFactor":1.0), and that the roughness value of the current material is "0.0" through the roughness syntax element under the metal-roughness array (pbrMetallicRoughness) and its value ("roughnessFactor":0.0).

[0073] Figure 2The texture description module (texture) 210 in the scene description file shown is a next-level description module of the material description module 209, which is used to describe the color of the three-dimensional object described by the material description module 209 and other characteristics used in the material definition. Texture is an important aspect of giving an object a real appearance. The main color of the object and other characteristics used in the material definition can be defined through texture to accurately describe the appearance of the rendered object. The material itself can define multiple texture objects, which can be used as textures of virtual objects during rendering and can be used to encode different material properties. The texture description module 210 uses the sampler index syntax element and the texture resource index syntax element to reference a sampler description module (sampler) 211 and a texture resource description module (image) 212. The texture resource description module 212 contains a uniform resource identifier (Uniform Resource Identifier, URI), which is linked to the texture image or binary file package actually used by the texture description module 210. The sampler description module 211 is used to describe the filtering and packaging mode of the texture. The respective responsibilities and collaborative relationships of the material description module 209, the texture description module 210, the sampler description module 211 and the texture resource description module 212 include: the material description module 209 and the texture description module 210 together define the color and physical information of the object surface. The sampler description module 211 defines how to attach the texture resource to the object surface. The texture description module 210 specifies the sampler description module 212 and the texture resource description module 212, and the texture resource description module 212 is used to add textures, while the texture resource description module 212 uses URI for identification and indexing, and uses the accessor description module 204 to access data. The sampler description module 211 implements the specific adjustment and packaging of textures. The definition of the syntax elements in the texture description module 210 is shown in Table 6 below:

[0074] Table 6

[0075]

[0076] In some embodiments, the definition of the syntax elements in the sampler (texture.sample) of the texture description module 210 is shown in Table 7 below:

[0077] Table 7

[0078]

[0079] For example, the following is a JSON example of a material description module 209, a texture description module 210, a sampler description module 211, and a texture resource description module 212:

[0080]

[0081]

[0082] Figure 2 The animation description module (animation) 213 in the scene description file shown is a description module of the next level of the node description module 202, which is used to describe the animation information added to the object described by the node description module 202. In order to prevent the object represented by the node description module 202 from being restricted to a static state, animation can be added to the object described by the node description module 202. Therefore, the description level of the animation description module 213 in the scene description file is specified by the node description module 202, that is, the animation description module 213 is a description module of the next level of the node description module 202, and the animation description module 213 also has a corresponding relationship with the grid description module 203. The animation description module 213 can describe the animation in three ways: position movement, angle rotation, and size scaling, and can also specify the start and end time of the animation and the implementation method of the animation. For example, if an animation is added to a grid description module 203 representing a three-dimensional object, the three-dimensional object represented by the grid description module 203 can complete the specified animation process within the specified time window through the fusion of position movement, angle rotation, and size scaling.

[0083] Figure 2 The skin description module (skin) 214 in the scene description file shown is a description module of the next level of the node description module 202, and is used to describe the movement cooperation relationship between the skeleton added by the mesh description module 203 and the mesh representing the surface information of the object. When the mesh description module 203 pointed to by the node description module 202 represents an object with a large degree of freedom of movement such as a person, an animal, or a machine, in order to optimize the movement performance of these objects, the skeleton can be filled into the interior of the object, and the mesh description module 203 representing the surface information of the object conceptually becomes the skin at this time. The description level of the skin description module 214 is specified by the node description module 202, that is, the skin description module 214 is a description module of the next level of the node description module 202, and the skin description module 214 has a corresponding relationship with the mesh description module 203. By driving the mesh on the surface of the object with the movement of bones and combining it with the design of simulated bionics, a more realistic movement effect can be achieved. For example, when a person makes a fist, the skin on the surface will stretch and cover along with the internal bones. At this time, the bones pre-filled in the hand model and the collaborative relationship between the bones and the skin can achieve a realistic simulation of this action.

[0084] Each description module of the scene description file in the above glTF2.0 scene description standard only has the most basic ability to describe three-dimensional objects, and there are problems such as not supporting dynamic three-dimensional immersive media, not supporting audio files, and not supporting scene updates. glTF also declares that each of its object attributes has an optional extended object attribute (extensions), allowing any part of it to be extended with extensions to achieve more complete functions. Including scene description module (scene), node description module (node), mesh description module (mesh), accessor description module (accessor), cache description module (buffer), animation description module (animation), etc. and their internally defined syntax elements all have optional extended object attributes to support certain functional extensions based on glTF2.0.

[0085] The current mainstream immersive media include point clouds, 3D meshes, 6DoF panoramic videos, MIV-based, etc. In a 3D scene, multiple types of immersive media often exist at the same time. This requires the rendering engine to support the encoding and decoding of multiple different types of immersive media. Different types of rendering engines are generated according to the types and numbers of supported codecs. The rendering engines designed by different vendors support different types of media. In order to achieve cross-platform description of 3D scenes composed of different types of media, the Moving Picture Experts Group (MPEG) initiated the formulation of the MPEG scene description standard, with the standard number ISO / IEC 23090-14. This standard mainly solves the problem of cross-platform description of MPEG media (including codecs developed by MPEG, MPEG file formats, and MPEG transmission mechanisms) in 3D scenes.

[0086] The MPEG#128 meeting decided to develop the MPEG-I SceneDescription standard based on glTF2.0 (ISO / IEC 12113). The first version of the MPEG scene description standard has been developed and is in the FDIS voting stage. Based on the first version of the standard, the MPEG scene description standard adds corresponding extensions to address the unrealized requirements in the cross-platform description of 3D scenes, including interactivity, AR anchoring, user and avatar representation, tactile support, and extended support for immersive media codecs.

[0087] The first version of the MPEG scene description standard has been formulated mainly to define the following contents:

[0088] 1) The MPEG scene description standard defines a scene description file format for describing immersive 3D scenes. This format combines the original glTF2.0 (ISO / IEC 12113) content and makes a series of extensions based on it.

[0089] 2) MPEG scene description defines a scene description framework and an application program interface (API) for collaboration between modules, which decouples the acquisition and processing of immersive media from the media rendering process, and is beneficial to the optimization of immersive media adaptation to different network conditions, partial acquisition of immersive media files, access to different levels of detail of immersive media, and content quality adjustment. Decoupling the acquisition and processing of immersive media from the immersive media rendering process is the key to achieving cross-platform description of 3D scenes.

[0090] 3) MPEG scene description proposes a series of extensions based on the International Standardization Organization Base Media File Format (ISOBMFF) (ISO / IEC 14496-12) for transmitting immersive media content.

[0091] Reference Figure 3 As shown, in Figure 2 The scene description file shown in the figure is an extension of the scene description file in the MPEG scene description standard. Compared with the scene description file in the glTF2.0 scene description standard ( Figure 2 The extensions of the scene description file in the MPEG scene description standard can be divided into two groups:

[0092] The first group of extensions includes: MPEG media (MPEG_media) 301, MPEG time-varying accessor (MPEG_accessor_timed) 302 and MPEG circular buffer (MPEG_buffer_circular) 303. Among them, MPEG media 301 is an independent extension used to reference external media sources; MPEG time-varying accessor 302 is an extension of the accessor level used to access time-varying media; MPEG circular buffer is an extension of the buffer level used to support circular buffers. The first group of extensions provides a basic description and format of the media in the scene, meeting the basic requirements of describing time-varying immersive media in the scene description framework. Among them, MPEG time-varying accessor (MPEG_accessor_timed) 302 is used to access time-varying media. Since the glTF2.0 scene description standard does not support time-varying media, when the media data needs to change over time, it is necessary to update the scene description file under the glTF2.0 scene description standard to achieve this. For example, if the texture resources on the surface of an object need to be updated in the glTF2.0 scene description standard so that the texture resources on the surface of the object can change over time, the scene description file under the glTF2.0 scene description standard must be updated. Frequent updates of scene description files require frequent parsing, processing, and transmission of scene description files, which increases the performance overhead in the 3D scene rendering process. Based on this, MPEG has designed the MPEG time-varying accessor (MPEG_accessor_timed) 302. The parameters in the MPEG time-varying accessor can change over time to change the access method of media data, thereby realizing that the accessed data changes over time, thereby avoiding frequent parsing, processing, and transmission of scene description files.

[0093] The second group of extensions includes: MPEG dynamic scene (MPEG_scene_dynamic) 304, MPEG texture (MPEG_texture_video) 305, MPEG audio space (MPEG_audio_spatial) 306, MPEG viewport recommendation (MPEG_viewport_recommended) 307, MPEG mesh mapping (MPEG_mesh_linking) 308 and MPEG animation time (MPEG_animation_timing) 309. Among them, MPEG_scene_dynamic 304 is a scene level extension for supporting dynamic scene updates; MPEG_texture_video 305 is a texture level extension for supporting textures in video form; MPEG_audio_spatial 306 is a node level and camera level extension for supporting spatial 3D audio; MPEG_viewport_recommended 307 is a scene level extension for supporting the description of recommended viewing angles in two-dimensional display; MPEG_mesh_linking 308 is a mesh level extension for supporting linking two meshes and providing mapping information; MPEG_animation_timing 309 is a scene level extension for supporting control of animation timelines.

[0094] The following is a detailed description of each of the above extensions:

[0095] The MPEG media in the MPEG scene description file is used to describe the type of media files and to provide necessary instructions for MPEG type media files so that these MPEG type media files can be used later. The definition of the first level syntax elements of the MPEG media description module (MPEG_media) is shown in Table 8 below:

[0096] Table 8

[0097]

[0098] The definition of the syntax elements in the media list (MPEG_media.media) of the MPEG media description module is shown in Table 9 below:

[0099] Table 9

[0100]

[0101] The definition of the syntax elements in the alternative version list (MPEG_media.alternatives) in the media list of the MPEG media description module is shown in Table 10 below:

[0102] Table 10

[0103]

[0104] The definition of the syntax elements in the track array (MPEG_media.media.alternatives.tracks) in the alternative version list of the media list of the MPEG media description module is shown in Table 11 below:

[0105] Table 11

[0106]

[0107] In addition, based on ISOBMFF (ISO / IEC 14496-12), ISO / IEC 23090-14 also defines the transmission format for the delivery of scene description files and data related to the glTF 2.0 extension. In order to facilitate the delivery of scene description files to clients, ISO / IEC 23090-14 defines how to encapsulate glTF files and related data as non-time-varying and time-varying data (for example, as track samples) in ISOBMFF files. MPEG_scene_dynamic, MPEG_mesh_linking, and MPEG_animation_timing provide a specific form of time-varying data to the display engine, and the display engine 11 should perform corresponding operations based on this changing information. ISO / IEC 23090-14 also defines the format of each extended time-varying data and how to encapsulate it in an ISOBMFF file. MPEF media (MPEG_media) allows reference to external media streams delivered via protocols such as RTP / SRTP and MPEG-DASH. In order to allow media streams to be addressed without knowing the actual protocol scheme, host name or port value, ISO / IEC 23090-14 defines a new URL scheme. This scheme requires the presence of a stream identifier in the query part, but does not specify a specific type of identifier, allowing the use of a Media Stream Identification scheme (RFC5888), a labeling scheme (RFC4575), or a 0-based indexing scheme.

[0108] For example, the following is a JSON example of an MPEG media description module:

[0109]

[0110] Haptics provide users with additional entertainment and sensory immersion. By properly adding haptics to audio / video content, the user's experience and enjoyment of media content can be significantly enhanced. Haptic data representation If there is a standard and unified data model, and the data model includes all the information required by a specified synthesizer to render haptic effects, standard decoding of haptic data can be achieved.

[0111] Reference Figure 4 As shown, Figure 4 is a schematic diagram of the structure of the tactile data model. Figure 4 As shown, the tactile data model includes: a description part 41 and an encoding part 42, and a hierarchical structure is used to describe the tactile data layer by layer. Among them, the description part 41 uses the perception and tactile channel information as the main description content in the data structure, and the encoding part 42 uses the tactile frequency band, tactile effect and key frame as the main description content in the data structure. The highest layer of the description part 41 contains an overall description of the content contained in the entire data structure, which is usually used to describe the entire tactile experience defined in the file or media stream. The tactile experience contains some high-level metadata, and a pre-defined avatar list (i.e., a representation of a body part) is provided to facilitate the subsequent specification of the implementation position of the tactile stimulus on the body. The tactile data is described by a perception list (perception 1 to perception a). Each tactile perception in the tactile perception list corresponds to a tactile signal related to a specific perception modality (such as vibration, force, position, speed, temperature, etc.). Each perception in the perception list contains some metadata information such as the characteristics of the tactile implementation device and the avatar related to the perception. In addition to metadata, the perception signal itself is a mixture of multiple tactile channels (tactile channel 1 to tactile channel b). Each tactile channel includes not only metadata about the channel configuration (such as mixing gain, etc.), but also a list of tactile frequency bands (tactile frequency band 1 to tactile frequency band c) where the data is decomposed by frequency band. The frequency band data of each tactile frequency band is a partial signal within a given frequency range. The tactile frequency band is described using frequency band data and a list of tactile effects (tactile effect 1 to tactile effect d). Each tactile effect in the tactile effect list contains a list of key frames (key frame 1 to key frame e). Different frequency bands contain different signals, and the tactile signal in the channel can be reconstructed by combining data from different frequency bands.

[0112] In some embodiments, in order to achieve channel-level tactile effects on a specified body part, a hierarchical structure may be used to describe the body parts layer by layer. Figure 5As shown, the hierarchical structure of the human body includes: the first level 51 includes all parts of the human body; the second level 52 includes: the upper body and the lower body; the third level 53 includes: the arms, chest, head of the upper body and the legs and waist of the lower body; the fourth level 54 includes: the upper arms, forearms and hands of the arms, the neck and nape of the head and the thighs, calves and feet of the legs; the fifth level 55 includes: the palms and fingers of the hands, the soles and toes of the feet; the sixth level 56 includes: the thumb, index finger, middle finger, ring finger and little finger of the fingers, the big toe, index toe, middle toe, ring toe and little toe of the feet; the seventh level 57 includes: the proximal phalanx, the second knuckle and the third knuckle of the thumb.

[0113] All the perceptual modalities of tactile perception in the tactile data model are shown in Table 12 below:

[0114] Table 12

[0115] Modal Name Physical unit of tactile perception Units of independent variables pressure Pa s Acceleration m / s^2 s speed m / s s Location m s temperature K s Vibrotactile –1 / 1 (normalized) s water m^3 s wind m / s s force N s Electrotactile –1 / 1 (normalized) s Vibration Texture –1 / 1 (normalized) m Stiffness N m Friction –1 / 1 (normalized) m other –1 / 1 (normalized) s

[0116] Digital encoding is essential to allow digital haptic devices to operate. As a first-order media type similar to audio and video, tactile media files also store tactile data in a digital format. Currently, tactile media files lack a unified encoding format. The encoding formats developed and used by various technology manufacturers are not unified, which leads to incompatibility issues in the decoder format of tactile media files, hindering the widespread adoption of tactile in the market. Therefore, the seventh working group in the ISO / IEC Moving Picture Experts Group (MPEG) to develop ISO / IEC 23090-31 tactile standardization highlights the need for standardized tactile coding representation. Standard tactile coding formats (and related standardized decoders) will help incorporate tactile into ISOBMFF, MPEG-DASH and MPEG-I standards, making it easier for content creators and media / streaming content providers to integrate tactile in a standardized way and improve the overall user experience.

[0117] The codec architecture proposed by Working Group 7 of the ISO / IEC Moving Picture Experts Group (MPEG) in developing the ISO / IEC 23090-31 tactile codec standard can handle both Pulse Code Modulation (PCM) files (WAV files / .wav files) and descriptive tactile files (AHAP files / .ahap files or IVS files / .ivs files or HJIF files / .hjif files). Metadata information is provided to the codec in the format of .ohm files. The tactile coding representation allows the encoding of descriptive and quantitative data in a human-readable JSON format. The encoding process is as follows Figure 6 shown.

[0118] Reference Figure 6As shown, Figure 6 FIG. 1 is a schematic diagram of the encoding process for encoding tactile signals. Figure 6 As shown, the tactile signal encoder 600 processes PCM tactile files and descriptive tactile files in different ways. For descriptive tactile files (.ivs files 61 or .ahap files 62 or .hjif files 63), the tactile signal encoder 600 first identifies the file format of the tactile file. If the tactile file to be encoded is a .hjif file 63, there is no need for transcoding, and the .hjif file 63 and the metafile are directly packaged into an MIHS file 64 through a binary compression step S601 and a packaging step S602. Among them, the metafile is a file obtained by performing metafile extraction on the .ohm file 65 through a metafile extraction step S603. If the tactile file to be encoded is a .ahap file 62 or a .ivs file 61, transcoding is required. The tactile signal encoder 600 first semantically analyzes the tactile file to be encoded through a semantic analysis step S604, and transcodes and formats it into a .hjif file through a transcoding step S605 and a formatting step S606. Figure 4 The data model shown. After transcoding, the data can be exported to an interchange file format (.hjif) 66 encoded in a JSON readable form, a distribution format (.hmpg) 67 encoded as a compressed binary file, or a stream format (MIHS) 64 that defines a packetized bitstream. For PCM files (.wav) 68, the signal analysis process of the tactile signal encoder 600 is divided into two sub-processes. One is: after performing the frequency band decomposition step S607 on the original signal, the low-frequency signal obtained by the frequency band decomposition is encoded based on the key frame extraction step S608. The second is: reconstructing the low-frequency signal, and calculating the residual between the reconstructed low-frequency signal and the original low-frequency signal, obtaining the residual signal, and then adding the residual signal to the original high-frequency signal and encoding it using the wavelet transform step S609, and outputting the encoding result in at least one format of the .hjif file 66 or the .hmpg file 67 or the MIHS file 64.

[0119] Reference Figure 7 As shown, Figure 7 FIG. 1 is a schematic diagram of a decoding process for decoding a tactile signal. Figure 7As shown, the tactile signal decoder 700 can either input the stream format (MIHS file 71) packaged into data packets, unpack and decompress it through the unpacking step S701 and the binary decompression step S702 to obtain the .hjif file 72, or choose to take the .hmpg file 73 as input, decompress it through the binary decompression step S702 and output the .hjif file 72. Then the tactile data contained in the .hjif file 72 can be directly presented on the tactile device, or through the synthesis step S703 using an intermediate synthesizer that generates PCM data, output the .wav file 74 and render it on the tactile device. The .hjif format is a human-readable format based on JSON and is not optimized for memory usage. It can be easily parsed and manually edited, facilitating the design and creation of content, which makes it an ideal exchange format. For distribution purposes, the .hjif data can be compressed into a more memory-efficient binary .hmpg bitstream. This compression is lossy, and different parameters affect the encoding depth of the amplitude and frequency that make up the bitstream. For streaming purposes, the data can be compressed and packaged into MPEG-I Haptic Stream (MIHS). This approach can meet the expectations of related technologies for descriptive and quantitative format compatibility of tactile media files, as well as interoperability between tactile terminal devices to achieve 3D immersive experience and distribution purposes. MIHS tactile stream is also the basis for encapsulating tactile media files into ISOBMFF.

[0120] In some embodiments, reference Figure 8 As shown, in order to associate tactile media files with objects in the scene and make tactile as part of the immersive media experience, the MPEG#140 meeting adopted the MPEG scene description file ( Figure 3 A proposal to add MPEG haptic (MPEG_haptic) 801 and MPEG haptic material (MPEG_material_haptic) 802 to the scene description file (shown in FIG. 1 ). Based on the new version of the haptic extension of glTF, haptic support can be enabled in the scene description. Among them, MPEG haptic 801 can obtain the description information of the accessor for accessing the rendering data of the haptic media file stored in the buffer by indexing the accessor description module in the accessor list of the scene description file. MPEG haptic material (MPEG_material_haptic) 802 is a description module at the next level of the mesh description module, which is used to support the user to obtain corresponding haptic feedback through active and / or passive interaction in the virtual scene.

[0121] Texture mapping refers to the technology of efficiently and realistically displaying the details of a three-dimensional model without the need for a high-resolution mesh. This method was originally developed in computer graphics and is now widely used in tactile rendering. The existence of texture mapping enables virtual objects to enhance the additional tactile material properties distributed on their surfaces and enhance the realism of virtual objects. On the basis of texture mapping, related technologies further propose the concept of tactile materials. In computer graphics, a material is an easy-to-use data package that contains all the data required for the visual rendering of a virtual object. By analogy, tactile materials should provide all the necessary elements for tactile rendering, and different tactile materials contain different tactile characteristics. These different tactile material properties are stored in different tactile material packages, which facilitates the related tasks of tactile design and implementation. The definition of tactile material properties is shown in Table 13 below:

[0122] Table 13

[0123]

[0124] Each tactile material attribute in Table 13 above is represented by a texture array, and texture arrays of different attributes are combined to form a specific tactile perception. Tactile material attributes can be used as traditional two-dimensional textures to provide relevant tactile texture values, or as tactile element maps. Each pixel in the tactile element map contains multiple tactile unit elements, which are associated with the sequential index corresponding to the tactile object (hapticObject) in MPEG tactile (MPEG_haptic). The rendering engine can select the most appropriate texture array for rendering. In this way, each array element contains a tactile texture and a texture type represented as an enumeration. The enumerated tactile material texture types include:

[0125] High_resolution: The tactile texture is a high-resolution 2D texture that directly stores tactile values.

[0126] Low_resolution: The tactile texture is a low-resolution 2D texture that directly stores tactile values.

[0127] Reference: A haptic texture is a two-dimensional map of haptic elements containing references to haptic signals. Each pixel of the haptic texture corresponds to an accessor order index in a haptic object in MPEG_haptic.

[0128] Other: Unknown proprietary texture format.

[0129] In order to interpret the data contained in the two-dimensional textures, the bit depth and range of these textures need to be specified. The following Tables 14 and 15 show the bit depth and range of each tactile material attribute of low-resolution tactile textures and high-resolution tactile textures respectively:

[0130] Table 14

[0131]

[0132] Table 15

[0133]

[0134] As shown in Table 15 above, the value of each texture map pixel in the high-resolution vibration texture is divided into two: the first byte is used to describe the amplitude value, and the second byte is used to describe the frequency value.

[0135] The definition of the syntax elements in MPEG haptic material (MPEG_material_haptic) 802 is shown in Table 16 below:

[0136] Table 16

[0137]

[0138] Table 16 above shows the semantics of the syntax elements included in MPEG haptic material (MPEG_material_haptic) 802, and the enumerated values ​​in Table 16 are the haptic material attributes included in Table 13. MPEG haptic material (MPEG_material_haptic) 802 in the MPEG scene description file can associate objects in the scene with haptic materials, so that when a user interacts with the object, corresponding haptic perception can be obtained.

[0139] Each haptic material attribute contains different haptic features, but the internal storage method is consistent. The following Table 17 takes the stiffness in the haptic material attribute as an example to further explain the stiffness enumerated in the MPEG haptic material (MPEG_material_haptic.stiffness).

[0140] Table 17

[0141]

[0142] 2. Display Engine

[0143] Reference Figure 1As shown, in the workflow of the scene description framework of immersive media, the main functions of the display engine 11 include obtaining a scene description file and parsing the obtained scene description file to obtain the composition structure of the three-dimensional scene to be rendered and the detailed information in the three-dimensional scene to be rendered, and rendering and displaying the three-dimensional scene to be rendered according to the information obtained by parsing the scene description file. The specific workflow and principle of the display engine 11 are not limited in the embodiment of the present application, and the display engine 11 is capable of parsing the scene description document, issuing instructions to the media access function 12 through the media access function API, issuing instructions to the cache management module 13 through the cache API, and taking the processed data from the cache and completing the rendering and display of the three-dimensional scene and the objects therein.

[0144] 3. Media Access Function

[0145] In the workflow of the scene description framework of immersive media, the media access function 12 can receive instructions from the display engine 11, and complete the access and processing functions of the media files according to the instructions sent by the display engine 11. Specifically, it includes: after obtaining the media file, the media file is processed. There are large differences in the processing process of different types of media files. In order to achieve a wide range of media type support and considering the work efficiency of the media access function, a variety of pipelines are designed in the media access function. During the processing process, only the pipeline that matches the media type is enabled.

[0146] The input of the pipeline is the media files downloaded from the server or the media files read from the local storage control. These media files often have a more complex structure and cannot be directly used by the display engine 11. Therefore, the main function of the pipeline is to process the data of such media files so that the data of the media files meets the requirements of the display engine 11.

[0147] In the workflow of the scene description framework of immersive media, the media data processed by the pipeline needs to be delivered to the display engine 11 for use in a standardized arrangement structure, which requires the participation of the cache API and the cache management module 13. The cache API and cache management realize the creation of corresponding caches according to the format of the processed media data, and are responsible for the subsequent management of the cache, such as update, release and other operations. The cache management module 13 can communicate with the media access function 12 through the cache API, and can also communicate with the display engine 11. The goal of communicating with the display engine 11 and / or the media access function 12 is to achieve cache management. When the cache management module 13 communicates with the media access function 12, the display engine 11 needs to send the relevant instructions of cache management to the media access function 12 through the media access function API first, and the media access function 12 then sends the relevant instructions of cache management to the cache management module 13 through the cache API. When the cache management module 13 communicates with the display engine 11, the display engine 11 only needs to send the cache management description information parsed from the scene description document directly to the cache management module 13 through the cache API.

[0148] like Figure 8 As mentioned above, the current MPEG#140 meeting confirmed the proposal to add MPEG haptic (MPEG_haptic) 801 and MPEG haptic material (MPEG_material_haptic) 802, and allowed MPEG haptic 801 to index into the accessor description module in the accessor list of the scene description file to obtain the tactile rendering data of the tactile media file. The tactile rendering data of the tactile media file mostly describes the overall tactile experience related to an event or environment. The tactile rendering data of the indexed tactile media file is regarded as a tactile signal, which can essentially directly drive the tactile device to generate corresponding tactile feedback to the human body.

[0149] As described above, each array element in the related art includes a tactile texture and a tactile material attribute type represented as an enumeration, and the tactile material attribute type includes: high resolution (High_resolution), low resolution (Low_resolution), reference (Reference) and other (Other). In the case where the tactile material attribute type is high resolution or low resolution, the texture image of the texture index or the tactile texture material data packet stores not the color value, but the tactile value. The tactile value only represents the size of a specific attribute (such as the size of the friction coefficient, the size of the stiffness coefficient), and can be directly obtained by the display engine and tactile rendering is performed. However, when the tactile material attribute type is reference, each pixel in the texture image or the tactile texture material data packet does not directly store the tactile value. Each pixel in the texture image or the tactile texture material data packet points to a tactile media accessor. The tactile value of the tactile material attribute of the reference type needs to be obtained from the tactile media file. Therefore, how to support tactile media files in the scene description framework to support the tactile material attribute of the reference type has become one of the research hotspots in this field.

[0150] Some embodiments of the present application provide a scene description framework that supports tactile media files, and the specific contents include: support for tactile media files by scene description files, support for tactile media files by media access function APIs, support for tactile media files by media access functions, support for tactile media files by cache APIs, support for tactile media files by cache management, and the like.

[0151] The process of indexing tactile media files in a three-dimensional scene based on a scene description framework and rendering and displaying the three-dimensional scene based on the tactile media files includes: first, the display engine obtains the scene description file provided by the three-dimensional scene provider through network protocol download or local storage reading. Among them, the scene description file obtained by the display engine includes description information of the entire three-dimensional scene and the tactile media files in the three-dimensional scene. The description information of the tactile media files includes the access address of the tactile media files, the attribute information of the tactile media files (media type, used encoding and decoding parameters, etc.). At the same time, it also includes the format requirements for the tactile rendering data obtained by decoding the tactile media files. The format requirements for the tactile rendering data obtained after the tactile media decoding process include the description part and the encoding part (i.e., the tactile data obtained after the tactile media file processing) Figure 4The display engine also needs to understand the format requirements of the tactile media file and the format requirements of other media data, including the description information of the texture resources and tactile material properties that will be used later. After the display engine completes the parsing of the scene description file, it calls the media access function API to pass the access address of the tactile media file, the property information of the tactile media file (media type, codec used, etc.), and other information to the media access function. At the same time, the display engine also passes the format requirements of the decoded tactile media data and other media data specified in the parsed scene description file to the media access function by calling the media access function API. Then, the media access function requests the server to download the specified tactile media file or obtain the specified tactile media file from the local according to the access address of the tactile media file transmitted by the display engine. After that, the media access function establishes a corresponding pipeline for the media file according to information such as the media type and encoding and decoding parameters, and converts the obtained media data from the encapsulation format to the format required in the scene description file, that is, converts the tactile media file in the corresponding pipeline into the format specified in the scene description file (data type, data length and access method, etc.). In the pipeline, the tactile media file can be decapsulated, decrypted, decoded and post-processed. Then the pipeline stores the tactile rendering data and other media data of the tactile media file processed into the format specified by the scene description file in the specified cache. The cache can be created by the display engine calling the cache management module through the cache API. If the display engine does not create the corresponding cache, the media access function can create the corresponding cache by calling the cache management module through the cache API. The purpose is to realize the creation, update, release, etc. of the cache. Finally, the display engine reads the tactile rendering data of the tactile media file in the specified cache in the format specified by the scene description file to complete the rendering of the tactile part in the three-dimensional scene.

[0152] The following describes the scene description file supporting tactile media files, the media access function API, the media access function, the cache API, and the cache management.

[0153] 1. Scene description files that support tactile media files

[0154] Reference Fig. 9 As shown, Fig. 9 A schematic diagram of the structure of a scene description file supporting tactile media files provided in an embodiment of the present application. Fig. 9As shown, the scene description file supporting the tactile media file includes but is not limited to the following modules: MPEG media description module (MPEG_media) 901, MPEG interaction description module (MPEG_interactivity) 902, MPEG tactile description module (MPEG_haptic) 903, scene description module (scene) 904, node description module (node) 905, mesh description module (mesh) 906, accessor description module (accessor) 907, buffer slice description module (bufferView) 908, buffer description module (buffer) 909, camera description module (camera) 910, lighting description module (light) 911, MPEG tactile material (MPEG_material_haptic) 912, material description module (material) 913, texture description module (texture) 914, sampler description module (sampler) 915, texture resource (image) 916, animation description module (animation) 917 and skin description module (skin) 918. Fig. 9 The various parts in the scene description module are described in detail.

[0155] In order to enable the scene description file to correctly describe the information related to the tactile media file in the three-dimensional scene, some embodiments of the present application extend the values ​​of the syntax elements in the MPEG media description module (MPEG_media) 901 of the scene description file, and the specific extension includes at least one of the following:

[0156] Extension 1: The value of the media type syntax element (mimeType) used to declare the media resource type of the media file in the optional version list (alternatives) of the media list (media) of the MPEG media description module (MPEG_media) of the scene description file is extended. The extension of the media type syntax element (mimeType) includes: adding a value associated with the tactile media file to the media type syntax element (mimeType). For example: when the media list of the MPEG media description module of the scene description file includes tactile media, and the value of the media type syntax element (mimeType) used to declare the media resource type of the media file complies with the relevant provisions of the ISO / IEC 23090-32 standard, when the media file is a media file including audio, video and tactile data, the value of the media type syntax element (mimeType) is "video / mp4"; when the media file is a media file including only audio and tactile data, the value of the media type syntax element (mimeType) is "video / mp4"; when the media file is a media file including only tactile data, the value of the media type syntax element (mimeType) is "haptics / mp4".

[0157] Extension 2: The value of the first track index syntax element (track) used to declare the track information of the media file in the track array (tracks) of the optional version list (alternatives) of the media list (media) of the MPEG media description module (MPEG_media) of the scene description file is extended. The extension of the first track index syntax element (track) includes: when the encoded tactile media file is referenced by the scene description file as an item in the array of the optional version list of the media list of the MPEG media description module, the reference track selection method in the ISO / IEC 23090-32 standard should be followed. For example: when the tactile media is encapsulated into an MIHS track by ISOBMFF, this MIHS track should be referenced in the MPEG media description module; when the tactile media is encapsulated into multiple MIHS tracks by ISOBMFF, it is necessary to refer to the subsequent supplementary content of ISO / IEC 23090-32.

[0158] Extension 3: The value of the codec parameter syntax element (codecs) used to declare the codec type of the media data contained in the codestream track in the track array (tracks) of the optional version list (alternatives) of the media list (media) of the MPEG media description module (MPEG_media) of the scene description file is extended. The codec parameters of the media files contained in the codestream track are defined in IETFRFC 6381. When the codestream track contains different types of codecs (for example, AdaptationSet contains representations with different codecs), the codec parameter syntax element (codecs) can be represented by a comma-separated list of codec values. That is, the extension of the value of the codec parameter syntax element (codecs) includes: when the media data is tactile data and the encapsulation follows the ISO / IEC 23090-32 standard, the value of the codec parameter syntax element (codecs) should be set in accordance with the provisions of the ISO / IEC 23090-32 Carriage of haptics data standard. For example, when the tactile data is encapsulated in ISMBOFF, the first group of elements of the codec parameter syntax element (codecs) is the code representing the codec in ISO / IEC 23090-31, and the codec parameter syntax element (codecs) parameters and their format are: "codecs":"mih1.oo", where "mih1" is a data format description of tactile data encapsulated in ISOBMFF. This value is not unique and allows other sample format names that conform to ISOBMFF encapsulation to be replaced. Where "oo" is the object type indicator value defined on the "Object Type" page of the MP4 registration authority website.

[0159] That is, in order to enable the scene description file to correctly describe the tactile media file, some embodiments of the present application extend the values ​​of the syntax elements in the MPEG media description module (MPEG_media) in the scene description file, and the specific extension includes extending one or more of the following items as shown in Table 18:

[0160] Table 18

[0161]

[0162] It should be noted that the packaging of tactile media files is based on Figure 4 As shown in the data structure, the tactile media file not only has an information part, but also allows for a metadata configuration part. The embodiment of the present application does not limit the packaging method of the tactile media file, and the encoded and packaged tactile media file can be obtained according to the access address of the tactile media file in the MPEG media description module.

[0163] In order to enable the scene description file to correctly describe the tactile-related information in the three-dimensional scene, some embodiments of the present application independently extend the MPEG interaction description module (MPEG_interactivity) 902 in the scene description file. The MPEG interaction description module (MPEG_interactivity) 902 is used to describe the interaction trigger, interaction action, and the relationship between the interaction trigger and the interaction action. The definition of the first-level syntax elements of the MPEG interaction description module (MPEG_interactivity) 902 is shown in Table 19 below:

[0164] Table 19

[0165]

[0166] It should be noted that the above Table 19 only shows part of the content related to supporting tactile media, and the first level of the MPEG interaction description module (MPEG_interactivity) 902 may also include other syntax elements, which are not limited in the embodiment of the present application. The definition of the syntax elements in the triggers of the MPEG interaction description module (MPEG_interactivity) 902 is shown in the following Table 20:

[0167] Table 20

[0168]

[0169] The definition of the syntax elements in the actions of the MPEG interaction description module (MPEG_interactivity) 902 is shown in Table 21 below:

[0170] Table 21

[0171]

[0172] The definition of the syntax elements in the haptic action node list (hapticActionNodes) in the action list (actions) of the MPEG interaction description module (MPEG_interactivity) 902 is shown in Table 22 below:

[0173] Table 22

[0174]

[0175] The definition of the syntax elements in the behaviors of the MPEG interaction description module (MPEG_interactivity) 902 is shown in Table 23 below:

[0176] Table 23

[0177]

[0178] In order to support haptic media files in the scene description framework, some embodiments of the present application independently extend the MPEG haptic description module (MPEG_haptic) 903 in the scene description file. Figure 8 MPEG haptic (MPEG_haptic) 801 in the scene description file shown, the MPEG haptic description module (MPEG_haptic) 903 in the embodiment of the present application is no longer a description module of the next level of the node description module (node), but a top-level description module of the scene description file, and is no longer a media description module in the media list for indexing the MPEG media description module (MPEG_media) 901, but declares an accessor for accessing the haptic rendering data of the haptic media file in units of haptic objects. The top-level syntax elements in the MPEG haptic description module (MPEG_haptic) 903 are shown in Table 24 below:

[0179] Table 24

[0180]

[0181] The syntax elements in the haptic object (hapticObject) of the MPEG haptic description module (MPEG_haptic) 903 are shown in Table 25 below:

[0182] Table 25

[0183]

[0184] In some embodiments, the description method of the scene description module (scene) 904 and the node description module (node) 905 in the scene description file supporting the tactile media file includes: when the tactile media file is included in the three-dimensional scene, the description method of scene and node is used to describe the overall structure of the three-dimensional scene and the structural level and position of the tactile media file in the three-dimensional scene. Each three-dimensional scene is described using an independent scene description module. In the three-dimensional scene, there may be many specific objects, such as virtual digital people, three-dimensional objects in the vicinity, background pictures in the distance, virtual cameras representing the user's viewpoint and perspective, etc. The scene description file will use these specific objects as nodes in the three-dimensional scene. Each node can represent an object or a group of objects composed of several objects. The relationship between the nodes reflects the relationship between the components in the three-dimensional scene. Each scene description file can describe one or more three-dimensional scenes. The three-dimensional scenes can only be in parallel relationship, not in hierarchical relationship, that is, there is no relationship of inclusion and being included between the scenes. The nodes can be in parallel relationship or hierarchical relationship, that is, there is a relationship of inclusion and being included between the nodes, which allows multiple specific objects to be grouped together for representation. If a node is contained by another node, the contained node is called a child node, and the child node is represented by "children" instead of "node". By flexibly combining nodes and child nodes, a hierarchical node structure can be formed.

[0185] In some embodiments, the description method of the mesh description module (mesh) 906 in the scene description file supporting the tactile media file includes: for nodes representing three-dimensional objects, the scene description file will be described using the data format of the three-dimensional mesh, that is, the mesh description module (mesh) 906 is used for description. The mesh description module has a variety of specific information, such as three-dimensional coordinates, color and other information, which are all syntax elements in the attributes (mesh.primitives.attribute) of the primitives in the mesh description module 906. The most basic mesh description module contains the three-dimensional coordinates of the vertices, the connection relationship between the vertices, the color information of the vertices, and the three-dimensional coordinates of the required texture values. At the mesh description module level, the texture coordinates (Texcoord) of the three-dimensional coordinate set of the required texture value needs to be enabled so that the tactile values ​​obtained from the texture are attached to the corresponding three-dimensional coordinates of the three-dimensional object. The texture coordinates (Texcoord) and color data and other information are all attributes (mesh.primitives.attribute) in the primitives of the mesh description module. The tactile media does not need to refer to attributes such as the number of colors for definition at the grid description module level for the time being. It only needs to enable the MPEG tactile material description module (MPEG_material_haptic) 912 as a content supplement parallel to the material description module (material) 913 to support further definition of the tactile material.

[0186] In some embodiments, the description method of the material description module (material) 913 and the texture description module (texture) 914 in the scene description file supporting the tactile media file includes: describing the additional information of the surface of the three-dimensional object through the material description module (material) 913 and the texture description module (texture) 914. When describing a conventional three-dimensional object, only using the mesh description module to describe the geometric information of the three-dimensional object, or monotonically defining the color of the vertices in the three-dimensional mesh, is far from enough to improve the realism of the virtual object, which requires adding more information to the surface of the three-dimensional object. For conventional three-dimensional modeling technology, this process can also be referred to as mapping or adding textures. That is, the scene description file supporting the tactile media file is based on glTF2.0, and also uses the material description module (material) 913 and the texture description module (texture) 914, and the cooperative relationship between the material description module (material) 913 and the texture description module (texture) 914 includes: the material description module (material) 913 and the texture description module (texture) 914 jointly define the color and physical information of the surface of the object. The texture description module (texture) 914 specifies the sampler description module (sampler) 915 and the texture resource description module (image) 916. The sampler description module (sampler) 915 defines how to map the texture image to the surface of the object and implements the specific adjustment and packaging of the texture. The texture resource description module (image) 916 uses ULR to identify and index the texture resources.

[0187] In some embodiments, the description method of the MPEG tactile material description module (MPEG_material_haptic) 912 in the scene description file supporting the tactile media file includes: further describing the tactile material attributes through the MPEG tactile material description module (MPEG_material_haptic) 912. When the three-dimensional scene contains a tactile media file, the tactile material attributes in the material characteristics need to be considered. The MPEG tactile material (MPEG_material_haptic) 912 includes a tactile material attribute description module corresponding to each tactile material attribute (stiffness, friction, tactile texture, temperature, vibration, and customization), and the tactile material attribute description module includes an attribute type syntax element (type), and the value of the attribute type syntax element can be: high resolution (High_resolution), low resolution (Low_resolution), reference (Reference). An object containing tactile feedback in a three-dimensional scene may include different types of tactile material attributes. Different tactile material attributes on the same object can obtain tactile values ​​or tactile media that are felt by the user in different ways, so as to achieve associating tactile media in the scene description file to obtain tactile feedback.

[0188] As shown in Table 17, the MPEG tactile material description module (MPEG_material_haptic) 912 includes tactile material attribute description modules corresponding to multiple tactile material attributes (stiffness, friction, tactile texture, temperature, vibration and custom), and the tactile material attribute description module corresponding to each tactile material attribute includes the type of the tactile material attribute, specifically including: low resolution (Low_resolution), high resolution (High_resolution), reference (Reference), and other (Other). If the tactile material texture category of a tactile material attribute is low resolution or high resolution, it means that the tactile value at the texture coordinate point can be obtained from the texture image or other tactile texture material data packet. The value contained in each pixel point on the texture image or tactile texture material data packet represents the tactile value, and as shown in Tables 15 and 16, the bit depth of the tactile value of different tactile material texture types is different, such as the bit depth of the tactile value of the tactile material attribute of high resolution (High_resolution) is 16 bits, while the bit depth of the attribute of the tactile material attribute of low resolution (Low_resolution) is 8 bits. If the category of the tactile material attribute is reference, the tactile value of the texture coordinate point or a group of texture coordinate points is required to be able to index a group of tactile values ​​in time or space. At this time, relevant supplementary descriptions can be made through the MPEG interactive description module (MPEG_interactivity) 902 and the MPEG tactile description module (MPEG_haptic) 903. Among them, the MPEG interactive description module 902 and the MPEG tactile description module 900 will be enabled when the tactile media file is included in the scene description file, and the MPEG tactile material description module (MPEG_material_haptic) 912 contains the type of each tactile material attribute.

[0189] In some embodiments, the description method of the accessor description module (accessor) 907, the buffer slice description module (bufferView) 908, and the buffer description module (buffer) 908 in the scene description file supporting the tactile media file includes: pointing to the media description module corresponding to the tactile media file in the MPEG media description module (MPEG_media) through the value of the media index syntax element (buffer.MPEG_buffer_circular.media) of the MPEG circular buffer of the buffer description module. That is, the tactile media file needs to be specified in the buffer description module (buffer), but the uniform resource locator (Uniform Resource Locator, URL) of the tactile media file is not directly added in the buffer description module (buffer), but the index value of the media description module corresponding to the corresponding tactile media file in the MPEG media description module (MPEG_media) is declared through the media index syntax element (MPEG_buffer_circular.media) of the MPEG circular buffer of the buffer description module (buffer).

[0190] Exemplarily, if the media description module corresponding to the tactile media file in the MPEG media description module (MPEG_media) is the third media description module in the media list of the MPEG media (MPEG_media), then the value of the media index syntax element (buffer.MPEG_buffer_circular.media) in the MPEG circular buffer of the buffer description module can be set to "2", thereby indexing the access address in the third media description module in the MPEG media description module in the MPEG circular buffer of the buffer description module, so as to index the tactile media file through the (MPEG_buffer_circular) media index syntax element in the MPEG circular buffer of the buffer description module.

[0191] In some embodiments, the description method of the accessor description module (accessor) 907, the buffer slice description module (bufferView) 908, and the buffer description module (buffer) 908 in the scene description file supporting the tactile media file includes: indicating the track information when accessing the encapsulated file of the tactile media file through the track array (buffer.MPEG_buffer_circular.tracks.track) of the MPEG circular buffer of the buffer description module. Specifically, it includes: when the track array (buffer.MPEG_buffer_circular.tracks) of the MPEG circular buffer of the buffer description module contains multiple tracks (track), the pipeline should perform necessary processing on all referenced tracks to generate the data format requested by the buffer description module. If the media file referenced in the track array (buffer.MPEG_buffer_circular.tracks) of the MPEG circular buffer of the buffer description module has multiple alternative versions (alternatives), then each alternative version (alternatives) should record the selection of the track. When the track array (buffer.MPEG_buffer_circular.tracks) of the MPEG circular buffer of the buffer description module is not defined, the pipeline should perform necessary processing on all tracks in the MPEG media description module (MPEG_media) to generate the data format requested by the buffer description module (buffer), that is, to instruct the buffer description module (buffer) how to correctly store the data in the MPEG media description module (MPEG_media).

[0192] The syntax elements contained in the MPEG circular buffer (MPEG_buffer_circular) are shown in Table 26:

[0193] Table 26

[0194]

[0195] That is, based on the setting rule of the value of the media index syntax element (media) in Table 26, the value of the media index syntax element (media) in Table 26 is set to the index value of the media description module corresponding to the corresponding tactile media file in the MPEG media description module (MPEG_media), so as to index the tactile media file in the buffer description module. Based on the setting rule of the value of the syntax element "tracks" in Table 26, the value of the syntax element "tracks" in Table 26 is set to the track index containing the tactile media file in the MPEG media description module, so as to index the track of the tactile media file in the buffer description module.

[0196] In some embodiments, the description method of the camera description module (camera) 2612 of the scene description file supporting the tactile media file includes: defining the viewpoint, viewing angle and other visual information related to viewing of the node through the camera description module (camera) 910.

[0197] In some embodiments, the description method of the animation description module (animation) 2613 of the scene description file supporting the tactile media file includes: defining the animation added to the node through the animation description module (animation) 917 .

[0198] In some embodiments, the animation description module (animation) 917 can describe the animation added to the node through one or more of position movement, angle rotation, and size scaling.

[0199] In some embodiments, the animation description module (animation) 917 may also indicate at least one of the start time, end time, and implementation method of the animation added to the node.

[0200] That is, in the scene description file supporting the tactile media file, animation can also be added to the node representing the object in the three-dimensional object. The animation description module (animation) 917 describes the animation added to the node in three ways: position movement, angle rotation, and size scaling. It can also specify the start and end time of the animation and the implementation method of the animation.

[0201] In some embodiments, a description method of a skin description module (skin) 918 of a scene description file supporting a tactile media file includes: defining the movement and deformation relationship between a node-mounted three-dimensional mesh and a corresponding skeleton through the skin description module (skin) 918.

[0202] Exemplarily, the following is an example of a scene description file. Fig. 9 The scene description file shown is explained.

[0203]

[0204]

[0205]

[0206]

[0207]

[0208]

[0209]

[0210]

[0211] In the above example, the pair of curly brackets in lines 1 to 320 contain Fig. 9 The main contents of the scene description file shown in the figure, the scene description file that supports the tactile media file includes: digital asset description module ("asset":{}), extension list ("extensionsUsed":[]), extension description module ("extensions":{}), scene declaration (scene), scene list ("scenes":[]), node list ("nodes":[]), mesh list ("meshes":[]), tactile material list ("MPEG_material_Haptic":[]), texture list ("textures":[]), texture resource list ("images":[]), sampler list ("samplers":[]), accessor list ("accessors":[]), cache slice list ("bufferViews":[]), buffer list ("buffers":[]). The following describes each part and the information contained in each part from the perspective of analysis.

[0212] 1. Digital asset description module ("asset":{}): The digital asset description module is lines 2 to 4. From the "version":"2.0" in line 3 of the digital asset description module, it can be determined that the scene description file is written based on glTF 2.0, which is also the reference version of the scene description standard. From the parsing perspective, the display engine can determine which parser to select to parse the scene description file based on the digital asset description module.

[0213] 2. Extensions Used List ("extensionsUsed": []): The extensions used list is lines 6 to 13. Since the extensions used list includes six extensions: MPEG media (MPEG_media), MPEG interaction (MPEG_interactivity), MPEG haptics (MPEG_Haptic), MPEG haptic material (MPEG_material_Haptic), MPEG circular buffer (MPEG_buffer_circular), and MPEG time-varying accessor (MPEG_accessor_timed), it can be determined that the scene description file uses six MPEG extensions: MPEG media (MPEG_media), MPEG interaction (MPEG_interactivity), MPEG haptics (MPEG_Haptic), MPEG haptic material (MPEG_material_Haptic), MPEG circular buffer (MPEG_buffer_circular), and MPEG time-varying accessor (MPEG_accessor_timed). From the parsing perspective, the display engine can know in advance that the extensions involved in the subsequent parsing include: MPEG media, MPEG interaction, MPEG haptics, MPEG haptic material, MPEG circular buffer, and MPEG time-varying accessor based on the content of the extensions used list (extensionUsed).

[0214] 3. Extension description module ("extensions":{}): The extension list is lines 15 to 94. The extension description module includes three extension description modules: MPEG interactive description module ("MPEG_interactivity":{}), MPEG media description module ("MPEG_media":{}) and MPEG haptic description module ("MPEG_haptic":{}).

[0215] 3.1、MPEG interactive description module ("MPEG_interactivity":{}):MPEG interactive description module is lines 16 to 60.MPEG interactive description module includes three parts: trigger list ("triggers":[]), action list ("actions":[]) and behavior list (behaviors":[]). Among them, the trigger list ("triggers":[]) is lines 17 to 24. The trigger list includes two parallel curly brackets, indicating that two triggers are declared in the trigger list through two trigger description modules, and the "type":"TRIGGER_COLLISION" in lines 19 and 22 indicates that the types of the two triggers are collision. The action list (" The action list includes two parallel curly braces, indicating that two actions are declared in the action list through two action description modules. The first action description module (the content enclosed by the curly braces on lines 26 to 41) first indicates that the type of action corresponding to the first action description module is a haptic action through "type":"ACTION_SET_HAPTIC" on line 27, and then respectively through the three haptic action node arrays in the haptic action node list ("hapticActionNodes":[]) (the content enclosed by the curly braces on lines 29 to 32, lines 33 to 36 The content enclosed by the curly braces of the line 1, the content enclosed by the curly braces of lines 37 to 39) indicates that the nodes that need to be enabled for the haptic action include: the nodes corresponding to the node description modules with index values ​​0, 1, and 2 (the first, second, and third node description modules in the node list). The node corresponding to the node description module with an index value of 0 needs to enable the tactile media file, and needs to access the tactile rendering data of the tactile media file according to the first tactile object description module ("hapticObject":[]) in the MPEG tactile description module ("MPEG_haptic":{}). The node corresponding to the node description module with an index value of 1 also needs to be enabled. A tactile media file is used, and the tactile rendering data of the tactile media file needs to be accessed according to the second tactile object description module ("hapticObject":[]) in the MPEG tactile description module ("MPEG_haptic":{}), and the node corresponding to the node description module with an index value of 3 also needs to enable the tactile media file, but there is no index declaration about the tactile object description module, indicating that the node corresponding to the node description module with an index value of 3 will be declared in the corresponding grid description module through the MPEG tactile material (MPEG_material_Haptic) to implement the access to the tactile rendering data of the tactile media file.The content declared in the second action description module (the content enclosed by the curly braces in lines 42 to 50) is similar to that declared in the first action array. To avoid redundancy, it will not be described in detail. The behavior list ("behaviors":[]) is from lines 52 to 59. The behavior list includes two parallel curly braces, indicating that two behaviors are declared in the behavior list through two behavior arrays. The first behavior array (the content enclosed by the curly braces in lines 53 to 55) realizes the mutual association between the first trigger description module in the trigger list ("triggers":[]), the first action description module in the action list ("actions":[]), and the second action description module through "triggers":0 in line 53 and "actions":0,1 in line 54. The second behavior description module realizes the mutual association between the second trigger description module in the trigger list ("triggers":[]) and the second action description module in the action list ("actions":[]) through "triggers":1 in line 56 and "actions":1 in line 57.

[0216] 3.2. MPEG media description module ("MPEG_media":{}): The MPEG media description module is lines 61 to 81. The MPEG media description module implements the declaration of media files contained in the 3D scene. The media list ("media":[]) of the MPEG media description module only includes one brace (one media description module), indicating that only one media file is declared in the MPEG media of the scene description file. The media description module indicates that the file type of the encapsulated file corresponding to the media file is MP4 through "mimeType":"video / mp4" in line 69, the access address of the corresponding media file is indicated through "uri":"http: / / www.example.com / Hapticexample.mp4" in line 70, the track information of the corresponding media file is indicated through "track":"trackIndex=1" in line 73, the decoding information of the corresponding media file is indicated through "codecs":""mih1.oo" in line 74, the name of the corresponding media file is indicated through "name":"Hapticexample" in line 64, the corresponding media file should be played automatically through "autoplay":true in line 65, and the corresponding media file should be played in a loop through "loop":true in line 66. From the perspective of parsing, the display engine can determine that there is a tactile media file in the 3D scene to be rendered by parsing the MPEG media, and learn the method of accessing and parsing the tactile media file.

[0217] 3.3. MPEG haptic description module ("MPEG_haptic":{}): MPEG haptic includes two haptic object description modules ("hapticObject":[]). The first haptic object description module declares the accessors corresponding to the second accessor description module and the fifth accessor description module in the accessor list through "accessor":1,4 in line 85. Combined with the content of the haptic action node list of the first action description module in the action list ("actions":[]), it can be seen that the node corresponding to the node description module with an index value of 0 needs to access the haptic rendering data of the haptic media file according to the accessors corresponding to the second accessor description module and the fifth accessor description module in the accessor list. The second tactile object array declares the accessors corresponding to the third accessor description module and the fourth accessor description module in the accessor list through "accessor":2,3 in line 90. Combined with the content of the tactile action node list of the second action array of the action list ("actions":[]), it can be seen that the node corresponding to the node description module with an index value of 1 needs to access the tactile rendering data of the tactile media file according to the accessors corresponding to the third accessor description module and the fourth accessor description module in the accessor list.

[0218] 4. Scene declaration (scene): The scene declaration is on line 96. Because in theory a scene description file can include scene description modules of multiple 3D scenes, the scene description file first points out through "scene":0 on line 96 that the scene to be subsequently processed and rendered (the 3D scene to be rendered) is the 3D scene corresponding to the first scene description module in the scene list ("scenes":[]) of the scene description file, that is, the scene described in the scene description file enclosed in the curly brackets on lines 99 to 103. From a parsing perspective, the scene declaration clarifies that the entire scene description framework should select the 3D scene corresponding to the first scene description module in the scene list ("scenes":[]) for subsequent processing and rendering.

[0219] 5. Scene list ("scenes":[]): The scene list is lines 98 to 104. The scene list contains only one curly bracket, indicating that the scene description file contains only one scene description module (scene), and the scene description file describes only one three-dimensional scene. The curly bracket (scene description module) indicates that the three-dimensional scene includes three nodes through the node index list and its content "nodes":[0,1,2] in lines 100 to 102. The three nodes are the nodes corresponding to the first to third node description modules in the node list ("nodes":[]). From the perspective of parsing, the scene list ("scenes":[]) clarifies the overall structure of the three-dimensional scene and points to the node description module (node) of the next level with more details.

[0220] 6. Node list ("nodes":[]): The node list is lines 106 to 119. The node list contains three curly brackets, indicating that the scene description file includes three node description modules, the three-dimensional scene has three nodes, and the three nodes correspond one-to-one to the nodes indexed in the node index list of the only scene description module in the scene list ("scenes":[]), and the two are associated through indexing. In the first node description module (the content enclosed by the curly brackets in lines 107 to 110), the name of the corresponding node is "Hapticexample_node1" through "name":"Hapticexample_node1" in line 108, and the content mounted on the corresponding node is the first three-dimensional mesh in the mesh list ("meshes":[]) through "mesh":"0" in line 109, which corresponds to the mesh description module of the next layer. From the parsing perspective, the first node description module in the node list ("nodes":[]) indicates that the content mounted on the node is a three-dimensional grid, and the index of the grid description module of the three-dimensional grid is 0. The contents declared in the second node description module (the contents enclosed by the curly braces on lines 111 to 114) and the third node description module (the contents enclosed by the curly braces on lines 115 to 118) are similar to those declared in the first node description module, and will not be described in detail here to avoid redundancy.

[0221] 7. Mesh list ("meshes":[]): The mesh list is from line 121 to line 159. The mesh list contains three curly brackets, indicating that the scene description file includes three mesh description modules (mesh), and the three-dimensional scene has three three-dimensional meshes, and the three three-dimensional meshes are mesh description modules indexed by the node description module through the mesh index syntax element ("mesh"). In the target mesh description module (the content enclosed by the curly brackets from line 122 to line 132), the name of the corresponding three-dimensional mesh is "Hapticexample_mesh1" through "name":"Hapticexample_mesh1" in line 123, which is only used as an identification mark, and the corresponding three-dimensional mesh has primitive information, namely primitives, through "primitives" in line 124. The existence of two types of information in the primitives, namely attributes and modes, is indicated by "attributes" in line 126 and "mode" in line 129. The "TEXCOORD_0":0 in line 127 indicates that the accessor corresponding to the texture coordinate is the first accessor description module in the accessor list. The "mode":0 in line 129 indicates that the topological structure of the corresponding three-dimensional mesh is a scattered point structure. The contents declared in the second mesh description module (the contents enclosed by the curly brackets in lines 133 to 158) and the third mesh description module (the contents enclosed by the curly brackets in lines 133 to 132) are similar to those declared in the first mesh description module, except that the primitives of the third mesh description module also include the MPEG material haptic (MPEG_material_Haptic) extension, and the MPEG haptic material description modules ("MPEG_material_Haptic":{}) in lines 153 and 154 indicate that the three-dimensional mesh corresponding to the third mesh description module carries haptic material attributes and points to the first haptic material array in the more detailed next-level haptic material list ("MPEG_material_Haptic":[]).

[0222] 8. Haptic material list ("MPEG_material_Haptic":[]): The tactile material list is lines 161 to 187. The tactile material list (MPEG_material_Haptic) contains only one curly bracket, indicating that the scene description file contains only one tactile material array (the content enclosed by the curly brackets on lines 162 to 185). The tactile material array defines three tactile material properties, namely stiffness, temperature, and vibration, through three tactile material description modules on lines 164 to 170, 171 to 177, and 178 to 184, respectively. Each tactile material attribute includes two types of information: a texture array ("texture":{}) and a tactile material type (type). The description module corresponding to stiffness is lines 164 to 170. The "index":0 on line 166 defines that stiffness points to the first texture description module in the texture list. The "texCoord":0 on line 167 defines that stiffness uses the texture coordinates accessed by the accessor indexed by the first texture coordinate syntax element (TexCoord_n) in the grid list as the coordinate reference for texture attachment to the tactile material attribute. The "type":Low_resolution on line 169 defines that the type of the tactile material attribute of stiffness is low resolution (Low_resolution). The length of the tactile values ​​of the subsequent stiffness attributes is 8 bits. Temperature (temperature) The description modules corresponding to texture are lines 171 to 177. The "index":1 in line 173 defines that temperature points to the second texture description module in the texture list. The "type":Reference in line 176 defines that the type of tactile material texture of temperature is reference. The description modules corresponding to vibration are lines 178 to 185. The "index":2 in line 180 defines that vibration points to the third texture description module in the texture list. The "type":Reference in line 183 defines that the type of tactile material texture of vibration is reference. From the perspective of analysis, the texture type and source of the tactile material attribute contained in the object can be determined according to the tactile material list (MPEG_material_Haptic) and point to the next-level description module, the texture description module, which is more detailed.

[0223] 9. Texture list ("textures":[]): The texture list is lines 189 to 202. The texture list contains three curly brackets, indicating that the scene description file includes three texture description modules, and the three texture description modules are the texture description modules corresponding to stiffness, temperature, and vibration. The texture description modules corresponding to stiffness, temperature, and vibration all include sampler syntax elements (sampler) and source syntax elements (source). According to the values ​​of the sampler index syntax element (sampler) and the texture resource index syntax element (source), the access addresses of the samplers and texture resources of stiffness, temperature, and vibration can be determined; the access address of the texture resource corresponds to the texture resource list ("images":[]) of the next level, and the sampler information corresponds to the sampler list ("samplers":[]) of the next level.

[0224] 10. Texture resource list ("images":[]): The texture resource list is lines 204 to 214. The texture resource list contains three curly brackets, which correspond to the access addresses of the texture resources referenced in the texture description modules of stiffness, temperature, and vibration. According to {"uri":"stiffnessTexture.png"} in lines 205 to 207, the access address of the texture resource of stiffness can be determined as stiffnessTexture.png. According to {"uri":"temperatureTexture.png"} in lines 208 to 210, the access address of the texture resource of temperature can be determined as temperatureTexture.png. According to {"uri":"Texture.png"} in lines 211 to 213, the access address of the texture resource of vibration can be determined as vibrationTexture.png.

[0225] 11. Sampler list ("samplers":[]), the sampler list is lines 216 to 221. The sampler list contains a curly bracket, indicating that the scene description file includes a sampler description module, the display of the 3D scene only needs to use one sampler, and the description information of the corresponding sampler can be determined by "magFilter":9729, "minFilter":9987, "wrapS":33648, "wrapT":33648 in lines 217 to 220.

[0226] 12. Buffer list ("buffers":[]): The buffer list is lines 304 to 319. The buffer list contains two curly brackets, indicating that the scene description file includes two buffer description modules, and the display of the three-dimensional scene requires the use of two buffers. According to the first buffer description module (the content enclosed by the curly brackets on lines 305 to 308), it can be determined that the size of the first buffer is 1000, and the address of the media file to be stored is "AnimatedBody.bin", which includes coordinate content that requires adding texture information to specific three-dimensional coordinates. According to the MPEG circular buffer ("MPEG_buffer_circular":{}) in the second buffer description module (the content enclosed by the curly brackets on lines 309 to 318), it can be determined that the second buffer is a circular buffer modified using MPEG extensions. The "media:0" in line 314 indicates that the data source in the ring buffer is the first media file declared in the MPEG media (MPEG_media) in the previous text. The "tracks":"#trackIndex=1" in line 315 indicates that the track with index 1 should be referenced when accessing the tactile media package file. The track with index 1 is not limited here. It can be the only track of the tactile file packaged by a single track or the reference track of the tactile file packaged by multiple tracks. In addition, according to the "count":3 in line 313, it can be determined that the MPEG ring buffer has three storage links. According to "byteLength": 11000 in line 310, it can also be determined that the byte length (capacity) of the MPEG ring buffer is 11000 bytes. From the parsing perspective, the buffer list realizes the correspondence of the tactile media files declared in the MPEG media (MPEG_media) to the buffer, or in other words, the buffer references the tactile media files that were previously only declared but not used. It should be noted that the tactile media files referenced here are encapsulated files of unprocessed tactile media files. The encapsulated files of tactile media files need to be processed by the media access function to extract information that can be directly used for rendering.

[0227] 13. Cache slice list ("bufferViews":[]): The cache slice list is lines 276 to 302. The cache slice list contains five parallel curly braces, indicating that the scene description file includes five cache slice description modules. Through the "buffer":0 on line 278 of the first cache slice description module (the content enclosed by the curly braces on lines 277 to 281), it can be determined that the cache slice corresponding to the first cache slice description module is the cache slice of the buffer corresponding to the first cache description module in the cache list. Through the "byteLength":1000 on line 279 and the "byteOffset":0 on line 280, it is declared that the data slice range of the corresponding cache slice is the first 1000 bytes of the first buffer. Through the "buffer":1 on line 283 of the second cache slice description module (the content enclosed by the curly brackets on lines 282 to 286), it can be determined that the cache slice corresponding to the second cache slice description module is the cache slice of the cache corresponding to the second cache description module in the cache list. Through the "byteLength":2000 on line 284 and the "byteOffset":0 on line 285, it is declared that the data slice range of the corresponding cache slice is the first 2000 bytes of the second cache. The contents declared in the third cache slice description module, the fourth cache slice description module, and the fifth cache slice description module are similar to those declared in the second cache slice description module. To avoid redundancy, they will not be described in detail here. From a parsing perspective, the cache slice list groups the data of the media file, which is conducive to the detailed definition of the subsequent accessor description module.

[0228] 14. Accessor list ("accessors":[]): The accessor list is lines 223 to 274. The structure of the accessor list is similar to that of the cache slice list, both of which contain five parallel curly braces, indicating that the 3D scene description file includes five accessor description modules (accessor), and the display of the 3D scene requires access to media data through three accessors. The first accessor description module (the content enclosed by the curly braces on lines 224 to 229) indicates through "bufferView":0 on line 225 that the accessor corresponding to the first accessor description module is used to access the first cache slice in the cache slice list. It can also be indicated through "componentType":5121 on line 226 that the data format accessed by the accessor corresponding to the first accessor description module is 8-bit unsigned short (unsign short, 8bits), and through "type":"VEC2" on line 227, the type is a two-dimensional vector (VEC2), and through "count":500 on line 228, it is indicated that there are 500 data that need to be accessed through this accessor. The second accessor description module (the content enclosed in curly braces on lines 230-240), the third accessor description module (the content enclosed in curly braces on lines 241-251), the fourth accessor description module (the content enclosed in curly braces on lines 252-262), and the fifth accessor description module (the content enclosed in curly braces on lines 263-273) all have MPEG time-varying accessor ("MPEG_accessor_timed"), indicating that the corresponding accessors are all MPEG time-varying accessors, and they all point to time-varying media defined by MPEG. The second accessor description module can determine that the corresponding accessor is used to access the cache slice corresponding to the second cache slice description module in the cache slice list ("bufferViews":[]) through "bufferView":1 on line 236, and the "immutable":true on line 237 indicates that the value of the syntax element in the corresponding accessor does not change over time, and the data type of the data accessed by the corresponding accessor, the corresponding accessor type, and the number of data accessed by the corresponding accessor can also be declared through "componentType", "type" and "count". The contents declared in the third accessor description module, the fourth accessor description module, and the fifth accessor description module are similar to those declared in the second accessor description module, and are not described in detail here to avoid redundancy. From a parsing perspective, the accessor list completes the complete definition of the data required for rendering. For example, the data types missing in the cache slices and buffers are defined in the corresponding accessor description modules.

[0229] 2. Display engine that supports tactile media files

[0230] In the workflow of the scene description framework of immersive media, the main functions of the display engine include: parsing the scene description file to obtain the method of rendering the three-dimensional scene; sending media access instructions or media data processing instructions to the media access function through the media access function API; sending cache management instructions to the cache management module through the cache API; taking the processed data from the cache, and completing the rendering and display of the three-dimensional scene and the objects in the three-dimensional scene according to the read data. Therefore, the functions of the display engine that supports tactile media include: 1. being able to parse the scene description file containing tactile media and obtain the corresponding three-dimensional scene rendering method; 2. being able to transmit media access instructions or media data processing instructions to the media access function through the media access function API; wherein the media access instructions or media data processing instructions come from the parsing result of the scene description file containing tactile media; 3. being able to send cache management instructions to the cache management module through the cache management API; 4. being able to take the tactile rendering data of the processed tactile media file from the cache, and completing the rendering and display of the three-dimensional scene and the tactile media file contained in the three-dimensional scene according to the taken tactile rendering data.

[0231] 3. Media access function API supporting tactile media files

[0232] In the workflow of the scene description framework of immersive media, the display engine can obtain the method of rendering the three-dimensional scene by parsing the scene description file, and needs to pass the method of rendering the three-dimensional scene to the media access function or send instructions to the media access function based on the method of rendering the three-dimensional scene. The process of passing the method of rendering the three-dimensional scene to the media access function or sending instructions to the media access function based on the method of rendering the three-dimensional scene is implemented through the media access function API.

[0233] In some embodiments, the display engine may send a media access instruction or a media data processing instruction to the media access function through a media access function API. The instructions issued by the display engine come from the parsing result of the scene description file containing the attribute information of the tactile media, and these instructions may include the address of the media file, the attribute information of the media file (media type, the codec used, etc.), the format requirements for the processed tactile media data and other media data, etc.

[0234] In some embodiments, the media access function may also request a media access instruction or a media data processing instruction from the display engine through a media access function API.

[0235] 4. Media access functions that support tactile media files

[0236] In the workflow of the scene description framework of immersive media, after the media access function receives the media access instruction or media data processing instruction issued by the display engine through the media access function API, it will execute the media access instruction or media data processing instruction issued by the display engine through the media access function API. For example: obtaining tactile media files, establishing appropriate pipelines for tactile media files to convert the data of tactile media files into the format specified in the instruction, and allocating appropriate caches for processing tactile media data and other media data in the format specified in the scene description file.

[0237] In some embodiments, the media access function obtains the haptic media file, including: downloading the haptic media file from a server using a network transmission service.

[0238] In some embodiments, the media access function obtains the haptic media file, including: reading the haptic media file from a local storage space.

[0239] After the media access function obtains the tactile media file, it needs to process the tactile media file. The processing process of different types of media files is quite different. In order to achieve wide support for media types and also consider the working efficiency of the media access function, multiple pipelines are designed in the media access function. In the process of processing media files, only the pipeline matching the media type is enabled.

[0240] 5. Support caching API for tactile media files

[0241] After the media access function processes the data of the tactile media file, the media access function also needs to deliver the processed data to the display engine in a standardized arrangement structure. This requires the processed data to be correctly stored in the cache. This work is completed by the cache management module, but the cache management module needs to obtain cache management instructions from the media access function or the display engine through the cache API.

[0242] In some embodiments, the media access function may send a cache management instruction to the cache management module through a cache API, wherein the cache management instruction is a cache management instruction sent by the display engine to the media access function through the media access function API.

[0243] In some embodiments, the display engine may send cache management instructions to the cache management module via a cache API.

[0244] That is, the cache management module can communicate with the media access function through the cache API, and can also communicate with the display engine through the cache API, and the purpose of communicating with the media access function or the display engine is to achieve cache management. When the cache management module communicates with the media access function through the cache API, the display engine needs to first send the cache management instruction to the media access function through the media access function API, and the media access function then sends the cache management instruction to the cache management module through the cache API; when the cache management module communicates with the display engine through the cache API, the display engine only needs to generate the cache management instruction based on the cache management information parsed from the scene description file, and send it to the cache management module through the cache API.

[0245] In some embodiments, the cache management instruction may include one or more of an instruction to create a cache, an instruction to update a cache, and an instruction to release a cache.

[0246] 6. Cache management module that supports tactile media files

[0247] In the workflow of the scene description framework of immersive media, after the media access function completes the data processing of the tactile media file through the pipeline, the processed data needs to be delivered to the display engine in a standardized arrangement structure. This requires the processed data to be correctly stored in the cache, which is the responsibility of the cache management module.

[0248] The cache management module implements management operations such as cache creation, update, and release, and the operation instructions are received through the cache API. The cache management rules are recorded in the scene description document, parsed by the display engine, and finally issued to the cache management module by the display engine or the media access function. After the media file is processed by the media access function, it needs to be stored in a suitable cache and then accessed by the display engine. The role of cache management is to manage these caches well so that they match the format of the processed media data without disrupting the processed media data. The specific design method of the media management module should be based on the design of the display engine and the media access function.

[0249] Based on the above content, some embodiments of the present application provide a method for generating a scene description file, referring to Fig.10 As shown, the method for generating the scene description file includes the following steps: S101 to S105:

[0250] S101 : Determine a tactile media accessor associated with a target action node when a target tactile action is performed in a to-be-rendered three-dimensional scene.

[0251] The tactile media accessor is an accessor for accessing the tactile rendering data of the tactile media file declared in the MPEG media description module ("MPEG_media":{}) associated with the target action node when executing the target tactile action.

[0252] In the embodiment of the present application, the tactile rendering data of the tactile media file is obtained by decapsulating, decoding, decrypting, format conversion, etc. of the tactile media file, and can be directly used for rendering the three-dimensional scene, or can be obtained by performing other processing on the tactile media file. The tactile rendering data of the tactile media file may include the tactile value of the tactile material attribute, and the tactile material attribute may include: stiffness, friction, tactile texture, temperature, vibration, and one or more of custom attributes.

[0253] It should be noted that, since the tactile rendering data of the tactile media file associated with the same node in the three-dimensional scene to be rendered may be different when the three-dimensional scene to be rendered performs different tactile actions (the tactile rendering data of the tactile media file used to render the node may be different), the tactile media accessor associated with the same node in the three-dimensional scene to be rendered may be different when the three-dimensional scene to be rendered performs different tactile actions. For example: when the three-dimensional scene to be rendered performs tactile action A, the tactile media accessors associated with node 1 in the three-dimensional scene to be rendered are accessor 1 and accessor 2, and when the three-dimensional scene to be rendered performs tactile action B, the tactile media accessors associated with node 1 in the three-dimensional scene to be rendered are accessor 2 and accessor 3. For another example: when the three-dimensional scene to be rendered performs tactile action C, the tactile media accessors associated with node 2 in the three-dimensional scene to be rendered are accessor 0 and accessor 1, and when the three-dimensional scene to be rendered performs tactile action D, node 2 in the three-dimensional scene to be rendered does not need to perform tactile feedback and does not perform tactile rendering, so node 2 is not associated with a tactile media accessor.

[0254] It should also be noted that when executing the target haptic action, the haptic media accessors associated with the target action node can be any number, that is, when executing the target haptic action, the haptic media accessors associated with the target action node can be one or more.

[0255] S102, generating a target haptic object description module ("hapticObject":[]) according to the index value of the accessor description module corresponding to the haptic media accessor, and adding the target haptic object description module to the MPEG haptic description module ("MPEG_haptic":{}) of the scene description file of the 3D scene to be rendered.

[0256] That is, in order to associate the tactile rendering data of the tactile media file with the nodes in the three-dimensional scene, the embodiment of the present application introduces the concept of tactile object (hapticObject) through MPEG haptic (MPEG_haptic), and associates the tactile rendering data of the tactile media file with the nodes in the three-dimensional scene through the tactile object.

[0257] In some embodiments, generating a target tactile object description module according to an index value of an accessor description module corresponding to the tactile media accessor includes:

[0258] An accessor index syntax element (accessor) is added to the target tactile object description module, and a value of the accessor index syntax element is set to an index value of the accessor description module corresponding to the tactile media accessor.

[0259] Exemplarily, when the tactile media accessors include two, and the index values ​​of the accessor description modules corresponding to the two tactile media accessors are 1 and 4 respectively, the target tactile object description module generated according to the index values ​​of the accessor description modules corresponding to the tactile media accessors may be as follows:

[0260]

[0261] As described in the above example, the index values ​​of the accessor description modules corresponding to multiple tactile media accessors can be separated by ",".

[0262] S103. Generate a target haptic action node array according to the index value of the node description module corresponding to the target action node and the index value of the target haptic object description module, and add the target haptic action node array to the haptic action node list ("hapticActionNodes":[]) of the target action description module of the MPEG interactive description module ("MPEG_interactivity":{}) of the scene description file.

[0263] Among them, the target action description module is an action description module corresponding to the target tactile action.

[0264] In some embodiments, generating a target tactile action node array according to the index value of the node description module corresponding to the target action node and the index value of the target tactile object description module includes the following steps 1031 and 1032:

[0265] Step 1031: Add a node index syntax element (node) to the target tactile action node array, and set the value of the node index syntax element to the index value of the node description module corresponding to the target action node.

[0266] Step 1032: Add a haptic object index syntax element (hapticObject) to the target haptic action node array, and set the value of the haptic object index syntax element to the index value of the target haptic object description module.

[0267] Exemplarily, when the index value of the node description module corresponding to the target action node is 0 and the index value of the target tactile object description module is 1, the target tactile action node array generated according to the index value of the node description module corresponding to the target action node and the index value of the target tactile object description module may be as follows:

[0268]

[0269] It should be noted that there may be multiple nodes that need to be tactilely rendered when the three-dimensional scene to be rendered executes the target tactile action, and some nodes obtain tactile values ​​by obtaining tactile values ​​from tactile textures (obtaining relevant tactile values ​​through tactile materials in the mesh description module of the three-dimensional mesh on which it is mounted) without the need to associate tactile objects. Therefore, the tactile action node list of the target action description module may include multiple tactile action node arrays, and the multiple tactile action node arrays may include tactile action node arrays that do not contain tactile object index syntax elements (hapticObject).

[0270] Exemplarily, when a tactile action is performed in a three-dimensional scene to be rendered, the nodes that need to be rendered include node A, node B, and node C. The index values ​​of the node description modules corresponding to nodes A, node B, and node C are 0, 1, and 2, respectively. The index value of the tactile object description module corresponding to the tactile object associated with node A is 0, and the index value of the tactile object description module corresponding to the tactile object associated with node B is 1. Node C uses tactile materials in the grid description module of the mounted three-dimensional grid to obtain relevant tactile values, and is not associated with a tactile object. Then, the tactile action node list of the action description module corresponding to the tactile action can be as follows:

[0271]

[0272] Among them, the content of the n+02th to n+05th rows is the tactile action node array corresponding to node A, the content of the n+06th to n+09th rows is the tactile action node array corresponding to node B, and the content of the n+10th to n+12th rows is the tactile action node array corresponding to node C.

[0273] The scene description file generation method provided by the implementation of the present application generates a scene description file for a three-dimensional scene to be rendered. The method first determines a tactile media accessor associated with a target action node when the three-dimensional scene to be rendered performs a target tactile action. The tactile media accessor is an accessor for accessing tactile rendering data of a tactile media file declared in an MPEG media description module associated with the target action node when the target tactile action is performed. Then, on the one hand, a target tactile object description module is generated according to an index value of an accessor description module corresponding to the tactile media accessor, and the target tactile object description module is added to the MPEG tactile description module of the scene description file of the three-dimensional scene to be rendered. On the other hand, a target tactile action node array is generated according to an index value of a node description module corresponding to the target action node and an index value of the target tactile object description module, and the target tactile action node array is added to a tactile action node list of a target action description module of an MPEG interactive description module of the scene description file. Since the tactile media accessor is an accessor for accessing the tactile rendering data of the tactile media file associated with the target action node when executing the target tactile action, and the target action description module is the action description module corresponding to the target tactile action, when the three-dimensional scene to be rendered is triggered to perform the target tactile action, it can be determined that the target action node needs to be rendered according to the target tactile action node array and the target tactile object description module, and the data for rendering the target action node is the tactile rendering data of the tactile media file obtained by accessing the tactile media accessor. Therefore, the above embodiment realizes the association between the tactile action, the node and the tactile rendering data of the tactile media file, thereby realizing the support of tactile media files in the scene description framework.

[0274] In some embodiments, the method for generating a scene description file further includes:

[0275] An action type syntax element (type) is added to the target action description module, and a value of the action type syntax element is set according to the action type of the target action.

[0276] As described in the above example, after adding an action type syntax element to the target action description module and setting the value of the action type syntax element according to the action type of the target action, the target action description module may be as follows:

[0277]

[0278] In some embodiments, the method for generating the scene description file further includes: generating a target behavior array corresponding to the target behavior according to the index value of the trigger description module corresponding to the trigger associated with the target behavior and the index value of the action description module corresponding to the action associated with the target behavior, and adding the target behavior array to the behavior list (behaviors":[]) of the MPEG interactive description module ("MPEG_interactivity":{}). The target behavior is any behavior in the three-dimensional scene to be rendered.

[0279] In some embodiments, generating a target behavior array corresponding to the target behavior according to an index value of a trigger description module corresponding to a trigger associated with the target behavior and an index value of an action description module corresponding to an action associated with the target behavior comprises the following steps 1 and 2:

[0280] Step 1: Add a trigger index syntax element (triggers) to the target behavior array, and set the value of the trigger index syntax element to the index value of the trigger description module corresponding to the trigger associated with the target behavior.

[0281] Step 2: Add an action index syntax element (actions) to the target behavior array, and set the value of the action index syntax element to the index value of the action description module corresponding to the action associated with the target behavior.

[0282] It should be noted that a behavior can be associated with one or more actions.

[0283] Exemplarily, the index value of the trigger description module corresponding to the trigger associated with the target behavior is 0, the target behavior is associated with two actions, and the index values ​​of the action description modules corresponding to the two actions are 1 and 2 respectively, then the target behavior array corresponding to the target behavior can be shown as follows:

[0284]

[0285] In some embodiments, the method for generating the scene description file further includes: generating a target trigger description module corresponding to the target trigger according to the type of the target trigger, and adding the target trigger description module to the trigger list ("triggers":[]) of the MPEG interactive description module ("MPEG_interactivity":{}). The target trigger is any trigger in the three-dimensional scene to be rendered.

[0286] In some embodiments, generating a target trigger description module corresponding to the target trigger according to the type of the target trigger includes: adding a trigger type syntax element (type) in the target trigger description module, and setting the value of the trigger type syntax element according to the type of the target trigger.

[0287] As shown in Table 20 above, if the target trigger type is collision, the trigger type syntax element and its value are set to "type":"TRIGGER_COLLISION"; if the target trigger type is proximity, the trigger type syntax element and its value are set to "type":"TRIGGER_PROXIMITY"; if the target trigger type is user access, the trigger type syntax element and its value are set to "type":"RIGGER_USER_INPUT"; if the target trigger type is visible, the trigger type syntax element and its value are set to "type":"TRIGGER_VISIBILITY".

[0288] Exemplarily, if the target trigger type is collision, the target trigger description module corresponding to the target trigger may be as follows:

[0289]

[0290] In some embodiments, the method for generating the scene description file also includes: generating a target media description module corresponding to the tactile media file according to the description information of the tactile media file, and adding the target media description module to the media list ("media") of the MPEG media description module ("MPEG_media":{}) of the scene description file.

[0291] In some embodiments, generating a target media description module corresponding to the tactile media file according to the description information of the tactile media file comprises at least one of the following steps 31 to 35:

[0292] Step 31: Add a media name syntax element (name) in the target media description module, and set the value of the media name syntax element according to the name of the tactile media file.

[0293] For example, if the name of the tactile media file is "Hapticexample", a media name syntax element (name) is added to the target media description module, and the media name syntax element and its value are set to "name":"Hapticexample".

[0294] Step 32: Add an autoplay syntax element (autoplay) in the target media description module, and set the value of the autoplay syntax element according to whether the tactile media file needs to be automatically played.

[0295] For example, if the tactile media file needs to be played automatically, then a syntax element "autoplay" is added to the target media description module, and the autoplay syntax element and its value are set to "autoplay":true or "autoplay":1.

[0296] For another example, if the tactile media file does not need to be played automatically, a syntax element "autoplay" is added to the target media description module, and the autoplay syntax element and its value are set to "autoplay":false or "autoplay":0.

[0297] Step 33: loop-play syntax element (loop) in the target media description module, and set the value of the loop-play syntax element according to whether the tactile media file needs to be loop-played.

[0298] For example, if the tactile media file needs to be played in a loop, a syntax element "loop" is added to the target media description module, and the loop play syntax element and its value are set to "loop":true or "autoplay":1.

[0299] For another example, if the tactile media file does not need to be played in a loop, a syntax element "loop" is added to the target media description module, and the loop play syntax element and its value are set to "loop": false or "autoplay": 0.

[0300] Step 34: Add an optional version list ("alternatives": []) to the target media description module.

[0301] Step 35: Generate an optional version description module corresponding to each optional version of the tactile media file according to the description information of each optional version of the tactile media file, and add the optional version description module corresponding to each optional version of the tactile media file to the optional version list ("alternatives": []).

[0302] In some embodiments, generating the optional version description module corresponding to each optional version of the tactile media file according to the description information of each optional version of the tactile media file in the above step 35 includes at least one of the following steps 351 to 355:

[0303] Step 351: Add a media type syntax element (mimeType) in the target optional version description module corresponding to the target optional version, and set the value of the media type syntax element according to the data contained in the target optional version.

[0304] The target optional version is any optional version of the tactile media file, that is, the optional version description module can be generated for each optional version of the tactile media file through the embodiment of the present application.

[0305] In some embodiments, the value of the media type syntax element is set according to the data contained in the target optional version, including: when the tactile media file includes audio and / or video data, setting the value of the media type syntax element to a first preset value; when the tactile media file does not include audio and video data, setting the value of the media type syntax element to a second preset value.

[0306] Exemplarily, the first preset value may be "video / mp4", and the second preset value may be "haptic / mp4".

[0307] Step 352: Add a uniform resource identifier syntax element (URI) to the target optional version description module, and set the value of the uniform resource identifier syntax element according to the uniform resource identifier (URI) of the target optional version.

[0308] For example, if the URI of the target optional version of the tactile media file is "http: / / www.Hapticexample.mp4", a URI syntax element (uri) is added to the target optional version description module, and the URI syntax element and its value are set to "uri":"http: / / www.Hapticexample.mp4".

[0309] Step 353: Add a track array (tracks[]) to the target optional version description module.

[0310] Step 354: Add a first track index syntax element (track) to the track array (tracks[]), and set the value of the first track index syntax element to the index value of each codestream track of the target optional version.

[0311] That is, when the encoded tactile media is referenced by the scene description file as an item in MPEG_media.alternative.tracks, and the referenced item complies with the provisions of the ISO / IEC 23090-32 standard on tracks in ISOBMFF: For a tactile media file encapsulated in a single track, the track referenced in MPEG_media is the single track of the tactile encapsulation. For a tactile media file encapsulated in multiple tracks, the tracks referenced in MPEG_media are the multiple tracks into which the tactile media is encapsulated. For example, a non-zero value is defined in advance in the TrackHeaderBox of the configuration information alternate_group of the encapsulation file, indicating that the tactile media is encapsulated into multiple MIHS tracks at this time, and these tracks are also the tracks indexed by MPEG_media.

[0312] Step 355: Add a codec parameter syntax element (codecs) to the track array (tracks[]), and set the value of the codec parameter syntax element according to the coding parameters of the data in each code stream track of the target optional version and the provisions of the ISO / IEC 23090-32 tactile data transmission standard.

[0313] Codec parameters for media contained in an array of tracks as defined in IETF RFC 6381. When the array of tracks contains codecs of different types (e.g. an AdaptationSet contains representations with different codecs), the CodecParameters syntax element can be represented by a comma-separated list of codec values.

[0314] When the media data is tactile data, the relevant detailed provisions in the ISO / IEC 23090-32 tactile data transmission standard (Carriage of haptics data) should be followed. For example, when the tactile data is encapsulated in ISMBOFF, the first group of elements of the codec parameter syntax element is the code representing the codec in ISO / IEC 23090-31, and the value of the codec parameter syntax element is in the following format: 'codec = mih1.oo', where "mih1" is a type of data format description of tactile data encapsulated in ISOBMFF. This value is not unique and allows other sample format names that conform to ISOBMFF encapsulation to be replaced. Where "oo" is the object type indicator value defined on the "Object Type" page of the MP4 registration authority website.

[0315] Exemplarily, the name of the tactile media file is Hapticexample, the tactile media file needs to be played automatically and looped, the tactile media file includes audio data and / or video data, the access address of the tactile media file is www.example.com / Hapticexample.mp4, the tactile media file is a single-track package file, and the index value of the bitstream track is 1, then the target media description module can be as follows:

[0316]

[0317] In some embodiments, the method for generating a scene description file further includes:

[0318] Generate a target scene description module corresponding to the 3D scene to be rendered according to the description information of the 3D scene to be rendered, and add the target scene description module to the scene list ("scenes":[]) of the scene description file;

[0319] In some embodiments, generating a target scene description module corresponding to the three-dimensional scene to be rendered based on the description information of the three-dimensional scene to be rendered includes: adding a node index list ("nodes":[]) to the target scene description module, and adding the index value of the node description module corresponding to each top-level node in the three-dimensional scene to be rendered to the node index list.

[0320] It should be emphasized that the embodiment of the present application adds to the node index list only the index value of the node description module corresponding to the top-level node in the three-dimensional scene to be rendered, rather than the index value of the node description module corresponding to all nodes (excluding the index value of the node description module corresponding to the child node).

[0321] Exemplarily, if the scene to be rendered includes three top-level nodes, and the index values ​​of the node description modules corresponding to the three top-level nodes are 0, 1, and 2, respectively, the target scene description module may be as follows:

[0322]

[0323] In some embodiments, the method for generating a scene description file further includes: generating a target node description module corresponding to the target node according to the description information of the target node, and adding the target node description module to a node list ("nodes":[]) of the scene description file. The target node is any node in the three-dimensional scene to be rendered.

[0324] In some embodiments, generating a target node description module corresponding to the target node according to the description information of the target node includes at least one of the following steps 41 to 44:

[0325] Step 41: Add a node name syntax element (name) in the target node description module, and set the value of the node name syntax element according to the name of the target node.

[0326] For example, if the name of the target node is "Haptic_node", a node name syntax element (name) is added to the target media description module, and the node name syntax element and its value in the target node description module are set to "name":"Haptic_node".

[0327] Step 42: Add a child node index list ("children":[]) to the target node description module, and add the index value of the node description module corresponding to each child node mounted by the target node to the child node index list.

[0328] For example, if the target node is mounted with two child nodes, the index value of the node description module corresponding to one child node is 1, and the index value of the node description module corresponding to the other child node is 2, then the child node index list part of the target node description module may be as follows:

[0329]

[0330] Step 43: Add a mesh index syntax element (mesh) in the target node description module, and set the value of the mesh index syntax element (mesh) to the index value of the mesh description module corresponding to the three-dimensional mesh mounted on the target node.

[0331] For example: the target node is mounted with a three-dimensional grid, and the index value of the grid description module corresponding to the three-dimensional grid is 0, then a grid index syntax element (mesh) is added to the target media description module, and the grid index syntax element and its value in the target node description module are set to "mesh":0.

[0332] Step 44: Add a position offset syntax element (translation) to the target node description module, and set the value of the position offset syntax element according to the spatial position offset of the target node relative to its parent node.

[0333] It should be clarified that what is directly obtained according to the value of the position offset syntax element in the node description module is the spatial position offset of the node relative to its parent node. This spatial position offset is not necessarily the spatial position offset of the node relative to the node representing the target digital human. The spatial position offset of the node relative to the node representing the target digital human is the superposition of the spatial offsets of each node on the path from the node to the node representing the target digital human.

[0334] For example: Node A is a child node of the node representing the target digital person, Node B is a child node of Node A, the position offset grammar element in the node description module corresponding to Node A is "translation":[0.0,10.0,25.0], and the position offset grammar element in the node description module corresponding to Node B is "translation":[0.0,10.0,20.0]. Then, we can first obtain the offset of Node A relative to the node representing the target digital person as [0.0,10.0,25.0], and the offset of Node B relative to Node A as [0.0,00.0,20.0]. Then, we can superimpose the position offsets to obtain the offset of Node B relative to the node representing the target digital person as [0.0,10.0,45.0].

[0335] For example, the name of the target node is "Hapticexample_mesh", the target node includes two child nodes, and the index values ​​of the node description modules corresponding to the two child nodes are 1 and 2 respectively, the index value of the mesh description module corresponding to the three-dimensional mesh mounted on the target node is 0, and the spatial position offset of the target node relative to its parent node is [0.0, 10.0, 25.0], then the node description module generated according to the description information of the target node can be as follows:

[0336]

[0337] In some embodiments, the method for generating a scene description file further includes: generating a target mesh description module corresponding to the target three-dimensional mesh according to the description information of the target three-dimensional mesh, and adding the target mesh description module to a mesh list ("meshes":[]) of the scene description file. The target three-dimensional mesh is any three-dimensional mesh in the three-dimensional scene to be rendered.

[0338] In some embodiments, generating a target mesh description module corresponding to the target three-dimensional mesh according to the description information of the target three-dimensional mesh includes at least one of the following steps 51 to 56:

[0339] Step 51: Add a mesh name syntax element (name) in the target mesh description module, and set the value of the mesh name syntax element according to the name of the target three-dimensional mesh.

[0340] Exemplarily, the name of the target three-dimensional mesh is "example_mesh", then a mesh name syntax element is added to the target mesh description module, and the mesh name syntax element and its value are set to "name":"example_mesh".

[0341] Step 52: Add a texture coordinate syntax element (TEXCOORD_n) to the attributes of the primitives of the target mesh description module, and set the texture coordinate syntax element to the index value of the accessor description module corresponding to the accessor used to access the texture coordinates of the target three-dimensional mesh.

[0342] Step 53: Add a mode syntax element (mode) to the primitives of the target mesh description module, and set the value of the mode syntax element according to the topological structure type of the target three-dimensional mesh.

[0343] Step 54, add an MPEG tactile material description module ("MPEG_material_Haptic":{}) to the primitives of the target mesh description module, add a tactile material array index syntax element (index) to the MPEG tactile material description module ("MPEG_material_Haptic":{}), and set the value of the tactile material array index syntax element to the index value of the tactile material array associated with the target three-dimensional mesh.

[0344] Exemplarily, the name of the target three-dimensional mesh is Hapticexample_mesh, the topological structure of the target three-dimensional mesh is scattered points, and the index value of the tactile material attribute array associated with the target three-dimensional mesh is 2, then the target mesh description module corresponding to the target three-dimensional mesh can be as follows:

[0345]

[0346]

[0347] In some embodiments, the method for generating a scene description file further includes the following steps 6 to 8:

[0348] Step 6: Generate a tactile material attribute description module corresponding to each tactile material attribute carried by the target three-dimensional mesh according to the description information of each tactile material attribute carried by the target three-dimensional mesh.

[0349] In some embodiments, the above step 6 (generating a tactile material attribute description module corresponding to each tactile material attribute carried by the target three-dimensional mesh according to the description information of each tactile material attribute carried by the target three-dimensional mesh) includes at least one of the following steps 61 to 64:

[0350] Step 61: Add a texture array to the target tactile material attribute description module corresponding to the target tactile material attribute.

[0351] The target tactile material attribute is any tactile material attribute carried by the target three-dimensional mesh.

[0352] Step 62: Add a texture index syntax element (index) to the texture array, and set the value of the texture index syntax element to the index value of the texture array associated with the target tactile material attribute.

[0353] Step 63: Add a texture coordinate index syntax element (texCoord) to the texture array, and set the value of the texture index syntax element to the index value of the texture coordinate syntax element (TEXCOORD_n) associated with the target tactile material attribute.

[0354] Step 64: Add a tactile material type syntax element (type) in the target tactile material attribute description module, and set the value of the tactile material type syntax element according to the type of the target tactile material attribute.

[0355] In some embodiments, the types of tactile material attributes include: high resolution (High_resolution), low resolution (Low_resolution), and reference (Reference).

[0356] For example, for a low resolution of the tactile material type of stiffness, the index value of the associated texture array is 0, and the index value of the associated texture coordinate syntax element is 0, then the tactile material attribute description module corresponding to the stiffness may be as follows:

[0357]

[0358] Step 7: Generate a tactile material array associated with the target three-dimensional grid according to the tactile material attribute description module corresponding to each tactile material attribute carried by the target three-dimensional grid, and add the tactile material array associated with the target three-dimensional grid to the tactile material list ("MPEG_material_Haptic":[]) of the scene description file.

[0359] Exemplarily, the tactile material attributes carried by the target three-dimensional mesh include stiffness and temperature, and the low resolution of the stiffness type and the temperature type are used as references. Then, the tactile material attribute array of the target three-dimensional mesh may be as follows:

[0360]

[0361]

[0362] Exemplarily, if two three-dimensional meshes in the scene to be rendered carry tactile material attributes, the tactile material attribute carried by one three-dimensional mesh is stiffness, the type is low resolution, and the tactile material attribute carried by the other mesh description module is temperature, the type is reference, then the tactile material array list of the scene description file can be as follows:

[0363]

[0364] In some embodiments, the method for generating the scene description file also includes: generating a texture array associated with the target tactile material attribute based on the texture description information of the target tactile material attribute, and adding the texture array associated with the target tactile material attribute to the texture list ("textures":[]) of the scene description file.

[0365] In some embodiments, generating the texture array associated with the target tactile material attribute according to the texture description information of the target tactile material attribute comprises at least one of the following steps 81 and 82:

[0366] Step 81: Add a sampler index syntax element (sampler) to the texture array associated with the target tactile material attribute, and set the value of the sampler index syntax element to the index value of the sampler description module corresponding to the sampler of the target tactile material attribute.

[0367] Step 82 adds a texture resource index syntax element (source) to the texture array associated with the target tactile material attribute, and sets the value of the texture resource index syntax element to the index value of the texture resource description module corresponding to the texture resource of the target tactile material attribute.

[0368] Exemplarily, if the index value of the texture resource description module corresponding to the texture resource of the target tactile material attribute is 2, and the index value of the sampler description module corresponding to the sampler of the target tactile material attribute is 3, then the texture array associated with the target tactile material attribute is generated according to the texture description information of the target tactile material attribute as follows:

[0369]

[0370] In some embodiments, the method for generating the scene description file also includes: generating a sampler description module corresponding to the sampler of the target tactile material attribute based on the description information of the sampler of the target tactile material attribute, and adding the sampler description module corresponding to the sampler of the target tactile material attribute to the sampler list ("samplers":[]) of the scene description file.

[0371] For example, if the Mag filter parameter of the sampler of the target tactile material attribute is: 9729, the Min filter parameter is: 9987, the horizontal wrapping parameter is: 33648, and the numerical wrapping parameter is: 33648, then the description module of the sampler corresponding to the sampler of the target tactile material attribute can be as follows:

[0372]

[0373] In some embodiments, the method for generating the scene description file also includes: generating a texture resource description module corresponding to the texture resource of the target tactile material attribute according to the access address of the texture resource of the target tactile material attribute, and adding the texture resource description module corresponding to the texture source of the target tactile material attribute to the texture resource list ("images":[]) of the scene description file.

[0374] Exemplarily, if the access address of the texture resource of the target tactile material attribute is temperatureTexture.png, then generating a texture resource description module corresponding to the texture resource of the target tactile material attribute according to the access address of the texture resource of the target tactile material attribute may be as follows:

[0375]

[0376] In some embodiments, the method for generating the scene description file further includes: generating a target accessor description module corresponding to the target accessor according to the description information of the target accessor, and adding the target accessor description module to the accessor list ("accessors":[]) of the scene description file. The target accessor is any accessor used to implement the rendering of the three-dimensional scene to be rendered.

[0377] In some embodiments, generating a target accessor description module corresponding to the target accessor according to the description information of the target accessor includes at least one of the following steps 91 to 96:

[0378] Step 91: Add a data type syntax element (componentType) in the target accessor description module, and set the value of the data type syntax element according to the data type of the data accessed by the target accessor.

[0379] For example, if the data type of the data accessed by a certain accessor is 5126, the data type syntax element and its value in the accessor description module corresponding to the accessor are set to: "componentType":5126.

[0380] Step 92: Add an accessor type syntax element (type) in the target accessor description module, and set the value of the accessor type syntax element according to the type of the target accessor.

[0381] For example, if the accessor type accessed by a certain accessor is a three-dimensional vector, the accessor type syntax element (type) and its value in the accessor description module corresponding to the accessor are set to: "type":"VEC3".

[0382] Step 93: Add a quantity syntax element (count) in the target accessor description module, and set the value of the data quantity syntax element according to the quantity of data accessed by the target accessor.

[0383] For example, if the number of data accessed by a certain accessor is 1024, the data quantity syntax element (count) and its value in the accessor description module corresponding to the accessor are set to: "count": 1024.

[0384] Step 94: Add a first cache slice index syntax element (bufferView) in the target accessor description module, and set the value of the first cache slice index syntax element according to the index value of the cache slice description module corresponding to the cache slice used to cache the data accessed by the target accessor;

[0385] For example: if the cache slice description module corresponding to the cache slice of the data accessed by a certain accessor is the fourth cache slice description module (index value is 3) in the cache slice list (bufferViews) of the scene description file, then the target cache slice index syntax element and its value in the accessor description module corresponding to the accessor are set to: "bufferView":3.

[0386] Step 95: Add the MPEG time-varying accessor ("MPEG_accessor_timed":{}) to the extension list (extensions":{}) of the target accessor description module.

[0387] Step 96: Add a second cache slice index syntax element (bufferView) in the MPEG time-varying accessor, and set the value of the second cache slice index syntax element according to the index value of the cache slice description module corresponding to the cache slice used to cache the time-varying parameters of the target accessor.

[0388] For example: if the cache slice description module corresponding to the cache slice that caches the time-varying parameters of a certain accessor is the second cache slice description module in the cache slice list (bufferViews) of the scene description file, then the second cache slice index syntax element and its value in the accessor description module corresponding to the accessor are set to: "bufferView":1.

[0389] Step 97: Add a time-varying syntax element (immutable) in the MPEG time-varying accessor, and set the value of the time-varying syntax element according to whether the value of the syntax element in the target accessor changes with time.

[0390] In some embodiments, the value of the time-varying syntax element is set according to whether the value of the syntax element in the target accessor changes with time, including: when the value of the syntax element in the target accessor does not change with time, the time-varying syntax element and its value in the MPEG time-varying accessor of the target accessor description module are set to: "immutable": true or "immutable": 1; when the value of the syntax element in the target accessor changes with time, the time-varying syntax element and its value in the MPEG time-varying accessor of the target accessor description module are set to: "immutable": false or "immutable": 0.

[0391] Step 98: Add an accessor name syntax element (name) in the target accessor description module, and set the value of the accessor name syntax element according to the name of the target accessor.

[0392] For example, the type of data accessed by a certain accessor is 5126, the name of the accessor is "hapticAccessor", the type of the accessor is VEC3, the number of data accessed by the accessor is 1828, the index value of the cache slice description module corresponding to the cache slice that caches the data accessed by the accessor is 0, and the value of the grammatical element in the accessor changes with time, and the index value of the cache slice description module corresponding to the cache slice that caches the time-varying parameters of the accessor is 2, then the accessor description module corresponding to the accessor can be as follows:

[0393]

[0394] In some embodiments, the method for generating a scene description file provided in the embodiments of the present application further includes: generating a target buffer description module corresponding to the target buffer according to the description information of the target buffer, and adding the target buffer description module to the buffer list ("buffers":[]) of the scene description file. The target buffer is any buffer used to implement the rendering of the three-dimensional scene to be rendered.

[0395] In some embodiments, generating a target buffer description module corresponding to the target buffer according to the description information of the target buffer comprises at least one of the following steps 101 to 107:

[0396] Step 101: Add a first byte length syntax element (byteLength) in the target buffer description module, and set the value of the first byte length syntax element according to the capacity of the target buffer.

[0397] Exemplarily, when the capacity of a buffer is 15000 bytes, the first byte length syntax element in the buffer description module corresponding to the buffer is set to: "byteLenth":15000.

[0398] Step 102: Add an MPEG circular buffer ("MPEG_buffer_circular":{}) to the target buffer description module.

[0399] Step 103: Add a link count syntax element (count) to the MPEG circular buffer ("MPEG_buffer_circular":{}), and set the value of the link count syntax element according to the number of stored links in the target buffer.

[0400] For example, if the number of storage links of a certain buffer is 5, the link number syntax element and its value in the MPEG ring buffer of the buffer description module corresponding to the buffer are set to: "count":5.

[0401] Step 104: Add a media index syntax element (media) in the MPEG ring buffer, and set the value of the media index syntax element according to the index value of the media description module corresponding to the media file to which the source data of the data cached in the target buffer belongs.

[0402] For example, if the index value of the media description module corresponding to the media file to which the source data of the data cached by a certain buffer belongs is 0, then the media index syntax element and its value in the MPEG ring buffer of the buffer description module corresponding to the buffer are set to "media":0

[0403] Step 105: Add a track index syntax element (tracks) in the MPEG ring buffer, and set the value of the track index syntax element according to the track index value of the source data of the data cached in the target buffer.

[0404] Step 106: Add a buffer name syntax element (name) in the buffer description module corresponding to the target buffer, and set the buffer name syntax element according to the name of the target buffer.

[0405] Step 107: Add a uniform resource identifier syntax element (URI) in the target buffer description module, and set the value of the uniform resource identifier syntax element to the uniform resource identifier of the source data of the data cached by the target buffer.

[0406] For example, the capacity of a buffer named "hapticBuffer" is 108940 bytes, the number of storage links of the buffer is 3, and the index value of the media description module corresponding to the media file to which the source data of the data cached by the buffer belongs is 1. Then, the buffer description module corresponding to the buffer added in the buffer list of the scene description file can be as follows:

[0407]

[0408] In some embodiments, the method for generating a scene description file further includes: generating a target cache slice description module corresponding to the target cache slice according to the description information of the target cache slice, and adding the target cache slice description module to the cache slice list ("bufferViews":[]) of the scene description file. The target cache slice is any cache slice of the buffer used to implement the rendering of the 3D scene to be rendered.

[0409] In some embodiments, generating a target cache slice description module corresponding to the target cache slice according to the description information of the target cache slice includes at least one of the following steps 111 to 114:

[0410] Step m1, adding a buffer index syntax element (buffer) in the target cache slice description module, and setting the value of the buffer index syntax element according to the index value of the buffer description module corresponding to the buffer to which the target cache slice belongs.

[0411] For example, if the index value of the buffer description module corresponding to a certain buffer is 2, the buffer index syntax element and its value in the buffer slice description module corresponding to the buffer slice of the buffer are set to: "buffer":2.

[0412] Step 112: Add a second byte length syntax element (byteLength) in the cache slice description module corresponding to the target cache slice, and set the value of the second byte length syntax element (byteLength) according to the capacity of the target cache slice.

[0413] Step 113: Add an offset syntax element (byteOffset) in the target cache slice description module, and set the value of the offset syntax element according to the offset of the data cached by the target cache slice.

[0414] Step 114: Add a cache slice name syntax element (name) in the target cache slice description module, and set the value of the cache slice name syntax element according to the name of the target cache slice.

[0415] For example, the index value of the buffer description module corresponding to a certain buffer is 0, the capacity of the buffer is 43972, and the buffer includes three cache slices, the name of the first cache slice is "hapticbufferViews1", the capacity is 21936, the offset is 0, the name of the second cache slice is "hapticbufferViews2", the capacity is 21936, the offset is 21936, the name of the third cache slice is "hapticbufferViews3", the capacity is 100, and the offset is 43872, then the cache slice description module portion corresponding to the cache slice of the buffer in the scene description file can be as follows:

[0416]

[0417]

[0418] In some embodiments, the method for generating a scene description file further includes:

[0419] A digital asset description module ("asset":{}) is added to the scene description file, a version syntax element (version) is added to the digital asset description module, and a value of the version syntax element is set according to the version information of the scene description file.

[0420] For example, when the scene description file is written based on glTF 2.0, the value of the version syntax element is set to 2.0.

[0421] Exemplarily, the digital asset description module added to the scene description file may be as follows:

[0422]

[0423] In some embodiments, the method for generating a scene description file further includes:

[0424] Add an extension usage list ("extensionsUsed": []) to the scene description file, and add the top-level extension item of the MPEG scene description file for the glTF2.0 version used by the scene description file to the extension usage list.

[0425] Exemplarily, the MPEG extensions used in the scene description file include: MPEG media (MPEG_media), MPEG interaction (MPEG_interactivity), MPEG haptics (MPEG_Haptic), MPEG haptic material (MPEG_material_Haptic), MPEG circular buffer (MPEG_buffer_circular), MPEG time-varying accessor (MPEG_accessor_timed), and the extended usage list added in the scene description file can be as follows:

[0426]

[0427] In some embodiments, the method for generating a scene description file further includes:

[0428] A scene declaration (scene) is added to the scene description file, and a value of the scene declaration is set to an index value of a scene description module corresponding to the scene to be rendered.

[0429] Exemplarily, the index value of the scene description module corresponding to the scene to be rendered is 0, and the scene declaration added to the scene description file may be as follows:

[0430]

[0431] Some embodiments of the present application also provide a method for parsing a scene description file, referring to Fig.11 As shown, the scene description file parsing method includes the following steps: S111-S113:

[0432] S111 , obtaining a target haptic action node array from a haptic action node list ("hapticActionNodes":[]) of a target action description module of an MPEG interactive description module ("MPEG_interactivity":{}) of a scene description file of a 3D scene to be rendered.

[0433] The target action description module may be any action description module in an MPEG interactive description module, and the target tactile action node array may be any tactile action node array in a tactile action node list of the target action description module.

[0434] Exemplarily, the target action description module may be as follows:

[0435]

[0436] It should be noted that, although the third haptic action node array (rows n+12 to n+14) in the haptic action node list ("hapticActionNodes":[]) of the above-mentioned target action description module does not include the haptic object syntax element (hapticObject), the nodes declared in the third haptic action node array (the nodes corresponding to the node description module with an index value of 2) also need to be associated with haptic data. The haptic data associated with the node will be associated with the relevant haptic data through the MPEG haptic material (MPEG_haptic_material) in the grid description module.

[0437] S112: Determine, according to the target tactile action node array, an index value of a target tactile object description module corresponding to a tactile object associated with the target action node.

[0438] For example, when the target haptic action node array is as follows:

[0439]

[0440] Then, the node corresponding to the node description module with an index value of 0 (the first node description module in the node list) is the target action node, and the index value of the target tactile object description module corresponding to the tactile object associated with the target action node is 0 (the first tactile object description module in the MPEG tactile description module).

[0441] S113. Acquire the target haptic object description module from the MPEG haptic description module ("MPEG_haptic":{}) in the scene description file according to the index value of the target haptic object description module.

[0442] In some embodiments, determining the index value of the target tactile object description module corresponding to the tactile object associated with the target action node according to the target tactile action node array includes: obtaining the value of the tactile object index syntax element (hapticObject) in the target tactile action node array, and determining the index value of the target tactile object description module according to the value of the tactile object index syntax element.

[0443] As described in the above example, the tactile object index syntax element in the target tactile action node array and its value are "hapticObject":0, so it can be determined that the index value of the target tactile object description module is 0, and then the first tactile object description module can be obtained from the MPEG tactile description module ("MPEG_haptic":{}) of the scene description file as the target tactile object description module.

[0444] S114. Acquire, according to the target tactile object description module, description information of a tactile media accessor associated with the target action node when the target tactile action is performed in the to-be-rendered three-dimensional scene.

[0445] Among them, the target tactile action is the tactile action corresponding to the target action description module, and the tactile media accessor is an accessor for accessing the tactile rendering data of the tactile media file declared in the MPEG media description module ("MPEG_media":{}) associated with the target action node when executing the target tactile action.

[0446] It should be noted that the tactile media accessor associated with the action node may be one accessor or multiple accessors.

[0447] In some embodiments, the above step S114 (obtaining, according to the target tactile object description module, description information of the tactile media accessor associated with the target action node when the to-be-rendered three-dimensional scene performs the target tactile action) includes the following steps 1141 to 1143:

[0448] Step 1141: Obtain the value of the accessor index syntax element (accessor) in the target haptic object description module.

[0449] Step 1142: Obtain an accessor description module corresponding to the tactile media accessor from the accessor list ("accessors":[]) of the scene description file according to the value of the accessor index syntax element.

[0450] Step 1143: Acquire description information of the tactile media accessor according to the accessor description module corresponding to the tactile media accessor.

[0451] Exemplarily, when the target tactile object description module is as follows:

[0452]

[0453] Then the above steps 1141 to 1143 include: obtaining the second accessor description module and the fifth accessor description module from the accessor list ("accessors":[]) of the scene description file according to the value (1 and 4) of the accessor index syntax element (accessor), and obtaining the description information of the tactile media accessor according to the second accessor description module and the fifth accessor description module.

[0454] The scene description file parsing method provided by the embodiment of the present application can obtain a target tactile action node array from the tactile action node list of the target action description module of the MPEG interactive description module of the scene description file of the three-dimensional scene to be rendered, determine the index value of the target tactile object description module corresponding to the tactile object associated with the target action node according to the target tactile action node array, obtain the target tactile object description module from the MPEG tactile description module of the scene description file according to the index value of the target tactile object description module, and obtain the description information of the accessor associated with the target action node for accessing the tactile rendering data of the tactile media file declared in the MPEG media description module when the tactile action corresponding to the target action description module is executed by the three-dimensional scene to be rendered according to the target tactile object description module. The scene description file parsing method provided by the embodiment of the present application can obtain the description information of the accessor associated with the action node for accessing the tactile rendering data of the tactile media file when the three-dimensional scene to be rendered executes the tactile action, realizes the association between the tactile action, the node and the tactile rendering data of the tactile media file, so the above embodiment realizes the support of tactile media files in the scene description framework.

[0455] In some embodiments, the method for parsing the scene description file further includes: obtaining a value of an action type grammatical element (type) in the target action description module, and obtaining the action type of the target action according to the value of the action type grammatical element.

[0456] For example, when the action type syntax element and its value are "type":"ACTION_HAPTIC", it is determined that the action type of the target action is to obtain tactile feedback on a group of nodes.

[0457] In some embodiments, the scene description file parsing method further includes: obtaining a target behavior array from a behavior list (behaviors":[]) of the MPEG interactive description module ("MPEG_interactivity":{}), and obtaining description information of a target behavior corresponding to the target behavior array according to the target behavior array. The target behavior array is any behavior array in the behavior list (behaviors":[]),

[0458] For example, the target behavior array may be as follows:

[0459]

[0460] In some embodiments, the step of acquiring the description information of the target behavior corresponding to the target behavior array according to the target behavior array includes at least one of the following steps a1 and a2:

[0461] Step a1: Determine the index value of the trigger description module corresponding to the trigger of the target behavior according to the value of the trigger index syntax element (triggers) in the target behavior array.

[0462] As described in the above example, the value of the trigger index syntax element (triggers) in the target behavior array is 0, so it can be determined that the index value of the trigger description module corresponding to the trigger of the target behavior is 0.

[0463] Step a2: Determine the index value of the action description module corresponding to the action of the target behavior according to the value of the action index syntax element (actions) in the target behavior array.

[0464] As described in the above example, the values ​​of the trigger index syntax elements (triggers) in the target behavior array are 0 and 1, so it can be determined that the target behavior includes two actions, and the two actions are actions corresponding to the action description modules with index values ​​of 0 and 1, respectively.

[0465] In some embodiments, the parsing method of the scene description file also includes: obtaining a target trigger description module from a trigger list ("triggers":[]) of the MPEG interactive description module ("MPEG_interactivity":{}), and obtaining description information of a target trigger corresponding to the target trigger description module based on the target trigger description module.

[0466] Among them, the target trigger description module is any trigger description module in the trigger list.

[0467] Exemplarily, the target trigger description module may be as follows:

[0468]

[0469] In some embodiments, obtaining the description information of the target trigger corresponding to the target trigger description module according to the target trigger description module includes: obtaining the type of the target trigger according to the value of the trigger type syntax element (type) in the target trigger description module.

[0470] For example, when the trigger type syntax element in the target trigger description module is: "type":"TRIGGER_COLLISION", it can be determined that the type of the target trigger is collision.

[0471] For another example, when the trigger type syntax element in the target trigger description module is: "type":"TRIGGER_VISIBILITY", it can be determined that the type of the target trigger is visible.

[0472] In some embodiments, the parsing method of the scene description file also includes: obtaining a target media description module corresponding to the tactile media file from a media list ("media":[]) of an MPEG media description module ("MPEG_media":{}) of the scene description file, and obtaining description information of the tactile media file according to the target media description module.

[0473] In some embodiments, obtaining the description information of the tactile media file according to the target media description module includes at least one of the following steps b1 to b4:

[0474] Step b1: Obtain the name of the tactile media file according to the value of the media name syntax element (name) in the target media description module.

[0475] For example, if the media name syntax element in the target media description module and its value are: "name":"Hapticexample", then it can be determined that the name of the tactile media file is: Hapticexample.

[0476] Step b2: determining whether the tactile media file needs to be played automatically according to the value of the automatic play syntax element (autoplay) in the target media description module.

[0477] In some embodiments, whether the tactile media file needs to be played automatically is determined according to the value of the autoplay syntax element (autoplay) in the target media description module, including: if the autoplay syntax element (autoplay) in the target media description module and its value are: "autoplay":true or "autoplay":1, then it is determined that the tactile media file needs to be played automatically; and if the autoplay syntax element (autoplay) in the target media description module and its value are: "autoplay":false or "autoplay":0, then it is determined that the tactile media file does not need to be played automatically.

[0478] Step b3: determining whether the tactile media file needs to be played in a loop according to the value of the loop playback syntax element (loop) in the target media description module.

[0479] In some embodiments, whether the tactile media file needs to be played in a loop is determined based on the value of the loop playback syntax element (loop) in the target media description module, including: if the loop playback syntax element (loop) in the target media description module and its value are: "loop":true or "loop":1, then it is determined that the tactile media file needs to be played in a loop; and if the loop playback syntax element (loop) in the target media description module and its value are: "loop":false or "loop":0, then it is determined that the tactile media file does not need to be played in a loop.

[0480] Step b4: acquiring description information of each optional version of the tactile media file according to each optional version description module in the optional version list ("alternatives": []) of the target media description module.

[0481] In some embodiments, the above step b4 (obtaining description information of each optional version of the tactile media file according to each optional version description module in the optional version list of the target media description module) may include at least one of the following steps b41 to b44:

[0482] Step b41: Obtain the data contained in the target optional version corresponding to the target optional version description module according to the value of the media type syntax element (mimeType) in the target optional version description module.

[0483] The target optional version description module is any optional version description module in the optional version list.

[0484] In some embodiments, data contained in the target optional version corresponding to the target optional version description module is obtained according to the value of the media type syntax element (mimeType) in the target optional version description module, including: when the value of the media type syntax element is a first preset value, determining that the target optional version includes tactile data and audio and / or video data; when the value of the media type syntax element is a second preset value, determining that the target optional version includes tactile data.

[0485] Exemplarily, the first preset value may be: video / mp4, and the second preset value may be: haptic / mp4.

[0486] Step b42: Obtain the uniform resource identifier (URI) of the target optional version according to the value of the uniform resource identifier syntax element (URI) in the target optional version description module.

[0487] For example, if the uniform resource identifier syntax element (uri) and its value in a certain optional version description module in the optional version list ("alternatives":[]) of the target media description module are: "uri":"http: / / www.example.com / Hapticexample.mp4", then it can be determined that the uniform resource identifier (access address) of the optional version of the tactile media file corresponding to the optional version description module is: "http: / / www.example.com / Hapticexample.mp4".

[0488] Step b43: Obtain the index value of each codestream track of the target optional version according to the value of the first track index syntax element (track) in the track array ("tracks":[]) of the target optional version description module.

[0489] Step b44: Obtain decoding parameters of the target optional version of the code stream according to the value of the codec parameter syntax element (codecs) in the track array ("tracks":[]) of the target optional version description module and the provisions of the ISO / IEC 23090-32 tactile data transmission standard.

[0490] In some embodiments, the scene description file parsing method provided in the embodiments of the present application also includes: obtaining a target scene description module corresponding to the three-dimensional scene to be rendered from a scene list ("scenes":[]) of the scene description file; and obtaining description information of the three-dimensional scene to be rendered according to the target scene description module.

[0491] In some embodiments, the obtaining description information of the to-be-rendered 3D scene according to the target scene description module includes:

[0492] According to the index value declared in the node index list ("nodes":[]) of the target scene description module, the index value of the node description module corresponding to each top-level node in the three-dimensional scene to be rendered is determined.

[0493] For example: if the node index list of the target scene description module and its declared index value are "nodes":[0], it can be determined that the three-dimensional scene to be rendered includes only one top-level node, and the node description module corresponding to the top-level node is the first node description module in the node list of the scene description file.

[0494] For another example: the node index list of the target scene description module and its declared index value are "nodes":[0, 4], then it can be determined that the three-dimensional scene to be rendered includes two top-level nodes, and the node description modules corresponding to the two top-level nodes are respectively the first node description module and the fifth node description module in the node list of the scene description file.

[0495] In some embodiments, the scene description file parsing method provided in the embodiments of the present application also includes: obtaining a target node description module from a node list ("nodes":[]) of the scene description file, and obtaining description information of the target node corresponding to the target node description module based on the target node description module.

[0496] The target node description module is any node description module in the node list.

[0497] In some embodiments, obtaining the description information of the target node corresponding to the target node description module according to the target node description module includes at least one of the following steps c1 to c4:

[0498] Step c1: Obtain the name of the target node according to the value of the node name syntax element (name) in the target node description module.

[0499] For example, if the node name syntax element in the target node description module and its value are "name":"Haptic_node1", then the name of the target node can be obtained as: Haptic_node1 according to the value of the node name syntax element in the target node description module.

[0500] Step c2: according to the index value declared in the child node index list ("children":[]) of the target node description module, obtain the index value of the node description module corresponding to each child node mounted on the target node.

[0501] For example: the child node index list in the target node description module and its declared index value are "children":[1,2]. Then, according to the index value declared in the child node index list of the target node description module, it can be determined that the target node is mounted with two child nodes, and the two child nodes mounted on the target node are the nodes corresponding to the second node description module and the third node description module in the node list of the scene description file.

[0502] Step c3: according to the index value declared in the mesh index syntax element (mesh) of the target node description module, obtain the index value of the mesh description module corresponding to each three-dimensional mesh mounted on the target node.

[0503] For example: if the mesh index syntax element in the target node description module and its value is "mesh":0, then the three-dimensional mesh mounted on the target node can be determined as the three-dimensional mesh corresponding to the first mesh description module in the mesh list ("meshes":[]) of the scene description file based on the index value declared in the mesh index syntax element of the target node description module.

[0504] Step c4: Obtain the spatial position offset of the target node relative to its parent node according to the value of the position offset syntax element (translation) in the target node description module.

[0505] For example: the position offset syntax element in the target node description module and its value is "translation": [0.0, 0.0, 20.0]. According to the value of the position offset syntax element in the target node description module, the spatial position offset of the target node relative to its parent node can be obtained as [0.0, 0.0, 20.0].

[0506] It should be noted that what is directly obtained according to the value of the position offset syntax element in the target node description module is the spatial position offset of the target node relative to its parent node. If the parent node of the target node does not represent the root node, then the spatial position offset may not be the offset of the target node relative to the root node. The offset of the target node relative to the root node is the superposition of the spatial offsets of each node on the path from the target node to the root node.

[0507] For example: Node A is a child node of the root node, Node B is a child node of Node A, the position offset syntax element in the node description module corresponding to Node A is "translation":[0.0,10.0,25.0], and the position offset syntax element in the node description module corresponding to Node B is "translation":[0.0,10.0,20.0]. Then, we can first obtain the offset of Node A relative to the target node as [0.0,10.0,25.0], and the offset of Node B relative to Node A as [0.0,00.0,20.0]. Then, we can superimpose the position offsets to obtain the offset of Node B relative to the root node as [0.0,10.0,45.0].

[0508] In some embodiments, the scene description file parsing method further includes:

[0509] Obtain a target mesh description module from the mesh list ("meshes":[]) of the scene description file, and obtain description information of a target three-dimensional mesh corresponding to the target mesh description module according to the target mesh description module. The target mesh description module is any mesh description module in the mesh list.

[0510] In some embodiments, obtaining the description information of the target three-dimensional grid corresponding to the target grid description module according to the target grid description module includes at least one of the following steps d1 to d5:

[0511] Step d1: Obtain the name of the target three-dimensional grid according to the value of the grid name syntax element (name) in the target grid description module.

[0512] For example, if the mesh name syntax element in a mesh description module in the scene description file and its value are "name":"Haptic_mesh1", then the name of the three-dimensional mesh corresponding to the mesh description module can be obtained according to the value of the mesh name syntax element in the mesh description module: Haptic_mesh1.

[0513] Step d2: According to the value of the texture coordinate syntax element (TEXCOORD_n) in the attributes of the primitives of the target mesh description module, obtain the index value of the accessor description module corresponding to the accessor for accessing the texture coordinates of the target three-dimensional mesh.

[0514] For example: if the texture coordinate syntax element in the attributes of a primitive of a mesh description module in the scene description file and its value is "TEXCOORD_0":1, then it can be determined that the accessor used to access the texture coordinates of the three-dimensional mesh corresponding to the mesh description module is the accessor corresponding to the second accessor description module in the accessor list of the scene description file.

[0515] Step d3: Obtain the type of the topological structure of the target three-dimensional mesh according to the value of the mode syntax element (mode) in the primitives (primitives) of the target mesh description module.

[0516] For example, if the mode syntax element in the primitive of a mesh description module in the scene description file and its value are "mode":4, then the type of the topological structure of the three-dimensional mesh corresponding to the mesh description module can be obtained as a triangle patch according to the value of the mode syntax element in the primitive of the mesh description module.

[0517] d4. Obtain description information of tactile material attributes carried by the target three-dimensional mesh according to the value of the tactile material array index syntax element (index) in the MPEG tactile material description module ("MPEG_material_Haptic":{}) of the primitive of the primitive of the target mesh description module.

[0518] In some embodiments, the above step d4 (obtaining description information of tactile material attributes carried by the target three-dimensional mesh according to the value of the tactile material array index syntax element in the MPEG tactile material description module of the primitive of the primitive of the target mesh description module) includes the following steps d41 to d43:

[0519] Step d41, according to the value of the tactile material array index syntax element (index"), obtain the tactile material array associated with the target three-dimensional grid from the tactile material list ("MPEG_material_Haptic":[]) of the scene description file.

[0520] For example, if the tactile material array index syntax element and its value are "index":0, the first tactile material array in the tactile material list of the scene description file is obtained as the tactile material array associated with the target three-dimensional mesh.

[0521] Exemplarily, the tactile material array associated with the target three-dimensional mesh may be as follows:

[0522]

[0523] Step d42: Acquire a tactile material attribute description module corresponding to the tactile material attribute carried by the target three-dimensional mesh from the tactile material array associated with the target three-dimensional mesh.

[0524] As described in the above example, the tactile material attribute description modules corresponding to the stiffness, temperature and vibration carried by the target three-dimensional grid can be obtained from the tactile material array associated with the target three-dimensional grid, and the tactile material attribute description module corresponding to the stiffness is the content of the n+02 to n+08 rows, the tactile material attribute description module corresponding to the temperature is the content of the n+09 to n+15 rows, and the tactile material attribute description module corresponding to the vibration is the content of the n+16 to n+22 rows.

[0525] Step d43: acquiring description information of the tactile material attributes carried by the target three-dimensional mesh according to the tactile material attribute description modules corresponding to the tactile material attributes carried by the target three-dimensional mesh.

[0526] In some embodiments, the above step d43 (obtaining description information of the tactile material attributes carried by the target three-dimensional mesh according to the tactile material attribute description modules corresponding to each tactile material attribute carried by the target three-dimensional mesh) includes at least one of the following steps d431 to d433:

[0527] Step d431, according to the value of the texture index syntax element (index) in the texture array ("texture":{}) of the target tactile material attribute description module, obtain the texture description information of the texture associated with the target tactile material corresponding to the target tactile material attribute description module.

[0528] The target tactile material attribute description module is any tactile material attribute description module in the tactile material array associated with the target three-dimensional grid.

[0529] In some embodiments, the above step d431 (obtaining texture description information of the texture associated with the target tactile material corresponding to the target tactile material attribute description module according to the value of the texture index syntax element in the texture array of the target tactile material attribute description module) includes the following steps d4311 and d4312:

[0530] Step d4311, according to the value of the texture index syntax element, obtain the target texture description module from the texture list ("textures":[]) of the scene description file.

[0531] For example, if the texture index syntax element and its value is "index":2, then the third texture description module is obtained from the texture list ("textures":[]) of the scene description file as the target texture description module.

[0532] Step d4312: According to the target texture description module, obtain texture description information of the texture associated with the target tactile material.

[0533] In some embodiments, the above step d4312 (obtaining texture description information of the texture associated with the target tactile material according to the target texture description module) includes at least one of the following steps e and f:

[0534] Step e: acquiring description information of the sampler of the target tactile material according to the value of the sampler index syntax element (sampler) in the target texture description module.

[0535] In some embodiments, the above step e (obtaining description information of the sampler of the target tactile material according to the value of the sampler index syntax element in the target texture description module) includes the following steps e1 and e2:

[0536] Step e1, according to the value of the sampler index syntax element (sampler) in the target texture description module, obtain the sampler description module corresponding to the sampler of the target tactile material from the sampler list ("samplers":[]) of the scene description file.

[0537] Exemplarily, the sampler description module corresponding to the sampler of the target tactile material may be as follows:

[0538]

[0539] Step e2: Acquire description information of the sampler of the target tactile material according to the sampler description module corresponding to the sampler of the target tactile material.

[0540] As described in the above example, the description information of the sampler of the target tactile material can be obtained by the sampler description module corresponding to the sampler of the target tactile material, including: the nearest point mode is used for texture map enlargement, the Linear-mipmap-linear mode is used for texture map reduction, the texture wrapping method in the horizontal direction is 33648, and the texture wrapping method in the vertical direction is 33648.

[0541] Step f: acquiring the description information of the texture resource corresponding to the texture resource of the target tactile material according to the value of the texture resource index syntax element (source) in the target texture description module.

[0542] In some embodiments, the above step f (obtaining description information of texture resources corresponding to the texture resources of the target tactile material according to the value of the texture resource index syntax element in the target texture description module) includes the following steps f1 and f2:

[0543] Step f1, according to the value of the texture resource index syntax element (source) in the target texture description module, obtain the texture resource description module corresponding to the texture resource of the target tactile material from the texture resource list ("images":[]) of the scene description file.

[0544] Exemplarily, the texture resource description module corresponding to the texture resource of the target tactile material may be as follows:

[0545]

[0546] Step f2: acquiring description information of the texture resource of the target tactile material according to the texture resource description module corresponding to the texture resource of the target tactile material.

[0547] As described in the above example, the access address of the texture resource of the target tactile material can be obtained as stiffnessTexture.png according to the value of the unique address identifier syntax element (uri) in the texture resource description module corresponding to the texture resource of the target tactile material.

[0548] Step d432: Obtain the index value of the texture coordinate syntax element (TEXCOORD_n) associated with the target tactile material according to the value of the texture coordinate index syntax element (texCoord) in the texture array of the target tactile material attribute description module.

[0549] Step d433: Obtain the type of the target tactile material attribute according to the value of the tactile material type syntax element (type) in the texture array of the target tactile material attribute description module.

[0550] As described in the above embodiment, the tactile material attribute type of stiffness can be determined as low resolution according to the "type":Low_resolution" in the n+07th line, the tactile material attribute type of temperature can be determined as reference according to the "type":Reference in the n+14th line, and the tactile material attribute type of vibration can be determined as reference according to the "type":Reference in the n+21th line.

[0551] In some embodiments, the scene description file parsing method further includes the following steps: obtaining a target accessor description module from an accessor list ("accessors":[]) of the scene description file, and obtaining description information of a target accessor corresponding to the target accessor description module according to the target accessor description module. The target accessor description module is any accessor description module in the accessor list ("accessors":[]) of the scene description file.

[0552] In some embodiments, obtaining description information of a target accessor corresponding to the target accessor description module according to the target accessor description module includes at least one of the following steps g1 to g8:

[0553] Step g1: Obtain the data type of the data accessed by the target accessor according to the value of the data type syntax element (componentType) in the target accessor description module.

[0554] For example, if the data type syntax element and its value in a certain accessor description module are: "componentType": 5126, it can be determined that the data type of the data accessed by the accessor corresponding to the accessor description module is a 32-bit floating point number (float).

[0555] Step g2: Determine the type of the target accessor according to the value of the accessor type syntax element (type) in the target accessor description module.

[0556] For example, if the value of the accessor type syntax element in an accessor description module is: "type":"VEC3", it can be determined that the type of the accessor corresponding to the accessor description module is a three-dimensional vector.

[0557] Step g3: Determine the quantity of data accessed by the target accessor according to the value of the data quantity syntax element (count) in the target accessor description module.

[0558] For example, if the data quantity syntax element and its value in a certain accessor description module are: "count": 1828, it can be determined that the number of data accessed by the accessor corresponding to the accessor description module is 1828.

[0559] Step g4, determining the index value of the cache slice description module corresponding to the cache slice that caches the data accessed by the target accessor according to the value of the first cache slice index syntax element (bufferView) in the target accessor description module.

[0560] For example: if the first cache slice index syntax element of a certain accessor description module and its value is "bufferView": 1, it can be determined that the data accessed by the accessor corresponding to the accessor description module is cached in the cache slice corresponding to the second cache slice description module in the cache slice list ("bufferViews": []).

[0561] Step g5: Determine whether the target accessor is a time-varying accessor based on MPEG extension modification according to whether the target accessor description module contains an MPEG time-varying accessor (MPEG_accessor_timed).

[0562] In some embodiments, whether the target accessor is a time-varying accessor modified based on MPEG extension is determined according to whether the target accessor description module contains an MPEG time-varying accessor ("MPEG_accessor_timed":{}), including: if the target accessor description module contains an MPEG time-varying accessor, then it is determined that the target accessor is a time-varying accessor modified based on MPEG extension, and if the target accessor description module does not contain an MPEG time-varying accessor, then it is determined that the target accessor is not a time-varying accessor modified based on MPEG extension.

[0563] Step g6, determining the cache slice description module corresponding to the cache slice that caches the time-varying parameters of the target accessor according to the value of the second cache slice index syntax element (bufferView) in the MPEG time-varying accessor (MPEG_accessor_timed) of the target accessor description module.

[0564] For example: the second cache slice index syntax element in the MPEG time-varying accessor of a certain accessor description module is: "bufferView": 3, then it can be determined that the time-varying parameters of the accessor corresponding to the accessor description module are cached in the cache slice corresponding to the fourth cache slice description module in the cache slice list ("bufferViews": []).

[0565] Step g7: Determine whether the value of the syntax element in the target accessor changes with time based on the value of the time-varying syntax element (immutable) in the MPEG time-varying accessor (MPEG_accessor_timed) of the target accessor description module.

[0566] In some embodiments, whether the value of the syntax element in the target accessor changes with time is determined based on the value of the time-varying syntax element (immutable) in the MPEG time-varying accessor of the target accessor description module, including: if the time-varying syntax element in the MPEG time-varying accessor of the target accessor description module and its value are: "immutable":true or "immutable":1, then it is determined that the value of the syntax element in the target accessor does not change with time, and if the time-varying syntax element in the MPEG time-varying accessor of the target accessor description module and its value are: "immutable":false or "immutable":0, then it is determined that the value of the syntax element in the target accessor will change with time.

[0567] Step g8: Determine the name of the target accessor according to the value of the accessor name syntax element (name) in the target accessor description module.

[0568] In some embodiments, the scene description file parsing method further includes: obtaining a target buffer description module from a buffer list ("buffers":[]) of the scene description file, and obtaining description information of a target buffer corresponding to the target buffer description module according to the target buffer description module.

[0569] The target buffer description module is any buffer description module obtained from the buffer list ("buffers":[]) of the scene description file.

[0570] In some embodiments, obtaining the description information of the target buffer corresponding to the target buffer description module according to the target buffer description module includes at least one of the following steps h1 to h7:

[0571] Step h1: Obtain the name of the target buffer according to the value of the buffer name syntax element (name) in the target buffer description module.

[0572] For example, if the buffer name syntax element in the target buffer description module and its value are "name":"haptic_buffer", then it can be determined that the name of the target buffer is "name":"haptic_buffer".

[0573] Step h2: According to the value of the first byte length syntax element (byteLength) in the target buffer description module, obtain the capacity of the target buffer corresponding to the target buffer description module.

[0574] For example, if the first byte length syntax element in a buffer description module and its value is "byteLength":43972, it can be determined that the capacity of the buffer corresponding to the buffer description module is 43972 bytes.

[0575] Step h3: Determine whether the target buffer is a circular buffer modified based on MPEG extension according to whether the target buffer description module includes an MPEG circular buffer (MPEG_buffer_circular).

[0576] In some embodiments, whether the target buffer is a ring buffer modified based on MPEG extension is determined based on whether the target buffer description module includes an MPEG ring buffer, including: if the target buffer description module includes an MPEG ring buffer, it is determined that the target buffer is a ring buffer modified based on MPEG extension, and if the target buffer description module does not include an MPEG ring buffer, it is determined that the target buffer is not a ring buffer modified based on MPEG extension.

[0577] Step h4: Obtain the number of storage links of the target buffer according to the value of the link number syntax element (count) in the MPEG ring buffer of the target buffer description module.

[0578] For example, if the link number syntax element in the MPEG ring buffer of a buffer description module and its value are: "count":3, it can be determined that the buffer corresponding to the buffer description module includes 3 storage links.

[0579] Step h5: According to the value of the media index syntax element (media) in the MPEG ring buffer of the target buffer description module, obtain the index value of the media description module corresponding to the media file to which the source data of the data cached by the target buffer belongs.

[0580] Step h6: According to the value of the second track index syntax element (tracks) in the MPEG circular buffer of the target buffer description module, obtain the track index value of the source data cached by the target buffer.

[0581] Step h7: Obtain the uniform resource identifier of the source data of the data cached by the target cache according to the value of the uniform resource identifier syntax element (URI) in the target cache description module.

[0582] In some embodiments, the scene description file parsing method further includes: obtaining a target cache slice description module from a cache slice list ("bufferViews":[]) of the scene description file, and obtaining description information of a target cache slice corresponding to the target cache slice description module based on the target cache slice description module.

[0583] The target cache slice description module is any cache slice description module in the cache slice list.

[0584] In some embodiments, obtaining the description information of the target cache slice corresponding to the target cache slice description module according to the target cache slice description module comprises at least one of the following steps j1 to j3:

[0585] Step j1, according to the value of the second byte length syntax element (byteLength) in the target cache slice description module, obtain the capacity of the target cache slice corresponding to the target cache slice description module.

[0586] For example, if the second byte length syntax element in a cache slice description module and its value are: "byteLength": 21936, it can be determined that the capacity of the cache slice corresponding to the cache slice description module is 21936 bytes.

[0587] Step j2: Obtain the offset of the data cached by the target cache slice according to the value of the offset syntax element (byteOffset) in the target cache slice description module.

[0588] For example, if the offset syntax element and its value in a cache slice description module are: "byteOffset":0, it can be determined that the offset of the data cached by the cache slice corresponding to the cache description module is 0.

[0589] Step j3: Obtain the name of the target cache slice according to the value of the cache slice name syntax element (name) in the target cache slice description module.

[0590] In some embodiments, the scene description file parsing method further includes: determining a version number of the scene description file according to a version syntax element (version) and its value in a digital asset description module (asset) in the scene description file.

[0591] For example, the digital assets of a scene description file are as follows:

[0592]

[0593] Then, it can be determined that the scene description file is written based on glTF 2.0 version, and the version of the scene description file is the reference version of the scene description standard.

[0594] In some embodiments, the scene description file parsing method further includes: acquiring an extension item used by the scene description file according to an extension usage list (extensionUsed) in the scene description file.

[0595] For example, the extension usage list (extensionUsed) of the scene description file is as follows:

[0596]

[0597] Then, the extension items used in the scene description file that can be obtained include: MPEG media (MPEG_media), MPEG interaction (MPEG_interactivity), MPEG tactile (MPEG_Haptic), MPEG tactile material (MPEG_material_Haptic), MPEG circular buffer (MPEG_buffer_circular), and MPEG time-varying accessor (MPEG_accessor_timed).

[0598] In some embodiments, the scene description file parsing method further includes: determining a scene description module corresponding to the three-dimensional scene to be rendered according to a scene declaration of the scene description file.

[0599] For example, if the scene declaration of the scene description file is "scene":0, then it can be determined that the scene description module corresponding to the 3D scene to be rendered is the first scene description module in the scene list ("scenes":[]) of the scene description file.

[0600] Some embodiments of the present application also provide a method for rendering a three-dimensional scene. The execution subject of the method for rendering a three-dimensional scene is a display engine in an immersive media description framework. Fig.12 As shown, the three-dimensional scene rendering method includes the following steps S121 to S124:

[0601] S121. According to an MPEG interactive description module ("MPEG_interactivity": {}) of a scene description file of a to-be-rendered 3D scene, an index value of a target tactile object description module corresponding to a tactile object associated with a target action node when the to-be-rendered 3D scene performs a target tactile action is obtained.

[0602] In some embodiments, the above step S121 (obtaining the index value of the target tactile object description module corresponding to the tactile object associated with the target action node when the target tactile action is performed in the 3D scene to be rendered according to the MPEG interactive description module of the scene description file of the 3D scene to be rendered) includes the following steps 1211 to 1213:

[0603] Step 1211: Obtain a target action description module from an MPEG interactive description module ("MPEG_interactivity": {}) of a scene description file of a 3D scene to be rendered.

[0604] Among them, the target action description module is an action description module corresponding to the target tactile action.

[0605] Step 1212: Obtain a target haptic action node array from the haptic action node list ("hapticActionNodes":[]) of the action description module.

[0606] The target tactile action node array is a tactile action node array in which the value of a node index syntax element (node) is the index value of a node description module corresponding to the target action node.

[0607] Step 1213: Determine the value of the haptic object index syntax element in the target haptic action node array as the index value of the target haptic object description module.

[0608] S122. Acquire the target haptic object description module from the MPEG haptic description module ("MPEG_haptic":{}) in the scene description file according to the index value of the target haptic object description module.

[0609] For example, if the index value of the target tactile object description module is 1, the second tactile object description module is read from the MPEG tactile description module of the scene description file as the target tactile object description module.

[0610] S123. Acquire, according to the target tactile object description module, description information of a tactile media accessor associated with the target action node when the target tactile action is executed in the to-be-rendered three-dimensional scene.

[0611] In some embodiments, the above step S123 (obtaining, according to the target tactile object description module, description information of the tactile media accessor associated with the target action node when the to-be-rendered three-dimensional scene performs the target tactile action) includes the following steps 1231 to 1233:

[0612] Step 1231: Obtain the value of the accessor index syntax element (accessor) in the target tactile object description module.

[0613] Step 1232: Obtain an accessor description module corresponding to the tactile media accessor from the accessor list ("accessors":[]) of the scene description file according to the value of the accessor index syntax element (accessor).

[0614] Step 1233: Acquire description information of the tactile media accessor according to the accessor description module corresponding to the tactile media accessor.

[0615] The implementation method of acquiring the description information of the tactile media accessor according to the accessor description module corresponding to the tactile media accessor may refer to at least one of steps g1 to g8 in the above embodiment, and will not be described in detail here to avoid redundancy.

[0616] S124. When the three-dimensional scene to be rendered is triggered to perform the target tactile action, the tactile rendering data of the tactile media file declared in the MPEG media description module ("MPEG_media":{}) associated with the target action node is accessed from the tactile media cache according to the description information of the tactile media accessor, and the target action node is rendered according to the tactile rendering data associated with the target action node.

[0617] The three-dimensional scene rendering method provided in the embodiment of the present application can obtain the index value of the target tactile object description module corresponding to the tactile object associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action according to the MPEG interactive description module of the scene description file of the three-dimensional scene to be rendered, obtain the target tactile object description module from the MPEG tactile description module of the scene description file according to the index value of the target tactile object description module, and obtain the description information of the tactile media accessor associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action according to the target tactile object description module; when the three-dimensional scene to be rendered is triggered to perform the target tactile action, access the tactile rendering data of the tactile media file declared in the MPEG media description module associated with the target action node from the tactile media cache according to the description information of the tactile media accessor, and render the target action node according to the tactile rendering data of the tactile media file associated with the target action node. Since the three-dimensional scene rendering method provided in the embodiment of the present application can trigger the three-dimensional scene to be rendered to execute the target tactile action, access the tactile rendering data of the tactile media file associated with the action node, and render the action node according to the tactile rendering data of the tactile media file associated with the action node, it realizes obtaining the association relationship between the tactile action, the node and the tactile rendering data of the tactile media file according to the scene description file. Therefore, the embodiment of the present application can support tactile media files in the scene description file.

[0618] Because when the three-dimensional scene to be rendered is triggered to perform the target tactile action, the display engine needs to access the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, therefore in some embodiments, the rendering method of the three-dimensional scene also includes: before accessing the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, executing the following steps ① to ③ to obtain the tactile rendering data of the tactile media file.

[0619] Step ①, obtaining a target media description module corresponding to the tactile media file from a media list ("media":[]) of an MPEG media description module ("MPEG_media":{}) of the scene description file.

[0620] Step ②: acquiring description information of the tactile media file according to the target media description module.

[0621] The implementation method of obtaining the description information of the tactile media file according to the target media description module may refer to at least one of steps b1 to b4 in the above embodiment, and will not be repeated here to avoid redundancy.

[0622] Step ③, sending the description information of the tactile media file to the media access function, so that the media access function obtains the tactile media file according to the description information of the tactile media file, and decapsulates and decodes the tactile media file to obtain the tactile rendering data of the tactile media file.

[0623] In some embodiments, sending the description information of the tactile media file to the media access function includes: sending the description information of the tactile media file to the media access function through a media access function application program interface (Application Program Interface, API).

[0624] Because when the three-dimensional scene to be rendered is triggered to perform the target tactile action, the display engine needs to access the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, in some embodiments, the rendering method of the three-dimensional scene also includes: before accessing the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, executing the following steps ④ and ⑤ to write the tactile rendering data of the tactile media file into the tactile media buffer.

[0625] Step ④: acquiring description information of the tactile media buffer and description information of cache slices of the tactile media buffer according to the scene description file.

[0626] In some embodiments, obtaining description information of the tactile media buffer and description information of cache slices of the tactile media buffer according to the scene description file includes: obtaining a buffer description module corresponding to the tactile media buffer from a buffer list ("buffers":[]) of the scene description file, obtaining a cache slice description module corresponding to the cache slice of the tactile media buffer from a cache slice list ("bufferViews":[]) of the scene description file, and obtaining description information of the tactile media buffer and description information of the cache slices of the tactile media buffer according to the buffer description module corresponding to the tactile media buffer and the cache slice description module corresponding to the cache slice of the tactile media buffer.

[0627] Step 5: Send the description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer, and the description information of the tactile media accessor to the media access function, so that the media access function writes the tactile rendering data of the tactile media file into the tactile media buffer according to the description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer, and the description information of the tactile media accessor.

[0628] In some embodiments, sending the description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer, and the description information of the tactile media accessor to the media access function includes: sending the description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer, and the description information of the tactile media accessor to the media access function through the media access function API.

[0629] Because when the three-dimensional scene to be rendered is triggered to perform the target tactile action, the display engine needs to access the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, in some embodiments, the rendering method of the three-dimensional scene also includes: before accessing the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, executing the following steps ⑥ and ⑦ to create the tactile media buffer.

[0630] Step ⑥: Acquire description information of the tactile media buffer and description information of cache slices of the tactile media buffer according to the scene description file.

[0631] Step 7: Send the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to a cache management module, so that the cache management module creates the tactile media buffer according to the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer.

[0632] In some embodiments, sending the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to the cache management module includes: sending the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to the cache management module through a cache API.

[0633] Some embodiments of the present application also provide a method for processing a tactile media file. The execution subject of the method for processing a tactile media file is a media access function in an immersive media description framework. Fig.13As shown, the three-dimensional scene rendering method includes the following steps S131 to S133:

[0634] S131 . Receive description information of the tactile media file declared in the MPEG media description module ("MPEG_media":{}) of the scene description file sent by the display engine.

[0635] In some embodiments, receiving description information of tactile media files declared in an MPEG media description module of a scene description file sent by a display engine includes: receiving description information of tactile media files declared in an MPEG media description module of a scene description file sent by the display engine through a media access function API.

[0636] S132: Acquire tactile rendering data of the tactile media file according to the description information of the tactile media file.

[0637] In some embodiments, the above step S132 (obtaining tactile rendering data of the tactile media file according to the description information of the tactile media file) includes: creating a tactile media pipeline for processing the tactile media file according to the description information of the tactile media file; obtaining the tactile media file through the tactile media pipeline, and decapsulating and decoding the tactile media file to obtain the tactile rendering data of the tactile media file.

[0638] In some embodiments, the description information of the tactile media file includes an access address of the tactile media file, and the above step S132 (obtaining tactile rendering data of the tactile media file according to the description information of the tactile media file) includes: obtaining the tactile media file according to the access address of the tactile media file.

[0639] In some embodiments, acquiring the tactile media file according to the access address of the tactile media file includes: acquiring the tactile media file from a media resource server according to the access address of the tactile media file.

[0640] In some embodiments, acquiring the tactile media file according to the access address of the tactile media file includes: reading the tactile media file from a local storage space according to the access address of the tactile media file.

[0641] In some embodiments, the description information of the tactile media file also includes index values ​​of each code stream track of the tactile media file, and the above-mentioned step S132 (obtaining tactile rendering data of the tactile media file according to the description information of the tactile media file) also includes: decapsulating the tactile media file according to the index values ​​of each code stream track of the tactile media file to obtain the code stream of each code stream track of the tactile media file.

[0642] In some embodiments, the description information of the tactile media file also includes codec parameters of each bitstream track of the tactile media file, and the above-mentioned step S132 (obtaining tactile rendering data of the tactile media file according to the description information of the tactile media file) also includes: decoding the bitstream of each bitstream track of the tactile media file according to the codec parameters of each bitstream track of the tactile media file, and obtaining corresponding decoded data of each bitstream track of the tactile media file, so as to obtain the tactile rendering data of the tactile media file.

[0643] S133, writing the tactile rendering data of the tactile media file into the tactile media buffer, so that when the three-dimensional scene to be rendered is triggered to perform a target tactile action, the display engine accesses the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor.

[0644] Among them, the description information of the tactile media accessor is the accessor description information obtained by the display engine according to the target tactile object description module in the MPEG tactile description module ("MPEG_interactivity":{}) of the three-dimensional scene to be rendered, and the target tactile object description module is the tactile object description module corresponding to the tactile object associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action.

[0645] The processing method of tactile media files provided in the embodiment of the present application can obtain the tactile rendering data of the tactile media file according to the description information of the tactile media file after receiving the description information of the tactile media file declared in the MPEG media description module of the scene description file sent by the display engine, and write the tactile rendering data of the tactile media file into the tactile media buffer. Since the processing method of tactile media files provided in the embodiment of the present application can obtain the tactile rendering data of the tactile media file and write the tactile rendering data of the tactile media file into the tactile media buffer, the display engine can obtain the description information of the tactile media accessor according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and when triggering the three-dimensional scene to be rendered to perform the target tactile action, read the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor, and then render the target action node according to the tactile rendering data of the tactile media file associated with the target action node, so the embodiment of the present application can support tactile media files in the scene description file.

[0646] The embodiment of the present application also provides a cache management method, the execution subject of the cache management method is a cache management module in the immersive media description framework, referring to Fig.14 As shown, the cache management method includes the following steps S141 and S142:

[0647] S141: Receive description information of a tactile media buffer and description information of a cache slice of the tactile media buffer.

[0648] The tactile media buffer is a buffer for caching tactile rendering data of a tactile media file declared in an MPEG media description module ("MPEG_media":{}).

[0649] In some embodiments, the above step S141 (receiving description information of the tactile media buffer and description information of the cache slices of the tactile media buffer) includes: receiving description information of the tactile media buffer and description information of the cache slices of the tactile media buffer sent by the display engine.

[0650] That is, after the display engine parses the scene description file to obtain the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer, it directly sends the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to the cache management module.

[0651] In some embodiments, receiving description information of the tactile media buffer and description information of cache slices of the tactile media buffer sent by a display engine includes: receiving description information of the tactile media buffer and description information of cache slices of the tactile media buffer sent by the display engine through a cache API.

[0652] In some embodiments, in some embodiments, the above step S141 (receiving description information of the tactile media buffer and description information of the cache slice of the tactile media buffer) includes: receiving the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer sent by the media access function.

[0653] That is, after the display engine parses the scene description file to obtain the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer, the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer are first sent to the media access function, and then the media access function forwards the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to the cache management module.

[0654] In some embodiments, receiving description information of the tactile media buffer and description information of cache slices of the tactile media buffer sent by a media access function includes: receiving description information of the tactile media buffer and description information of cache slices of the tactile media buffer sent by the media access function through a cache API.

[0655] In some embodiments, the description information of the tactile media buffer includes at least one of the following:

[0656] The name of the tactile media buffer, the capacity of the tactile media buffer, whether the tactile media buffer is a circular buffer based on MPEG extension, the number of storage links of the tactile media buffer, the index value of the media description module corresponding to the media file to which the source data of the data cached by the tactile media buffer belongs, and the track index value of the source data of the data cached by the tactile media buffer.

[0657] In some embodiments, the description information of the cache slice of the tactile media buffer includes at least one of the following:

[0658] The name of the cache slice, the index value of the cache description module corresponding to the tactile media buffer to which the cache slice belongs, the capacity of the cache slice, and the offset of the cache slice.

[0659] S142. Create the tactile media buffer according to the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer, so that the media access function writes the tactile rendering data of the tactile media file into the tactile media buffer, and when triggering the three-dimensional scene to be rendered to perform a target tactile action, enable the display engine to access the tactile rendering data associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor.

[0660] Among them, the description information of the tactile media accessor is the accessor description information obtained by the display engine according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and the target tactile object description module is the tactile object description module corresponding to the tactile object associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action.

[0661] In some embodiments, the cache management method provided by the embodiments of the present application also includes: receiving description information of the target accessor sent by the display engine and / or the media access function, the target accessor being an accessor for accessing the dynamic three-dimensional model of the target component; and performing cache management on the target cache according to the description information of the target accessor.

[0662] The description information of the target accessor includes at least one of the following:

[0663] The index value of the cache slice description module corresponding to the cache slice storing the data accessed by the tactile media accessor, the data type of the data accessed by the tactile media accessor, the type of the tactile media accessor, the amount of data accessed by the tactile media accessor, whether the tactile media accessor is a time-varying accessor based on MPEG extension, the index value of the cache slice description module corresponding to the cache slice storing the time-varying parameters of the tactile media accessor, and whether the parameters of the tactile media accessor change over time.

[0664] In some embodiments, the cache management method provided by the embodiments of the present application also includes: receiving a cache management instruction, wherein the cache management instruction is used to instruct the release of the target cache or the update of the data cached in the target cache; and releasing the target cache or updating the data cached in the target cache in response to the cache management instruction.

[0665] The cache management method provided in the embodiment of the present application can create the tactile media buffer according to the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer after receiving the description information of the tactile media buffer used to cache the tactile rendering data of the tactile media file declared in the MPEG media description module, so that the media access function can write the tactile rendering data of the tactile media file into the tactile media buffer, and the display engine can obtain the description information of the tactile media accessor according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and when triggering the three-dimensional scene to be rendered to perform the target tactile action, the tactile rendering data of the tactile media file associated with the target action node is accessed from the tactile media buffer according to the description information of the tactile media accessor, and the target action node is rendered according to the tactile rendering data of the tactile media file associated with the target action node. Therefore, the embodiment of the present application can support tactile media files in the scene description file.

[0666] In some embodiments, some embodiments of the present application provide a device for processing a tactile media file, and the device for generating a scene description file includes:

[0667] a memory configured to store a computer program;

[0668] The processor is configured to, when calling the computer program, enable the tactile media file processing device to implement the tactile media file processing method described in any of the above embodiments.

[0669] In some embodiments, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computing device, the computing device implements the method for processing tactile media files described in any of the above embodiments.

[0670] In some embodiments, some embodiments of the present application provide a computer program product. When the computer program product is run on a computer, the computer implements the method for processing a tactile media file described in any of the above embodiments.

[0671] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0672] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A method for processing tactile media files, It is characterized in that include: Receiving description information of a tactile media file declared in a moving picture experts group (MPEG) media description module of a scene description file sent by a display engine; Acquire tactile rendering data of the tactile media file according to the description information of the tactile media file; The tactile rendering data of the tactile media file is written into a tactile media buffer, so that when the three-dimensional scene to be rendered is triggered to perform a target tactile action, the display engine accesses the tactile rendering data of the tactile media file associated with the target action node from the tactile media buffer according to the description information of the tactile media accessor; the description information of the tactile media accessor is the accessor description information obtained by the display engine according to the target tactile object description module in the MPEG tactile description module of the three-dimensional scene to be rendered, and the target tactile object description module is the tactile object description module corresponding to the tactile object associated with the target action node when the three-dimensional scene to be rendered performs the target tactile action.

2. The method according to claim 1, It is characterized in that The description information of the tactile media file declared in the MPEG media description module of the scene description file sent by the receiving display engine includes: The description information of the tactile media file declared in the MPEG media description module of the scene description file sent by the display engine is received through the media access function application program interface API.

3. The method according to claim 1, It is characterized in that The step of acquiring the tactile rendering data of the tactile media file according to the description information of the tactile media file includes: Creating a haptic media pipeline for processing the haptic media file according to the description information of the haptic media file; The haptic media file is acquired through the haptic media pipeline, and the haptic media file is decapsulated and decoded to acquire haptic rendering data of the haptic media file.

4. The method according to claim 1, It is characterized in that The description information of the tactile media file includes an access address of the tactile media file; and obtaining the tactile rendering data of the tactile media file according to the description information of the tactile media file includes: The tactile media file is acquired according to the access address of the tactile media file.

5. The method according to claim 4, It is characterized in that The description information of the tactile media file also includes index values ​​of each code stream track of the tactile media file; and obtaining the tactile rendering data of the tactile media file according to the description information of the tactile media file further includes: The tactile media file is decapsulated according to the index values ​​of the respective code stream tracks of the tactile media file to obtain the code streams of the respective code stream tracks of the tactile media file.

6. The method according to claim 5, It is characterized in that The description information of the tactile media file also includes encoding and decoding parameters of each code stream track of the tactile media file; and obtaining the tactile rendering data of the tactile media file according to the description information of the tactile media file also includes: The code streams of each code stream track of the tactile media file are decoded according to the encoding and decoding parameters of each code stream track of the tactile media file, and corresponding decoded data of each code stream track of the tactile media file are obtained to obtain the tactile rendering data of the tactile media file.

7. The method according to claim 1, It is characterized in that Before writing the tactile rendering data of the tactile media file into the tactile media buffer, the method further comprises: receiving description information of the tactile media buffer, description information of a cache slice of the tactile media buffer, and description information of the tactile media accessor sent by the display engine; Writing the tactile rendering data of the tactile media file into the tactile media buffer includes: writing the tactile rendering data of the tactile media file into the tactile media buffer according to the description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer, and the description information of the tactile media accessor.

8. The method according to claim 7, It is characterized in that The receiving, from the display engine, description information of the tactile media buffer, description information of the cache slice of the tactile media buffer, and description information of the tactile media accessor, comprises: The description information of the tactile media buffer, the description information of the cache slice of the tactile media buffer and the description information of the tactile media accessor sent by the display engine are received through a media access function API.

9. The method according to claim 7, It is characterized in that Before writing the tactile rendering data of the tactile media file into the tactile media buffer, the method further includes: The description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer are sent to a cache management module, so that the management module creates the tactile media buffer according to the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer.

10. The method according to claim 9, It is characterized in that The sending the description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer to the cache management module includes: The description information of the tactile media buffer and the description information of the cache slice of the tactile media buffer are sent to the cache management module through a cache API.

11. A device for processing tactile media files, It is characterized in that include: a memory configured to store a computer program; The processor is configured to, when calling the computer program, enable the tactile media file processing device to implement the tactile media file processing method according to any one of claims 1 to 10.