CN117950809A - Cloud rendering method, cloud rendering device, electronic device, storage medium and program product - Google Patents
Cloud rendering method, cloud rendering device, electronic device, storage medium and program product Download PDFInfo
- Publication number
- CN117950809A CN117950809A CN202410145433.XA CN202410145433A CN117950809A CN 117950809 A CN117950809 A CN 117950809A CN 202410145433 A CN202410145433 A CN 202410145433A CN 117950809 A CN117950809 A CN 117950809A
- Authority
- CN
- China
- Prior art keywords
- rendering
- image
- virtual machine
- image file
- plug
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 331
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 238000004519 manufacturing process Methods 0.000 description 6
- 238000009434 installation Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 241001239379 Calophysus macropterus Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application provides a cloud rendering method, a cloud rendering device, electronic equipment, a storage medium and a program product, which are used for solving the problem that a large amount of storage space is occupied by a rendering mirror image in the prior art. The method comprises the following steps: receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters; acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image; and creating a target virtual machine based on the image file, and rendering the rendering material based on the target virtual machine. The application can reduce the storage occupation space of the mirror image under the condition of meeting the requirement of users.
Description
Technical Field
The present application relates to the field of rendering technologies, and in particular, to a cloud rendering method, apparatus, electronic device, storage medium, and program product.
Background
When the existing rendering host is created, the rendering mirror image needs to be read, the rendering mirror image mainly comprises a system mirror image, a rendering software mirror image and a rendering plug-in mirror image, different rendering mirror images mainly comprise differences of the rendering software and the rendering plug-in, and the system mirror images at the bottom layers are the same, so that the situation that resources of a plurality of rendering mirror images repeatedly occupy storage space exists. Moreover, because the clients can use different rendering software and plugins in the use process, all client requirements can be met only under the condition that the number of rendering images is the product of the number of rendering software, the number of rendering software versions and the number of rendering plugins, and a large amount of storage space is occupied.
Disclosure of Invention
The embodiment of the application provides a cloud rendering method, a cloud rendering device and electronic equipment, which are used for solving the problem that a large amount of storage space is occupied by a rendering mirror image in the prior art.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a cloud rendering method, including:
Receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters;
Acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image;
And creating a target virtual machine based on the image file, and rendering the rendering material based on the target virtual machine.
In a second aspect, an embodiment of the present application provides a cloud rendering platform, including:
the cloud rendering control console is used for receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters;
the cloud management platform is used for acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image;
The cloud management platform is further used for creating a target virtual machine based on the image file and rendering the rendering materials based on the target virtual machine.
In a third aspect, an embodiment of the present application provides an electronic device, including a transceiver and a processor, where the transceiver is configured to receive a rendering request, where the rendering request carries rendering materials and rendering parameters;
the processor is used for acquiring an image file corresponding to the rendering parameter based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image;
And creating a target virtual machine based on the image file, and rendering the rendering material based on the target virtual machine.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the cloud rendering method as described in the first aspect above.
In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the cloud rendering method according to the first aspect described above.
In a sixth aspect, an embodiment of the present application provides a computer program product comprising computer instructions which, when executed by a processor, implement the steps of the cloud rendering method as described in the first aspect above.
In the embodiment of the application, the cloud rendering method comprises the steps of receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters, acquiring mirror files corresponding to the rendering parameters based on a preset mirror file library, wherein the mirror files comprise a system mirror image, a rendering software mirror image and a rendering plug-in mirror image, creating a target virtual machine based on the mirror files, and rendering the rendering materials based on the target virtual machine, so that the system mirror image, the rendering software mirror image and the rendering plug-in mirror image can be combined and packaged according to three-layer split management according to the system mirror image, the rendering software mirror image and the rendering plug-in mirror image, the actual rendering requirements of a user, the target virtual machine is created, the rendering requirements under multiple scenes are adapted, and the number of mirror image manufacturing can be reduced, and therefore the storage occupation space of the mirror image can be reduced under the condition that the requirements of the user are met.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is one of the flowcharts of a cloud rendering method provided in an embodiment of the present application;
FIG. 2 is a second flowchart of a cloud rendering method according to an embodiment of the present application;
FIG. 3 is an interaction schematic diagram of a cloud rendering platform according to an embodiment of the present application;
FIG. 4 is a third flowchart of a cloud rendering method according to an embodiment of the present application;
FIG. 5 is a schematic illustration of an interface display according to an embodiment of the present application;
FIG. 6 is a second schematic diagram of an interface according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a cloud rendering platform according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the embodiment of the application, a cloud rendering method is provided to solve the problem that a large amount of storage space is occupied by a rendering mirror image in the prior art.
Referring to fig. 1, fig. 1 is one of flowcharts of a cloud rendering method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
Step 101, receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters.
The rendering request may be a request determined by a user requesting at a cloud rendering platform to render the rendering material according to the rendering parameter. The rendering material may be raw resources and data used to create the final image or video, and may include, in particular, 3D models, texture maps, animation data, light settings, camera path information, and other relevant files for the visual effects required to complete the rendering. The above-mentioned rendering parameters may be used to indicate the operating system version, the rendering software version, and the rendering plug-in version required at the time of rendering.
Step 102, acquiring an image file corresponding to the rendering parameter based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image.
The preset image file library may include preset image files, which may be exact copies of an operating system, configuration or software stack, and may include all necessary executions, library files, configuration files and other supporting files in the file system. The system image may include a virtual disk that has been installed and may boot an operating system, the rendering software image may be a virtual disk that includes rendering software alone, and the rendering plug-in image may be a virtual disk that includes a rendering plug-in alone.
It should be noted that, in the embodiment of the present application, the image file required in rendering includes a system image, a rendering software image, and a rendering plug-in image.
And step 103, creating a target virtual machine based on the image file, and rendering the rendering material based on the target virtual machine.
The target virtual machine may be a virtual machine for rendering the rendering material, and after completing the rendering task, the target virtual machine may be logged off.
In the embodiment of the application, the cloud rendering method comprises the steps of receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters, obtaining an image file corresponding to the rendering parameters, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image, creating a target virtual machine based on the image file, and rendering the rendering materials based on the target virtual machine, so that the system image, the rendering software image and the rendering plug-in image can be combined and packaged according to three layers of split management according to the system image, the rendering software image and the rendering plug-in image, the actual rendering requirements of a user, the target virtual machine is created, the rendering requirements under multiple scenes are adapted, the image manufacturing number can be reduced, and the storage occupation space of the image can be reduced under the condition that the user requirements are met.
Optionally, before the image file corresponding to the rendering parameter is acquired based on the preset image file library, the method further includes:
Generating the system mirror image corresponding to a preset operating system;
Creating a first virtual machine based on the system image, and generating a rendering software image corresponding to preset rendering software based on the first virtual machine;
and creating a second virtual machine based on the rendering software image, and generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine.
It should be noted that one operating system may correspond to a plurality of rendering software, one rendering software may correspond to a plurality of rendering plugins, that is, one system image may correspond to a plurality of rendering software images, that is, one rendering software image may correspond to a plurality of rendering plugin images.
Specifically, the preset operating system may be a currently mainstream operating system. The first virtual machine may be created from the system image. The rendering software may include currently mainstream rendering software, or may include rendering software corresponding to a rendering parameter applied by a user.
Specifically, the generation of the system image corresponding to the preset operating system may be creating a virtual machine of the windows operating system, and making a base system image file based on the version. For example, the system image may be a qcow2 format file, and the system image file name may be named by a user, and may be named according to three dimensions of a system name, a version number, and a creation time, for example, windows10 (system name) _22h2 (version number) _20231010 (creation time). Qcow2.
The second virtual machine may be created according to a rendering software image and a system image corresponding to the rendering software image file. The rendering plug-in may include a rendering plug-in of the current main stream, and may also include a rendering plug-in corresponding to a rendering parameter applied by a user.
It should be noted that, the virtual machine image has different formats, which is not limited in the present application, and qcow2 format is only used as an embodiment in the above description. The common raw format, qcow2 format and the like, and compared with the raw format, the qcow2 format mirror image occupies smaller space, supports the characteristics of snapshot, copy-On-Write, AES encryption, zlib compression and the like, but has slightly poorer performance than the raw format mirror image.
Exemplary, fig. 2 is a second flowchart of a cloud rendering method provided by the embodiment of the present application, as shown in fig. 2, the layered mirror image making may specifically include a system mirror image, a rendering software mirror image, and a rendering plug-in mirror image, where the rendering virtual machine creation includes a resource application, that is, a user applies to create a virtual machine for rendering, and mirror image query is performed according to the resource application, that is, a query is performed in the mirror image made by the layered mirror image, and then the queried mirror image is loaded to create a virtual machine for rendering.
In this embodiment, the cloud rendering method includes generating the system image corresponding to a preset operating system, creating a first virtual machine based on the system image, generating the rendering software image corresponding to preset rendering software based on the first virtual machine, creating a second virtual machine based on the rendering software image, and generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine, so that the system image, the rendering software image and the rendering plug-in image of a base required by the rendering virtual machine can be created, and the system image, the rendering software image and the rendering plug-in image can be combined for use according to actual demands of a user when rendering is performed, thereby further improving suitability of an image file.
Optionally, after the generating, based on the second virtual machine, the rendering plug-in image corresponding to a preset rendering plug-in, the method further includes:
And storing the system image, the rendering software image and the rendering plug-in image into the image file library.
Specifically, the image file library may be an image warehouse of the rendering room.
In this embodiment, in the cloud rendering method, the system image, the rendering software image and the rendering plug-in image may be stored in the image file library, so that an image file may be directly obtained from the image file library, and a virtual machine may be created for rendering, so that the rendering efficiency may be improved.
Optionally, the obtaining, based on a preset image file library, an image file corresponding to the rendering parameter includes:
Under the condition that the image file corresponding to the rendering parameters is stored in the image file library, acquiring the image file corresponding to the rendering parameters from the image file library;
And under the condition that the image file corresponding to the rendering parameters is not stored in the image file library, generating the image file corresponding to the rendering parameters.
For example, when a certain rendering plug-in image corresponding to the rendering parameter is not stored in the image library, the rendering plug-in image may be generated according to the foregoing manner of making the rendering plug-in image, and stored in the image file library.
In this embodiment, in the cloud rendering method, when the image file corresponding to the rendering parameter is stored in the image file library, the image file corresponding to the rendering parameter is obtained from the image file library, and when the image file corresponding to the rendering parameter is not stored in the image file library, the image file corresponding to the rendering parameter is generated, so that the image file in the image file library can be called according to the rendering parameter, and further, virtual machine creation is performed, rendering efficiency can be improved, user-defined requirements of a user can be met, and applicability of the cloud rendering method can be improved.
Optionally, after storing the system image, the rendering software image, and the rendering plug-in image in the image file library, the method further comprises:
storing the corresponding relation between the first identification information and the first position information corresponding to the system mirror image, the corresponding relation between the second identification information and the second position information corresponding to the rendering software mirror image, and the corresponding relation between the third identification information and the third position information corresponding to the rendering plug-in mirror image;
the second identification information comprises a first father image identification of the rendering software image, and the first father image identification is used for identifying a system image corresponding to the rendering software image;
the third identification information comprises a second father image identification of the rendering plug-in image, and the second father image identification is used for identifying the rendering plug-in image corresponding to the rendering plug-in image.
Specifically, the first identification information may be a unique identification code corresponding to a system image, the first location information may be a storage location corresponding to a system image, the second identification information may be a unique identification code corresponding to a rendering software image, the second location information may be a storage location corresponding to a rendering software image, the third identification information may be a unique identification code corresponding to a rendering plug-in image, and the third location information may be a storage location corresponding to a rendering plug-in image.
In addition to storing the correspondence relationship, the file name of the image, the alias of the image, and the like may be stored, which is not particularly limited in the present application.
The stored image information may specifically include a unique identifier (20 bits) of the image, a file name of the image, an alias of the image, an identity of a machine room of the image file, a path location of the image file, and a unique identifier (20 bits) of a parent image, where the parent image is a base image corresponding to when the image is made. For example, the parent image of the rendering software image of maya_2020_windows10_22h2_20231010.qcow2 is the system image of Windows 10_22h2_20231010.qcow2.
Taking the foregoing image file as an example, the following three pieces of data information may be stored specifically:
The first piece of data is information of the base system image: 20231010092835000001 (unique identification of mirror image), windows10_22H2_20231010.qcow2 (file name of mirror image), windows10 (alias of mirror image), suzhou (mirror image file room identification), \etc\soft\ (path location of mirror image file), 0 (unique identification of parent mirror image);
The second piece of data is information that renders a software image: 20231010103025000002 (unique identification of image), maya_2020_windows 10_22h2j20231010. Qcow2 (file name of image), maya 2020 (alias of image), suzhou (image file room identification), etc\soft\ (path location of image file), 20231010092835000001 (unique identification of parent image);
The third piece of data is information that renders a plug-in image: 20231010113010000003 (unique identification of mirror image), mtoa _423_maya_2020_windows 10_22h2j20231010. Qcow2 (file name of mirror image), mota.2.3 (alias of mirror image), suzhou (mirror image file room identification), \etc\soft\ (path location of mirror image file), 20231010103025000002 (unique identification of parent mirror image).
In this embodiment, the cloud rendering method may store a correspondence between the first identification information and the first location information corresponding to the system image, a correspondence between the second identification information and the second location information corresponding to the rendering software image, and a correspondence between the third identification information and the third location information corresponding to the rendering plug-in image; the second identification information comprises a first father image identification of the rendering software image, and the first father image identification is used for identifying a system image corresponding to the rendering software image; the third identification information comprises a second father image identification of the rendering plug-in image, and the second father image identification is used for identifying the rendering plug-in image corresponding to the rendering plug-in image, so that when the image file corresponding to the rendering parameter is obtained, query and search can be performed according to the identification information of the image file, and under the condition that the identification information exists, position information is determined according to the identification information, and then the image file is obtained, thereby improving the efficiency of obtaining the image file, when the image file corresponding to the rendering parameter is obtained, the father image identification can be utilized for sequentially searching, and when the target virtual machine is created, the father image file can be sequentially loaded into a memory according to father-son relationship according to the query image file, namely, when the image file is loaded, the father image file is loaded, and then the creation of the virtual machine is completed, thereby further improving the cloud rendering efficiency.
Optionally, the generating, based on the first virtual machine, the rendering software image corresponding to the preset rendering software includes:
Installing preset rendering software in the first virtual machine;
Exporting newly added storage data in the first virtual machine to obtain the rendering software mirror image;
The generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine comprises:
Installing a preset rendering plug-in the second virtual machine;
and exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in mirror image.
For example, a specified version of rendering software is installed in a newly created first virtual machine, the rendering software is started after the installation is completed, it is confirmed that the rendering software can perform production and rendering, then the first virtual machine is closed, the newly added storage data is exported to be a qcow2 format file as a rendering software image file, the image file name can be customized, and the rendering software image file naming can be performed according to the rendering software name, the rendering software version, the operating system name, the operating system version number and the creation time, for example, maya (software name) _2020 (software version) _windows10 (operating system name) _22h2 (operating system version number) _20231010 (creation time) _qcow 2.
And installing a designated version of rendering plugin in the newly created second virtual machine, starting the rendering software and plugin after the installation is completed, confirming that the rendering plugin can be used, closing the second virtual machine, exporting the newly added storage data into a qcow2 format file as a rendering plugin image file, wherein the name of the rendering plugin image file can be customized, and the rendering plugin image file can be named according to the name of the rendering plugin, the version of the rendering plugin, the name of the rendering software, the version of the rendering software, the name of an operating system, the version of the operating system and the creation time, for example Mtoa (plugin name) _423 (plugin version) _maya (rendering software version) _2020 (rendering software version) _Windows10 (operating system name) _22H2 (operating system version number) _20231010 (creation time). Qcow2.
It should be noted that, the virtual machine image has different formats, which is not limited in the present application, and qcow2 format is only used as an embodiment in the above description. The common raw format, qcow2 format and the like, and compared with the raw format, the qcow2 format mirror image occupies smaller space, supports the characteristics of snapshot, copy-On-Write, AES encryption, zlib compression and the like, but has slightly poorer performance than the raw format mirror image.
In this embodiment, in the cloud rendering method, preset rendering software is installed in the first virtual machine, and newly-added storage data in the first virtual machine is exported to obtain a mirror image of the rendering software, and a preset rendering plug-in is installed in the second virtual machine; and exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in mirror image, so that the system mirror image, the rendering software mirror image and the rendering plug-in mirror image can be stored separately and used in combination according to the requirements, the flexibility of using the mirror image file can be improved, and the occupied space of the mirror image file can be reduced under the condition of meeting the requirements.
As a specific embodiment, the cloud rendering method may be applied to a cloud rendering platform, and fig. 3 is an interaction schematic diagram of the cloud rendering platform provided by the embodiment of the present application, as shown in fig. 3, where the cloud rendering platform includes a cloud rendering console, a cloud rendering service platform, and a cloud pipe platform, where the cloud rendering console is configured to receive a rendering request, and the rendering request carries rendering materials and rendering parameters; the cloud management platform is used for acquiring mirror files corresponding to the rendering parameters based on a preset mirror file library, wherein the mirror files comprise a system mirror image, a rendering software mirror image and a rendering plug-in mirror image, and creating a target virtual machine based on the mirror files; and the cloud rendering service platform is used for rendering the rendering materials based on the target virtual machine.
Fig. 4 is a third flowchart of a cloud rendering method according to an embodiment of the present application, as shown in fig. 4, first, a user logs in to a cloud rendering console, and fig. 5 is one of interface display schematic diagrams according to an embodiment of the present application, as shown in fig. 5, a user uploads a rendered material, and after the uploading of the material is completed, clicks a submit button to select a main engineering file in an upload file.
FIG. 6 is a second schematic diagram of interface display provided in an embodiment of the present application, as shown in FIG. 6, a user edits configuration parameters, reads version information and plug-in information of the rendering software from a database according to rendering software selected by the user, selects corresponding rendering software and plug-in information according to production information of materials, and after the user selects the rendering software, performs association query in a mirror image input information table through a mirror image unique identifier corresponding to the rendering software, wherein a query rule is to use the mirror image unique identifier as a parent mirror image unique identifier, query all rendering plug-in information and display all queried rendering plug-in information, and the user performs plug-in selection according to a rendering plug-in used in actual production; if the version images corresponding to the current rendering software and the plugin do not exist, the user can select other versions; if the rendering plug-in information does not exist in the displayed plug-in information list, the user can submit the self-defined rendering plug-in requirement, and the subsequent cloud rendering service platform can manufacture a corresponding rendering plug-in mirror image according to the requirement of the user;
The cloud rendering service platform analyzes the materials, creates a rendering task and sends a virtual machine creating application after the materials are analyzed and prompted to be free of errors, and informs the cloud management platform of name information of rendering plug-ins and rendering software required by the virtual machine;
The cloud management platform applies for physical resources required by creating the virtual machine according to the received information, including a CPU, a memory, a storage and the like, and simultaneously performs data query in a mirror image input information table according to rendering software submitted by the cloud rendering service platform and rendering plug-in name information, if a rendering plug-in selected by a user is Mtoa.2.3, queries the corresponding rendering plug-in detail information in the mirror image input information table according to the rendering plug-in name, queries the position of a corresponding mirror image, a mirror image file name, a father mirror image identifier, queries father mirror image information according to the father mirror image identifier until the queried father mirror image identifier is 0, and sequentially records the mirror image information;
The cloud management platform creates a virtual machine, the queried image files are loaded into the memory according to the father-son relationship, namely, the father image files are loaded firstly during loading, then the son image files are loaded, the creation of the virtual machine is completed, and after the virtual machine is started, task control software registers with the cloud rendering service platform;
The cloud rendering service platform distributes rendering tasks to the task control software, the virtual machine executes the rendering tasks, and the cloud rendering service platform is notified after the tasks are completed;
After all the rendering tasks are completed, the cloud rendering service platform informs the cloud management platform to log out the virtual machine.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a cloud rendering platform according to an embodiment of the present application, and as shown in fig. 7, a cloud rendering platform 700 includes:
A cloud rendering console 701 for receiving a rendering request, the rendering request carrying rendering materials and rendering parameters;
The cloud management platform 702 is configured to obtain an image file corresponding to the rendering parameter based on a preset image file library, where the image file includes a system image, a rendering software image, and a rendering plug-in image;
The cloud management platform 702 is further configured to create a target virtual machine based on the image file;
The cloud rendering service platform 703 is configured to render the rendering material based on the target virtual machine.
Optionally, the cloud rendering platform 700 further includes:
the first generation module is used for generating the system image corresponding to a preset operating system;
The second generation module is used for creating a first virtual machine based on the system image and generating a rendering software image corresponding to preset rendering software based on the first virtual machine;
and the third generation module is used for creating a second virtual machine based on the rendering software image and generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine.
Optionally, the cloud rendering platform 700 further includes:
The first storage module is used for storing the system image, the rendering software image and the rendering plug-in image into the image file library.
Optionally, the cloud tube platform 702 includes:
The acquisition unit is used for acquiring the image file corresponding to the rendering parameter from the image file library under the condition that the image file corresponding to the rendering parameter is stored in the image file library;
the generation unit is used for generating the image file corresponding to the rendering parameter under the condition that the image file corresponding to the rendering parameter is not stored in the image file library.
Optionally, the cloud rendering platform 700 further includes:
The second storage module is used for storing the corresponding relation between the first identification information and the first position information corresponding to the system mirror image, the corresponding relation between the second identification information and the second position information corresponding to the rendering software mirror image and the corresponding relation between the third identification information and the third position information corresponding to the rendering plug-in mirror image;
the second identification information comprises a first father image identification of the rendering software image, and the first father image identification is used for identifying a system image corresponding to the rendering software image;
the third identification information comprises a second father image identification of the rendering plug-in image, and the second father image identification is used for identifying the rendering plug-in image corresponding to the rendering plug-in image.
Optionally, the second generating module includes:
the first installation unit is used for installing preset rendering software in the first virtual machine;
The first exporting unit is used for exporting newly added storage data in the first virtual machine to obtain the rendering software mirror image;
the third generation module includes:
the second installation unit is used for installing a preset rendering plug-in the second virtual machine;
and the second export unit is used for exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in mirror image.
Specifically, referring to fig. 8, an embodiment of the present application further provides an electronic device, including a bus 801, a transceiver 802, an antenna 803, a bus interface 804, a processor 805, and a memory 806.
A transceiver 802 for receiving a rendering request, the rendering request carrying rendering material and rendering parameters;
Further, the processor 805 is configured to obtain an image file corresponding to the rendering parameter based on a preset image file library, where the image file includes a system image, a rendering software image, and a rendering plug-in image;
and the rendering module is used for creating a target virtual machine based on the image file and rendering the rendering material based on the target virtual machine.
In fig. 8, a bus architecture (represented by bus 801), the bus 801 may include any number of interconnected buses and bridges, with the bus 801 linking together various circuits, including one or more processors, as represented by the processor 805, and memory, as represented by the memory 806. The bus 801 may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. Bus interface 804 provides an interface between bus 801 and transceiver 802. The transceiver 802 may be one element or may be multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 805 is transmitted over a wireless medium via the antenna 803, and further, the antenna 803 also receives data and transmits the data to the processor 805.
The processor 805 is responsible for managing the bus 801 and general processing, and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 806 may be used to store data used by the processor 805 in performing operations.
Alternatively, the processor 805 may be a central processing unit (Central Processing Unit, CPU), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), or complex Programmable logic device (Complex Programmable Logic Device, CPLD).
Optionally, the processor 805 is further configured to:
Generating the system mirror image corresponding to a preset operating system;
Creating a first virtual machine based on the system image, and generating a rendering software image corresponding to preset rendering software based on the first virtual machine;
and creating a second virtual machine based on the rendering software image, and generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine.
Optionally, the processor 805 is further configured to:
And storing the system image, the rendering software image and the rendering plug-in image into the image file library.
Optionally, the processor 805 is specifically configured to:
Under the condition that the image file corresponding to the rendering parameters is stored in the image file library, acquiring the image file corresponding to the rendering parameters from the image file library;
And under the condition that the image file corresponding to the rendering parameters is not stored in the image file library, generating the image file corresponding to the rendering parameters.
Optionally, the processor 805 is further configured to:
storing the corresponding relation between the first identification information and the first position information corresponding to the system mirror image, the corresponding relation between the second identification information and the second position information corresponding to the rendering software mirror image, and the corresponding relation between the third identification information and the third position information corresponding to the rendering plug-in mirror image;
the second identification information comprises a first father image identification of the rendering software image, and the first father image identification is used for identifying a system image corresponding to the rendering software image;
the third identification information comprises a second father image identification of the rendering plug-in image, and the second father image identification is used for identifying the rendering plug-in image corresponding to the rendering plug-in image.
Optionally, the processor 805 is specifically configured to:
Installing preset rendering software in the first virtual machine;
Exporting newly added storage data in the first virtual machine to obtain the rendering software mirror image;
the processor 805 is specifically configured to:
Installing a preset rendering plug-in the second virtual machine;
and exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in mirror image.
The embodiment of the application also provides electronic equipment, which comprises: the cloud rendering method comprises a processor, a memory and a program which is stored in the memory and can run on the processor, wherein the program realizes the processes of the cloud rendering method embodiment when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, and the description is omitted here.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the cloud rendering method embodiment described above, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application also provides a computer program product, which comprises computer instructions, wherein the computer instructions realize the processes of the cloud rendering method embodiment when being executed by a processor, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (10)
1.A cloud rendering method, comprising:
Receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters;
Acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image;
And creating a target virtual machine based on the image file, and rendering the rendering material based on the target virtual machine.
2. The method of claim 1, wherein prior to the obtaining an image file corresponding to the rendering parameter based on the preset image file library, the method further comprises:
Generating the system mirror image corresponding to a preset operating system;
Creating a first virtual machine based on the system image, and generating a rendering software image corresponding to preset rendering software based on the first virtual machine;
and creating a second virtual machine based on the rendering software image, and generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine.
3. The method of claim 2, wherein after the generating the rendering plug-in image corresponding to a preset rendering plug-in based on the second virtual machine, the method further comprises:
And storing the system image, the rendering software image and the rendering plug-in image into the image file library.
4. The method of claim 1, wherein the obtaining, based on the preset image file library, an image file corresponding to the rendering parameter includes:
Under the condition that the image file corresponding to the rendering parameters is stored in the image file library, acquiring the image file corresponding to the rendering parameters from the image file library;
And under the condition that the image file corresponding to the rendering parameters is not stored in the image file library, generating the image file corresponding to the rendering parameters.
5. The method of claim 3, wherein after storing the system image, the rendering software image, and the rendering plug-in image in the image file library, the method further comprises:
storing the corresponding relation between the first identification information and the first position information corresponding to the system mirror image, the corresponding relation between the second identification information and the second position information corresponding to the rendering software mirror image, and the corresponding relation between the third identification information and the third position information corresponding to the rendering plug-in mirror image;
the second identification information comprises a first father image identification of the rendering software image, and the first father image identification is used for identifying a system image corresponding to the rendering software image;
the third identification information comprises a second father image identification of the rendering plug-in image, and the second father image identification is used for identifying the rendering plug-in image corresponding to the rendering plug-in image.
6. The method of claim 2, wherein the generating the rendering software image corresponding to a preset rendering software based on the first virtual machine comprises:
Installing preset rendering software in the first virtual machine;
Exporting newly added storage data in the first virtual machine to obtain the rendering software mirror image;
The generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine comprises:
Installing a preset rendering plug-in the second virtual machine;
and exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in mirror image.
7. A cloud rendering platform, comprising:
the cloud rendering control console is used for receiving a rendering request, wherein the rendering request carries rendering materials and rendering parameters;
the cloud management platform is used for acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file comprises a system image, a rendering software image and a rendering plug-in image;
The cloud management platform is further used for creating a target virtual machine based on the mirror image file;
And the cloud rendering service platform is used for rendering the rendering materials based on the target virtual machine.
8. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the cloud rendering method according to any of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cloud rendering method according to any of claims 1 to 6.
10. A computer program product comprising computer instructions which, when executed by a processor, implement the steps of the cloud rendering method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410145433.XA CN117950809A (en) | 2024-02-01 | 2024-02-01 | Cloud rendering method, cloud rendering device, electronic device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410145433.XA CN117950809A (en) | 2024-02-01 | 2024-02-01 | Cloud rendering method, cloud rendering device, electronic device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117950809A true CN117950809A (en) | 2024-04-30 |
Family
ID=90804752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410145433.XA Pending CN117950809A (en) | 2024-02-01 | 2024-02-01 | Cloud rendering method, cloud rendering device, electronic device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117950809A (en) |
-
2024
- 2024-02-01 CN CN202410145433.XA patent/CN117950809A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106843828B (en) | Interface display and loading method and device | |
CN108513657B (en) | Data conversion method and backup server | |
CN110716783A (en) | Front-end page generation and deployment method and device, storage medium and equipment | |
CN111897623B (en) | Cluster management method, device, equipment and storage medium | |
US20190102465A1 (en) | Api query extension | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN114465937A (en) | Network card testing method, device, server, medium, and computer program product | |
CN110347946A (en) | A kind of page display method, device, computer equipment and storage medium | |
CN112035163A (en) | Software development kit configuration method, device and storage medium | |
CN111654542B (en) | Proxy server, execution server, reception device, and task execution method | |
CN112134908B (en) | Application adaptation method, server, medium and vehicle-mounted multimedia system | |
CN116737127A (en) | Low code development method, device, equipment and storage medium | |
CN114063958B (en) | Page split screen display method and device | |
CN115617780A (en) | Data import method, device, equipment and storage medium | |
CN116257438A (en) | Updating method of interface test case and related equipment | |
CN113791766B (en) | Method for combining data interfaces, electronic device and readable storage medium | |
CN112579877B (en) | Control method, device, storage medium and equipment of information source system | |
CN116301950B (en) | Docker image generation method, device, equipment and storage medium | |
CN115129574A (en) | Code testing method and device | |
CN113688102A (en) | File name modification method and device and storage medium | |
CN116468062A (en) | Page display method and device based on graphic code | |
CN117950809A (en) | Cloud rendering method, cloud rendering device, electronic device, storage medium and program product | |
CN113434190B (en) | Data processing method and device, storage medium and electronic equipment | |
CN113704120A (en) | Data transmission method, device, equipment and storage medium | |
CN108920658B (en) | Mobile device desktop moving method and device and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |