A method, device and storage medium for analyzing three-dimensional interactive media

By dividing the three-dimensional interactive media into the command area, index area and resource area, and operating the resources in the resource area according to the command information parameters, the problem of low parsing efficiency of the three-dimensional interactive media is solved, and more efficient media file parsing and occupation are achieved. Reduction of space.

CN114722218BActive Publication Date: 2024-10-18BEIJING FUTURE SPACETIME TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210495677.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2024-10-18
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

Existing 3D interactive media parsing efficiency is low, images need to be decompressed and loaded in chronological order, and media files take up a lot of space.

Method used

By dividing the three-dimensional interactive media into the instruction area, index area and resource area, the instruction data and index data are obtained respectively, the instruction data is segmented to obtain the instruction information sequence, the instruction information parameters are parsed one by one, and the resources in the resource area are operated according to the instruction information parameters. resources to implement parsing of media files.

Benefits of technology

It improves the parsing efficiency of three-dimensional interactive media, reduces the space occupied by media files, achieves stronger editability and interactivity, loads resources on demand, and improves the response speed of media playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114722218B_ABST
    Figure CN114722218B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and storage medium for parsing three-dimensional interactive media, belonging to the technical field of interactive media, the method comprising: obtaining the three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed comprises an instruction area, an index area and a resource area, the index area is used to store the location information of each resource in the resource area, and the resource area is used to store the resources in the three-dimensional interactive media; respectively obtaining instruction data of the instruction area and index data of the index area; dividing the instruction data to obtain an instruction information sequence; parsing the data in the instruction information sequence one by one to obtain instruction information parameters; obtaining operation instructions one by one according to the instruction information parameters and the index data, the operation instructions being used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters. The present invention achieves the technical effect of improving the parsing efficiency of three-dimensional interactive media.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of media editing, and in particular to a method, device and storage medium for analyzing three-dimensional interactive media. Background Art

[0002] With the rapid development of digital perception technologies such as the metaverse, higher requirements are placed on the complexity and timeliness of three-dimensional interactive media, and online interactive media has higher requirements on the speed of media file parsing.

[0003] Current three-dimensional interactive media generally edits and stores images through time-sequential picture frames, reduces the space occupied by the media through image compression, sets key points on the timeline, and achieves playback and interaction through decompression and reading when in use.

[0004] The existing technology of parsing three-dimensional interactive media requires decompression and loading of images in chronological order, and the media files occupy a large space, resulting in a technical problem of low parsing efficiency of three-dimensional interactive media files. Summary of the invention

[0005] The present application provides a method, device and storage medium for parsing three-dimensional interactive media, which are used to solve the technical problems that the parsing of three-dimensional interactive media in the prior art requires decompression and loading of images in chronological order, and the media files occupy a large space, resulting in low efficiency in parsing three-dimensional interactive media files.

[0006] In view of the above problems, the present application provides a method, device and storage medium for analyzing three-dimensional interactive media.

[0007] The first aspect of the present application provides a method for parsing three-dimensional interactive media, the method comprising: obtaining the three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed comprises an instruction area, an index area, and a resource area, the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media; respectively obtaining instruction data of the instruction area and index data of the index area; dividing the instruction data to obtain an instruction information sequence; parsing the data in the instruction information sequence one by one to obtain instruction information parameters; obtaining operation instructions one by one according to the instruction information parameters and the index data, the operation instructions being used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

[0008] According to a second aspect of the present application, a parsing device for three-dimensional interactive media is provided, the device comprising: a first obtaining unit, used to obtain the three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed comprises an instruction area, an index area, and a resource area, the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media; a second obtaining unit, used to respectively obtain instruction data of the instruction area and index data of the index area; a first processing unit, used to segment the instruction data to obtain an instruction information sequence; a second processing unit, used to parse the data in the instruction information sequence one by one to obtain instruction information parameters; and a third processing unit, used to obtain operation instructions one by one according to the instruction information parameters and the index data, the operation instructions being used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

[0009] The third aspect of the present application provides an electronic device, comprising: a processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the electronic device executes the steps of the method described in the first aspect.

