Data processing method and device
By responding to resource processing instructions in 3D scene editing, determining the target space resources and associated space resources, and creating and updating mask information based on their display information, the problem of automatic model merging is solved, improving the display effect and reducing user operations pressure.
Patent Information
- Application Number
- CN202210122081.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-09
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-02-09
AI Technical Summary
During the 3D scene editing process, it is difficult for the existing technology to realize automatic merge of models, resulting in the selected models not being fully fitted with the usage scenarios, affecting the display effect.
By responding to resource processing instructions, the target space resources in the display area and its adjacent associated space resources are determined, the mask information is created based on the display information of both, and the mask information is updated to automatically Merge the model.
Automatic merging of models is realized, the display effect of 3D scenes is improved, and the operation pressure of users is reduced.
Smart Images

Figure CN114463526B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to two data processing methods. The present application also relates to two data processing devices, a computing device, and a computer-readable storage medium. Background Art
[0002] With the development of Internet technology, the application of three-dimensional scenes has gradually replaced the application of traditional 2D scenes. Whether it is film and television works or game screens, the use of 3D scenes has become more and more frequent. As a result, the processing solutions for graphics and patterns in 3D scenes are increasing. In the existing technology, when players edit the scene structure in the 3D screen, they need to use a pre-set model to add or delete resources in the scene. However, the preset models have various forms. When players choose an appropriate model to modify the 3D scene, the selected model often fails to fully fit the usage scenario, which ultimately causes the display effect of the 3D scene to fail to meet expectations. Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0003] In view of this, the embodiments of the present application provide two data processing methods to solve the technical defects existing in the prior art. The embodiments of the present application also provide two data processing devices, a computing device, and a computer-readable storage medium.
[0004] According to a first aspect of an embodiment of the present application, a data processing method is provided, including:
[0005] In response to the resource processing instruction, determining a target spatial resource within the display area and associated spatial resources adjacent to the target spatial resource;
[0006] Based on the display information of the target space resource and the associated space resource, create mask information corresponding to the target space resource and the associated space resource respectively;
[0007] When the resource state of the target space resource changes, changing the mask information;
[0008] The display area is updated and displayed according to the change result of the mask information.
[0009] Optionally, determining the target space resource in the display area in response to the resource processing instruction includes:
[0010] Receive the resource processing instruction submitted through the editable area in the target business; determine, according to the target space resource location information carried in the resource processing instruction, that the editable area contains the space resource area to be processed as the display area; determine the target space resource in the display area according to the target space resource location information;
[0011] or,
[0012] The target space resource location information carried in the resource processing instruction is obtained; and the target space resource in the display area is determined based on the target space resource location information.
[0013] Optionally, the determining, in response to the resource processing instruction, an associated space resource adjacent to the target space resource comprises:
[0014] Traversing the parent nodes of the target space resource to determine the target node identifier corresponding to the target space resource;
[0015] Determine, at a sub-node layer corresponding to the target spatial resource, an associated node identifier associated with the target node identifier;
[0016] A space resource corresponding to the associated node identifier is selected as an associated space resource adjacent to the target space resource.
[0017] Optionally, also include:
[0018] Identifying the display status of each surface of the target space resource and the associated space resource;
[0019] Building a target display state set based on the display states of each surface of the target space resource, and building an associated display state set based on the display states of each surface of the associated space resource;
[0020] The target display state set is used as the display information of the target space resource, and the associated display state set is used as the display information of the associated space resource.
[0021] Optionally, the creating mask information corresponding to the associated space resource based on the display information of the associated space resource includes:
[0022] Based on the associated display state set, select surfaces whose display states are adjacent states as adjacent associated surfaces, and create masks corresponding to the adjacent associated surfaces;
[0023] An associated mask set is constructed based on the masks corresponding to the adjacent associated surfaces as mask information of the associated spatial resource.
[0024] Optionally, the creating mask information corresponding to the target space resource based on the display information of the target space resource includes:
[0025] Based on the target display state set, selecting a surface in a non-adjacent display state as a non-adjacent target surface;
[0026] Creating a mask corresponding to the non-adjacent target surface;
[0027] A target mask set is constructed based on the masks corresponding to the non-adjacent target surfaces as mask information of the target space resource.
[0028] Optionally, the creating, based on the display information of the target space resource and the associated space resource, mask information corresponding to the target space resource and the associated space resource respectively includes:
[0029] Identifying the display status of each surface of the associated space resource, and determining the display information of the associated space resource based on the display status of each surface of the associated space resource;
[0030] According to the display information of the associated space resource, mask information is created for adjacent associated surfaces in the associated space resource whose display state is an adjacent state, as mask information corresponding to the associated space resource;
[0031] determining a target display state of each target surface in the target space resource according to the mask information corresponding to the associated space resource;
[0032] Mask information of each target surface in the target space resource is created according to the target display state as mask information corresponding to the target space resource.
[0033] Optionally, also include:
[0034] When the target space resource is in an explicit state, the mask corresponding to the adjacent associated surface is an implicit mask, and the mask corresponding to the non-adjacent target surface is an explicit mask;
[0035] In the case where the target space resource is in an implicit state, the mask corresponding to the adjacent associated surface is an explicit mask, and the mask corresponding to the non-adjacent target surface is an implicit mask.
[0036] Optionally, when the resource state of the target space resource changes, changing the mask information includes:
[0037] In the case where the target space resource changes from an explicit state to an implicit state, the mask in the mask information corresponding to the target space resource changes from an explicit mask to an implicit mask, and the mask in the mask information corresponding to the associated space resource changes from an implicit mask to an explicit mask;
[0038] When the target space resource changes from an implicit state to an explicit state, the mask in the mask information corresponding to the target space resource changes from an implicit mask to an explicit mask, and the mask in the mask information corresponding to the associated space resource changes from an explicit mask to an implicit mask.
[0039] According to a second aspect of an embodiment of the present application, another data processing method is provided, including:
[0040] determining a target spatial resource within the presentation area in response to the resource processing instruction;
[0041] Creating mask information corresponding to the target space resource based on the display information of the target space resource;
[0042] When the resource state of the target space resource changes, the mask information is changed based on the display information;
[0043] The display area is updated and displayed according to the change result of the mask information.
[0044] According to a third aspect of an embodiment of the present application, a data device method is provided, including:
[0045] a determination module, configured to determine a target space resource within a display area and associated space resources adjacent to the target space resource in response to a resource processing instruction;
[0046] A creation module, configured to create mask information corresponding to the target space resource and the associated space resource respectively based on the display information of the target space resource and the associated space resource;
[0047] a change module configured to change the mask information when the resource state of the target space resource changes;
[0048] The display module is configured to update and display the display area according to the change result of the mask information.
[0049] According to a fourth aspect of an embodiment of the present application, another data processing device is provided, including:
[0050] A response module, configured to determine a target space resource in the display area in response to the resource processing instruction;
[0051] a mask creation module, configured to create mask information corresponding to the target space resource based on the display information of the target space resource;
[0052] a mask changing module configured to change the mask information based on the display information when the resource state of the target space resource changes;
[0053] The updating module is configured to update and display the display area according to the change result of the mask information.
[0054] According to a fifth aspect of an embodiment of the present application, there is provided a computing device, including:
[0055] Memory and processor;
[0056] The memory is used to store computer-executable instructions, and the processor implements the steps of the data processing method when executing the computer-executable instructions.
[0057] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the data processing method are implemented.
[0058] According to a seventh aspect of an embodiment of the present application, a chip is provided, which stores a computer program, and the computer program implements the steps of the data processing method when executed by the chip.
[0059] The data processing method provided by the present application determines the target space resources and the associated space resources adjacent to the target space resources in the display area in response to the resource processing instruction, and then creates mask information corresponding to the two according to the display information of the two. When the resource status of the target space resources changes, the mask information is adaptively updated, and the image scene in the display area is updated and displayed based on the change of the mask information, so that the automatic merging of models is realized in the process of spatial image processing, the display effect of image processing is guaranteed, and the operation pressure of users is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present application;
[0061] Figure 2 It is a result schematic diagram of a data processing method provided by an embodiment of the present application;
[0062] Figure 3 is a flow chart of another data processing method provided by an embodiment of the present application;
[0063] Figure 4is a processing flow chart of a data processing method applied to movie scene production provided by an embodiment of the present application;
[0064] Figure 5 is a structural schematic diagram of a data processing device provided by an embodiment of the present application;
[0065] Figure 6 is a structural schematic diagram of another data processing device provided by an embodiment of the present application;
[0066] Figure 7 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0067] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0068] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0069] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0070] First, the terms involved in one or more embodiments of the present invention are explained.
[0071] Mask: A mask is a string of binary codes that performs bitwise AND operations on the target field, shielding the current input bit, and obtaining a new operand by bitwise or logical operations on the source code and the mask. Bitwise operations such as OR and AND operations are used.
[0072] For example, the ASCII code value of A is 65 = (01000001)₂, and the ASCII code value of a is 97 = (01100001)₂. To convert the capital letter A to the lowercase letter a, only need to perform an OR operation on the ASCII code of A with (00100000)₂ to obtain the lowercase letter a.
[0073] In the present application, two data processing methods are provided. The present application is also related to two data processing devices, a computing device, and a computer-readable storage medium, which will be described in detail one by one in the following embodiments.
[0074] In practical applications, in the process of processing 3D graphics, when the user edits the scene and displays it, the user often selects a model to add or delete display blocks in the 3D scene. At this time, the traditional method is to provide different models for the user to edit the scene. The user selects the provided model according to his own design idea. For example, in a flat terrain, if the user needs to dig the ground and the selected model is a cube-shaped model, at this time, the upper surface of the six upper, lower, left, right, front, and rear faces of the cube is empty, and the lower, left, right, front, and rear faces have planes. Through this model, the user can dig on the horizontal ground to obtain a desired cube-shaped pit. However, in this case of excavation, if the user then wants to dig on the left side next to the original pit, and the model selected at this time is the same as the model selected for the first time, still only the upper surface is empty, then the presented effect after excavation is two adjacent pits. However, since the connection between the two pits is not considered when selecting the model, there is still a surface between the two pits, and its top view effect is similar to the horizontal Chinese character "日" (ri), which does not meet the preset excavation effect; or the user fills the vacant position in the scene. Similarly, the model selected by the user does not conform to the actual application scenario, and finally the filling result does not meet the preset expectation.
[0075] Based on this situation, the present application provides a data processing method. By adaptively adjusting the situation of the spatial resources after excavation and their surrounding spatial resources, the automatic merging of models is realized in the process of spatial image processing, which ensures the display effect of image processing and reduces the operation pressure of the user.
[0076] Figure 1 The flowchart of a data processing method according to an embodiment of the present application is shown, which specifically includes the following steps:
[0077] Step S102: Determine the target spatial resources in the display area and the associated spatial resources adjacent to the target spatial resources in response to the resource processing instruction.
[0078] Among them, the resource processing instruction is an instruction issued by the user to edit a certain spatial resource in the scene during the processing of the 3D scene image. It is used to indicate the spatial resources that need to be processed and the specific processing method of the spatial resources. The target spatial resources are the spatial resources that the user needs to process, and the associated spatial resources are the spatial resources that are adjacent to the target spatial resources in spatial position.
[0079] Based on this, the received resource processing instructions are parsed, and the target spatial resources that need to be processed in the display area are determined according to the parsing results. Then, based on the target spatial resources, spatial resources that are adjacent to the target spatial resources in spatial position, that is, associated spatial resources, are searched.
[0080] Furthermore, in the process of determining the space resource area, it is necessary to determine the location of the space resource area. In this embodiment, the process of determining the target space resource can be implemented in the following two ways:
[0081] (1) receiving the resource processing instruction submitted through the editable area in the target business; determining, according to the target space resource location information carried in the resource processing instruction, the space resource area to be processed in the editable area as the display area; and determining the target space resource in the display area according to the target space resource location information;
[0082] (2) obtaining the target space resource location information carried in the resource processing instruction; and determining the target space resource in the display area based on the target space resource location information.
[0083] Among them, the target business is a graphic editing or processing business in a three-dimensional scene, including a game scene, a movie scene, etc., which is not limited in this embodiment. The editable area is the area in the scene included in the target business whose parameters can be adjusted; for example, in a game scene, if the player's personal space has personalized settings, it is generally an editable area, and for example, an indestructible area in a game scene is generally a non-editable area. The target space resource location information is information that records the coordinate location of the target space resource, which is carried by the resource processing instruction. The display area is an area demarcated by the area where the space resource to be processed is located, which is used to display the effect of the modification in the display area based on the resource processing instruction.
[0084] Based on this, in some usage scenarios, the map of the scene is too large. If all the map data is included in the calculation process during the processing, the device will be under great hardware pressure, and the processing efficiency will be greatly reduced. Therefore, after receiving the resource processing instruction submitted by the editable area of the target business, the resource processing instruction is parsed to obtain the target space resource location information. According to the indication of the target space resource location information, the target space resource coordinate information is determined. After that, the display area can be selected according to the coordinates of the target space resource as the center and the preset distance as the radius, or the pre-divided area containing the target space resource is selected as the display area. The display area is determined by the method of selecting the display area. It only needs to ensure that the display area contains the target space resource. The specific selection method of the display area is not limited in this embodiment. After the display area is determined, the specific location of the target space resource is determined according to the target space resource location information. Alternatively, when the range of the editable area is not large, the entire editable area can also be used as the display area without the process of division. In this case, the determination of the target space resource is similar to the above process, except that the editable area is not divided, which will not be repeated here.
[0085] For example, in the game scene, the player cannot destroy the terrain in the main city area and can only edit the scene in the player's own territory. In this case, the player's own territory is the editable area. The player's own territory is a space area of 100 (resource block length) * 100 (resource block length). Submit resource processing instructions in this area. After that, the system parses the submitted resource processing instructions to obtain the target space resource coordinate information and determines that the horizontal and vertical coordinates of the target space resource are both 50. At this time, with (50,50) as the center and 10 resource block lengths as the side length, a 10*10 area is drawn. This area is the display area, and the resource block with coordinates (50,50) determined by the target space resource location information is used as the target space resource.
[0086] In summary, by determining the target space resources, the determination of the target space resources can be achieved. When the editable area is too large, the entire editable area can be divided, so that the resource information processed by the system becomes less, the system pressure is reduced, and the processing efficiency is enhanced.
[0087] Furthermore, after determining the target space resource based on the resource processing instruction, it is also necessary to determine the associated space resource adjacent to the target space resource, so as to ensure that when the user processes the target space resource, the data in the display area can be adaptively adjusted as a whole to avoid data errors. In this embodiment, the specific implementation method is as follows:
[0088] Traverse the parent node of the target spatial resource to determine the target node identifier corresponding to the target spatial resource; determine the associated node identifier associated with the target node identifier at the child node layer corresponding to the target spatial resource; select the spatial resource corresponding to the associated node identifier as the associated spatial resource adjacent to the target spatial resource.
[0089] Among them, the parent node of the target space resource can be selected from the hierarchical model and network model of the "point-line-surface-body" dimension, or from the hierarchical model and network model of other dimensions. This embodiment does not limit it. The target node identifier is the corresponding node identifier in the hierarchical model and network model corresponding to the target space resource, and the associated node identifier is the node identifier corresponding to the associated space resource adjacent to the target space resource. The associated node identifier and the target node identifier are at the same level of the hierarchical model and network model corresponding to the target space resource.
[0090] Based on this, the target node identifier corresponding to the target space resource is selected from the hierarchical model and mesh model of the target space resource in a certain dimension, and the associated node identifier associated with the target node identifier is screened at the same level, and then the space resource corresponding to the associated node identifier is determined. This space resource is the associated space resource adjacent to the target space resource.
[0091] Continuing with the above example, determine that the target spatial resource is at the "body" level in the "point-line-plane-body" dimensional hierarchical model. Traverse the parent node of the target spatial resource and determine that the target node identifier of the target spatial resource is a1. Then, search for the associated node identifier b1 associated with the target node identifier a1 at the level where the target node identifier a1 is located to determine the spatial resource corresponding to the associated node identifier b1. This spatial resource is the associated spatial resource adjacent to the target spatial resource.
[0092] In summary, by searching through the parent node, the associated spatial resources adjacent to the target spatial resource can be quickly determined, thereby improving search efficiency and speeding up user request processing.
[0093] Step S104: based on the display information of the target space resource and the associated space resource, create mask information corresponding to the target space resource and the associated space resource respectively.
[0094] Specifically, after determining the target space resource and the associated space resource, it is also necessary to create a mask for the target space resource and the associated space resource, so as to synchronously update the display status of each side of the target space resource and the associated space resource after the display status of the target space resource changes.
[0095] Among them, the display information of the target space resources and the associated space resources marks the display status of each surface of the target space resources and the associated space resources, and the mask information is a set of binary codes, representing the existence status of each surface of the target space resources and the associated space resources.
[0096] Further, obtaining the display information of the target space resource and the associated space resource is to obtain a set of display states of each surface of the target space resource and the associated space resource. In this embodiment, the specific implementation is as follows:
[0097] Identify the display status of each surface of the target space resource and the associated space resource; construct a target display status set based on the display status of each surface of the target space resource, and construct an associated display status set based on the display status of each surface of the associated space resource; use the target display status set as the display information of the target space resource, and use the associated display status set as the display information of the associated space resource.
[0098] Among them, the display status is the indication information of the relationship between the target space resources and the various surfaces of the associated space resources, including adjacent status and non-adjacent status. The display information of the target space resources represents the set of display status of each surface of the target space resources, and the display information of the associated space resources represents the set of display status of each surface of the associated space resources.
[0099] Based on this, the display status of each surface of the target space resources and the associated space resources are identified, and the display status of each surface of the identified target space resources and the associated space resources are respectively established into sets. The display status set of the target space resources is the display information of the target space resources, and the display status set of the associated space resources is the display information of the associated space resources.
[0100] Continuing with the above example, the display status of each surface of the target space resource and the associated space resource in the game scene is identified, and the display status of each surface of the identified target space resource is used to create a display status set of the target space resource as the display information A of the target space resource. Correspondingly, the display information B of the associated space resource is obtained.
[0101] In summary, by identifying the display status of each surface of the target space resources and the associated space resources, and creating display information based on this, the relevant information of the display status of each surface of the target space resources and the associated space resources can be reflected, which makes preliminary preparations for the subsequent creation of masks based on the display information, so that the masks generated later can mark and update the display status of each surface of the target space resources and the associated space resources.
[0102] In addition, when creating the mask information corresponding to the associated space resource and the target space resource, not only can they be created in parallel according to the display status of their respective surfaces, but the mask information corresponding to the associated space resource can also be created first, and then the mask information corresponding to the target space resource is created based on the mask information of the associated space resource, so as to realize the sequential creation process to ensure the accuracy of the mask information creation. In this embodiment, the specific implementation method is as follows:
[0103] Identify the display status of each surface of the associated space resource, and determine the display information of the associated space resource based on the display status of each surface of the associated space resource; create mask information for adjacent associated surfaces in the associated space resource whose display status is an adjacent state according to the display information of the associated space resource, as the mask information corresponding to the associated space resource; determine the target display status of each target surface in the target space resource according to the mask information corresponding to the associated space resource; create mask information for each target surface in the target space resource according to the target display status, as the mask information corresponding to the target space resource.
[0104] The target surface is the surface of the target space resource that does not overlap with the adjacent associated surfaces. Figure 2 In (a) shown, if the regular hexahedron on the left is the target space resource, the regular hexahedron on the right is the associated space resource, and the mask in the mask information of the regular hexahedron on the right is associated with the surface on the left side of the regular hexahedron on the right, then the target surface is the surface in the regular hexahedron on the left that does not overlap with the surface on the left side of the regular hexahedron on the right, that is, the left, top, bottom, front, and back five faces of the regular hexahedron on the left; the target display state is the display state of the target surface.
[0105] Based on this, the display status of each surface in the associated space resource is identified, and the display status of each surface is aggregated to obtain the display information corresponding to the associated space resource. Then, mask information is created for the adjacent associated surfaces whose display status of the associated space resource is an adjacent state, and the mask information corresponding to the associated space resource is obtained; according to the mask information creation of the associated space resource, it can be determined that the surfaces assigned with the mask are all adjacent to the target space resource; and the target space resource and the associated space resource have an adjacent relationship, so based on the adjacent relationship, it can be determined that the two will have a coplanar situation, and the coplanar surface is the surface assigned with the mask. On this basis, the target surface that does not overlap with the adjacent associated surface in the target space resource can be determined according to the mask information corresponding to the associated space resource, and used for the subsequent creation of the mask information of the target space resource. At this time, the target display status of the target surface can be determined again, and the mask corresponding to each target surface in the target space resource can be created according to the target display status, and a set is created based on the mask corresponding to each target surface as the mask information corresponding to the target space resource.
[0106] Using the above example, in the process of creating a game scene, the display states of the surfaces of the associated spatial resources in the game scene are identified as g1, g2, g3, g4, g5, and g6. Based on g1, g2, g3, g4, g5, and g6, a display state set {g1, g2, g3, g4, g5, and g6} of the target spatial resources is created. This set is used as the display information B of the associated spatial resources. According to the indication of g6 in the display information B, the display state of surface m6 is an adjacent state, and m6 is determined to be an adjacent associated surface. Based on g6, The mask of m6 is determined to be j6, thereby creating mask information {j6}. Then, based on the mask information {j6}, it is determined that the target surfaces in the target space resources that do not overlap with m6 are n1, n2, n3, n4, n5. According to the display status of n1, n2, n3, n4, n5, masks l1, l2, l3, l4, l5 are created for n1, n2, n3, n4, n5 respectively. Based on l1, l2, l3, l4, l5, mask information {l1, l2, l3, l4, l5} corresponding to the target space resources is created.
[0107] In summary, the method provided in this embodiment realizes the creation of mask information corresponding to the associated space resources and the target space resources.
[0108] Step S106: When the resource status of the target space resource changes, the mask information is changed.
[0109] Step S108: updating and displaying the display area according to the change result of the mask information.
[0110] Specifically, after creating the display information of the target space resources and the associated space resources, the corresponding mask information is created based on the display information. Then, when the target space resources are changed based on the resource processing instructions, the display status of the target space resources and the associated space resources will inevitably change. When the display status of the target space resources and the associated space resources changes, the mask information of the target space resources and the associated space resources will no longer match the corresponding display information. Therefore, the mask information needs to be changed at this time to ensure that the display area is updated and rendered according to the changed mask information to comply with the changes indicated by the resource processing instructions.
[0111] The above steps are used to update the mask information according to the resource status change of the target space resources. The updated mask information contains the final display effect after the target space resources are changed. The display area is updated and displayed according to the updated mask information, thereby realizing the user's editing of the corresponding 3D scene.
[0112] Among them, the mask information includes two types, namely, mask information corresponding to the target space resources and mask information corresponding to the associated space resources. The mask information corresponding to the target space resources is obtained from the display information corresponding to the target space resources, and the mask information corresponding to the associated space resources is obtained from the display information corresponding to the associated space resources.
[0113] Furthermore, there are two resource states of the target space resource, namely, explicit state and implicit state. Then, there are two ways of changing the resource state of the target space resource, one is changing from explicit state to implicit state, and the other is changing from implicit state to explicit state. In this embodiment, the specific implementation is as follows:
[0114] First, it is necessary to create corresponding mask information based on the display information of the associated space resources and the target space resources. The display information of the associated space resources and the target space resources is further an associated display state set corresponding to the associated space resources and a target display state set corresponding to the target space resources. In other words, the mask information corresponding to the associated space resources and the target space resources is created based on the associated display state set and the target display state set.
[0115] Among them, the construction of mask information of associated space resources includes: based on the associated display state set, selecting surfaces with adjacent display states as adjacent associated surfaces, and creating masks corresponding to the adjacent associated surfaces; based on the masks corresponding to the adjacent associated surfaces, constructing an associated mask set as the mask information of the associated space resources.
[0116] Among them, the mask information of the target space resource is constructed, including: based on the target display state set, selecting surfaces with non-adjacent display states as non-adjacent target surfaces; creating masks corresponding to the non-adjacent target surfaces; and constructing a target mask set based on the masks corresponding to the non-adjacent target surfaces as the mask information of the target space resource.
[0117] Specifically, the surface of the associated space resource adjacent to the target space resource, in visual effect, the two planes share the same plane. In this case, the plane state of sharing the same plane is called the adjacent state, such as Figure 2 Figure (a) in the result schematic diagram of a data processing method shown in FIG. shows two regular hexahedrons, where the regular hexahedron on the left is the target space resource, and the regular hexahedron on the right is the associated space resource. Both the target space resource and the associated space resource have six faces, namely, top, bottom, left, right, front, and back. Figure 2As shown in (a), the right side of the target space resource overlaps with the left side of the associated space resource and can be regarded as the same face. In this case, the face display state is adjacent. The other two faces do not overlap. In this case, the other faces are non-adjacent. When the target space resource changes, there are only two types: one is the removal of the target space resource, and the other is the addition of the target space resource. In this embodiment, the specific implementation is as follows:
[0118] (1) When the target space resource needs to be removed, it means that the current target space resource is in an explicit state. After the resource state changes, the resource state of the target space resource changes from an explicit state to an implicit state. At this time, it is necessary to create mask information according to the target space resource in the current explicit state, and after the target space resource changes from an explicit state to an implicit state, change the mask information. The specific implementation is as follows:
[0119] When the target space resource is in an explicit state, the mask corresponding to the adjacent associated surface is an implicit mask, and the mask corresponding to the non-adjacent target surface is an explicit mask; when the target space resource changes from an explicit state to an implicit state, the mask in the mask information corresponding to the target space resource changes from an explicit mask to an implicit mask, and the mask in the mask information corresponding to the associated space resource changes from an implicit mask to an explicit mask.
[0120] Among them, implicit mask and explicit mask are two states of mask, representing the existence or non-existence of each surface of the target space resource and the associated space resource. The explicit mask represents the existence of the corresponding surface, and the implicit mask represents the non-existence of the corresponding surface. Figure 2 In the result diagram of a data processing method shown in Figure (a), the regular hexahedron on the left is the target space resource, and the regular hexahedron on the right is the associated space resource. The target space resource and the associated space resource both have six faces, namely, top, bottom, left, right, front, and back. Figure 2 As shown in (a), the right side of the target space resource does not exist. At this time, the mask corresponding to the right side of the target space resource is an implicit mask. The left side, top side, bottom side, front side, and back side of the target space resource all exist, so the masks corresponding to these five sides are explicit masks.
[0121] Using the above example, in the game scene, if Figure 2In the result diagram of a data processing method shown in Figure (a), two connected space resources, according to the resource processing instruction, the regular hexahedron on the left is the target space resource, and the regular hexahedron on the right is the associated space resource. At this time, it can be judged that the target space resource is in an explicit state. At this time, the six upper, lower, front, back, left, and right faces of the target space resource are set to 1.1-a, 1.1-b, 1.1-c, 1.1-d, 1.1-e, and 1.1-f, respectively, and the six upper, lower, front, back, left, and right faces of the associated space resource are set to 1.2-a, 1.2-b, 1.2-c, 1.2-d, 1.1-f, and 1.2-f, respectively. From the above, it can be seen that the right side of the target space resource and the left side of the associated space resource are the same side. According to the display status of the above faces, the display information of the target space resource and the associated space resource is created to be 1. 1A{a1.1-a, a1.1-b, a1.1-c, a1.1-d, a1.1-e}, 1.2A{a1.1-f}, create corresponding mask information according to the adjacent states and non-adjacent states in their respective display information. Since the display states a1.1-a, a1.1-b, a1.1-c, a1.1-d, a1.1-e are non-adjacent states, and a1.1-f is an adjacent state, the mask information corresponding to the non-adjacent state of the target space resource is an explicit mask, recorded as 1, and the mask information corresponding to the adjacent state of the associated space resource is an implicit mask, recorded as 0. Therefore, the mask information corresponding to the target space resource is 1.1B{1, 1, 1, 1, 1}, and the mask information corresponding to the associated space resource is 1.2B{0}. After the target space resource changes from an explicit state to an implicit state, as shown in Figure 2 As shown in the figure, the changed target space resources and associated space resources are as follows Figure 2 As shown in (b), the target space resource on the left changes from an explicit state to an implicit state, as if a piece of it has been dug out. At this time, according to the scheme, the explicit mask in the mask information corresponding to the target space resource is converted to an implicit mask 1.1C{0, 0, 0, 0, 0}, and the implicit mask in the mask information corresponding to the associated space resource is converted to an explicit mask 1.2C{1}. Since the surface corresponding to the explicit mask exists and the surface corresponding to the implicit mask does not exist, the mask 1.1C corresponding to the target space resource obtained at this time indicates that the top, bottom, left, front and back surfaces of the target space resource have disappeared, as shown in FIG. Figure 2 (b) shows the left target space resource, and the right side of the target space resource appears; and the mask 1.2C corresponding to the associated space mask indicates the left side of the associated space resource appears, such as Figure 2 (b) is the display effect on the left side of the associated space resource being displayed.
[0122] In summary, according to this scheme, Figure 2 (a) Get the parameters before the change and get the parameters after the change Figure 2(b) The parameters of the model can be automatically merged and displayed without the user having to add or set model parameters.
[0123] (2) When the target space resource needs to be added, it means that the current target space resource is in an implicit state. After the resource state changes, the resource state of the target space resource changes from an implicit state to an explicit state. At this time, it is necessary to create mask information according to the target space resource in the current implicit state, and after the target space resource changes from an implicit state to an explicit state, the mask information is changed. The specific implementation is as follows:
[0124] When the target space resource is in an implicit state, the mask corresponding to the adjacent associated surface is an explicit mask, and the mask corresponding to the non-adjacent target surface is an implicit mask. When the target space resource changes from an implicit state to an explicit state, the mask in the mask information corresponding to the target space resource changes from an implicit mask to an explicit mask, and the mask in the mask information corresponding to the associated space resource changes from an explicit mask to an implicit mask.
[0125] The above content is similar to the case where the target space resource is removed in (1), and the target space resource changes from an explicit state to an implicit state, except that the state changes from an implicit state to an explicit state. In this case, the mask information is updated. If the updated mask information is used for rendering and display in the display area, the final display result is as follows: Figure 2 As shown, from Figure 2 (b) The state becomes Figure 2 (a) state, the inventive concept of the two designs is the same and will not be elaborated on here.
[0126] The data processing method provided by the present application determines the target space resources and the associated space resources adjacent to the target space resources in the display area in response to the resource processing instruction, and then creates mask information corresponding to the two according to the display information of the two. When the resource status of the target space resources changes, the mask information is adaptively updated, and the image scene in the display area is updated and displayed based on the change of the mask information, so that the automatic merging of models is realized in the process of spatial image processing, the display effect of image processing is guaranteed, and the operation pressure of users is reduced.
[0127] Figure 3 A flowchart of another data processing method provided according to an embodiment of the present application is shown, which specifically includes the following steps:
[0128] Step S302: Determine the target space resource in the display area in response to the resource processing instruction.
[0129] Step S304: creating mask information corresponding to the target space resource based on the display information of the target space resource.
[0130] Step S306: When the resource status of the target space resource changes, the mask information is changed based on the display information.
[0131] Step S308: updating and displaying the display area according to the change result of the mask information.
[0132] In the above steps S302-S308, compared with steps S102-S108, the surface of the adjacent state in the associated space resource is regarded as the surface of the target space resource, and the corresponding mask information of the associated space resource is collected in the mask information of the target space resource, such as the example in step S108, at this time, the display information corresponding to the target space resource is 1.1A{a1.1-a, a1.1-b, a1.1-c, a1.1-d, a1.1-e, a1.1-f}, and its mask information is 1.1B{1, 1, 1, 1, 1, 0}. This data processing method has the same inventive concept as another data processing method, and will not be described in detail here.
[0133] The data processing method provided in the present application enables automatic merging of models during spatial image processing, ensures the display effect of image processing, and reduces the operating pressure of users.
[0134] The following combination Figure 4 , taking the application of the data processing method provided in this application to the production of movie scenes as an example, the data processing method is further explained. Figure 4 A processing flow chart of a data processing method for movie scene production provided by an embodiment of the present application is shown, which specifically includes the following steps:
[0135] Step S402: receiving the resource processing instruction submitted through the editable area in the target business.
[0136] Specifically, a resource processing instruction submitted by a user for an editable area in a movie scene is received.
[0137] Step S404: According to the target space resource location information carried in the resource processing instruction, determine that the editable area includes a space resource area to be processed as a display area.
[0138] Step S406: determining the target space resource in the display area according to the target space resource location information.
[0139] Step S408: traverse the parent nodes of the target space resource to determine the target node identifier corresponding to the target space resource.
[0140] Step S410: determining an associated node identifier associated with the target node identifier at a sub-node layer corresponding to the target spatial resource.
[0141] Step S412: Selecting a space resource corresponding to the associated node identifier as an associated space resource adjacent to the target space resource.
[0142] Step S414: Identify the display status of each surface of the target space resource and the associated space resource.
[0143] Step S416: constructing a target display state set based on the display states of each surface of the target space resource, and constructing an associated display state set based on the display states of each surface of the associated space resource.
[0144] Step S418: using the target display state set as display information of the target space resource, and using the associated display state set as display information of the associated space resource.
[0145] Step S420: Based on the associated display state set, select surfaces whose display states are adjacent states as adjacent associated surfaces, and create masks corresponding to the adjacent associated surfaces.
[0146] Step S422: constructing an associated mask set based on the masks corresponding to the adjacent associated surfaces as mask information of the associated space resource.
[0147] Step S424: Based on the target display state set, select a surface whose display state is a non-adjacent state as a non-adjacent target surface.
[0148] Step S426: Create a mask corresponding to the non-adjacent target surface.
[0149] Step S428: constructing a target mask set based on the masks corresponding to the non-adjacent target surfaces as mask information of the target space resources.
[0150] Step S430: When the resource status of the target space resource changes, the mask information is changed.
[0151] Step S432: updating and displaying the display area according to the change result of the mask information.
[0152] Specifically, the display area in the movie scene is updated and displayed.
[0153] The data processing method provided in the present application enables automatic merging of models during spatial image processing, ensures the display effect of image processing, and reduces the operating pressure of users.
[0154] Corresponding to the above method embodiment, the present application also provides a data processing device embodiment, Figure 5 FIG. 1 is a schematic diagram showing the structure of a data processing device provided by an embodiment of the present application. Figure 5 As shown, the device comprises:
[0155] A determination module 502 is configured to determine a target space resource in a display area and associated space resources adjacent to the target space resource in response to a resource processing instruction;
[0156] A creation module 504 is configured to create mask information corresponding to the target space resource and the associated space resource respectively based on the display information of the target space resource and the associated space resource;
[0157] A changing module 506, configured to change the mask information when the resource state of the target space resource changes;
[0158] The display module 508 is configured to update and display the display area according to the change result of the mask information.
[0159] In an optional embodiment, the determining module 502 is further configured to:
[0160] Receive the resource processing instruction submitted through the editable area in the target business; determine, based on the target space resource location information carried in the resource processing instruction, that the editable area contains the space resource area to be processed as the display area; determine the target space resource in the display area based on the target space resource location information; or, obtain the target space resource location information carried in the resource processing instruction; determine the target space resource in the display area based on the target space resource location information.
[0161] In an optional embodiment, the determining module 502 is further configured to:
[0162] Traverse the parent node of the target spatial resource to determine the target node identifier corresponding to the target spatial resource; determine the associated node identifier associated with the target node identifier at the child node layer corresponding to the target spatial resource; select the spatial resource corresponding to the associated node identifier as the associated spatial resource adjacent to the target spatial resource.
[0163] In an optional embodiment, the data processing device further includes:
[0164] An identification module is configured to identify the display status of each surface of the target space resource and the associated space resource; construct a target display status set based on the display status of each surface of the target space resource, and construct an associated display status set based on the display status of each surface of the associated space resource; use the target display status set as the display information of the target space resource, and use the associated display status set as the display information of the associated space resource.
[0165] In an optional embodiment, the creation module 504 is further configured to:
[0166] Based on the associated display state set, surfaces whose display states are adjacent states are selected as adjacent associated surfaces, and masks corresponding to the adjacent associated surfaces are created; and based on the masks corresponding to the adjacent associated surfaces, an associated mask set is constructed as mask information of the associated space resource.
[0167] In an optional embodiment, the creation module 504 is further configured to:
[0168] Based on the target display state set, surfaces whose display states are non-adjacent states are selected as non-adjacent target surfaces; masks corresponding to the non-adjacent target surfaces are created; and a target mask set is constructed based on the masks corresponding to the non-adjacent target surfaces as mask information of the target space resources.
[0169] In an optional embodiment, the creation module 504 is further configured to:
[0170] Identify the display status of each surface of the associated space resource, and determine the display information of the associated space resource based on the display status of each surface of the associated space resource; create mask information for adjacent associated surfaces in the associated space resource whose display status is an adjacent state according to the display information of the associated space resource, as the mask information corresponding to the associated space resource; determine the target display status of each target surface in the target space resource according to the mask information corresponding to the associated space resource; create mask information for each target surface in the target space resource according to the target display status, as the mask information corresponding to the target space resource.
[0171] In an optional embodiment, the data processing device further includes:
[0172] The configuration module is configured such that when the target space resource is in an explicit state, the mask corresponding to the adjacent associated surface is an implicit mask, and the mask corresponding to the non-adjacent target surface is an explicit mask; when the target space resource is in an implicit state, the mask corresponding to the adjacent associated surface is an explicit mask, and the mask corresponding to the non-adjacent target surface is an implicit mask.
[0173] In an optional embodiment, the changing module 506 is further configured to:
[0174] When the target space resource changes from an explicit state to an implicit state, the mask in the mask information corresponding to the target space resource changes from an explicit mask to an implicit mask, and the mask in the mask information corresponding to the associated space resource changes from an implicit mask to an explicit mask; when the target space resource changes from an implicit state to an explicit state, the mask in the mask information corresponding to the target space resource changes from an implicit mask to an explicit mask, and the mask in the mask information corresponding to the associated space resource changes from an explicit mask to an implicit mask.
[0175] Corresponding to the above method embodiment, the present application also provides another data processing device embodiment, Figure 6 FIG. 2 shows a schematic diagram of the structure of another data processing device provided by an embodiment of the present application. Figure 6 As shown, the device comprises:
[0176] A response module 602 is configured to determine a target space resource in the display area in response to the resource processing instruction;
[0177] The mask creation module 604 is configured to create mask information corresponding to the target space resource based on the display information of the target space resource;
[0178] The mask changing module 606 is configured to change the mask information based on the display information when the resource status of the target space resource changes;
[0179] The updating module 608 is configured to update and display the display area according to the change result of the mask information.
[0180] The above are schematic schemes of two data processing devices of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above-mentioned data processing method belong to the same concept. For the details not described in detail in the technical scheme of the data processing device, please refer to the description of the technical scheme of the above-mentioned data processing method. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.
[0181] Figure 7 The structure block diagram of a computing device 700 provided according to an embodiment of the present application is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.
[0182] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0183] In one embodiment of the present application, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0184] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.
[0185] The processor 720 is used to execute the following computer executable instructions:
[0186] In response to the resource processing instruction, determining a target spatial resource within the display area and associated spatial resources adjacent to the target spatial resource;
[0187] Based on the display information of the target space resource and the associated space resource, create mask information corresponding to the target space resource and the associated space resource respectively;
[0188] When the resource state of the target space resource changes, changing the mask information;
[0189] The display area is updated and displayed according to the change result of the mask information.
[0190] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data processing method.
[0191] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which are used when executed by a processor to:
[0192] In response to the resource processing instruction, determining a target spatial resource within the display area and associated spatial resources adjacent to the target spatial resource;
[0193] Based on the display information of the target space resource and the associated space resource, create mask information corresponding to the target space resource and the associated space resource respectively;
[0194] When the resource state of the target space resource changes, changing the mask information;
[0195] The display area is updated and displayed according to the change result of the mask information.
[0196] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above data processing method.
[0197] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the data processing method when executed by the chip.
[0198] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0199] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0200] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0201] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0202] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A data processing method, characterized in that: include: Determining a target spatial resource in a display area and associated spatial resources adjacent to the target spatial resource in response to a resource processing instruction, wherein the resource processing instruction is an instruction issued to edit a certain spatial resource in a scene, the target spatial resource is a spatial resource that a user needs to process, and the associated spatial resource is a spatial resource that is adjacent to the target spatial resource in spatial position; Based on the display information of the target space resource and the associated space resource, mask information corresponding to the target space resource and the associated space resource is created, wherein the display information of the target space resource and the associated space resource marks the display status of each surface of the target space resource and the associated space resource, the display status includes an adjacent state and a non-adjacent state, and the mask information represents the existence status of each surface of the target space resource and the associated space resource; When the resource state of the target space resource changes, changing the mask information; The display area is updated and displayed according to the change result of the mask information.
2. The method according to claim 1, characterized in that The step of determining the target space resource in the display area in response to the resource processing instruction includes: Receiving the resource processing instruction submitted through the editable area in the target business; determining, according to the target space resource location information carried in the resource processing instruction, that the editable area contains the space resource area to be processed as the display area; determining the target space resource in the display area according to the target space resource location information; or, The target space resource location information carried in the resource processing instruction is obtained; and the target space resource in the display area is determined based on the target space resource location information.
3. The method according to claim 1 or 2, characterized in that: The determining, in response to the resource processing instruction, an associated space resource adjacent to the target space resource comprises: Traversing the parent nodes of the target space resource to determine the target node identifier corresponding to the target space resource; Determine, at a sub-node layer corresponding to the target spatial resource, an associated node identifier associated with the target node identifier; A space resource corresponding to the associated node identifier is selected as an associated space resource adjacent to the target space resource.
4. The method according to claim 1, characterized in that Before creating the mask information corresponding to the target space resource and the associated space resource respectively based on the display information of the target space resource and the associated space resource, the method further includes: Identifying the display status of each surface of the target space resource and the associated space resource; Building a target display state set based on the display states of each surface of the target space resource, and building an associated display state set based on the display states of each surface of the associated space resource; The target display state set is used as the display information of the target space resource, and the associated display state set is used as the display information of the associated space resource.
5. The method according to claim 4, characterized in that The creating mask information corresponding to the associated space resource based on the display information of the associated space resource includes: Based on the associated display state set, select surfaces whose display states are adjacent states as adjacent associated surfaces, and create masks corresponding to the adjacent associated surfaces; An associated mask set is constructed based on the masks corresponding to the adjacent associated surfaces as mask information of the associated spatial resource.
6. The method according to claim 5, characterized in that The creating, based on the display information of the target space resource, mask information corresponding to the target space resource includes: Based on the target display state set, select surfaces whose display states are non-adjacent states as non-adjacent target surfaces, and create masks corresponding to the non-adjacent target surfaces; A target mask set is constructed based on the masks corresponding to the non-adjacent target surfaces as mask information of the target space resource.
7. The method according to claim 1, characterized in that The creating, based on the display information of the target space resource and the associated space resource, mask information corresponding to the target space resource and the associated space resource respectively includes: Identifying the display status of each surface of the associated space resource, and determining the display information of the associated space resource based on the display status of each surface of the associated space resource; According to the display information of the associated space resource, mask information is created for adjacent associated surfaces in the associated space resource whose display state is an adjacent state, as mask information corresponding to the associated space resource; determining a target display state of each target surface in the target space resource according to the mask information corresponding to the associated space resource; Mask information of each target surface in the target space resource is created according to the target display state as mask information corresponding to the target space resource.
8. The method according to claim 6, characterized in that Also includes: When the target space resource is in an explicit state, the mask corresponding to the adjacent associated surface is an implicit mask, and the mask corresponding to the non-adjacent target surface is an explicit mask; In the case where the target space resource is in an implicit state, the mask corresponding to the adjacent associated surface is an explicit mask, and the mask corresponding to the non-adjacent target surface is an implicit mask.
9. The method according to claim 8, characterized in that When the resource state of the target space resource changes, changing the mask information includes: In the case where the target space resource changes from an explicit state to an implicit state, the mask in the mask information corresponding to the target space resource changes from an explicit mask to an implicit mask, and the mask in the mask information corresponding to the associated space resource changes from an implicit mask to an explicit mask; When the target space resource changes from an implicit state to an explicit state, the mask in the mask information corresponding to the target space resource changes from an implicit mask to an explicit mask, and the mask in the mask information corresponding to the associated space resource changes from an explicit mask to an implicit mask.
10. A data processing method, characterized in that: include: Determining a target spatial resource in a display area in response to a resource processing instruction, wherein the resource processing instruction is an instruction issued to edit a certain spatial resource in a scene, the target spatial resource is a spatial resource that a user needs to process, the surface of the target spatial resource includes a surface in an adjacent state in an associated spatial resource, and the associated spatial resource is a spatial resource that is adjacent to the target spatial resource in spatial position; Creating mask information corresponding to the target space resource based on the display information of the target space resource, wherein the display information of the target space resource marks the display status of each surface of the target space resource, the display status includes an adjacent state and a non-adjacent state, and the mask information represents the existence status of each surface of the target space resource and the associated space resource; When the resource state of the target space resource changes, the mask information is changed based on the display information; The display area is updated and displayed according to the change result of the mask information.
11. A data processing device, characterized in that: include: A determination module is configured to determine a target spatial resource in a display area and an associated spatial resource adjacent to the target spatial resource in response to a resource processing instruction, wherein the resource processing instruction is an instruction issued to edit a certain spatial resource in a scene, the target spatial resource is a spatial resource that a user needs to process, and the associated spatial resource is a spatial resource that is adjacent to the target spatial resource in spatial position; A creation module is configured to create mask information corresponding to the target space resource and the associated space resource respectively based on the display information of the target space resource and the associated space resource, wherein the display information of the target space resource and the associated space resource marks the display status of each surface of the target space resource and the associated space resource, the display status includes an adjacent state and a non-adjacent state, and the mask information represents the existence status of each surface of the target space resource and the associated space resource; a change module configured to change the mask information when the resource state of the target space resource changes; The display module is configured to update and display the display area according to the change result of the mask information.
12. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the data processing method according to any one of claims 1 to 10.
13. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the data processing method described in any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Light beam position detection and control apparatus employing diffraction patterns
CA2073409A1
Personalized recommendation method and device based on spatial-temporal characteristics, electronic equipment and storage medium
CN113449210A