Scene data processing method and device, server and storage medium
Real-time collaborative editing of virtual scenes is achieved by deploying the scene description file of the client through the server, which solves the problem of conflicting editing results in multi-person collaborative editing and improves the development efficiency of virtual scenes.
Patent Information
- Application Number
- CN202310279644.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
When designing complex virtual scenes, collaborative editing by multiple people leads to conflicting editing results and low efficiency. It is difficult to achieve efficient virtual scene data processing with existing technology.
Obtain the scene description files of each client through the server and deploy synchronous updates to achieve real-time collaborative editing of the same virtual scene by multiple people, improving data processing and development efficiency.
It achieves real-time synchronization of multi-person collaborative editing, improves the efficiency of data processing and development of virtual scenes, and reduces editing conflicts.
Smart Images

Figure CN118689474A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a scene data processing method, device, server and storage medium. Background Art
[0002] With the development of computer technology, terminals can install a variety of editors, and users can use various tools in the editor to design and develop various virtual scenes. For example, in the game development scene, Unreal and Unity are both widely used game engines. They both have excellent visual scene editors that can help users develop games efficiently. As the complexity of virtual scenes increases, how to efficiently develop highly complex virtual scenes is a technical problem that needs to be solved.
[0003] In the related art, when designing and developing a relatively complex virtual scene, the development task of the virtual scene is usually divided into multiple subtasks and assigned to multiple users. Multiple users edit the scene data of part of the virtual scene on their local terminals, and then the editing results of multiple users are merged to obtain the final virtual scene.
[0004] However, since each user's editing results of the virtual scene are independent of each other, it is more difficult to develop some sub-tasks with high synergy. Conflicts in editing results may occur, resulting in inefficient processing of scene data and low development efficiency of the virtual scene. Summary of the invention
[0005] The embodiments of the present application provide a scene data processing method, device, server and storage medium, which can realize real-time collaborative editing of the same virtual scene by multiple people, which not only improves the data processing efficiency of the virtual scene, but also improves the development efficiency of the virtual scene. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a scene data processing method is provided, the method comprising:
[0007] Acquire a scene description file uploaded by a first client through a first scene editor, wherein the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor;
[0008] Based on the scene description file, a prompt message is sent to at least one second client among the multiple clients, wherein the prompt message is used to prompt the second client whether to synchronously update a second virtual scene currently displayed by the second scene editor through a second scene editor, wherein the second virtual scene and the first virtual scene are derived from the same virtual scene;
[0009] For any second client, in response to the second client's confirmation operation on the prompt information, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0010] According to another aspect of an embodiment of the present application, a scene data processing device is provided, the device comprising:
[0011] an acquisition module, used to acquire a scene description file uploaded by a first client through a first scene editor, wherein the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor;
[0012] A first sending module, configured to send prompt information to at least one second client among the multiple clients based on the scene description file, wherein the prompt information is used to prompt the second client whether to synchronously update a second virtual scene currently displayed by the second scene editor through a second scene editor, wherein the second virtual scene and the first virtual scene are derived from the same virtual scene;
[0013] The second sending module is used to send the scene description file to any second client in response to the second client's confirmation operation on the prompt information, so that the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0014] According to another aspect of an embodiment of the present application, a server is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the scene data processing method as described in the above aspects.
[0015] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the scene data processing method described in the above aspects.
[0016] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the scene data processing method as described in the above aspects.
[0017] According to another aspect of an embodiment of the present application, a computer program product is provided, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the scene data processing method described in the above aspect.
[0018] The embodiment of the present application provides a scene data processing method, and each client can edit the currently displayed virtual scene through its own scene editor. The server can obtain the scene description file uploaded by each client through the scene editor for indicating the scene parameters of the updated virtual scene. The server allocates the scene description files uploaded by each client so that the scene description files updated for the same virtual scene can be synchronously updated to the corresponding client, thereby enabling real-time collaborative editing of the same virtual scene by multiple people, which not only improves the data processing efficiency of the virtual scene, but also improves the development efficiency of the virtual scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a schematic diagram of an implementation environment of a scene data processing method provided in an embodiment of the present application;
[0021] Figure 2 is a flow chart of a scene data processing method provided in an embodiment of the present application;
[0022] Figure 3 is a flowchart of another scene data processing method provided by an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a WebGPU provided in an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a first scene editor provided in an embodiment of the present application;
[0025] Figure 6 It is a schematic diagram of a WASM provided in an embodiment of the present application;
[0026] Figure 7 It is a principle framework diagram of a first client editing a first virtual scene through a first scene editor provided in an embodiment of the present application;
[0027] Figure 8 is a schematic diagram of a deployment scenario description file provided in an embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of allocating computing tasks provided by an embodiment of the present application;
[0029] Fig.10 is a schematic diagram of interaction between a server and a third client provided in an embodiment of the present application;
[0030] Fig.11 This is a schematic diagram of data flow for multi-person shared editing provided by an embodiment of the present application;
[0031] Fig.12 This is a data flow diagram of a method for multiple people to share rendering resources and computing resources provided in an embodiment of the present application;
[0032] Fig.13 It is a framework diagram of a scene data processing method provided in an embodiment of the present application;
[0033] Fig.14 is a structural diagram of a scene data processing device provided in an embodiment of the present application;
[0034] Fig.15 is a structural diagram of another scene data processing device provided in an embodiment of the present application;
[0035] Fig.16 It is a structural block diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0037] In this article, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0038] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the scene description files and scene parameters involved in this application are obtained with full authorization.
[0039] Figure 1 Schematic diagram of an implementation environment of a scene data processing method provided in an embodiment of the present application. Figure 1 The implementation environment includes a first terminal 101, a server 102, and a second terminal 103. The first terminal 101 and the second terminal 103 can be directly or indirectly connected to the server 102 through wired or wireless communication, respectively, and the present application does not limit this.
[0040] In some embodiments, the first terminal 101 and the second terminal 103 can be various types of terminals such as mobile phones, desktop computers, laptops, tablet computers, smart watches, etc. The first terminal 101 is installed and runs a first client supporting virtual scenes, and the second terminal 103 is installed and runs a second client supporting virtual scenes. The first client and the second client can both edit the virtual scenes through their respective scene editors. Schematically, the first terminal 101 and the second terminal 103 are both terminals used by game developers. Game developers can edit the virtual scenes in the game through the first scene editor running on the first client. Game developers can also edit the virtual scenes through the second scene editor running on the second client. The first client and the second client are respectively associated with the server 102, and the server 102 provides background services.
[0041] In some embodiments, the server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 102 is used to provide background services for clients that support virtual scenes.
[0042] In some embodiments, the server 102 undertakes the main computing work, and the first terminal 101 and the second terminal 103 undertake the secondary computing work; or, the server 102 undertakes the secondary computing work, and the first terminal 101 and the second terminal 103 undertake the main computing work; or, the server 102, the first terminal 101 and the second terminal 103 adopt a distributed computing architecture to perform collaborative computing.
[0043] Figure 2 is a flow chart of a scene data processing method provided in an embodiment of the present application. The method is executed by a server, see Figure 2 , the method comprising:
[0044] 201. The server obtains a scene description file uploaded by a first client through a first scene editor, where the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor.
[0045] In an embodiment of the present application, a server is connected to multiple clients supporting virtual scenes, the first client is any client among the multiple clients, and the server provides background services for the first client. The first client is a web browser installed on the first terminal, and the first scene editor is a scene editor running based on the web browser, which is used to edit the currently displayed first virtual scene. In the process of editing the first virtual scene through the first scene editor on the first client, by updating the parameter values of the scene parameters of the first virtual scene, various virtual objects, virtual lighting, virtual special effects, etc. can be added to the first virtual scene, or the virtual objects, scene structures, scene lighting effects, etc. in the first virtual scene can be modified. After the first virtual scene is edited by the first scene editor, the server can obtain the scene description file uploaded by the first client through the first scene editor, and the scene description file is used to indicate the parameter values of the scene parameters updated in the first virtual scene. Among them, the first virtual scene can be a 3D (3-Dimension, three-dimensional) virtual scene or a 2D (2-Dimension, two-dimensional) virtual scene, and the virtual objects can be virtual buildings, virtual plants, virtual characters, etc., which are not limited in the embodiment of the present application.
[0046] 202. Based on the scene description file, the server sends a prompt message to at least one second client among the multiple clients, where the prompt message is used to prompt the second client whether to synchronously update the second virtual scene currently displayed by the second scene editor through the second scene editor, where the second virtual scene and the first virtual scene are derived from the same virtual scene.
[0047] In an embodiment of the present application, the second client is a client that has a certain association with the first client among multiple clients that support virtual scenes. The server provides background services for the second client. The second client is a web browser installed on the second terminal, and the second scene editor is a scene editor running based on the web browser, which is used to edit the currently displayed second virtual scene. Since the second virtual scene and the first virtual scene are derived from the same virtual scene, after the first client updates the parameter value of the scene parameter of the first virtual scene through the first scene editor, the server can send a prompt message to the second client based on the scene description file uploaded by the first client to prompt the second client whether to synchronize the second virtual scene.
[0048] 203. For any second client, in response to a confirmation operation of the second client on the prompt information, the server sends the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0049] In the embodiment of the present application, after the second client confirms the prompt information sent by the server, it indicates that the second client needs to synchronize and update the second virtual scene currently displayed by the second scene editor. Therefore, the server can send the scene description file updated for the first virtual scene to the second client, so that the second client can parse the scene description file through the second scene editor, and update the second virtual scene according to the parameter values of the scene parameters obtained by the parsing, so that the updated content in the first virtual scene can be synchronized to the second virtual scene.
[0050] The embodiment of the present application provides a scene data processing method, and each client can edit the currently displayed virtual scene through its own scene editor. The server can obtain the scene description file uploaded by each client through the scene editor for indicating the scene parameters of the updated virtual scene. The server allocates the scene description files uploaded by each client so that the scene description files updated for the same virtual scene can be synchronously updated to the corresponding client, thereby enabling real-time collaborative editing of the same virtual scene by multiple people, which not only improves the data processing efficiency of the virtual scene, but also improves the development efficiency of the virtual scene.
[0051] Figure 3 is a flow chart of a scene data processing method provided in an embodiment of the present application. The method is executed by a server, see Figure 3 , the method comprising:
[0052] 301. In response to an editor acquisition request sent by a first client, the server acquires a code file of a rendering engine based on a network graphics processor from a database, where the first client is any one of a plurality of clients connected to the server.
[0053] In an embodiment of the present application, the first client is a client that supports virtual scenes, and the server provides background services for the first client. The first client obtains the first scene editor by sending an editor acquisition request to the server, and then edits the currently displayed first virtual scene through the first scene editor. In response to the editor acquisition request, the server can obtain the code file of the PBR (Physically Based Rendering, based on physical texture rendering) rendering engine based on WebGPU (network graphics processor) from the database. Among them, WebGPU is an API (application programming interface) open to the Web (browser) by the GPU (graphics processor), including interfaces for graphics and computing. The GPU is used to quickly render graphics and perform data parallel computing. PBR is a way of shading and rendering that can more accurately reflect the interaction between light and the surface of an object. As the basis of the scene editor, the rendering engine is used to render the virtual scene displayed by the scene editor.
[0054] For example, Figure 4 Schematic diagram of a WebGPU provided by an embodiment of the present application. Figure 4 As shown in the figure, WebGPU is a set of browser-based graphics APIs. In order to make up for the differences in graphics APIs on various platforms, WebGPU integrates and encapsulates graphics APIs such as Vulkan, Direct3D12, and Metal. WebGPU can also run locally on Linux, iOS, Windows, Android and other systems, and has good support on multiple terminals, which enables the scene editor to run across terminals very conveniently.
[0055] 302. The server compiles the code file into a binary file in the form of a network assembly through a compiler.
[0056] In the embodiment of the present application, WASM (WebAssembly) is a virtual instruction set architecture, which is designed to compile the code files of the rendering engine written in Native languages such as C and C++ into binary files in the form of WASM, so that the rendering engine can run better on the Web platform while ensuring security and running speed close to that of native applications.
[0057] 303. The server sends the binary file to the first client, and the first client parses the binary file and displays an editing interface of the first scene editor obtained by the parsing.
[0058] In an embodiment of the present application, after the server compiles the rendering engine code file into a binary file in WASM format, the binary file can be sent to each client. Taking the first client as an example, the first client can parse the received binary file and display the editor interface of the first scene editor obtained by parsing.
[0059] For example, Figure 5 is a schematic diagram of a first scene editor provided in an embodiment of the present application. Figure 5 As shown, the bottom layer of the scene editor is a PBR rendering engine based on WebGPU written in Native code. WebGPU is the backend of the rendering engine, which enables the rendering engine to run on a variety of terminals. The bottom layer of the scene editor also includes a graphical interface library, a rendering channel, and a calculation channel. Among them, the graphical interface library is an instant rendering interface implemented in C / C++ language, which implements interface elements such as buttons, texts, input boxes, tables, and lists; the rendering channel is used to render the virtual scene; the calculation channel is used to calculate the scene data in the virtual scene. The top layer of the scene editor is various interactive windows implemented by HTML (Hypertext Markup Language) and JavaScript (Scripting Language). Among them, HTML is used to mark text files to create web page effects. JavaScript is used to generate dynamic functions for web pages, and JavaScript is also used to manage the content on the web page to make it more interactive and dynamic. The interactive window includes: a project window for displaying resource files, a scene window for displaying virtual scenes, a hierarchical window for presenting virtual scenes in the form of a node tree, a resource window for storing various materials, a monitoring window for displaying the information of each node in the virtual scene, and a toolbar for displaying various tools. The middle layer of the scene editor defines the APIs that the JavaScript glue code binds to, including JavaScript APIs and Native APIs.
[0060] For example, Figure 6 Schematic diagram of a WASM provided in an embodiment of the present application. Figure 6As shown, first, the Emscripten compiler compiles the code file compiled by the C / C++ language into a binary file in the WASM format. Since the binary file in the WASM format cannot be directly recognized by the browser, WASM needs to call JavaScript first to access any browser API, and then JavaScript calls the browser API. Therefore, the Emscripten compiler creates the HTML document and JavaScript glue code required to achieve this goal. Among them, the JavaScript glue code is used to connect incompatible software components, also known as binding code, which can bind JavaScript API and NativeAPI. The HTML document is used to load the JavaScript glue code.
[0061] It should be noted that the server usually only needs to execute the above steps 302-303 once and does not need to execute them repeatedly. However, when the code file of the above rendering engine is updated, the server needs to execute the above steps 302-303 again. That is, the server recompiles the updated code file of the rendering engine and then sends the compiled binary file to each client.
[0062] 304. In response to the scene acquisition request sent by the first client through the first scene editor, the server queries the database for an initial scene description file corresponding to the scene identifier carried in the scene acquisition request, where the initial scene description file is used to indicate parameter values of initial scene parameters of the first virtual scene.
[0063] In an embodiment of the present application, the database of the server includes various types of resources, such as texture resources, model resources, material resources, and scene resources. Each client connected to the server can send a scene acquisition request to the server to obtain various resources required to build a virtual scene from the server's database. Taking the first client as an example, the first client can obtain various resources from the database for building a first virtual scene, such as texture resources, model resources, material resources, and scene resources of the first virtual scene, by sending a scene acquisition request to the server. The scene acquisition request carries a scene identifier of the first virtual scene. In response to the scene acquisition request sent by the first client through the first scene editor, the server can query the initial scene description file corresponding to the scene identifier from the database, and the initial scene description file is used to indicate the parameter values of the initial scene parameters of the first virtual scene.
[0064] 305. The server sends the initial scene description file to the first client, and the first client constructs the first virtual scene based on the initial scene description file through a first scene editor.
[0065] In an embodiment of the present application, the server can send an initial scene description file of the first virtual scene queried from the database based on the scene identifier to the first client. The first client parses the initial scene description file through the first scene editor to obtain the parameter value of the initial scene parameter of the first virtual scene. Then, the first virtual scene is constructed based on the parameter value of the initial scene parameter through the first scene editor, so that the first client can edit the first virtual scene through the first scene editor.
[0066] For example, Figure 7 This is a framework diagram of a first client editing a first virtual scene through a first scene editor provided in an embodiment of the present application. Figure 7 As shown, the Web browser is connected to the server as the first client. The first client can edit the node attributes in the first virtual scene through the first scene editor. In the process of editing the node attributes, the first scene editor can add transformation (rotation, translation, scaling) components and grid renderer components to the nodes in the first virtual scene. The resource attributes of the first virtual scene include resource numbers and raw data corresponding to the resource numbers. The first client can obtain the raw data corresponding to the resource number according to the resource number corresponding to the node through the first scene editor. The first client can render the node based on the raw data through the first scene editor and display the rendered node.
[0067] 306. The server obtains a scene description file uploaded by the first client through the first scene editor, where the scene description file is used to indicate parameter values of updated scene parameters of the first virtual scene currently displayed by the first scene editor.
[0068] In an embodiment of the present application, the first client is a web browser installed on the first terminal. The first scene editor is a scene editor running on a web browser, and is used to edit the first virtual scene currently displayed. In the process of editing the first virtual scene through the first scene editor on the first client, the parameter values of the scene parameters of the first virtual scene can be updated through the first scene editor, such as adding various virtual objects, virtual lighting, virtual special effects, etc. in the first virtual scene, or modifying the virtual objects, scene structure, scene lighting effects, etc. in the first virtual scene. After the first virtual scene is edited by the first scene editor, the first client can upload the scene description file to the server through the first scene editor, and the server processes the scene description file. The scene description file is used to indicate the parameter values of the scene parameters updated in the first virtual scene. Among them, the first virtual scene can be a 3D virtual scene or a 2D virtual scene, and the virtual object can be a virtual building, a virtual plant, a virtual character, etc., which is not limited in the embodiment of the present application.
[0069] 307. Based on the scene description file, the server sends a prompt message to at least one second client among the multiple clients, where the prompt message is used to prompt the second client whether to synchronously update the second virtual scene currently displayed by the second scene editor through the second scene editor, where the second virtual scene and the first virtual scene are derived from the same virtual scene.
[0070] In an embodiment of the present application, the second client is a client that is associated with the first client among multiple clients that support virtual scenes. The server provides background services for the second client. The second client is a web browser installed on the second terminal. The second scene editor is a scene editor that runs based on the web browser and is used to edit the currently displayed second virtual scene. Since the second virtual scene and the first virtual scene are derived from the same virtual scene, after the first client updates the parameter value of the scene parameter of the first virtual scene through the first scene editor, the server can send a prompt message to the second client based on the scene description file uploaded by the first client to prompt the second client whether to synchronize and update the second virtual scene.
[0071] In some embodiments, the second virtual scene displayed by the second client is the same as the scene area to which the first virtual scene belongs. Accordingly, the server determines the scene area to which the first virtual scene belongs based on the scene description file. The server determines at least one second virtual scene that is the same as the scene area to which the first virtual scene belongs. For any second virtual scene, the server sends a prompt message to at least one second client currently displaying the second virtual scene. Among them, the first virtual scene and the second virtual scene are derived from the same virtual scene, and the virtual scene includes multiple scene areas, and the scene area to which the first virtual scene belongs is one of the multiple scene areas. The server can determine the scene area to which the first virtual scene belongs based on the scene description file of the first virtual scene. If the scene area to which the second virtual scene belongs is the same as the scene area to which the first virtual scene belongs, it means that the second virtual scene and the first virtual scene are sub-scenes in a scene area under the same virtual scene, and the first virtual scene and the second virtual scene can be the same sub-scene, or adjacent sub-scenes in the scene area. Therefore, when the parameter value of the scene parameter of the first virtual scene is updated, the parameter value of the scene parameter of the second virtual scene must also be updated synchronously, that is, the server can send a prompt message to at least one second client displaying the second virtual scene, prompting the second client whether to update the second virtual scene synchronously. By determining at least one second virtual scene that belongs to the same virtual scene as the first virtual scene, the server can send prompt information to at least one second client that displays the second virtual scene, so that the at least one second client synchronously updates the second virtual scene.
[0072] In some embodiments, the second virtual scene displayed by the second client has an association relationship with the first virtual scene. Accordingly, the server determines at least one second virtual scene that has an association relationship with the first virtual scene based on the scene description file. For any second virtual scene, the server sends a prompt message to at least one second client that currently displays the second virtual scene. Among them, the first virtual scene and the second virtual scene are different virtual scenes, and the first virtual scene has an association relationship with the second virtual scene. Therefore, when the parameter value of the scene parameter of the first virtual scene is updated, the parameter value of the scene parameter of the second virtual scene must also be updated synchronously, that is, the server can send a prompt message to at least one second client that displays the second virtual scene, prompting the second client whether to synchronously update the second virtual scene. The server determines at least one second virtual scene that has a specific association relationship with the first virtual scene, so that the second client can synchronously update the second virtual scene while sending an update to the first virtual scene, thereby improving the data processing efficiency of the virtual scene.
[0073] It should be noted that part of the second virtual scenes in the at least one second virtual scene associated with the first virtual scene may be the same virtual scene as the first virtual scene.
[0074] 308. For any second client, in response to the second client's confirmation operation on the prompt information, the server sends the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0075] In an embodiment of the present application, after the second client confirms the prompt information sent by the server, it indicates that the second client agrees to synchronize and update the second virtual scene currently displayed by the second scene editor. Therefore, the server can send the scene description file updated for the first virtual scene to the second client. The second client parses the scene description file through the second scene editor to obtain the parameter value of the scene parameter updated in the first virtual scene. Then, the second virtual scene is updated based on the parameter value of the updated scene parameter through the second scene editor, so that the updated content in the first virtual scene can be synchronized to the second virtual scene.
[0076] For example, Figure 8 Schematic diagram of a deployment scenario description file provided in an embodiment of the present application. Figure 8As shown, after the first client edits the first virtual scene through the first scene editor, it can send the scene description file to the server by exporting assets. The server allocates the received scene description file and can send it to the second client, that is, import the scene description file to the second client. Since the scene description file is used to indicate the parameter value of the scene parameter updated in the first virtual scene, the transmission bandwidth occupied by the scene description file is very small, and it is easy to transmit in real time.
[0077] In some embodiments, the server can determine the parameter type of the scene parameter of the first virtual scene to be updated based on the scene description file, and the parameter type includes a scene structure type for describing the scene structure and a scene model type for describing the scene model. Accordingly, the server uses different methods to send corresponding scene data to at least one second client based on different parameter types. For details, please refer to the following cases 1 and 2.
[0078] Case 1: When the parameter type is a scene structure type, for any second client, in response to the second client's confirmation operation on the prompt information, the server sends the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor. Among them, when the parameter type of the scene parameter sent to be updated by the first virtual scene is a scene structure type, the scene parameter is a parameter used to describe the scene structure in the first virtual scene. The scene structure can be the land, sky, etc. in the first virtual scene. After the second client confirms the synchronous update of the second virtual scene, the server can directly send the scene description file obtained by the first client updating the parameter value of the scene structure of the first virtual scene to the second client, so that the second client can synchronously update the scene structure in the second virtual scene based on the scene description file.
[0079] Case 2: When the parameter type is a scene model type, the server renders the scene model corresponding to the scene parameter. For any second client, in response to the second client's confirmation operation on the prompt information, the server sends the rendered scene model to the second client, and the second client displays the scene model through the second scene editor. Among them, when the parameter type of the updated scene parameter sent by the first virtual scene is a scene model type, the scene parameter is a parameter used to describe the scene model in the first virtual scene. The scene model can be a building model, a character model, etc. Based on the parameter value of the scene parameter, the server can render the scene model corresponding to the scene parameter, and after the second client confirms the synchronous update of the second virtual scene, the server sends the rendered scene model to the second client, so that the second client can display the rendered scene model through the second scene editor.
[0080] In some embodiments, the updated scene parameters of the first virtual scene may conflict with the updated scene parameters of the second virtual scene. If there is a conflict, the server sends a conflict prompt message to the second client; if there is no conflict, the server sends a scene description file to the second client. Accordingly, for any second client, in response to the second client's confirmation operation on the prompt message, the server obtains the updated scene parameters of the second virtual scene when detecting that the scene parameters of the second virtual scene are updated; when the updated scene parameters of the second virtual scene are different from the updated scene parameters of the first virtual scene, the server sends the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor; when the updated scene parameters of the second virtual scene are the same as the updated scene parameters of the first virtual scene, the server sends a conflict prompt message to the second client, and the conflict prompt message is used to prompt the second client that the updated scene parameters of the first virtual scene conflict with the updated scene parameters of the second virtual scene; in response to the second client's confirmation operation on the conflict prompt message, the server sends the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor. Among them, when the scene parameters updated in the second virtual scene are different from the scene parameters updated in the first virtual scene, it indicates that the scene parameters updated in the second virtual scene do not conflict with the scene parameters updated in the first virtual scene, and the second client can synchronously update the second virtual scene based on the scene description file. Therefore, the server directly sends the scene description file to the second client. When the scene parameters updated in the second virtual scene are the same as the scene parameters updated in the first virtual scene, it indicates that the scene parameters updated in the second virtual scene conflict with the scene parameters updated in the first virtual scene. In order to prompt the second client, the server can send a conflict prompt message to the second client. When the second client confirms the conflict prompt message, it indicates that the second client still needs to synchronously update the second virtual scene when a conflict occurs. Therefore, the server sends the scene description file to the second client.
[0081] In some embodiments, the server can complete the computing task of a certain virtual scene through the computing resources of multiple clients. Accordingly, in response to the data computing request sent by the first client, the server divides the computing task carried by the data computing request to obtain at least one computing subtask, and the computing task is used to indicate the scene data that needs to be calculated for the first virtual scene; the server sends at least one computing subtask to at least one third client respectively, and the third client is a client with idle computing power among multiple clients, and at least one third client corresponds to at least one computing subtask one by one; the server processes the computing result of at least one computing subtask returned by at least one third client to obtain the task result of the computing task; the server sends the task result to the first client, and the first client renders the first virtual scene based on the task result through the first scene editor. Among them, the data computing request carries the computing task of the first virtual scene. The computing task is used to indicate the scene data that needs to be calculated for the first virtual scene, such as the texture, light, etc. of the first virtual scene. When the first virtual scene is a virtual scene with high complexity, the computing amount of the computing task is relatively large, and only the first client executing the computing task will result in a long time consumption, making the data processing efficiency of the virtual scene low. Therefore, in order to improve the processing efficiency of scene data, after receiving the data calculation request sent by the first client, the server can divide the calculation task, and send at least one calculation subtask obtained by the division to at least one third client with idle computing power, and at least one third client executes the corresponding calculation subtask. The server can obtain the task result of the calculation task by processing the calculation result of at least one calculation subtask returned by at least one third client, and send the task result to the first client, so that the first client can render the first virtual scene through the first scene editor based on the scene data calculated in the task result.
[0082] For example, Fig. 9 Schematic diagram of distributing computing tasks provided by an embodiment of the present application. Fig. 9As shown, the white point, black point and gray point in the virtual scene are three point light sources. The server first performs frustum cutting on the virtual scene to determine the Volume covered by the frustum model in the virtual scene, and then needs to determine the light source that can be covered in each Volume. The server can divide the calculation task of determining the light source in each Volume into three calculation subtasks, and assign these three calculation subtasks to different clients. Among them, client A is used to calculate the white point light source, client B is used to calculate the black point light source, and client C is used to calculate the gray point light source. The server then continues to process the calculation results returned by client A, client B and client C to obtain the light source calculation result of the virtual scene, and sends the light source calculation result to the client that displays the virtual scene, and the client renders the virtual scene based on the light source calculation result.
[0083] In some embodiments, for any computing subtask, the server can send the computing subtask to at least one third client and proofread the computing result of the computing task returned by at least one third client. If the computing result of the computing task returned by at least one third client is consistent, the server retains the computing result; if the computing result of the computing task returned by at least one third client is inconsistent, the server does not retain the computing result and resends the computing subtask to at least one third client. By proofreading the computing result returned by the third client, the server can improve the accuracy of the computing result of the computing subtask.
[0084] In some embodiments, before the server sends the computing subtask to the third client, it can send a task prompt message to the third client to determine whether the third client can perform the computing subtask. Accordingly, for any third client, the server sends a task prompt message to the third client, and the task prompt message is used to prompt the third client whether to accept the computing subtask; in response to the third client's confirmation operation on the task prompt message, the computing subtask is sent to the third client. In an embodiment of the present application, the hardware performance of each third client varies. For a third client with poor performance, the hardware of the third client is not sufficient to support the execution of the computing subtask. Therefore, before the server sends the corresponding computing subtask to the third client, it can send a task prompt message to the third client to prompt the third client whether to accept the computing subtask. If the third client confirms the task prompt message, indicating that the third client accepts the computing subtask, the server can send the computing subtask to the third client.
[0085] For example, Fig.10 is a schematic diagram of interaction between a server and a third client provided in an embodiment of the present application, such as Fig.10As shown, the server sends a request carrying task prompt information to the third client, and the third client can respond to the request after receiving the request. In response to the third client's confirmation operation on the task prompt information, the server sends the computing subtask to the third client, otherwise, the computing subtask is not sent to the third client.
[0086] In order to better understand the scene data processing process proposed in the embodiment of the present application, the embodiment of the present application also provides a data flow diagram for multi-person shared editing, such as Fig.11 As shown, the first client and the second client can upload or download various resources to the database in the server. The first client and the second client can edit the currently displayed virtual scene through their respective scene editors, and send the scene description file to the server, which is allocated to other clients by the server to achieve sharing of the editing results. The first client and the second client can also render the model in the virtual scene through their respective scene editors, and send the rendered model to the server, which is allocated to other clients by the server to achieve sharing of rendering resources. The first client and the second client can also send the scene data calculated in the virtual scene to the server, and the server allocates the calculation results to achieve sharing of computing resources. Among them, the database of the server includes texture resources, model resources, material resources and scene resources. Texture resources are commonly used PNG, JPG, ASTC and other image resources. Material resources are the texture rendered by the model. In the rendering program, it is a combination of various visual attributes of the model surface. These visual attributes can refer to the color, texture, smoothness, transparency, reflectivity, refractive index, luminosity, etc. of the surface. For the rendering engine, the material resource is the material file defined in the rendering engine, which contains vertex shaders, fragment shaders, compute shaders, and various lists of enabled functions, such as lighting, shadows, background culling, etc. The scene resource includes a list of scene configurations and a list of created nodes. The scene configuration list includes the scene name, skybox, and Ibl (Image based lighting). The skybox is a cube that wraps the entire scene, showing the world outside the geometry. Ibl is a technology that renders all light sources that do not directly act on objects as a whole ambient light.
[0087] See also Fig.12, an embodiment of the present application also provides a data flow diagram for multiple people to share rendering resources and computing resources. The rendering result of the first client based on the PBR rendering pipeline can be shared with the second client through the server, and the SSBO (Shader Storage Buffer Object) or texture calculated by the second client based on the computing pipeline can be shared with the first client through the server. Among them, the rendering pixel color of the character model in the first virtual scene displayed by the first scene editor can be shared between clients, and the SSBO used for rendering particle effects can also be shared between clients. The SSBO used for particle effects includes the position, color, life cycle, current survival time, etc. of each particle calculated by the computing pipeline. SSBO is readable and writable in the GPU shader, and its size can be determined at compile time. It is generally used for the transfer of processed data between two GPU shaders. The rendering pipeline includes an assembly stage, a geometry stage, a rasterization stage, and a test blending stage. In the assembly stage, the processor will access the data in the memory, such as the vertex information, normals, textures, and rendering status of the object, first store it in its own RAM, and then pass it to the GPU; in the geometry stage, the GPU will convert the input primitive information into two-dimensional vertex coordinates, the depth value corresponding to each vertex, shading and other related information in the output screen space through multiple processes. This stage requires vertex shaders, subdivision shaders, and geometry shaders; in the rasterization stage, the GPU will use the vertex data passed in the geometry stage to generate pixels on the screen and render the final image. This stage requires fragment shaders. In the test blending stage, the GPU performs various tests on the fragments, then blends them, and finally outputs the rendering results of the image. The GPU resources calculated by the compute shader in the compute pipeline can be passed to each stage in the rendering pipeline.
[0088] See also Fig.13, the embodiment of the present application also provides a framework diagram of a scene data processing method. First, on the server side, it includes four parts: resource parameterization configuration, transformation of the rendering engine to support WebGPU, editor implementation, and response request. The client side includes two parts: editor creative operation and dynamic import / export. Finally, after the interaction between the client and the server, multi-person shared editing can be realized, that is, it can realize that multiple clients can edit the same virtual scene, and multiple clients can share rendering resources and computing resources. Among them, resource parameterization configuration is used to configure virtual scenes, which requires texture resources, scene resources, material resources, and model resources. Transforming the rendering engine to support WebGPU is to enable the rendering engine to run across terminals. Editor implementation refers to using the WebGPU-based rendering engine as the bottom layer of the scene editor, and compiling the code file of the rendering engine so that the scene editor can run based on the client. Response request refers to the interaction between the server and the client. Editor creative operation refers to the client editing the virtual scene through the scene editor. Dynamic import / export refers to the client sending the exported scene description file to the server, and the server imports it to another client.
[0089] The embodiment of the present application provides a scene data processing method, and each client can edit the currently displayed virtual scene through its own scene editor. The server can obtain the scene description file uploaded by each client through the scene editor for indicating the scene parameters of the updated virtual scene. The server allocates the scene description files uploaded by each client so that the scene description files updated for the same virtual scene can be synchronously updated to the corresponding client, thereby enabling real-time collaborative editing of the same virtual scene by multiple people, which not only improves the data processing efficiency of the virtual scene, but also improves the development efficiency of the virtual scene.
[0090] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0091] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0092] Fig.14 is a structural diagram of a scene data processing device provided in an embodiment of the present application. Fig.14 , the device comprises:
[0093] The acquisition module 1401 is used to acquire a scene description file uploaded by a first client through a first scene editor, where the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor;
[0094] A first sending module 1402 is used to send prompt information to at least one second client among the multiple clients based on the scene description file, where the prompt information is used to prompt the second client whether to synchronously update the second virtual scene currently displayed by the second scene editor through the second scene editor, where the second virtual scene and the first virtual scene are derived from the same virtual scene;
[0095] The second sending module 1403 is used to send the scene description file to any second client in response to the second client's confirmation operation on the prompt information, so that the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0096] In some embodiments, the first sending module 1402 is used to determine the scene area to which the first virtual scene belongs based on the scene description file; determine at least one second virtual scene that is the same as the scene area to which the first virtual scene belongs; and for any second virtual scene, send prompt information to at least one second client that is currently displaying the second virtual scene.
[0097] In some embodiments, the first sending module 1402 is used to determine at least one second virtual scene associated with the first virtual scene based on the scene description file; for any second virtual scene, send prompt information to at least one second client currently displaying the second virtual scene.
[0098] In some embodiments, Fig.15 is a schematic diagram of the structure of another scene data processing device provided in an embodiment of the present application, see Fig.15 , the device further comprises:
[0099] A determination module 1404 is used to determine, based on the scene description file, a parameter type of a scene parameter of the first virtual scene that is updated, where the parameter type includes a scene structure type for describing a scene structure and a scene model type for describing a scene model;
[0100] The second sending module 1403 is used to send the scene description file to any second client in response to the second client's confirmation operation on the prompt information when the parameter type is a scene structure type, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0101] The second sending module 1403 is also used to render the scene model corresponding to the scene parameter when the parameter type is a scene model type; for any second client, in response to the second client's confirmation operation on the prompt information, the rendered scene model is sent to the second client, and the second client displays the scene model through the second scene editor.
[0102] In some embodiments, continuing to participate Fig.15 , the device further comprises:
[0103] The task division module 1405 is used to respond to the data calculation request sent by the first client, divide the calculation task carried by the data calculation request to obtain at least one calculation subtask, and the calculation task is used to indicate the scene data that needs to be calculated for the first virtual scene;
[0104] A third sending module 1406 is used to send at least one computing subtask to at least one third client, where the third client is a client with idle computing power among the multiple clients, and the at least one third client corresponds to the at least one computing subtask in a one-to-one manner;
[0105] The processing module 1407 is used to process the calculation result of at least one calculation subtask returned by at least one third client to obtain a task result of the calculation task;
[0106] The fourth sending module 1408 is used to send the task result to the first client, and the first client renders the first virtual scene based on the task result through the first scene editor.
[0107] In some embodiments, the third sending module 1406 is used to send task prompt information to any third client, where the task prompt information is used to prompt the third client whether to accept the computing subtask; in response to the third client's confirmation operation on the task prompt information, the computing subtask is sent to the third client.
[0108] In some embodiments, continuing to participate Fig.15 , the device further comprises:
[0109] The engine acquisition module 1409 is used to obtain a code file of a rendering engine based on a network graphics processor from a database in response to an editor acquisition request sent by the first client;
[0110] A compiling module 1410, used to compile the code file into a binary file in the form of a network assembly through a compiler;
[0111] The fifth sending module 1411 is used to send the binary file to the first client, and the first client parses the binary file and displays the editing interface of the first scene editor obtained by the parsing.
[0112] In some embodiments, continuing to participate Fig.15 , the device further comprises:
[0113] The query module 1412 is used to query the database for an initial scene description file corresponding to the scene identifier carried in the scene acquisition request in response to the scene acquisition request sent by the first client through the first scene editor, where the initial scene description file is used to indicate the parameter value of the initial scene parameter of the first virtual scene;
[0114] The sixth sending module 1413 is used to send the initial scene description file to the first client, and the first client constructs the first virtual scene based on the initial scene description file through the first scene editor.
[0115] In some embodiments, the second sending module 1403 is used for obtaining the updated scene parameters of the second virtual scene for any second client in response to the second client's confirmation operation on the prompt information, when it is detected that the scene parameters of the second virtual scene are updated; when the updated scene parameters of the second virtual scene are different from the updated scene parameters of the first virtual scene, sending the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor; when the updated scene parameters of the second virtual scene are the same as the updated scene parameters of the first virtual scene, sending conflict prompt information to the second client, and the conflict prompt information is used to prompt the second client that the updated scene parameters of the first virtual scene conflict with the updated scene parameters of the second virtual scene; in response to the second client's confirmation operation on the conflict prompt information, sending the scene description file to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
[0116] The embodiment of the present application provides a scene data processing device, and each client can edit the currently displayed virtual scene through its own scene editor. The server can obtain the scene description file uploaded by each client through the scene editor for indicating the scene parameters of the updated virtual scene. The server allocates the scene description files uploaded by each client so that the scene description files updated for the same virtual scene can be synchronously updated to the corresponding client, thereby enabling real-time collaborative editing of the same virtual scene by multiple people, which not only improves the data processing efficiency of the virtual scene, but also improves the development efficiency of the virtual scene.
[0117] It should be noted that the device provided in the above embodiment, when implementing its functions, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0118] An embodiment of the present application provides a server, the terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the scene data processing method provided in the above-mentioned various method embodiments.
[0119] Fig.16 The server 1600 in the present application includes at least one or more of the following components: a processor 1610 , a memory 1620 , and at least two wireless links 1630 .
[0120] In some embodiments, the processor 1610 includes one or more processing cores. The processor 1610 uses various interfaces and lines to connect various parts within the entire server 1600, and executes various functions and processes data of the server 1600 by running or executing program codes stored in the memory 1620, and calling data stored in the memory 1620. In some embodiments, the processor 1610 is implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1610 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1610, but may be implemented by a separate chip.
[0121] In some embodiments, the processor 1610 is used to control the working conditions of at least two wireless links 1630. Accordingly, the processor 1610 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (Dual Band Dual Concurrent, DBDC) chip, or a dual-band synchronous (Dual Band Simultaneous, DBS) chip, etc.
[0122] In some embodiments, the memory 1620 includes a random access memory (RAM), and in some embodiments, the memory 1620 includes a read-only memory (ROM). In some embodiments, the memory 1620 includes a non-transitory computer-readable storage medium. The memory 1620 can be used to store program codes. The memory 1620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book) created according to the use of the server 1600, etc.
[0123] In some embodiments, the memory 1620 stores reception schemes for receiving beacon frames of different wireless links 1630, as well as identifiers of access nodes connected to different wireless links 1630, identifiers of wireless links 1630, and the like.
[0124] The at least two wireless links 1630 are used to connect different access points (APs) and receive downlink data sent by the APs, wherein the different access points are access points in the same router or access points in different routers.
[0125] In addition, those skilled in the art will appreciate that the structure of the server 1600 shown in the above figures does not constitute a limitation on the server 1600 , and the server 1600 may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0126] The present application also provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the scene data processing method shown in the above embodiments.
[0127] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the scene data processing method shown in the above embodiments.
[0128] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the scene data processing method shown in the above embodiments.
[0129] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0130] Those skilled in the art can understand that all or part of the steps in the scene data processing method of the above embodiment can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A scene data processing method, characterized in that: Applied to a server, the method comprises: Acquire a scene description file uploaded by a first client through a first scene editor, wherein the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor; Based on the scene description file, a prompt message is sent to at least one second client among the multiple clients, wherein the prompt message is used to prompt the second client whether to synchronously update a second virtual scene currently displayed by the second scene editor through a second scene editor, wherein the second virtual scene and the first virtual scene are derived from the same virtual scene; For any second client, in response to the second client's confirmation operation on the prompt information, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
2. The method according to claim 1, characterized in that The sending prompt information to at least one second client among the multiple clients based on the scene description file includes: Based on the scene description file, determining the scene area to which the first virtual scene belongs; Determine at least one second virtual scene that is the same as the scene area to which the first virtual scene belongs; For any second virtual scene, the prompt information is sent to at least one second client currently displaying the second virtual scene.
3. The method according to claim 1, characterized in that The sending prompt information to at least one second client among the multiple clients based on the scene description file includes: Based on the scene description file, determining at least one second virtual scene associated with the first virtual scene; For any second virtual scene, the prompt information is sent to at least one second client currently displaying the second virtual scene.
4. The method according to claim 1, characterized in that: The method further comprises: Based on the scene description file, determining a parameter type of a scene parameter of the first virtual scene that is updated, the parameter type comprising a scene structure type for describing a scene structure and a scene model type for describing a scene model; For any second client, in response to the second client's confirmation operation on the prompt information, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor, including: In the case where the parameter type is the scene structure type, for any second client, in response to the second client's confirmation operation on the prompt information, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
5. The method according to claim 4, characterized in that The method further comprises: In a case where the parameter type is the scene model type, rendering the scene model corresponding to the scene parameter; For any second client, in response to a confirmation operation of the second client on the prompt information, the rendered scene model is sent to the second client, and the second client displays the scene model through the second scene editor.
6. The method according to claim 1, characterized in that The method further comprises: In response to a data computing request sent by the first client, dividing a computing task carried by the data computing request to obtain at least one computing subtask, wherein the computing task is used to indicate scene data that needs to be calculated for the first virtual scene; Sending the at least one computing subtask to at least one third client, respectively, where the third client is a client with idle computing power among the multiple clients, and the at least one third client corresponds to the at least one computing subtask in a one-to-one manner; Processing the calculation result of the at least one calculation subtask returned by the at least one third client to obtain a task result of the calculation task; The task result is sent to the first client, and the first client renders the first virtual scene based on the task result through the first scene editor.
7. The method according to claim 6, characterized in that The sending the at least one computing subtask to at least one third client respectively includes: For any third client, sending task prompt information to the third client, where the task prompt information is used to prompt the third client whether to accept the computing subtask; In response to a confirmation operation of the third client on the task prompt information, the computing subtask is sent to the third client.
8. The method according to claim 1, characterized in that Before obtaining the scene description file uploaded by the first client through the first scene editor, the method further includes: In response to the editor acquisition request sent by the first client, a code file of a rendering engine based on a network graphics processor is acquired from a database; Compiling the code file into a binary file in the form of a network assembly by a compiler; The binary file is sent to the first client, and the first client parses the binary file and displays an editing interface of the first scene editor obtained by parsing.
9. The method according to claim 8, characterized in that The method further comprises: In response to a scene acquisition request sent by the first client through the first scene editor, querying from a database an initial scene description file corresponding to the scene identifier carried in the scene acquisition request, wherein the initial scene description file is used to indicate parameter values of initial scene parameters of the first virtual scene; The initial scene description file is sent to the first client, and the first client constructs the first virtual scene based on the initial scene description file through the first scene editor.
10. The method according to claim 1, characterized in that The step of sending the scene description file to any second client in response to a confirmation operation of the second client on the prompt information includes: For any second client, in response to a confirmation operation of the second client on the prompt information, when it is detected that the scene parameters of the second virtual scene are updated, acquiring the updated scene parameters of the second virtual scene; When the updated scene parameters of the second virtual scene are different from the updated scene parameters of the first virtual scene, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor; When the updated scene parameters of the second virtual scene are the same as the updated scene parameters of the first virtual scene, sending conflict prompt information to the second client, wherein the conflict prompt information is used to prompt the second client that the updated scene parameters of the first virtual scene conflict with the updated scene parameters of the second virtual scene; In response to the second client's confirmation operation on the conflict prompt information, the scene description file is sent to the second client, and the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
11. A scene data processing device, characterized in that: Applied to a server, the device comprises: an acquisition module, used to acquire a scene description file uploaded by a first client through a first scene editor, wherein the first client is any one of a plurality of clients connected to the server, and the scene description file is used to indicate parameter values of scene parameters updated in a first virtual scene currently displayed by the first scene editor; A first sending module, configured to send prompt information to at least one second client among the multiple clients based on the scene description file, wherein the prompt information is used to prompt the second client whether to synchronously update a second virtual scene currently displayed by the second scene editor through a second scene editor, wherein the second virtual scene and the first virtual scene are derived from the same virtual scene; The second sending module is used to send the scene description file to any second client in response to the second client's confirmation operation on the prompt information, so that the second client synchronously updates the second virtual scene based on the scene description file through the second scene editor.
12. A server, characterized in that: The server includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the scene data processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the scene data processing method according to any one of claims 1 to 10.
14. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip runs on a server, it is used to implement the scene data processing method as described in any one of claims 1 to 10.
15. A computer program product comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the scene data processing method according to any one of claims 1 to 10.