[0010] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0011] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0012] The technical solution provided by the embodiment of the present application obtains a three-dimensional interactive media to be parsed, which is generated based on a specific production and generation method, including an instruction area, an index area and a resource area, and then obtains instruction data in the instruction area and index data in the index area respectively, further divides the instruction data to obtain an instruction information sequence, parses the data in the instruction information sequence one by one, obtains instruction information parameters, and finally obtains operation instructions one by one according to the instruction information parameters and the index data, and calls the resources in the resource area corresponding to the resource location information recorded in the index data according to the instruction information parameters to complete the parsing of the media file. The embodiment of the present application obtains a three-dimensional interactive media file having an instruction area, an index area and a resource area by combining a specific three-dimensional interactive media generation method. When parsing, the instruction information and index information in the instruction area and the index area are directly obtained, and the location information of the media resources to be called in the resource area is obtained by indexing through the instructions in the instruction area, and then the corresponding resources are obtained for operation, and the final three-dimensional interactive media is obtained by parsing. Since the media is described based on the instruction area, there is no need to edit the resources according to the picture frames, and the editability is strong. Logical instructions can be set in the instruction area to achieve interactivity, and the media resource storage method of the index area and the resource area is used to call the resources through the resource location information in the index area. The media file itself occupies a small space. When parsing the media file, the smaller instruction area and index area are parsed and loaded first, and the resources in the resource area are loaded on demand during media playback, thereby achieving the technical effect of improving the efficiency of three-dimensional interactive media parsing.

[0013] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of a process flow of a three-dimensional interactive media analysis method provided in this application;

[0015] Figure 2 A schematic diagram of a flow chart of segmenting and obtaining a sequence of instruction information in a method for parsing three-dimensional interactive media provided in the present application;

[0016] Figure 3 A schematic diagram of a flow chart of parsing and obtaining instruction information parameters in a parsing method for three-dimensional interactive media provided in the present application;

[0017] Figure 4 A schematic diagram of the structure of a parsing device for three-dimensional interactive media is provided for this application;

[0018] Figure 5This is a schematic diagram of the structure of an exemplary electronic device of the present application.

[0019] Explanation of the reference numerals: first obtaining unit 11 , second obtaining unit 12 , first processing unit 13 , second processing unit 14 , third processing unit 15 , electronic device 300 , memory 301 , processor 302 , communication interface 303 , bus architecture 304 . DETAILED DESCRIPTION

[0020] The present application provides a three-dimensional interactive media parsing method, device and storage medium, which are used to solve the technical problem of low efficiency in parsing three-dimensional interactive media files in the prior art.

[0021] In response to the above technical problems, the overall idea of ​​the technical solution provided by this application is as follows:

[0022] The technical solution provided by the embodiment of the present application obtains a three-dimensional interactive media to be parsed, which is generated based on a specific production and generation method, including an instruction area, an index area and a resource area, and then obtains instruction data in the instruction area and index data in the index area respectively, further divides the instruction data to obtain an instruction information sequence, parses the data in the instruction information sequence one by one, obtains instruction information parameters, and finally obtains operation instructions one by one according to the instruction information parameters and the index data, and calls the resources in the resource area corresponding to the resource location information recorded in the index data according to the instruction information parameters to complete the parsing of the media file.

[0023] After introducing the basic principles of the present application, the technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described here. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. It should also be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, rather than all of them.

[0024] Embodiment 1

[0025] like Figure 1 As shown, an embodiment of the present application provides a method for parsing three-dimensional interactive media, the method comprising:

[0026] S1: obtaining a three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed includes an instruction area, an index area, and a resource area, wherein the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media;

[0027] In the embodiment of the present application, the three-dimensional interactive media to be parsed is any three-dimensional interactive media file that is edited, produced, and generated according to user needs, which may include images, audio, text, interactions, and other contents.

[0028] Specifically, the three-dimensional interactive media to be parsed is generated based on a specific three-dimensional interactive media generation method, and includes an instruction area, an index area, and a resource area.

[0029] The resource area includes resources required for playback and interaction of three-dimensional interactive media, such as one or more of models, videos, pictures, sounds, and texts; wherein the model is a three-dimensional object composed of points and surfaces.

[0030] The index area includes index information, which includes resource location information of the above resources in the resource area. The instruction area includes instruction information, and the operation instructions in the instruction information are used to call and operate resources, which are specifically called through the index information in the index area.

[0031] It should be noted that the instruction area, index area and resource area are logical partitions and may not be continuous in the physical space such as the storage medium.

[0032] S2: Obtain instruction data of the instruction area and index data of the index area respectively;

[0033] In the embodiment of the present application, the resources in the resource area are called based on the data in the instruction area and the index area to complete the parsing and loading of the three-dimensional interactive media. During the parsing process, the instruction data and index data in the instruction area and the index area are first parsed and obtained.

[0034] In a possible embodiment of the present application, when parsing to obtain instruction data in the instruction area and index data in the index area, the instruction data in the instruction area is first loaded and obtained, and then the index data in the index area is loaded and obtained.

[0035] Specifically, the three-dimensional interactive media file is stored on a device or storage medium for playing and interacting, such as a hard disk. Exemplarily, the first 4 bytes of the media file are used to record the length of the instruction area, and based on the length, the instruction area can be completely read from the storage medium into the memory.

[0036] Then, the index data in the index area is obtained. Optionally, the index area in the embodiment of the present application can be expanded.

[0037] Exemplarily, the starting point of the index area is the position of the length of the instruction area plus 4 bytes, and the first 4 bytes of the index area are used to record the length of the index area and to guide the reading of the index data in the index area. That is, the first 4 bytes of the first 8 bytes of the media file are used to record the length of the instruction area, and the last 4 bytes are used to record the length of the index area.

[0038] Exemplarily, the index data in the index area records the description of each resource in the resource area, such as resource ID, category, starting point and length or starting point and key points.

[0039] S3: Slice the instruction data to obtain an instruction information sequence;

[0040] In the embodiment of the present application, after obtaining the instruction data in the instruction area, the instruction data is segmented to obtain an instruction information sequence.

[0041] Preferably, the instruction data in the instruction area adopts the format of "instruction + parameter", and the length of the instruction and parameter is fixed. When loading and splitting the instruction data, there is no need to judge the length of each instruction data, and it can be directly split according to the preset fixed length to obtain the instruction information sequence.

[0042] S4: parsing the data in the instruction information sequence one by one to obtain instruction information parameters;

[0043] In step S3, the preparation work for parsing the three-dimensional interactive media is completed, and then the instruction information is parsed, and the index area and resource area are coordinated to perform related resource call operations and logic control to parse and generate the edited three-dimensional interactive media scene.

[0044] In the embodiment of the present application, the instruction information in the instruction information sequence includes multiple types, and each type of instruction information forms multiple different instructions according to different specific instruction parameters, thereby realizing the richness and interactivity of the three-dimensional interactive media.

[0045] For example, the types of instruction information may include loading resources, changing virtual object properties, logical control functions, and the like.

[0046] When parsing the instruction information data in the instruction information sequence, the type of the instruction information is first determined, and then the instruction parameters in the instruction information are parsed according to the instruction type, and the instruction parsing is completed to obtain the instruction information parameters.

[0047] S5: Obtaining operation instructions one by one according to the instruction information parameters and the index data, wherein the operation instructions are used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

[0048] The instruction information parameters are obtained by parsing the instruction information sequence one by one, and relevant instructions are executed according to the instruction information parameters to generate a scene or interaction of a three-dimensional interactive media.

[0049] Specifically, according to the instruction information parameters obtained by parsing the instruction information sequence, combined with the index data in the index area, corresponding operation instructions are obtained one by one according to the instruction information parameters and the index data, and the operation instructions are executed. According to the resource location information recorded in the index data, the resources in the resource area are called to load, or the resources are logically controlled to form a three-dimensional interactive media scene and interaction.

[0050] At this point, the parsing of the three-dimensional interactive media is completed, and the scene data is updated. Subsequently, the rendering engine or player will create the scene and output the image.

[0051] The embodiment of the present application obtains a three-dimensional interactive media file having an instruction area, an index area and a resource area by combining a specific three-dimensional interactive media generation method. When parsing, the instruction information and index information in the instruction area and the index area are directly obtained, and the location information of the media resources to be called in the resource area is obtained by indexing through the instructions in the instruction area, and then the corresponding resources are obtained for operation, and the final three-dimensional interactive media is obtained by parsing. Since the media is described based on the instruction area, there is no need to edit the resources according to the picture frames, and the editability is strong. Logical instructions can be set in the instruction area to achieve interactivity, and the media resource storage method of the index area and the resource area is used to call the resources through the resource location information in the index area. The media file itself occupies a small space. When parsing the media file, the smaller instruction area and index area are parsed and loaded first, and the resources in the resource area are loaded on demand during media playback, thereby achieving the technical effect of improving the efficiency of three-dimensional interactive media parsing.

[0052] In another possible embodiment of the present application, the index area includes location information of the instruction area. When obtaining the instruction data in the instruction area and the index data in the index area respectively, the index data in the index area is first obtained, and then the instruction data in the instruction area is obtained based on the location information of the instruction area in the index area.

[0053] Specifically, step S2 in the method provided in the embodiment of the present application includes:

[0054] S21: Obtaining index data of the index area;

[0055] S22: Obtain instruction data of the instruction area according to the instruction position information in the index data.

[0056] Wherein, step S21 includes:

[0057] S211: Obtaining the byte length of the preset index area record;

[0058] S212: Read the to-be-parsed three-dimensional interactive media according to the preset index area record byte length to obtain index data of the index area.

[0059] In the embodiment of the present application, illustratively, the three-dimensional interactive media file is stored in a storage medium such as a hard disk, and the index area is first read from the hard disk into the memory.

[0060] Specifically, the preset index area of ​​the three-dimensional interactive media file records the byte length, which may be the first N bytes of the media file, and is used to record the length of the index area. By reading the first N bytes of the media file for parsing, the length of the index area can be obtained, and the index area is further read based on the length to obtain index data.

[0061] Exemplarily, the value N of the byte length recorded in the preset index area may be 4, or may be the byte length of the first 1% of the media file.

[0062] After the index area is read, the instruction area is read according to the position information of the instruction area in the index area to obtain the instruction data. Therefore, there is no need to set the bytes for recording the starting point or length of the instruction area in the media file, and it is directly stored in the index area.

[0063] In the embodiment of the present application, the index area includes two parts, wherein the first part is the general index, which is used to store the starting point and length of the instruction area and the total starting point and length of the resource area. The second part is the sub-index, which is used to record the description of each resource. For example, the description includes: resource ID number, resource category, resource starting point and length or resource starting point and end point, etc.

[0064] The first part is used to read instruction data in the instruction area, and the second part is used to search, read and load resources when resources are called according to instructions.

[0065] The embodiment of the present application saves the position and length of the instruction area and the resource area in the index area, so that the index area can be used to describe the location of resources and instructions. There is no need to set information describing the instruction area and the resource area and the location of each resource in the media file, thereby reducing the space occupied by the media file and improving the loading response rate.

[0066] like Figure 2 As shown, step S3 in the method provided in the embodiment of the present application includes:

[0067] S31: Slice the instruction data to obtain instruction ID and parameter information, wherein the instruction data is stored in a sequential manner;

[0068] S32: constructing an instruction data list based on the instruction ID and parameter information and in the order in which the instruction data are stored, and using the instruction data list as the instruction information sequence.

[0069] In the above content, the format of the instruction data is: instruction + parameter, and the length of the instruction and parameter is fixed. Therefore, when splitting, there is no need to judge the length of the instruction or data, and it can be directly split according to the fixed length to improve the splitting efficiency.

[0070] Exemplarily, the format of the instruction data is an instruction ID and an instruction parameter, the length of the instruction ID is 4 bytes, and the length of the instruction parameter is 32 bytes.

[0071] Specifically, when the instruction data is stored in the instruction area, it is stored in the order in which the instructions are generated.

[0072] Furthermore, the instruction data is sorted and segmented according to a fixed length to obtain instruction IDs and parameter information of multiple instructions.

[0073] After the division is completed, an instruction data list is constructed based on the instruction ID and parameter information in the order in which the instruction data is stored, and the instruction data list is used as an instruction information sequence.

[0074] In the embodiment of the present application, by segmenting the instruction data according to a fixed length, the efficiency of segmenting the instruction data can be improved, thereby improving the efficiency of media file parsing.

[0075] Step S4 in the method provided in the embodiment of the present application includes:

[0076] S41: parsing the instruction type according to the instruction ID in the instruction information sequence to obtain the instruction type;

[0077] S42: Parse the parameter information according to the instruction type to obtain the instruction information parameters.

[0078] Specifically, in the process of parsing the instruction information in the instruction information sequence one by one, first, the instruction type is parsed according to the instruction ID in the instruction information sequence to obtain the instruction type.

[0079] Furthermore, according to the instruction type, the parameter information is parsed to obtain instruction information parameters.

[0080] like Figure 3 As shown, step S42 includes:

[0081] S421: Determine the instruction name according to the instruction type;

[0082] S422: Obtain parameter setting information according to the instruction name, wherein the parameter setting information includes a parameter setting position and a parameter byte length;

[0083] S423: Segment and parse the parameter information according to the parameter setting position and the parameter byte length to obtain the instruction information parameters.

[0084] Specifically, according to the instruction type, the name of the instruction, that is, the instruction ID, is determined.

[0085] Further, the parameter setting information in the parameter information is obtained according to the instruction ID. Exemplarily, the parameter setting information includes the parameter setting position and the parameter byte length of the parameter.

[0086] The parameter information of the instruction is segmented and parsed according to the parameter setting position and the parameter byte length to obtain the instruction information parameters.

[0087] In this way, according to the instruction type and instruction information parameters, the corresponding operation instruction can be parsed and obtained to generate a three-dimensional interactive media scene or interaction.

[0088] In the embodiment of the present application, the instruction type includes a resource loading instruction, a virtual object attribute change instruction, and a logic control function instruction. When the instruction type is a resource loading instruction, step S5 in the method provided in the embodiment of the present application includes step S51, and step S51 includes:

[0089] S511: Determine storage location information of the resource in the resource area according to the instruction information parameters and the index data, and obtain resource data;

[0090] S512: parsing the resource data and converting it into a data format corresponding to the three-dimensional model;

[0091] S513: Obtain the operation instruction, where the operation instruction is used to load the converted resource data into the scene or the corresponding virtual object parameters.

[0092] Specifically, when the instruction type is a resource loading instruction, the resources in the resource area need to be loaded. The instruction information parameters include the information needed to call and load the corresponding resources. Further, based on the resource location information in the aforementioned index data, the resource location information of the resource in the resource area is determined to obtain the resource data.

[0093] Exemplarily, Table 1 shows instruction information parameters when the instruction type is a load resource type.

[0094]

[0095] Table 1

[0096] As shown in Table 1, the specific instruction names of the resource loading instructions include adding virtual objects, adding or changing textures, adding or changing sounds, adding or changing text, etc. The specific instruction names can be set according to the 4-byte length to obtain the name of the operation instruction.

[0097] According to the resource loading instructions for objects, textures, sounds and texts, the virtual object IDs corresponding to the different types of resources that need to be loaded can be set to a length of 4 bytes and added to the operation instructions.

[0098] According to the virtual object ID of different resources, the resource location information in the index data in the index area can be corresponded, and can be set according to the length of 4 bytes and added to the operation instruction.

[0099] After the resource data is obtained through the call, the resource is parsed and converted into the data format of the three-dimensional interactive media, and the corresponding operation instructions are obtained. The converted resource data is loaded into the scene or virtual object parameters of the media to complete the loading of the resource.

[0100] When the instruction type is an instruction to change the attributes of a virtual object, step S5 includes step S52, and step S52 includes:

[0101] S521: Determine the location information of the virtual object in the resource area according to the instruction information parameters and the index data;

[0102] S522: Obtaining object attribute change parameters according to the instruction information parameters;

[0103] S523: Obtain the operation instruction according to the object attribute change parameter and the position information of the virtual object in the resource area, wherein the operation instruction is used to update the object attribute change parameter into the virtual object parameter.

[0104] Specifically, when the instruction type is an instruction to change the attributes of a virtual object, an instruction name of a specific operation instruction is further obtained according to the instruction type, and the instruction name includes: move to, rotate to, scale to, change color, and specify parent.

[0105] Table 2 shows the instruction information parameters when the instruction type is to change the attributes of the virtual object.

[0106]

[0107]

[0108] Table 2

[0109] As shown in Table 2, according to the instruction name, the resource whose physical properties need to be changed is further obtained, and the resource identifier, that is, the virtual object ID, is obtained according to the resource. It can be set and parsed according to the 4-byte length and saved in the operation instruction.

[0110] According to the instruction name, specific instruction parameters of the operation instruction are obtained, for example, the coordinate parameters of the end point to be moved to, the specific direction to be rotated, the specific zoom ratio or the size after zooming, the color information of the changed color, the parent virtual object ID of the parent body, etc., which can be adaptively set and parsed according to different lengths to obtain the object attribute change parameters and save them in the operation instruction.

[0111] According to the instruction name, information such as the duration of the operation instruction is obtained. For example, the duration of the moving operation instruction, the duration of the rotating operation instruction, the duration of the changing color operation instruction, etc. are stored in the operation instruction.

[0112] In addition, in the operating instructions in the embodiments of the present application, a certain amount of space may be preset as a backup storage space.

[0113] According to the above instruction name and object attribute change parameters, as well as the resource location information of the operation object, the operation instruction is obtained, and subsequent operations can be performed on the resources to change the physical properties and complete the construction of the three-dimensional scene or interaction.

[0114] In the embodiment of the present application, when the instruction type is the logic control function instruction, step S5 includes step S53, and step S53 includes:

[0115] S531: Determine a control function type based on the instruction information parameters;

[0116] S532: When the control function type is a sequential instruction, the operation instruction is to perform a control operation according to a specified instruction line or instruction segment in the instruction information parameter;

[0117] S533: When the control function type is a determination instruction, determine the control virtual object and the control trigger condition of the resource area corresponding to the index position according to the instruction information parameters and the index data;

[0118] S534: Obtain user input information, and when the control trigger condition is met, obtain the operation instruction, wherein the operation instruction is used to operate the control virtual object according to the specified instruction line in the instruction information parameter.

[0119] Specifically, based on the above instruction information parameters, the control type of the logic control function instruction is confirmed.

[0120] Exemplarily, the control types include: jump to a specified instruction line, loop a specified instruction line segment, loop termination, wait, click trigger determination, and drag trigger determination, etc. Among them, jump to a specified instruction line, loop a specified instruction line segment, loop termination, and wait are sequential instructions, and click trigger determination and drag trigger determination are determination instructions.

[0121] Table 3 shows the instruction information parameters when the instruction type is a logic control function.

[0122]

[0123]

[0124] Table 3

[0125] As shown in Table 3, after confirming the control function type, if the control function type is a sequential instruction, the control operation is performed according to the specified instruction line or instruction segment in the instruction information parameter.

[0126] Exemplarily, if the instruction name is jump to a specified instruction line, the control operation is performed according to the sequence number of the specified instruction line in the instruction information parameter. If the instruction name is loop a specified instruction line segment, the control operation is performed according to the sequence number of the specified instruction segment in the instruction information parameter.

[0127] When the control function type is a judgment type instruction, the control virtual object and control trigger condition of the resource area corresponding to the index position are determined according to the instruction information parameters and index data, and the instruction information parameters are obtained according to a certain byte length, and then the corresponding operation instruction is obtained.

[0128] In this way, the operation instructions are obtained, the construction of the three-dimensional scene or interaction is completed, and when the three-dimensional interactive media is used, the user input information is monitored and obtained, and when the control trigger condition is met, the specified instruction line is executed.

[0129] Exemplarily, if the instruction name is click trigger judgment, the control virtual object and click trigger condition of the resource area corresponding to the index position are determined according to the instruction information parameters and index data, and the user's input information is detected and obtained. When the input information meets the click trigger condition, the corresponding control operation is performed.

[0130] In summary, the embodiment of the present application obtains a three-dimensional interactive media file having an instruction area, an index area and a resource area by combining a specific three-dimensional interactive media generation method. When parsing, the instruction information and index information in the instruction area and the index area are directly obtained, and the location information of the media resources to be called in the resource area is obtained by indexing through the instructions in the instruction area, and then the corresponding resources are obtained for operation, and the final three-dimensional interactive media is obtained by parsing. Since the media is described based on the instruction area, there is no need to edit the resources according to the picture frames, and the editability is strong. Logical instructions can be set in the instruction area to achieve interactivity, and through the media resource storage method of the index area and the resource area, the resources are called through the resource location information in the index area. The media file itself occupies a small space. When parsing the media file, the smaller instruction area and index area are parsed and loaded first, and the resources in the resource area are loaded on demand during media playback, thereby achieving the technical effect of improving the efficiency of three-dimensional interactive media parsing.

[0131] Embodiment 2

[0132] Based on the same inventive concept as the method for analyzing three-dimensional interactive media in the aforementioned embodiment, Figure 4 As shown, the present application provides a three-dimensional interactive media parsing device, wherein the device comprises:

[0133] A first obtaining unit 11 is used to obtain a three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed includes an instruction area, an index area, and a resource area, wherein the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media;

[0134] A second obtaining unit 12 is used to obtain the instruction data of the instruction area and the index data of the index area respectively;

[0135] The first processing unit 13 is used to divide the instruction data into segments to obtain an instruction information sequence;

[0136] The second processing unit 14 is used to parse the data in the instruction information sequence one by one to obtain instruction information parameters;

[0137] The third processing unit 15 is used to obtain operation instructions according to the instruction information parameters and the index data one by one, and the operation instructions are used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

[0138] Furthermore, the device also includes:

[0139] A third obtaining unit, used to obtain index data of the index area;

[0140] The fourth obtaining unit is used to obtain the instruction data of the instruction area according to the instruction position information in the index data.

[0141] Furthermore, the device also includes:

[0142] A fifth obtaining unit, used to obtain a byte length of a preset index area record;

