Cloud rendering packet deployment method, remote server, client and storage medium

By generating and deploying image files on the client and updating the configuration files of the cloud rendering package on the remote server, the problem of fixed functions and poor flexibility in existing cloud rendering technologies is solved, and custom configuration and efficient processing of the rendering program are achieved.

CN119987793AActive Publication Date: 2025-05-13SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510451951.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-05-13
Estimated Expiration
2045-04-11

AI Technical Summary

Technical Problem

In the existing cloud rendering technology, the functions of the cloud service interface are fixed, making it difficult for users to adjust the rendering parameters according to actual needs, resulting in poor flexibility in cloud rendering.

Method used

The mirror file is generated by the client in response to the configuration operation of the renderer and sent to a remote server for container deployment. The remote server receives cloud rendering packages, updates its configuration files, and deploys the updated cloud rendering packages, allowing the cloud rendering package to directly call the rendering program in the image file to handle rendering tasks.

Benefits of technology

It realizes custom configuration and flexible combination of rendering programs, improves the flexibility of cloud rendering, simplifies the deployment process, and improves the efficient execution of rendering tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987793A_ABST
    Figure CN119987793A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud rendering package deployment method, a remote server, a client and a storage medium, and relates to the technical field of cloud rendering, and the method comprises the steps: receiving a mirror image file sent by the client, and deploying the mirror image file through a container, the mirror image file being generated by the client in response to a configuration operation for a rendering program; receiving a cloud rendering package sent by the client, updating a configuration file of the cloud rendering package, and deploying the updated cloud rendering package; a rendering task is received through the deployed cloud rendering package, a rendering program in the mirror image file is called to process the rendering task, and the rendering task is generated by the client in response to a configuration operation for a front-end interface corresponding to the rendering program. According to the method, the cloud rendering package is uploaded to the remote server, so that the related interfaces of the rendering program in the mirror image file can be directly called, the related interfaces are freely combined and called through the cloud rendering package, user-defined rendering is realized, and the flexibility of cloud rendering is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud rendering technology, and in particular to a cloud rendering package deployment method, a remote server, a client, and a storage medium. Background Art

[0002] With the rapid development of cloud computing technology, the way of software development and deployment is also constantly evolving. Many applications have begun to migrate part or all of their functions to the cloud to achieve advantages such as elastic expansion and resource optimization.

[0003] At present, 3D scene rendering methods usually rely on cloud servers, and realize communication between clients and cloud servers through cloud service interfaces predefined by cloud servers, so as to realize scene loading, rendering and interaction. However, the encapsulation of the access interface of the rendering program deployed on the cloud server in the cloud service interface of the cloud server is fixed, and the functions that the cloud service interface can provide are also fixed, which makes it difficult for users to adjust rendering parameters according to actual needs to realize customized rendering, and the flexibility of cloud rendering is poor. Summary of the invention

[0004] The main purpose of this application is to provide a cloud rendering package deployment method, a remote server, a client, and a storage medium, aiming to solve the technical problem of how to improve the flexibility of cloud rendering.

[0005] To achieve the above object, the present application proposes a cloud rendering package deployment method, which is applied to a remote server with a container deployed thereon, and the method includes: Receiving an image file sent by a client, and deploying the image file through a container, wherein the image file is generated by the client in response to a configuration operation for a rendering program; Receive a cloud rendering package sent by the client, update a configuration file of the cloud rendering package, and deploy the updated cloud rendering package; The rendering task is received through the deployed cloud rendering package, and the rendering program in the image file is called to process the rendering task, wherein the rendering task is generated by the client in response to a configuration operation of a front-end interface corresponding to the rendering program.

[0006] In one embodiment, the step of updating the configuration file of the cloud rendering package includes: The Internet Protocol IP address of the remote server is determined as the IP address in the configuration file, and the access port of the image file is determined as the port in the configuration file, wherein the access port is the port of the container.

[0007] In one embodiment, the step of updating the configuration file of the cloud rendering package includes: In response to a configuration operation on a useOneByOne field in the configuration file, a concurrent access support capability of the cloud rendering package is adjusted.

[0008] In one embodiment, after the step of deploying the updated cloud rendering package, the method further includes: In response to a trigger operation on a startup script of the cloud rendering package, detecting an access path of the configuration file; In the case where the access path exists, determining the environment variable of the remote server as the environment variable of the configuration file to obtain the target configuration file; According to the target configuration file, the cloud rendering package is started.

