Online collaborative development system and method for Web3D and computer readable storage medium
By designing an online collaborative development system in Web3D applications, including rendering, editing and synchronization systems, the calculation pressure and data consistency problems of multi-person collaborative editing are solved, real-time collaboration and data consistency of multiple users are achieved, and user participation is reduced threshold.
Patent Information
- Application Number
- CN202410896417.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing Web3D applications fail to implement online collaborative editing by multiple people, resulting in huge pressure on computing and storage when processing large amounts of 3D data. It is easy to cause data inconsistency when collaborating with multiple users, and lack real-time collaboration capabilities.
An online collaborative development system for Web3D is designed, including a rendering system, an editing system and a synchronization system. By converting the collaboratively edited 3D scene data into a Web visual image, and generating modification messages through the user interface reception operation, updating the data, The synchronization system solves data inconsistency through operation recording and conflict detection to ensure consistency in editing data.
It realizes collaborative editing of 3D scenes with multiple users in a network environment, solves the problems of real-time collaboration and data inconsistency among multiple users, lowers the user threshold, and allows ordinary users to easily participate in the creation of 3D content.
Smart Images

Figure CN118967990A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network collaborative development, and in particular to an online collaborative development system, method and computer-readable storage medium for Web3D. Background Art
[0002] With the development of Web3D technology, 3D web applications are becoming more and more widespread, such as virtual social networking, digital twins, VR / AR, etc. The demand for the creation of 3D digital content is growing, and more and more applications need to edit and display 3D scenes in the Web environment. However, current Web3D applications are mainly focused on single-user use, and multi-person online collaborative editing has not yet been achieved. On the other hand, multi-person collaborative editing usually requires data synchronization through the server, which brings huge computing and storage pressure when processing large amounts of 3D data.
[0003] At the same time, collaborative creation among multiple users is an important requirement for 3D content production. However, existing 3D content production software is mostly desktop applications that do not support multi-user network collaboration. Users need to collaborate through version control systems such as Git, but lack real-time collaboration capabilities. In order to support ordinary users to participate in the creation of 3D content, some browser-based 3D creation tools have emerged, such as Spoke. However, such tools also face the problem of multi-user real-time collaboration. When multiple users edit a 3D scene at the same time, data inconsistency may occur.
[0004] How to support the collaborative creation of 3D digital content by ordinary users is a technical problem that needs to be solved urgently. Therefore, there is an urgent need for a lightweight and efficient method that can realize multi-person online collaborative editing of 3D scenes in a Web environment. Summary of the invention
[0005] In order to solve the problem in the prior art that ordinary users have low creative participation and lack of collaboration ability, the present invention provides an online collaborative development system, method and computer-readable storage medium for Web3D to support multi-user network collaborative creation of 3D digital content.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] An online collaborative development system for Web3D, comprising:
[0008] A rendering system, used to convert the collaboratively edited current 3D scene data into a Web visualization image;
[0009] The editing system is used to obtain the current 3D scene data for collaborative editing and send the current 3D scene data to the rendering system; it is also used to provide a user interface, receive user operations, and convert the user operations into modifications to the current 3D scene data, and generate a message describing the modification operation;
[0010] a synchronization system, configured to update the current 3D scene data according to the message describing the modification operation, and send the updated 3D scene data to the editing system;
[0011] The editing system sends the received updated 3D scene data to the rendering system to update the Web visualization image.
[0012] To achieve the above object, the present invention also provides the following solution:
[0013] An online collaborative development method for Web3D, comprising:
[0014] Acquire the current 3D scene data for collaborative editing, and convert the current 3D scene data into a Web visualization image;
[0015] Obtaining user operations; the operations include selection, translation, rotation, scaling, addition and deletion;
[0016] Updating the current 3D scene data according to the user operation;
[0017] The web visualization image is updated according to the updated 3D scene data.
[0018] To achieve the above object, the present invention also provides the following solution:
[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the online collaborative development method for Web3D.
[0020] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0021] 1. Supports multi-user collaborative editing of 3D scenes in a network environment, solving the problem of multi-user real-time collaboration;
[0022] 2. Ensure the consistency of edited data through operation records, conflict detection and resolution, and solve the data inconsistency problem that may be caused by multi-user collaboration;
[0023] 3. Based on Web technology, it supports access from various terminals, and ordinary users can participate in the creation of 3D content without professional training. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0025] Figure 1 A structural diagram of an online collaborative development system for Web3D provided in Example 1;
[0026] Figure 2 A workflow diagram of an online collaborative development system for Web3D provided in Example 1;
[0027] Figure 3 This is a flow chart of an online collaborative development method for Web3D provided in Example 2. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The purpose of the present invention is to provide an online collaborative development system, method and computer-readable storage medium for Web3D to support multi-user network collaborative creation of 3D digital content.
[0030] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0031] Embodiment 1
[0032] like Figure 1-Figure 2 As shown, the online collaborative development system for Web3D provided by this embodiment includes: a rendering system, an editing system and a synchronization system.
[0033] The rendering system is used to convert the stored collaboratively edited current 3D scene data into a web visualization image.
[0034] The editing system is used to obtain the current 3D scene data for collaborative editing and send the current 3D scene data to the rendering system; it is also used to provide a user interface, receive user operations, and convert user operations into modifications to the current 3D scene data, and generate messages describing the modification operations.
[0035] The synchronization system is used to update the current 3D scene data according to the message describing the modification operation, and send the updated 3D scene data to the editing system.
[0036] Furthermore, the rendering system first parses the hierarchical structure in the 3D scene data, and builds a corresponding tree structure in memory based on the hierarchical relationship and node attributes. Then, the rendering system traverses each node of the tree, and according to the type and attributes of the node, uses Web graphics APIs such as WebGL or WebGPU to convert it into meshes, materials, textures, cameras, light sources, and other graphic elements that can be rendered in the browser, and assembles them into a complete 3D scene. Finally, the rendering system renders the 3D scene into a frame of 2D image based on the position and parameters of the camera, and presents it on the web page.
[0037] The rendering system includes: a global setting module, a hierarchical structure parsing module and an effect enhancement module.
[0038] The global settings module is used to store the global settings in the current 3D scene data.
[0039] The hierarchical data conversion module is used to parse the hierarchical structure in the current 3D scene data and convert it into a Web visualization image. The hierarchical data conversion module uses a recursive descent method to recursively parse each node and its attributes in the tree structure according to the type identifier of the node in the 3D scene data until all nodes are parsed into renderable graphic elements. During the conversion process, the hierarchical data conversion module will consider the transformation matrix (Transform Matrix) of each node and apply it to the child nodes to achieve hierarchical effects such as position, rotation, and scaling between parent and child nodes. For some common 3D formats, such as glTF, FBX, etc., the hierarchical data conversion module will use ready-made parser libraries to speed up parsing.
[0040] The effect enhancement module is used to enhance the effects of Web visualization images according to global settings. After generating graphic elements, the effect enhancement module will apply corresponding shader programs to the graphic elements according to global settings, such as ambient lighting, shadows, post-processing and other parameters, to render more realistic and artistic visual effects.
[0041] Furthermore, after receiving the user operation, the editing system first determines the type of operation, such as selection, translation, rotation, scaling, addition, deletion, etc. Then, the editing system finds the corresponding node or attribute in the 3D scene data according to the operation type and parameters. Next, the editing system modifies the attribute value of the corresponding node or changes the position of the node in the hierarchical structure according to the specific content of the operation. For example, if the user selects an object on the interface and drags it, the editing system calculates the distance and direction of the mouse movement, and then applies this change to the position attribute of the selected object, thereby realizing the translation operation of the object. After sending the user's modification operation to the synchronization system of the cloud-based editing operation, the editing system receives the updated 3D scene data from the synchronization system. Then, the editing system sends the updated 3D scene data to the rendering system, and the rendering system regenerates the Web visualization image based on the new 3D scene data to reflect the latest status of the 3D scene.
[0042] The editing system includes: a user interaction module, a scene reading module, a message generation module and a scene updating module.
[0043] The user interaction module is used to provide a user interface and receive user operations.
[0044] The scene reading module is used to obtain the 3D scene data currently being collaboratively edited. When multiple people are collaboratively editing a scene, all participating editing system clients will connect to the same synchronization system and subscribe to updates to the same 3D scene data. When a user opens a scene through the editing system interface, the scene reading module will send a request to the synchronization system to obtain the scene data. The request contains the unique ID of the scene to be edited. After receiving the request, the synchronization system will search the database for the 3D scene data corresponding to the ID and send it to the requesting editing system client. In this way, all participating clients will obtain the latest version of the same 3D scene data, thereby realizing collaborative editing by multiple people.
[0045] The message generation module is used to convert user operations into modifications to scene data and generate messages describing the modification operations. The message body contains information such as the version number of the operation, user ID, operation type, operation path, attribute name, old value, new value, and operation timestamp.
[0046] The scene update module is used to refresh the current 3D scene data according to the 3D scene data updated by the synchronization system, and send the updated 3D scene data to the rendering system.
[0047] Furthermore, after receiving operation records from different editing system clients, the synchronization system will queue them in the order of the timestamps of the operations. Then, the synchronization system checks the operation records one by one to determine whether there is a conflict between the current operation and the historical operation. Common conflict situations include: different clients modifying the same attribute at the same time, different clients deleting or adding the same node at the same time, etc. When a conflict is detected, the synchronization system will automatically decide which client's operation to adopt according to the preset strategy. For example, based on the "latter first" strategy, the synchronization system will adopt the operation with the latest timestamp; based on the "majority" strategy, the synchronization system will adopt the operation recognized by most clients. After the synchronization system makes a decision, it will generate a unified operation sequence, eliminate or correct the conflicting operations, and then synchronize the final operation results to all clients.
[0048] The synchronization system includes: a version control module, an operation record module, a conflict detection module, a conflict resolution module and a data synchronization module.
[0049] The version control module is used to store the version information of the scene data.
[0050] The operation record module is used to record the user operations of each editing system client.
[0051] The conflict detection module is used to detect conflicts in operation records.
[0052] The conflict resolution module is used to resolve operation conflicts. When the conflict detection module of the synchronization system finds that two or more editing operations conflict, it will trigger the conflict resolution module to perform conflict resolution. The conflict resolution module first analyzes the type, object, operation content and other attributes of each conflicting operation, and then gives a unified solution according to the preset resolution rules. Common resolution rules include: priority-based rules, that is, different priorities are given to different types of operations, and operations with high priorities will cover operations with low priorities; timestamp-based rules, that is, based on the time sequence of operations, operations that occur later will cover operations that occur earlier; user authority-based rules, that is, based on the authority of the user who initiated the operation, decide whose operation to adopt. The purpose of the conflict resolution module is to ensure that during the editing process, operations from different clients can be applied to the scene data in a certain and consistent manner to avoid contradictions or overlaps, thereby ensuring the correctness and efficiency of collaborative editing.
[0053] The data synchronization module is used to send the results to each editing system client.
[0054] In the above process, the editing system and the synchronization system can communicate through the network. The synchronization system coordinates the operations of the editing system clients through operation records and conflict detection, solves the data inconsistency problem that may be caused by multi-user collaborative editing, and ensures the consistency of the edited data.
[0055] The online collaborative development system for Web3D provided in this embodiment supports multiple clients to connect and participate in the collaboration at the same time, and ordinary users can edit 3D content only through a browser. Compared with existing 3D digital content creation software, this embodiment greatly reduces the user threshold and supports a wider range of ordinary users to participate in the creation of 3D digital content. At the same time, it also solves the problem of data inconsistency that may occur during multi-user network collaboration.
[0056] Embodiment 2
[0057] Based on the online collaborative development system for Web3D provided in the first embodiment, this embodiment provides an online collaborative development method for Web3D, such as Figure 3 As shown, the method includes:
[0058] S1: Acquire the current 3D scene data for collaborative editing, and convert the current 3D scene data into a Web visualization image. Specifically, it includes: parsing the hierarchical structure in the current 3D scene data; building a tree structure according to the hierarchical relationship and node attributes in the hierarchical structure; traversing each node of the tree structure, and using the Web graphics API to convert it into a graphic element according to the type and attribute of the node to build a 3D scene; rendering the 3D scene to obtain a Web visualization image.
[0059] S2: Obtain user operations; the operations include selection, translation, rotation, scaling, addition and deletion.
[0060] S3: updating the current 3D scene data according to the user operation, which specifically includes: converting the user operation into a modification of the current 3D scene data, generating a message describing the modification operation; and updating the current 3D scene data according to the message describing the modification operation.
[0061] S4: Update the Web visualization image according to the updated 3D scene data.
[0062] Further, converting the user operation into a modification of the current 3D scene data and generating a message describing the modification operation specifically includes:
[0063] Determine a corresponding node or attribute in the current 3D scene data according to a user operation;
[0064] Modify the attribute value of the corresponding node or change the position of the node in the hierarchical structure according to the specific content of the user operation.
[0065] Further, updating the current 3D scene data according to the message describing the modification operation specifically includes:
[0066] Determine whether there is a conflict between the current operation and the historical operation;
[0067] If yes, determining the operation to be selected according to a preset strategy, and updating the current 3D scene data according to a message describing the modification operation corresponding to the selected operation;
[0068] If not, the current 3D scene data is updated according to the message describing the modification operation corresponding to the operation arranged in the order of timestamps.
[0069] Embodiment 3
[0070] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the online collaborative development method for Web3D in the second embodiment.
[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, or a programmable logic device, but are not limited thereto.
[0072] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0073] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. An online collaborative development system for Web3D, characterized in that: include: A rendering system, used to convert the collaboratively edited current 3D scene data into a Web visualization image; The editing system is used to obtain the current 3D scene data for collaborative editing and send the current 3D scene data to the rendering system; it is also used to provide a user interface, receive user operations, and convert the user operations into modifications to the current 3D scene data, and generate a message describing the modification operation; a synchronization system, configured to update the current 3D scene data according to the message describing the modification operation, and send the updated 3D scene data to the editing system; The editing system sends the received updated 3D scene data to the rendering system to update the Web visualization image.
2. The online collaborative development system for Web3D according to claim 1, characterized in that: The rendering system specifically includes: The global setting module is used to store the global settings in the current 3D scene data; Hierarchical structure parsing module, used to parse the hierarchical structure in the current 3D scene data and convert it into a Web visualization image; The effect enhancement module is used to enhance the effect of the Web visualization image according to global settings.
3. The online collaborative development system for Web3D according to claim 1, characterized in that: The editing system specifically includes: A user interaction module is used to provide a user interface and receive user operations; The scene reading module is used to obtain the current 3D scene data for collaborative editing; A message generation module, used to convert user operations into modifications to current 3D scene data and generate messages describing the modification operations; The scene update module is used to refresh the current 3D scene data according to the 3D scene data updated by the synchronization system, and send the updated 3D scene data to the rendering system.
4. The online collaborative development system for Web3D according to claim 1, characterized in that: The synchronization system specifically includes: Version control module, used to store version information of scene data; Operation recording module, used to record user operations of each editing system client; Conflict detection module, used to detect whether there is a conflict between user operations and historical operations; Conflict resolution module, used to resolve operation conflicts; The data synchronization module is used to send the parsing results to each editing system client.
5. An online collaborative development method for Web3D, characterized in that: include: Acquire the current 3D scene data for collaborative editing, and convert the current 3D scene data into a Web visualization image; Obtaining user operations; the operations include selection, translation, rotation, scaling, addition and deletion; Updating the current 3D scene data according to the user operation; The web visualization image is updated according to the updated 3D scene data.
6. The online collaborative development method for Web3D according to claim 5, characterized in that: Converting the current 3D scene data into a Web visualization image specifically includes: Analyze the hierarchical structure in the current 3D scene data; Constructing a tree structure according to the hierarchical relationship and node attributes in the hierarchical structure; Traversing each node of the tree structure, converting the node into a graphic element using a Web graphics API according to the type and attribute of the node, and constructing a 3D scene; The 3D scene is rendered to obtain a Web visualization image.
7. The online collaborative development method for Web3D according to claim 5, characterized in that: Updating the current 3D scene data according to the user operation specifically includes: Converting the user operation into a modification of the current 3D scene data, and generating a message describing the modification operation; The current 3D scene data is updated according to the message describing the modification operation.
8. The online collaborative development method for Web3D according to claim 7, characterized in that: Converting the user operation into a modification of the current 3D scene data and generating a message describing the modification operation specifically includes: Determine a corresponding node or attribute in the current 3D scene data according to a user operation; Modify the attribute value of the corresponding node or change the position of the node in the hierarchical structure according to the specific content of the user operation.
9. The online collaborative development method for Web3D according to claim 7, characterized in that: Updating the current 3D scene data according to the message describing the modification operation specifically includes: Determine whether there is a conflict between the current operation and the historical operation; If yes, determining the operation to be selected according to a preset strategy, and updating the current 3D scene data according to a message describing the modification operation corresponding to the selected operation; If not, the current 3D scene data is updated according to the message describing the modification operation corresponding to the operation arranged in the order of timestamps.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the online collaborative development method for Web3D described in any one of claims 5 to 9 is implemented.
Citation Information
Patent Citations
Web-based three-dimensional scenic visualized editing device and method
CN102413164A
Method and system for analyzing data by multiple-people cooperative work
CN103077453A
BIM project multi-user cooperation management method and system, terminal and storage medium
CN115033968A
Interface view generation method and device, storage medium and electronic device
CN116328296A
Image rendering method and device in virtual scene, electronic equipment and storage medium
CN117101127A
Cited By
Game development data driving system based on Web3D
CN119473295A
A web3D-based game development data-driven system
CN119473295B
Method, device and program product for collaborative editing of three-dimensional scene
CN119784987A
Scene building method, device and equipment for digital twin multi-terminal cooperation and storage medium
CN120075249A
A digital twin multi-end collaborative scene building method and device, equipment and storage medium
CN120075249B