[0143] The fourth processing unit is configured to read the to-be-parsed three-dimensional interactive media according to the preset index area record byte length to obtain index data of the index area.

[0144] Furthermore, the device also includes:

[0145] A fifth processing unit, used for segmenting the instruction data to obtain instruction ID and parameter information, wherein the instruction data is stored in a sequential manner;

[0146] The first construction unit is used to construct an instruction data list based on the instruction ID and parameter information and in the storage order of the instruction data, and use the instruction data list as the instruction information sequence.

[0147] Furthermore, the device also includes:

[0148] a sixth processing unit, configured to parse the instruction type according to the instruction ID in the instruction information sequence to obtain the instruction type;

[0149] The seventh processing unit is used to parse the parameter information according to the instruction type to obtain the instruction information parameters.

[0150] Furthermore, the device also includes:

[0151] A first determining unit, configured to determine an instruction name according to the instruction type;

[0152] A sixth obtaining unit, configured to obtain parameter setting information according to the instruction name, wherein the parameter setting information includes a parameter setting position and a parameter byte length;

[0153] The eighth processing unit is used to divide and parse the parameter information according to the parameter setting position and the parameter byte length to obtain the instruction information parameter.

[0154] Furthermore, the device also includes:

[0155] A second determining unit, configured to determine storage location information of the resource in the resource area according to the instruction information parameters and the index data, and obtain resource data;

[0156] A ninth processing unit, configured to parse the resource data and convert the resource data into a data format corresponding to the three-dimensional model;

[0157] A seventh obtaining unit is used to obtain the operation instruction, where the operation instruction is used to load the converted resource data into the scene or the corresponding virtual object parameters.

[0158] Furthermore, the device also includes:

[0159] A third determining unit, configured to determine the position information of the virtual object in the resource area according to the instruction information parameters and the index data;

[0160] an eighth obtaining unit, configured to obtain object attribute change parameters according to the instruction information parameters;

[0161] The ninth obtaining unit is used to obtain the operation instruction according to the object attribute change parameter and the position information of the virtual object in the resource area, and the operation instruction is used to update the object attribute change parameter into the virtual object parameter.

[0162] Furthermore, the device also includes:

[0163] a fourth determining unit, configured to determine a control function type based on the instruction information parameter;

[0164] a tenth processing unit, configured to, when the control function type is a sequential instruction, perform the control operation according to a specified instruction line or instruction segment in an instruction information parameter;

[0165] A fifth determining unit, configured to determine, when the control function type is a determination instruction, a control virtual object and a control trigger condition of a resource area corresponding to an index position according to the instruction information parameters and the index data;

[0166] The tenth obtaining unit is used to obtain user input information, and when the control trigger condition is met, obtain the operation instruction, wherein the operation instruction is used to operate the control virtual object according to the specified instruction line in the instruction information parameter.

[0167] Embodiment 3

[0168] Based on the same inventive concept as the method for analyzing three-dimensional interactive media in the aforementioned embodiment, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in embodiment one is implemented.

[0169] Exemplary Electronic Devices

[0170] Reference below Figure 5 To describe the electronic device of the present application.

[0171] Based on the same inventive concept as the three-dimensional interactive media analysis method in the aforementioned embodiment, the present application also provides an electronic device, including: a processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the electronic device executes the steps of the method described in embodiment one.

[0172] The electronic device 300 includes: a processor 302, a communication interface 303, and a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. The communication interface 303, the processor 302, and the memory 301 may be interconnected via the bus architecture 304; the bus architecture 304 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus architecture 304 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] The processor 302 may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.

[0174] The communication interface 303 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), wired access networks, etc.

[0175] The memory 301 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus architecture 304. The memory may also be integrated with the processor.

[0176] The memory 301 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 302. The processor 302 is used to execute the computer-executable instructions stored in the memory 301, thereby realizing a three-dimensional interactive media parsing method provided in the above embodiment of the present application.

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

[0178] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present application and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application is intended to include these modifications and variations.

Claims

1. A method for analyzing three-dimensional interactive media, characterized in that: The method comprises: Obtaining a three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed includes an instruction area, an index area, and a resource area, wherein the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media; Respectively obtaining instruction data of the instruction area and index data of the index area; Slicing the instruction data to obtain an instruction information sequence; Parsing the data in the instruction information sequence one by one to obtain instruction information parameters; According to the instruction information parameters and the index data, operation instructions are obtained one by one, and the operation instructions are used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

2. The method according to claim 1, characterized in that The index area includes location information of the instruction area, and the method further includes: Obtaining index data of the index area; The instruction data of the instruction area is obtained according to the instruction position information in the index data.

3. The method according to claim 2, characterized in that The obtaining of the index data of the index area includes: Get the byte length of the preset index area record; The three-dimensional interactive media to be parsed is read according to the byte length recorded in the preset index area to obtain index data of the index area.

4. The method according to claim 2, characterized in that The index area includes a first part and a second part. The first part is used to store the starting point and length of the instruction area and the resource area, and the second part is used to store the resource information in the resource area, wherein the resource information includes resource ID number, resource category, resource starting point and length.

5. The method according to claim 1, characterized in that The format of the instruction data is: instruction ID+parameter information, and the instruction ID and parameter information are both of fixed length.

6. The method according to claim 5, characterized in that The step of dividing the instruction data to obtain an instruction information sequence includes: Slicing the instruction data to obtain instruction ID and parameter information, wherein the instruction data is stored in a sequential manner; Based on the instruction ID and parameter information, an instruction data list is constructed in accordance with the storage order of the instruction data, and the instruction data list is used as the instruction information sequence.

7. The method according to claim 5, characterized in that The step of parsing the data in the instruction information sequence one by one to obtain instruction information parameters includes: Parsing the instruction type according to the instruction ID in the instruction information sequence to obtain the instruction type; According to the instruction type, the parameter information is parsed to obtain instruction information parameters.

8. The method according to claim 7, characterized in that The step of parsing the parameter information according to the instruction type to obtain the instruction information parameter includes: Determine the instruction name according to the instruction type; According to the instruction name, obtaining parameter setting information, the parameter setting information including parameter setting position and parameter byte length; The parameter information is segmented and parsed according to the parameter setting position and the parameter byte length to obtain the instruction information parameters.

9. The method according to claim 7, characterized in that The instruction type includes a resource loading instruction, a virtual object attribute change instruction, and a logic control function instruction. When the instruction type is the resource loading instruction, obtaining the operation instruction according to the instruction information parameter and the index data includes: Determine storage location information of the resource in the resource area according to the instruction information parameters and the index data, and obtain resource data; Parsing the resource data and converting it into a data format corresponding to the three-dimensional model; The operation instruction is obtained, where the operation instruction is used to load the converted resource data into the scene or the corresponding virtual object parameters.

10. The method according to claim 9, characterized in that When the instruction type is an instruction to change the attributes of a virtual object, obtaining the operation instruction according to the instruction information parameter and the index data includes: Determine the location information of the virtual object in the resource area according to the instruction information parameters and the index data; According to the instruction information parameters, obtaining object attribute change parameters; The operation instruction is obtained according to the object attribute change parameter and the position information of the virtual object in the resource area, and the operation instruction is used to update the object attribute change parameter into the virtual object parameter.

11. The method according to claim 9, characterized in that When the instruction type is the logic control function instruction, obtaining the operation instruction according to the instruction information parameter and the index data includes: Determining a control function type based on the instruction information parameters; When the control function type is a sequential instruction, the operation instruction is to perform a control operation according to a specified instruction line or instruction segment in the instruction information parameter; When the control function type is a determination instruction, determining the control virtual object and the control trigger condition of the resource area corresponding to the index position according to the instruction information parameters and the index data; The user input information is obtained, and when the control trigger condition is met, the operation instruction is obtained, and the operation instruction is used to operate the control virtual object according to the specified instruction line in the instruction information parameter.

12. A three-dimensional interactive media analysis device, characterized in that: The device comprises: A first obtaining unit is used to obtain a three-dimensional interactive media to be parsed, wherein the three-dimensional interactive media to be parsed includes an instruction area, an index area, and a resource area, the index area is used to store location information of each resource in the resource area, and the resource area is used to store resources in the three-dimensional interactive media; A second obtaining unit, used to obtain the instruction data of the instruction area and the index data of the index area respectively; A first processing unit, used for segmenting the instruction data to obtain an instruction information sequence; A second processing unit is used to parse the data in the instruction information sequence one by one to obtain instruction information parameters; The third processing unit is used to obtain operation instructions one by one according to the instruction information parameters and the index data, and the operation instructions are used to operate the resources in the resource location information recorded in the index data according to the instruction information parameters.

13. An electronic device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the electronic device is enabled to perform the steps of any one of the methods of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Virtual reality system based on three-dimensional modeling technology

    CN106600688A

  • Live data processing method and device, server, terminal and storage medium

    CN108391179A