[0009] To achieve the above purpose, the present application proposes a cloud rendering package deployment method, which is applied to a client and includes: In response to a configuration operation for a rendering program, an image file is generated, and the image file is sent to a remote server so that the remote server deploys the image file through a container; Sending a preset cloud rendering package to the remote server, so that the remote server updates the configuration file of the cloud rendering package and deploys the updated cloud rendering package; Display the front-end interface corresponding to the rendering program; In response to the configuration operation for the front-end interface, a rendering task is generated, and the rendering task is sent to a cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls a rendering program in the image file to process the rendering task.

[0010] In one embodiment, the step of generating an image file in response to a configuration operation on a rendering program includes: In response to the configuration operation for the rendering program, the source code corresponding to the rendering program is compiled to obtain an executable file of the source code, and an image file including the executable file and the running dependencies of the executable file is generated, wherein the running dependencies of the executable file are resources required for the running of the executable file.

[0011] In one embodiment, the step of generating an image file in response to a configuration operation on a rendering program includes: In the case where the rendering program is built based on the Web3D engine, in response to a configuration operation on the rendering program, an image file including the Web3D engine and the running dependencies of the Web3D engine is generated, wherein the running dependencies of the Web3D engine are resources required for the running of the Web3D engine.

[0012] In addition, to achieve the above purpose, the present application also proposes a cloud rendering package deployment device, which is applied to a remote server and includes: A deployment module, configured to receive an image file sent by a client, and deploy the image file through a container, wherein the image file is generated by the client in response to a configuration operation for a rendering program; An update module, used to receive the cloud rendering package sent by the client, update the configuration file of the cloud rendering package, and deploy the updated cloud rendering package; A calling module is used to receive a rendering task through the deployed cloud rendering package, and call the rendering program in the image file to process the rendering task, wherein the rendering task is generated by the client in response to a configuration operation of a front-end interface corresponding to the rendering program.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a cloud rendering package deployment device, which is applied to a client and includes: An image file generation module, configured to generate an image file in response to a configuration operation on a rendering program, and send the image file to a remote server so that the remote server deploys the image file through a container; A cloud rendering package sending module, used to send a preset cloud rendering package to the remote server, so that the remote server updates the configuration file of the cloud rendering package and deploys the updated cloud rendering package; A front-end interface display module, used to display the front-end interface corresponding to the rendering program; A rendering task generation module is used to generate a rendering task in response to a configuration operation on the front-end interface, and send the rendering task to a cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls the rendering program in the image file to process the rendering task.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a remote server, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the cloud rendering package deployment method described above.

[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a client, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the cloud rendering package deployment method described above.

[0016] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the cloud rendering package deployment method described above are implemented.

[0017] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the cloud rendering package deployment method described above are implemented.

[0018] One or more technical solutions proposed in the present application have at least the following technical effects: first, a client generates an image file in response to a configuration operation on a rendering program, and by generating a rendering program image, it is convenient to quickly deploy the corresponding rendering program; and the image file is sent to a remote server through the client; and then the image file is received by the remote server, and the image file is deployed through a container. The deployment method of the image file shortens the deployment cycle of the cloud rendering service; and then the cloud rendering package sent by the client is received by the remote server, and its configuration file is updated, and the cloud rendering package is allowed to access the above-deployed image file by deploying the updated cloud rendering package, so as to realize the call of the rendering program in the image file; further, the rendering tasks are received by the deployed cloud rendering package, and these rendering tasks are generated based on the configuration operations performed by the user on the rendering program in the front-end interface, reflecting the rendering needs of the user; and then the rendering program in the previously deployed image file can be called by the cloud rendering package to process the rendering task, thereby ensuring the efficient execution of the rendering task, and the cloud rendering package can directly call the back-end interface in the rendering program without going through the existing cloud service interface, so that the various functions provided by the rendering program can be freely combined, thereby improving the flexibility of cloud rendering. In addition, this application effectively realizes comprehensive customization of rendering services through full-link customization from configuration to rendering, which not only improves the deployment efficiency of rendering services, but also improves the flexibility of cloud rendering, making it easier to meet users' diverse rendering needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1A flowchart of the first embodiment of the cloud rendering package deployment method of the present application is provided; Figure 2 A schematic diagram of the process of generating an image file provided in the third embodiment of the present application; Figure 3 This is an interactive diagram provided in Example 3 of the present application; Figure 4 This is a schematic diagram of the module structure of a cloud rendering package deployment device according to Embodiment 1 of the present application; Figure 5 This is a schematic diagram of the module structure of another cloud rendering package deployment device according to an embodiment of the present application; Figure 6 A schematic diagram of the device structure of the hardware operating environment of the remote server involved in the cloud rendering package deployment method in the embodiment of the present application; Figure 7 This is a schematic diagram of the device structure of the hardware operating environment of the client involved in the cloud rendering package deployment method in the embodiment of the present application. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0024] In this embodiment, for the convenience of description, the following description is made with the terminal as the execution subject.

[0025] Since the conventional cloud rendering solution mainly deploys code to the server through Docker and accesses the existing cloud service interface, the process includes: compiling and packaging the front-end code, creating DockerFile, building the packaged front-end code into an image file; deploying the image file to the server's Docker container through DockerFile; and accessing the server's cloud service interface to achieve video stream rendering. However, the functions provided by the cloud service interface are usually fixed, and it is difficult for ordinary users to modify the configuration of the cloud service interface and achieve customized rendering of the scene. Moreover, when the video stream to be rendered is deployed locally, it cannot access the image file, resulting in failure to complete the rendering.

[0026] The present application provides a solution, wherein a client generates an image file in response to a configuration operation on a rendering program, and by generating a rendering program image, it is convenient to quickly deploy the corresponding rendering program; and the image file is sent to a remote server through the client; and then the image file is received through the remote server, and the image file is deployed through a container, and the deployment method of the image file shortens the deployment cycle of the cloud rendering service; and then the cloud rendering package sent by the client is received through the remote server, and its configuration file is updated, and the cloud rendering package is allowed to access the above-deployed image file by deploying the updated cloud rendering package, so as to realize the call of the rendering program in the image file; further, the rendering tasks are received through the deployed cloud rendering package, and these rendering tasks are generated based on the configuration operations performed by the user on the rendering program in the front-end interface, reflecting the rendering needs of the user; and then the rendering program in the previously deployed image file can be called by the cloud rendering package to process the rendering task, thereby ensuring the efficient execution of the rendering task, and the cloud rendering package can directly call the back-end interface in the rendering program without going through the existing cloud service interface, so that the free combination of various functions provided by the rendering program can be realized, thereby improving the flexibility of cloud rendering. Even if the video stream is deployed locally, it can be uploaded to the cloud rendering package, and the rendering program in the image file can be called on the remote server for rendering processing, thereby completing the rendering of the local video stream.

[0027] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions.

[0028] The following uses a remote server with a container deployed as an example to illustrate this embodiment and the following embodiments. Based on this, the present application embodiment provides a cloud rendering package deployment method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the cloud rendering package deployment method of the present application.

[0029] In this embodiment, the cloud rendering package deployment method includes steps S10 to S30: Step S10, receiving an image file sent by the client, and deploying the image file through a container, wherein the image file is generated by the client in response to a configuration operation for the rendering program; It should be noted that an image file refers to a packaged file that contains an application and its operating environment. It is usually used in containerization technology (such as Docker) to facilitate quick startup and operation on a server.

[0030] Exemplarily, the user can select the image file to be deployed from the image repository or the local end; then the client can send the acquired image file to the remote server; after receiving the image file, the remote server deploys it in a container, loads and runs the image file in the container; then the user or other devices can access the program in the image file through the network.

[0031] Exemplarily, after the Docker container-related environment is installed on the remote server, the remote server can automatically identify the operating system environment corresponding to the received image file, install the corresponding operating system kernel package in Docker, load the image file in Docker and run it, and determine the default port assigned to Docker by the remote server as the access port of the image file; then the user or other device can call the relevant components or pages of the application in the image file by requesting the access port of the remote server.

[0032] Step S20, receiving the cloud rendering package sent by the client, updating the configuration file of the cloud rendering package, and deploying the updated cloud rendering package; It should be noted that the cloud rendering package refers to a software toolkit that encapsulates the cloud rendering function. It is mainly used to provide an API (Application Programming Interface), receive rendering tasks from the client, and call the application in the image file for rendering. After the rendering is completed, the rendering results are returned to the client.

[0033] Exemplarily, the client sends the acquired cloud rendering package to the remote server; after receiving the cloud rendering package, the remote server configures the cloud rendering package, including configuring its IP (Internet Protocol) address and port, to ensure that after the cloud rendering package is started, the image file can be normally called to complete the rendering task, thereby completing the deployment of the cloud rendering package.

[0034] In a feasible implementation, the step of updating the configuration file of the cloud rendering package in step S20 includes: Step S21, determining the Internet Protocol IP address of the remote server as the IP address in the configuration file, and determining the access port as the port in the configuration file.

[0035] For example, in a Linux container, the default port of the container can be determined as the access port of the image file through the "docker run" instruction. For example, through "docker run -p 5173:80 image name", the container's port 80 is first mapped to the remote server's port 5173 through -p, and then the image name to be run is specified; then the user or other device can access the service provided by the corresponding image file in the container through the port of the remote server. Through port mapping, access to the image file in the container is realized, which is convenient for users or other components to call and improves the flexibility of cloud rendering.

[0036] Exemplarily, after receiving the cloud rendering package, the remote server makes corresponding adjustments to the configuration file of the cloud rendering package, including modifying the IP address in the configuration file to the IP address of the remote server, and modifying the port in the configuration file to the access port of the mirror file, so that the cloud rendering package can access the corresponding mirror file by reading the IP address and port in the configuration file, and call the relevant configuration in the mirror file to render the video stream provided by the cloud rendering package; and then after the rendering is completed, the rendering result is returned to the client through the cloud rendering package.

[0037] In this implementation, by adjusting the configuration file of the cloud rendering package, the cloud rendering package can normally access the image file and call the component interface therein to render the video stream, etc., thereby realizing customized rendering.

[0038] Step S30, receiving the rendering task through the deployed cloud rendering package, calling the rendering program in the image file to process the rendering task, wherein the rendering task is generated by the client in response to the configuration operation of the front-end interface corresponding to the rendering program.

[0039] In a feasible embodiment, a front-end interface corresponding to a rendering program is displayed on a client, and the front-end interface refers to an interactive interface including a front-end control corresponding to a back-end interface of the rendering program; a user can determine a video stream to be rendered and a corresponding rendering operation, etc. in the front-end interface; then, after detecting a configuration operation for the front-end interface, the client generates a rendering task according to the configuration operation, and sends the rendering task to a remote server; the remote server receives the rendering task through a cloud rendering package, and respectively calls the video stream reading interface and the corresponding rendering interface in the image file to process the rendering task, and returns the rendering result to the client after the processing is completed.

[0040] It should be noted that the rendering tasks received by the cloud rendering package can come from the client, from the rendering software or rendering service on the remote server, from a web browser, or from other remote servers.

[0041] Exemplarily, when the user determines the video stream to be rendered in the front-end interface, the user can package the local video stream file and upload it to the cloud rendering package through the client, and then directly call the rendering program in the image file through the cloud rendering package to render the video stream, and return the rendering result to the client after the rendering is completed; the user can also send the access interface corresponding to the video stream to the cloud rendering package, and then provide the video stream access interface to the image file through the cloud rendering package, call the rendering program in the image file to read the video stream and process it, and return the rendering result to the client after the rendering is completed.

[0042] This embodiment provides a cloud rendering package deployment method, which realizes direct calling of relevant interfaces in the rendering program by simultaneously deploying the image file and the cloud rendering package corresponding to the rendering program on the remote server, thereby improving the flexibility of cloud rendering, avoiding the execution of fixed rendering operations through predefined cloud service interfaces, and realizing customized rendering.

[0043] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, the step of updating the configuration file of the cloud rendering package in step S20 includes: Step S22, in response to the configuration operation of processing the useOneByOne field one by one in the configuration file, adjusting the concurrent access support capability of the cloud rendering package.

[0044] In a feasible embodiment, a user can modify the useOneByOne field in the configuration file of the cloud rendering package by performing a configuration operation on the useOneByOne field in the configuration file of the cloud rendering package, thereby adjusting the concurrent access support capability of the cloud rendering package; then, after detecting the configuration operation on the useOneByOne field in the configuration file of the cloud rendering package, the cloud server determines the configuration operation as the modified useOneByOne field, for example, modifying the useOneByOne field to false, so that multiple users can access the cloud rendering service at the same time; or, modifying the useOneByOne field to true, the cloud rendering package can only process the rendering task of one user at a time, and other users need to wait until the current user's rendering task is completed before they can use the cloud rendering service.

[0045] Exemplarily, the remote server may also automatically adjust the useOneByOne field according to the current load.

[0046] In this embodiment, the concurrent access support capability of the cloud rendering package is adjusted by modifying the useOneByOne field, thereby achieving concurrent access to the rendering cloud service, so that multiple users can access the cloud rendering service at the same time, reducing the user's waiting time and improving the user's rendering experience.

[0047] In a feasible implementation manner, after the step of deploying the updated cloud rendering package in step S20, the method further includes: Step S211, in response to a trigger operation on a startup script of a cloud rendering package, detecting an access path of a configuration file; Exemplarily, the client may determine the access path of the configuration file by reading the attribute information or log file of the cloud rendering package, and then detect whether the access path exists, that is, whether the corresponding configuration file can be accessed through the access path.

[0048] Step S212, when the access path exists, determining the environment variables of the remote server as the environment variables of the configuration file, and obtaining the target configuration file; In a feasible embodiment, a user can start the cloud rendering service by clicking on the startup script of the cloud rendering package; then, after detecting the trigger operation for the cloud rendering package, the remote server obtains the access path of the configuration file of the cloud rendering package and checks whether the path exists. If the access path does not exist, it means that the cloud rendering package has no configuration file, stops running the script, and prompts the user to add a configuration file for the cloud rendering package and then restart the script; if the access path exists, obtains the environment variables of the current remote server, such as the development environment (dev) or the release environment (release), and sets the environment variables in the configuration file to the environment variables of the current remote server; after the modification is completed, prints the configuration file so that the user can check whether the modification has been completed.

[0049] Step S213, starting the cloud rendering package according to the target configuration file.

[0050] For example, for different environment variables, the settings of the cloud rendering package in the target configuration file are different. In the development environment, the cloud rendering package is set to output debugging information during operation, which is convenient for developers to locate and solve problems that may occur during the rendering process; in the release environment, a stricter access control policy is configured for the cloud rendering package to prevent unauthorized access and data leakage.

[0051] Exemplarily, in addition to starting the cloud rendering package by triggering a script file, the user can also start the cloud rendering package by setting a scheduled start, event-triggered start, and the like.

[0052] In this implementation, by responding to the trigger operation for the startup script, the configuration file path is dynamically obtained, and the cloud rendering package is started according to the configuration file, thereby reducing the user's manual configuration of the environment and ensuring that the cloud rendering package can run normally in different environments.

[0053] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments above can be referred to the above description, and will not be repeated in the following. The following takes the client as the execution subject as an example to illustrate this embodiment. On this basis, the cloud rendering package deployment method includes steps E10 to E40: Step E10, in response to the configuration operation for the rendering program, generating an image file, and sending the image file to a remote server, so that the remote server deploys the image file through a container; Exemplarily, a user writes a rendering program in a code writing program provided by a client, and can directly write the source code or call the relevant interface of the Web3D engine for writing; after writing is completed, the user triggers the relevant configuration operation of the rendering program to generate an image file; then, after detecting the configuration operation for the rendering program, the client exports the rendering program and its running dependencies to obtain the image file.

[0054] It is understandable that containerized deployment through image files can quickly copy and run the same application in a cloud environment without manual installation and configuration of dependencies.

[0055] In a feasible implementation manner, in response to the configuration operation for the rendering program in step E10, the step of generating an image file includes: Step A11, in response to the configuration operation for the rendering program, compile the source code corresponding to the rendering program, obtain the executable file of the source code, and generate an image file including the executable file and the running dependencies of the executable file, wherein the running dependencies of the executable file are the resources required for the running of the executable file.

[0056] It should be noted that compilation refers to the process of converting source code into intermediate code or machine code that can be understood by the computer. These intermediate codes or machine codes constitute executable files. Executable files usually exist in the form of binary files, which contain all the internal logic and internal dependencies of task execution and can be run directly on the target operating system.

[0057] Exemplarily, a user writes source code for rendering a video stream and hopes to deploy it to a remote server after compiling it; then, in response to the configuration operation for the rendering program, the client compiles the source code into an executable file according to the programming language and project type of the source code, identifies and extracts library files that the executable file depends on, packages the executable file and its library files, etc. into an image file, and sends it to the remote server; after receiving the image file, the remote server deploys the image file in a container, and determines the default port of the container as the access port of the image file; the user can quickly access the rendering program by accessing the IP of the remote server and the access port of the image file.

[0058] For example, please refer to Figure 2 In response to the configuration operation for the rendering program, the client checks out the latest code version from the code repository and obtains the source code; after checking out, it determines the address of the image file and outputs the image address; compiles the project and compiles the source code into an executable file; after the project compilation is completed, Docker can be used to build a push image (image file) and send the push image to the remote server.

[0059] In this implementation, by compiling and exporting the source code, an image file containing all necessary components can be generated, thereby simplifying the deployment process and reducing errors.

[0060] In a feasible implementation manner, in response to the configuration operation for the rendering program in step E10, the step of generating an image file includes: Step B11, when the rendering program is built based on the Web3D engine, in response to the configuration operation on the rendering program, an image file including the Web3D engine and the running dependencies of the Web3D engine is generated, wherein the running dependencies of the Web3D engine are resources required for the running of the Web3D engine.

[0061] It should be noted that Web3D engine refers to a type of 3D graphics rendering engine developed based on Web technology, which is used to create and render three-dimensional graphics in the browser, such as WebGL (Web Graphics Library) and WebGPU (WebGraphics Processing Unit). The rendering program is software or code built based on the Web3D engine, and can complete the rendering of the video stream by calling the components contained in the Web3D engine.

[0062] For example, the developer writes a rendering program based on Three.js, defines the 3D scene and model, and after the writing is completed, triggers the client to generate an image file; then, after receiving the trigger operation for the rendering program, the client packages the rendering program and its running dependencies to generate an image file, and sends it to the remote server; after the remote server is deployed, the user can render the acquired video stream by calling the 3D scene and model in the rendering program, or directly customize the rendering of the video stream based on the basic components of Three.js.

[0063] In this implementation, by encapsulating the Web3D application and its running dependencies into an image file, tedious environment adaptation in different environments is avoided, and rapid deployment of the Web3D application in different environments can be achieved.

[0064] It can be understood that the first implementation of step E10 provided above has lower cost and is more time-consuming than the second implementation, so the image file generation efficiency of the first implementation is also higher. Since the basic component design of the second implementation is more perfect than that of the first implementation, the rendering program constructed by the second implementation is more scalable.

[0065] The above are only two feasible implementation methods for obtaining at least one image file in step E10 provided in this embodiment. This embodiment does not specifically limit the specific implementation method for obtaining at least one image file in step E10.

[0066] Step E20, sending the preset cloud rendering package to the remote server, so that the remote server updates the configuration file of the cloud rendering package and deploys the updated cloud rendering package; Step E30, displaying the front-end interface corresponding to the rendering program; Step E40, in response to the configuration operation for the front-end interface, generates a rendering task, and sends the rendering task to the cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls the rendering program in the image file to process the rendering task.

[0067] In a feasible embodiment, in order to facilitate user operation, the client displays a front-end interface, which includes a front-end control corresponding to the back-end interface of the rendering program; the user can upload and render the video stream by manipulating the front-end control; after detecting the configuration operation for the front-end interface, the client generates a rendering task based on the video stream file or video stream access address involved in the configuration operation, and the corresponding rendering operation, and sends the rendering task to the cloud rendering package; the rendering task is then received through the cloud rendering package, and according to the rendering operation contained in the rendering task, the back-end interface corresponding to the rendering program in the image file is called to process the video stream contained in the rendering task.

[0068] In this embodiment, the image file corresponding to the rendering program is generated by the client, so as to quickly complete the deployment; by sending the cloud rendering package to the remote server, the rendering task can be processed by directly calling the relevant interface in the image file, so as to improve the flexibility of cloud rendering.

[0069] For example, to help understand the implementation process of the cloud rendering package deployment method obtained by combining the above-mentioned embodiment 1 and embodiment 2, please refer to Figure 3 , Figure 3 An interactive schematic diagram is provided, specifically: The user executes step S101 to configure the rendering program. The user may configure the rendering program by directly writing source code or by calling relevant components or APIs of the Web3D engine.

[0070] After the user configuration is completed, the client executes S102, and in response to the configuration operation for the rendering program, generates an image file including the rendering program and its running dependencies. In the case where the user configures the rendering program by writing source code, the client compiles the corresponding source code to obtain an executable file, and then exports the executable file and its running dependencies to obtain the corresponding image file; in the case where the user builds a rendering program based on the Web3D engine, the Web3D engine and its running dependencies are directly exported to generate an image file. After obtaining the image file, the client executes S103 to send the image file to the remote server.

[0071] After receiving the image file sent by the client, the remote server executes S104 to deploy the image file in the container and modify the access port of the image file to the default port of the container.

[0072] The client executes S105 to send the preset cloud rendering package to the remote server.

[0073] After receiving the cloud rendering package sent by the client, the remote server executes S106, updates the configuration file of the cloud rendering package, modifies the IP address in the configuration file to the IP address of the remote server, and modifies the port in the configuration file to the access port of the image file determined above, so that the cloud rendering package can directly call the rendering program in the image file to complete the rendering task.

[0074] After the remote server configuration is completed, the user can execute S107 on the front-end interface corresponding to the rendering program to determine the rendering operation for the video stream; then the client executes S108, generates a rendering task in response to the rendering operation for the video stream, and executes S109 to send the rendering task to the remote server.

[0075] After receiving the rendering task sent by the client, the remote server executes S110, parses the rendering task through the cloud rendering package, extracts the video stream that the user wants to render and the corresponding rendering operation, and calls the mirror file to render the video stream according to the rendering operation; after the rendering is completed, the remote server executes S111 and returns the rendering result to the client.

[0076] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the cloud rendering package deployment method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0077] The present application also provides a cloud rendering package deployment device, please refer to Figure 4 The cloud rendering package deployment device is applied to a remote server where a container is deployed, and the device includes: A deployment module 10, configured to receive an image file sent by a client and deploy the image file through a container, wherein the image file is generated by the client in response to a configuration operation for a rendering program; An updating module 20 is used to receive a cloud rendering package sent by a client, update a configuration file of the cloud rendering package, and deploy the updated cloud rendering package; The calling module 30 is used to receive the rendering task through the deployed cloud rendering package, and call the rendering program in the image file to process the rendering task, wherein the rendering task is generated by the client in response to the configuration operation of the front-end interface corresponding to the rendering program.

[0078] The cloud rendering package deployment device provided in the embodiment of the present application adopts the cloud rendering package deployment method in the above embodiment, which can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the cloud rendering package deployment device provided in the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above embodiment, and the other technical features in the cloud rendering package deployment device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0079] The present application also provides a cloud rendering package deployment device, please refer to Figure 5 The cloud rendering package deployment device is applied to the client, and the device includes: An image file generation module 40, for generating an image file in response to a configuration operation for a rendering program, and sending the image file to a remote server so that the remote server deploys the image file through a container; A cloud rendering package sending module 50 is used to send a preset cloud rendering package to a remote server so that the remote server updates a configuration file of the cloud rendering package and deploys the updated cloud rendering package; The front-end interface display module 60 is used to display the front-end interface corresponding to the rendering program; The rendering task generation module 70 is used to generate a rendering task in response to the configuration operation on the front-end interface, and send the rendering task to the cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls the rendering program in the image file to process the rendering task.

[0080] The cloud rendering package deployment device provided in the embodiment of the present application adopts the cloud rendering package deployment method in the above embodiment, which can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the cloud rendering package deployment device provided in the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above embodiment, and the other technical features in the cloud rendering package deployment device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0081] An embodiment of the present application provides a remote server, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cloud rendering package deployment method in the above-mentioned embodiment 1.

[0082] Reference below Figure 6 , which shows a schematic diagram of the structure of a remote server suitable for implementing an embodiment of the present application. The remote server in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The remote server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0083] like Figure 6As shown, the remote server may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the remote server are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. Communication device 1009 can allow remote server to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a remote server with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0084] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0085] The remote server provided in the embodiment of the present application adopts the cloud rendering package deployment method in the above embodiment, which can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the remote server provided in the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above embodiment, and the other technical features in the remote server are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0086] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0087] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0088] An embodiment of the present application provides a client, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cloud rendering package deployment method in the above-mentioned embodiment 1.

[0089] Reference below Figure 7 , which shows a schematic diagram of the structure of a client suitable for implementing the embodiment of the present application. The client in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The client shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0090] like Figure 7As shown, the client may include a processing device 2001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 2002 or a program loaded from a storage device 2003 to a random access memory (RAM: Random Access Memory) 2004. Various programs and data required for the client operation are also stored in the RAM 2004. The processing device 2001, the ROM 2002, and the RAM 2004 are connected to each other via a bus 2005. An input / output (I / O) interface 2006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 2006: an input device 2007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 2008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 2003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 2009. The communication device 2009 can allow the client to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a client with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0091] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 2003, or installed from a ROM 2002. When the computer program is executed by the processing device 2001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0092] The client provided in the embodiment of the present application adopts the cloud rendering package deployment method in the above embodiment, which can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the client provided by the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above embodiment, and the other technical features in the client are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0093] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0094] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0095] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the cloud rendering package deployment method in the above embodiment.

[0096] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0097] The computer-readable storage medium may be included in the remote server and / or the client; or may exist independently without being assembled into the remote server and / or the client.

[0098] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a remote server deployed with a container, the remote server: receives an image file sent by a client, and deploys the image file through the container, wherein the image file is generated by the client in response to a configuration operation on a rendering program; receives a cloud rendering package sent by the client, updates a configuration file of the cloud rendering package, and deploys the updated cloud rendering package; receives a rendering task through the deployed cloud rendering package, and calls the rendering program in the image file to process the rendering task, wherein the rendering task is generated by the client in response to a configuration operation on a front-end interface corresponding to the rendering program.

[0099] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a remote server, the client: generates an image file in response to a configuration operation on a rendering program, and sends the image file to the remote server so that the remote server deploys the image file through a container; sends a preset cloud rendering package to the remote server so that the remote server updates the configuration file of the cloud rendering package and deploys the updated cloud rendering package; displays a front-end interface corresponding to the rendering program; generates a rendering task in response to a configuration operation on the front-end interface, and sends the rendering task to the cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls the rendering program in the image file to process the rendering task.

[0100] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0103] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned cloud rendering package deployment method, and can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above-mentioned embodiment, and will not be repeated here.

[0104] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the cloud rendering package deployment method as described above.

[0105] The computer program product provided in the embodiment of the present application can solve the technical problem of how to improve the flexibility of cloud rendering. Compared with the prior art, the beneficial effects of the computer program product provided in the present application are the same as the beneficial effects of the cloud rendering package deployment method provided in the above embodiment, which will not be repeated here.

[0106] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A cloud rendering package deployment method, characterized in that: The cloud rendering package deployment method is applied to a remote server where a container is deployed, and the method includes: Receiving an image file sent by a client, and deploying the image file through the container, wherein the image file is generated by the client in response to a configuration operation for a rendering program; Receive a cloud rendering package sent by the client, update a configuration file of the cloud rendering package, and deploy the updated cloud rendering package; The rendering task is received through the deployed cloud rendering package, and the rendering program in the image file is called to process the rendering task, wherein the rendering task is generated by the client in response to a configuration operation of a front-end interface corresponding to the rendering program.

2. The cloud rendering package deployment method according to claim 1, characterized in that: The step of updating the configuration file of the cloud rendering package includes: The Internet Protocol IP address of the remote server is determined as the IP address in the configuration file, and the access port of the image file is determined as the port in the configuration file, wherein the access port is the port of the container.

3. The cloud rendering package deployment method according to claim 1, characterized in that: The step of updating the configuration file of the cloud rendering package includes: In response to a configuration operation on a useOneByOne field in the configuration file, a concurrent access support capability of the cloud rendering package is adjusted.

4. The cloud rendering package deployment method according to claim 1, characterized in that: After the step of deploying the updated cloud rendering package, the method further includes: In response to a triggering operation on a startup script of the cloud rendering package, detecting an access path of the configuration file; In the case where the access path exists, determining the environment variable of the remote server as the environment variable of the configuration file to obtain the target configuration file; The cloud rendering package is started according to the target configuration file.

5. A cloud rendering package deployment method, characterized in that: The cloud rendering package deployment method is applied to the client, and the method includes: In response to a configuration operation for a rendering program, an image file is generated, and the image file is sent to a remote server so that the remote server deploys the image file through a container; Sending a preset cloud rendering package to the remote server, so that the remote server updates the configuration file of the cloud rendering package and deploys the updated cloud rendering package; Display the front-end interface corresponding to the rendering program; In response to the configuration operation for the front-end interface, a rendering task is generated, and the rendering task is sent to a cloud rendering package deployed by the remote server, so that the deployed cloud rendering package calls a rendering program in the image file to process the rendering task.

6. The cloud rendering package deployment method according to claim 5, characterized in that: The step of generating an image file in response to a configuration operation on a rendering program includes: In response to the configuration operation for the rendering program, the source code corresponding to the rendering program is compiled to obtain an executable file of the source code, and an image file including the executable file and the running dependencies of the executable file is generated, wherein the running dependencies of the executable file are resources required for the running of the executable file.

7. The cloud rendering package deployment method according to claim 5, characterized in that: The step of generating an image file in response to a configuration operation on a rendering program includes: In the case where the rendering program is built based on the Web3D engine, in response to a configuration operation on the rendering program, an image file including the Web3D engine and the running dependencies of the Web3D engine is generated, wherein the running dependencies of the Web3D engine are resources required for the running of the Web3D engine.

8. A remote server, characterized in that: The remote server includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the cloud rendering package deployment method according to any one of claims 1 to 4.

9. A client, characterized in that: The client comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the cloud rendering package deployment method according to any one of claims 5 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the cloud rendering package deployment method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Access method and device of cloud rendering application service, equipment and medium

    CN115906136A

  • Program deployment method and device and nonvolatile storage medium

    CN117742734A

  • Application deployment method and device in offline environment, electronic equipment and storage medium

    CN117931214A

  • Instant cloud development method and device, equipment and medium

    CN117971170A