CN117950809A - Cloud rendering method, device, electronic device, storage medium and program product - Google Patents

Cloud rendering method, device, electronic device, storage medium and program product Download PDF

Info

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
plug
image file
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
Application number
CN202410145433.XA
Other languages
Chinese (zh)
Inventor
邓炳峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202410145433.XA priority Critical patent/CN117950809A/en
Publication of CN117950809A publication Critical patent/CN117950809A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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

云渲染方法、装置、电子设备、存储介质和程序产品Cloud rendering method, device, electronic device, storage medium and program product

技术领域Technical Field

本申请涉及渲染技术领域,特别涉及一种云渲染方法、装置、电子设备、存储介质和程序产品。The present application relates to the field of rendering technology, and in particular to a cloud rendering method, device, electronic device, storage medium and program product.

背景技术Background technique

现有的渲染主机创建时需要读取渲染镜像,渲染镜像主要包含系统镜像、渲染软件镜像和渲染插件镜像,不同的渲染镜像主要是渲染软件和渲染插件的差异,而底层的系统镜像是相同的,因此多个渲染镜像存在资源重复占用存储空间的情况。而且,由于客户在使用过程中会使用不同的渲染软件和插件,因此只有在渲染镜像的数量为渲染软件个数、渲染软件版本数量和渲染插件数量的乘积的情况下,才可以满足所有客户需求,导致大量存储空间的占用。When creating an existing rendering host, it is necessary to read the rendering image. The rendering image mainly includes the system image, rendering software image, and rendering plug-in image. Different rendering images are mainly different in rendering software and rendering plug-ins, while the underlying system image is the same. Therefore, multiple rendering images have the situation where resources are repeatedly occupied by storage space. Moreover, since customers will use different rendering software and plug-ins during use, all customer needs can only be met when 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 plug-ins, resulting in a large amount of storage space being occupied.

发明内容Summary of the invention

本申请实施例提供一种云渲染方法、装置及电子设备,以解决现有技术中渲染镜像占用大量存储空间的问题。The embodiments of the present application provide a cloud rendering method, device and electronic device to solve the problem in the prior art that rendering images occupy a large amount of storage space.

为解决上述技术问题,本申请是这样实现的:To solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供一种云渲染方法,包括:In a first aspect, an embodiment of the present application provides a cloud rendering method, including:

接收渲染请求,所述渲染请求携带渲染素材和渲染参数;Receive a rendering request, wherein the rendering request carries rendering material and rendering parameters;

基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;Based on a preset image file library, an image file corresponding to the rendering parameter is obtained, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image;

基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。A target virtual machine is created based on the image file, and the rendering material is rendered 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 console is used to receive a rendering request, wherein the rendering request carries rendering materials and rendering parameters;

云管平台,用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;A cloud management platform, for acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image;

所述云管平台,还用于基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。The cloud management platform is further used to create a target virtual machine based on the image file, and render the rendering material 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, wherein the transceiver is used to receive a rendering request, wherein the rendering request carries a rendering material and a rendering parameter;

所述处理器,用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;The processor is used to obtain an image file corresponding to the rendering parameter based on a preset image file library, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image;

基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。A target virtual machine is created based on the image file, and the rendering material is rendered based on the target virtual machine.

第四方面,本申请实施例提供一种电子设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上述第一方面所述的云渲染方法的步骤。In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the cloud rendering method described in the first aspect above are implemented.

第五方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的云渲染方法的步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cloud rendering method described in the first aspect above are implemented.

第六方面,本申请实施例提供一种计算机程序产品,包括计算机指令,所述计算机指令被处理器执行时实现如上述第一方面所述的云渲染方法的步骤。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 an embodiment of the present application, the cloud rendering method includes receiving a rendering request, the rendering request carries rendering material and rendering parameters, obtaining an image file corresponding to the rendering parameters based on a preset image file library, the image file including 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 material based on the target virtual machine. In this way, the system image, the rendering software image and the rendering plug-in image can be combined and packaged according to the actual rendering needs of the user by splitting and managing the three layers according to the system image, the rendering software image and the rendering plug-in image, creating a target virtual machine, adapting to the rendering needs in multiple scenarios, and thereby reducing the number of images produced, thereby reducing the storage space occupied by the image while meeting the user's needs.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

图1是本申请实施例提供的一种云渲染方法的流程图之一;FIG1 is a flow chart of a cloud rendering method provided in an embodiment of the present application;

图2是本申请实施例提供的一种云渲染方法的流程图之二;FIG. 2 is a second flowchart of a cloud rendering method provided in an embodiment of the present application;

图3是本申请实施例提供的一种云渲染平台的交互示意图;FIG3 is an interactive schematic diagram of a cloud rendering platform provided in an embodiment of the present application;

图4是本申请实施例提供的一种云渲染方法的流程图之三;FIG4 is a third flowchart of a cloud rendering method provided in an embodiment of the present application;

图5是本申请实施例提供的一种界面显示示意图之一;FIG5 is one of the interface display schematic diagrams provided in an embodiment of the present application;

图6是本申请实施例提供的一种界面显示示意图之二;FIG6 is a second schematic diagram of an interface display provided in an embodiment of the present application;

图7是本申请实施例提供的一种云渲染平台的结构示意图;FIG7 is a schematic diagram of the structure of a cloud rendering platform provided in an embodiment of the present application;

图8是本申请实施例提供的一种电子设备的结构示意图。FIG8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本申请实施例中,提出了一种云渲染方法,以解决现有技术中渲染镜像占用大量存储空间的问题。In an embodiment of the present application, a cloud rendering method is proposed to solve the problem in the prior art that the rendering image occupies a large amount of storage space.

参见图1,图1是本申请实施例提供的一种云渲染方法的流程图之一,如图1所示,所述方法包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flow chart of a cloud rendering method provided in an embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:

步骤101、接收渲染请求,所述渲染请求携带渲染素材和渲染参数。Step 101: Receive a rendering request, where the rendering request carries rendering material and rendering parameters.

上述渲染请求可以是用户在云渲染平台请求确定的对所述渲染素材按照所述渲染参数进行渲染的请求。上述渲染素材可以是用于创建最终图像或视频的原始资源和数据,具体可以包括3D模型、纹理贴图、动画数据、灯光设置、相机路径信息以及其他为了完成渲染所需的视觉效果的相关文件。上述渲染参数可以是用于指示渲染时所需的操作系统版本、渲染软件版本以及渲染插件版本。The rendering request may be a request determined by a user on a cloud rendering platform to render the rendering material according to the rendering parameters. The rendering material may be the original resources and data used to create the final image or video, and may specifically include 3D models, texture maps, animation data, lighting settings, camera path information, and other related files for completing the visual effects required for rendering. The rendering parameters may be used to indicate the operating system version, rendering software version, and rendering plug-in version required for rendering.

步骤102、基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像。Step 102: Based on a preset image file library, an image file corresponding to the rendering parameters is obtained, where the image file includes 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 an exact copy of a certain operating system, configuration or software stack, and may include all necessary executable programs, 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 can start the operating system, the rendering software image may be a virtual disk that includes the rendering software alone, and the rendering plug-in image may be a virtual disk that includes the rendering plug-in alone.

需要说明的是,在本申请实施例中,渲染时所需的镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像。It should be noted that, in the embodiment of the present application, the image files required for rendering include a system image, a rendering software image, and a rendering plug-in image.

步骤103、基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。Step 103: Create a target virtual machine based on the image file, and render the rendering material based on the target virtual machine.

上述目标虚拟机可以是用于对所述渲染素材进行渲染的虚拟机,在完成渲染任务之后,所述目标虚拟机可以被注销。The target virtual machine may be a virtual machine used to render the rendering material. After the rendering task is completed, the target virtual machine may be deregistered.

本申请实施例中,上述云渲染方法包括接收渲染请求,所述渲染请求携带渲染素材和渲染参数,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像,基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染,这样,可以通过按照根据系统镜像、渲染软件镜像和渲染插件镜像三层拆分管理,根据用户的实际渲染需求对系统镜像、渲染软件镜像和渲染插件镜像进行组合打包,创建目标虚机,适配多场景下的渲染需求,进而可以减少镜像制作个数,从而能够在满足用户需求的情况下减少镜像的存储占用空间。In an embodiment of the present application, the cloud rendering method includes receiving a rendering request, the rendering request carries rendering material and rendering parameters, obtaining an image file corresponding to the rendering parameters, the image file including 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 material based on the target virtual machine. In this way, the system image, the rendering software image and the rendering plug-in image can be combined and packaged according to the actual rendering needs of the user by splitting and managing the three layers according to the system image, the rendering software image and the rendering plug-in image, creating a target virtual machine, adapting to the rendering needs in multiple scenarios, and thereby reducing the number of images produced, thereby reducing the storage space occupied by the image while meeting the user's needs.

可选地,在所述基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件之前,所述方法还包括:Optionally, before acquiring the image file corresponding to the rendering parameter based on the preset image file library, the method further includes:

生成与预设的操作系统对应的所述系统镜像;Generate the system image corresponding to the preset operating system;

基于所述系统镜像创建第一虚拟机,并基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像;Creating a first virtual machine based on the system image, and generating the rendering software image corresponding to the preset rendering software based on the first virtual machine;

基于所述渲染软件镜像创建第二虚拟机,并基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像。A second virtual machine is created based on the rendering software image, and the rendering plug-in image corresponding to the preset rendering plug-in is generated based on the second virtual machine.

需要说明的是,一个操作系统可以对应多个渲染软件,一个渲染软件可以对应多个渲染插件,也即一个系统镜像可以对应多个渲染软件镜像,也即一个渲染软件镜像可以对应多个渲染插件镜像。It should be noted that one operating system can correspond to multiple rendering software, and one rendering software can correspond to multiple rendering plug-ins, that is, one system image can correspond to multiple rendering software images, that is, one rendering software image can correspond to multiple rendering plug-in images.

具体地,上述预设的操作系统可以是当前主流的操作系统。上述第一虚拟机可以是根据所述系统镜像创建得到的。上述渲染软件可以包括当前主流的渲染软件,也可以包括用户申请的渲染参数对应的渲染软件。Specifically, the preset operating system may be a current mainstream operating system. The first virtual machine may be created based on the system image. The rendering software may include current mainstream rendering software, or may include rendering software corresponding to rendering parameters applied by a user.

具体地,上述生成与预设的操作系统对应的所述系统镜像可以是创建windows操作系统的虚拟机,制作基于此版本的基础系统镜像文件。示例性的,系统镜像可以采用qcow2格式文件,系统镜像文件名称可自定义命名,可以按照系统名称、版本号、创建时间三个维度进行系统镜像文件命名,例如,Windows10(系统名称)_22H2(版本号)_20231010(创建时间).qcow2。Specifically, the system image corresponding to the preset operating system can be generated by creating a virtual machine of the Windows operating system and making a basic system image file based on this version. Exemplarily, the system image can be a qcow2 format file, and the system image file name can be customized. The system image file can be named according to the three dimensions of system name, version number, and creation time, for example, Windows10 (system name)_22H2 (version number)_20231010 (creation time).qcow2.

上述第二虚拟机可以是根据渲染软件镜像以及渲染软件镜像文件对应的系统镜像创建得到的。上述渲染插件可以包括当前主流的渲染插件,也可以包括用户申请的渲染参数对应的渲染插件。The second virtual machine may be created based on the rendering software image and the system image corresponding to the rendering software image file. The rendering plug-in may include a current mainstream rendering plug-in or a rendering plug-in corresponding to the rendering parameters requested by the user.

需要说明的是,虚拟机镜像具有不同格式,本申请对此不作具体限定,上述说明仅以qcow2格式作为实施例。常见的有raw格式和qcow2格式等,qcow2格式镜像相比raw格式,具有占用更小的空间,支持快照、Copy-On-Write、AES加密、zlib压缩等特性,但性能略逊于raw格式镜像。It should be noted that virtual machine images have different formats, which are not specifically limited in this application. The above description only uses the qcow2 format as an example. Common formats include raw format and qcow2 format. Compared with the raw format, the qcow2 format image occupies less space and supports snapshots, Copy-On-Write, AES encryption, zlib compression and other features, but its performance is slightly inferior to the raw format image.

示例性的,图2是本申请实施例提供的一种云渲染方法的流程图之二,如图2所示,分层镜像制作具体可以包括系统镜像、渲染软件镜像和渲染插件镜像,渲染虚机创建包括资源申请,即用户申请创建虚机进行渲染,根据资源申请进行镜像查询,即在分层镜像制作得到的镜像中查询,进而将查询到的镜像进行加载,以创建虚拟机,进行渲染。Exemplarily, Figure 2 is the second flowchart of a cloud rendering method provided by an embodiment of the present application. As shown in Figure 2, layered image production can specifically include system images, rendering software images, and rendering plug-in images. The creation of a rendering virtual machine includes resource application, that is, the user applies to create a virtual machine for rendering, and performs image query based on the resource application, that is, querying in the image obtained by layered image production, and then loading the queried image to create a virtual machine for rendering.

该实施方式中,上述云渲染方法包括生成与预设的操作系统对应的所述系统镜像,基于所述系统镜像创建第一虚拟机,并基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像,基于所述渲染软件镜像创建第二虚拟机,并基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像,这样,可以通过创建渲染虚拟机所需的基础的系统镜像、渲染软件镜像和渲染插件镜像,进而可以在进行渲染时根据用户的实际需求对系统镜像、渲染软件镜像和渲染插件镜像进行组合使用,从而能够进一步提高镜像文件的适配性。In this embodiment, the above-mentioned cloud rendering method includes generating the system image corresponding to the preset operating system, creating a first virtual machine based on the system image, and generating the rendering software image corresponding to the 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 the preset rendering plug-in based on the second virtual machine. In this way, by creating the basic system image, rendering software image and rendering plug-in image required for the rendering virtual machine, the system image, rendering software image and rendering plug-in image can be combined and used according to the actual needs of the user during rendering, thereby further improving the adaptability of the image file.

可选地,在所述基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像之后,所述方法还包括:Optionally, after generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine, the method further includes:

将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中。The system image, the rendering software image and the rendering plug-in image are stored in the image file library.

具体地,上述镜像文件库可以是渲染机房的镜像仓库。Specifically, the above-mentioned image file library may be an image warehouse of a rendering room.

该实施方式中,上述云渲染方法可以通过将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中,使得可以直接从所述镜像文件库获取镜像文件,进行渲染虚机创建,从而能够提高渲染的效率。In this implementation, the cloud rendering method can store the system image, the rendering software image and the rendering plug-in image in the image file library, so that the image file can be directly obtained from the image file library to create a rendering virtual machine, thereby improving the rendering efficiency.

可选地,所述基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件包括:Optionally, the acquiring, based on a preset image file library, an image file corresponding to the rendering parameter comprises:

在所述镜像文件库中存储所述渲染参数对应的镜像文件的情况下,从所述镜像文件库获取与所述渲染参数对应的镜像文件;In a case where the image file corresponding to the rendering parameter is stored in the image file library, acquiring the image file corresponding to the rendering parameter from the image file library;

在所述镜像文件库中未存储所述渲染参数对应的镜像文件的情况下,生成所述渲染参数对应的镜像文件。In a case where the image file corresponding to the rendering parameter is not stored in the image file library, an image file corresponding to the rendering parameter is generated.

示例性的,在所述镜像库中未存储所述渲染参数对应的某一渲染插件镜像的情况下,可以按照前述制作渲染插件镜像的方式生成所述渲染插件镜像,并存储至所述镜像文件库中。Exemplarily, when a certain rendering plug-in image corresponding to the rendering parameter is not stored in the image library, the rendering plug-in image can be generated in the aforementioned manner of making a rendering plug-in image and stored in the image file library.

该实施方式中,上述云渲染方法可以在所述镜像文件库中存储所述渲染参数对应的镜像文件的情况下,从所述镜像文件库获取与所述渲染参数对应的镜像文件,在所述镜像文件库中未存储所述渲染参数对应的镜像文件的情况下,生成所述渲染参数对应的镜像文件,使得可以根据所述渲染参数对在所述镜像文件库中对镜像文件进行调用,进而进行渲染虚机创建,能够提高渲染的效率,还可以满足用户的自定义需求,从而能够提高所述云渲染方法的适用性。In this implementation, the above-mentioned cloud rendering method can obtain the image file corresponding to the rendering parameters from the image file library when the image file corresponding to the rendering parameters is stored in the image file library, and generate the image file corresponding to the rendering parameters when the image file corresponding to the rendering parameters is not stored in the image file library, so that the image file in the image file library can be called according to the rendering parameters, and then the rendering virtual machine is created, which can improve the rendering efficiency and meet the user's customized needs, thereby improving the applicability of the cloud rendering method.

可选地,在将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中之后,所述方法还包括:Optionally, after storing the system image, the rendering software image, and the rendering plug-in image in the image file library, the method further includes:

存储所述系统镜像对应的第一标识信息和第一位置信息的对应关系,所述渲染软件镜像对应的第二标识信息和第二位置信息的对应关系,以及所述渲染插件镜像对应的第三标识信息和第三位置信息的对应关系;storing 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 includes a first parent image identification of the rendering software image, where the first parent image identification is used to identify a system image corresponding to the rendering software image;

所述第三标识信息包括所述渲染插件镜像的第二父镜像标识,所述第二父镜像标识用于标识所述渲染插件镜像对应的渲染插件镜像。The third identification information includes a second parent image identifier of the rendering plug-in image, where the second parent image identifier is used to identify 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 the system image, the first location information may be a storage location corresponding to the system image, the second identification information may be a unique identification code corresponding to the rendering software image, the second location information may be a storage location corresponding to the rendering software image, the third identification information may be a unique identification code corresponding to the rendering plug-in image, and the third location information may be a storage location corresponding to the rendering plug-in image.

需要说明的是,除存储上述对应关系之外,还可以存储镜像的文件名称,镜像的别名等,本申请对此不作具体限定。It should be noted that, in addition to storing the above-mentioned corresponding relationships, the file name of the image, the alias of the image, etc. can also be stored, and this application does not make specific limitations on this.

示例性的,存储的镜像信息具体可以包括镜像的唯一标识(20位),镜像的文件名称,镜像的别名,镜像文件机房标识,镜像文件的路径位置,父镜像的唯一标识(20位),其中父镜像是制作本镜像时对应的基础镜像。例如,Maya_2020_Windows10_22H2_20231010.qcow2的渲染软件镜像的父镜像为Windows10_22H2_20231010.qcow2的系统镜像。Exemplarily, the stored image information may specifically include the unique identifier (20 bits) of the image, the file name of the image, the alias of the image, the image file room identifier, the path location of the image file, and the unique identifier (20 bits) of the parent image, where the parent image is the base image corresponding to the creation of the current image. For example, the parent image of the rendering software image of Maya_2020_Windows10_22H2_20231010.qcow2 is the system image of Windows10_22H2_20231010.qcow2.

以前述的镜像文件为例,具体可以存储如下三条数据信息:Taking the aforementioned image file as an example, the following three pieces of data information can be stored:

第一条数据是基础系统镜像的信息:20231010092835000001(镜像的唯一标识),Windows10_22H2_20231010.qcow2(镜像的文件名称),Windows 10(镜像的别名),suzhou(镜像文件机房标识),\etc\soft\(镜像文件的路径位置),0(父镜像的唯一标识);The first piece of data is the information of the basic system image: 20231010092835000001 (the unique identifier of the image), Windows10_22H2_20231010.qcow2 (the file name of the image), Windows 10 (the alias of the image), suzhou (the image file room identifier), \etc\soft\ (the path location of the image file), 0 (the unique identifier of the parent image);

第二条数据是渲染软件镜像的信息:20231010103025000002(镜像的唯一标识),Maya_2020_Windows10_22H2_20231010.qcow2(镜像的文件名称),Maya 2020(镜像的别名),suzhou(镜像文件机房标识),\etc\soft\(镜像文件的路径位置),20231010092835000001(父镜像的唯一标识);The second piece of data is the information of the rendering software image: 20231010103025000002 (the unique identifier of the image), Maya_2020_Windows10_22H2_20231010.qcow2 (the file name of the image), Maya 2020 (the alias of the image), suzhou (the image file room identifier), \etc\soft\ (the path location of the image file), 20231010092835000001 (the unique identifier of the parent image);

第三条数据是渲染插件镜像的信息:20231010113010000003(镜像的唯一标识),Mtoa_423_Maya_2020_Windows10_22H2_20231010.qcow2(镜像的文件名称),Mota 4.2.3(镜像的别名),suzhou(镜像文件机房标识),\etc\soft\(镜像文件的路径位置),20231010103025000002(父镜像的唯一标识)。The third piece of data is the information of the rendering plug-in image: 20231010113010000003 (unique identifier of the image), Mtoa_423_Maya_2020_Windows10_22H2_20231010.qcow2 (file name of the image), Mota 4.2.3 (alias of the image), suzhou (image file room identifier), \etc\soft\ (path location of the image file), 20231010103025000002 (unique identifier of the parent image).

该实施方式中,上述云渲染方法可以通过存储所述系统镜像对应的第一标识信息和第一位置信息的对应关系,所述渲染软件镜像对应的第二标识信息和第二位置信息的对应关系,以及所述渲染插件镜像对应的第三标识信息和第三位置信息的对应关系;所述第二标识信息包括所述渲染软件镜像的第一父镜像标识,所述第一父镜像标识用于标识所述渲染软件镜像对应的系统镜像;所述第三标识信息包括所述渲染插件镜像的第二父镜像标识,所述第二父镜像标识用于标识所述渲染插件镜像对应的渲染插件镜像,这样,在获取与所述渲染参数对应的镜像文件时,可以先根据镜像文件的标识信息进行查询检索,在存在标识信息的情况下,再根据标识信息确定位置信息,进而获取镜像文件,从而能够提高获取镜像文件的效率,并且在获取与所述渲染参数对应的镜像文件时,可以利用父镜像标识进行依次顺序查找,进而在创建目标虚拟机时可以根据查询到镜像文件按照父子关系依次加载到内存中,即加载时先加载父镜像文件,再加载子镜像文件,完成虚拟机的创建,从而能够进一步提高云渲染的效率。In this embodiment, the cloud rendering method can store the corresponding relationship between the first identification information and the first position information corresponding to the system image, the corresponding relationship between the second identification information and the second position information corresponding to the rendering software image, and the corresponding relationship between the third identification information and the third position information corresponding to the rendering plug-in image; the second identification information includes the first parent image identification of the rendering software image, and the first parent image identification is used to identify the system image corresponding to the rendering software image; the third identification information includes the second parent image identification of the rendering plug-in image, and the second parent image identification is used to identify the rendering plug-in image corresponding to the rendering plug-in image. In this way, when obtaining the image file corresponding to the rendering parameter, the image file can be first queried and retrieved according to the identification information of the image file, and when the identification information exists, the 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, and when obtaining the image file corresponding to the rendering parameter, the parent image identification can be used to search in sequence, and then when creating the target virtual machine, the image files can be loaded into the memory in sequence according to the parent-child relationship according to the query, that is, the parent image file is loaded first, and then the child image file is loaded to complete the creation of the virtual machine, thereby further improving the efficiency of cloud rendering.

可选地,所述基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像包括:Optionally, generating the rendering software image corresponding to the preset rendering software based on the first virtual machine includes:

在所述第一虚拟机中安装预设的渲染软件;Installing preset rendering software in the first virtual machine;

将所述第一虚拟机中新增的存储数据导出,得到所述渲染软件镜像;Exporting the newly added storage data in the first virtual machine to obtain the rendering software image;

所述基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像包括:The generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine includes:

在所述第二虚拟机中安装预设的渲染插件;Installing a preset rendering plug-in in the second virtual machine;

将所述第二虚拟机中新增的存储数据导出,得到所述渲染插件镜像。The newly added storage data in the second virtual machine is exported to obtain the rendering plug-in image.

示例性的,在新创建的第一虚拟机中安装指定版本的渲染软件,安装完成后启动渲染软件,确认渲染软件可以执行制作和渲染,然后关闭第一虚拟机,将新增的存储数据导出为qcow2格式文件作为渲染软件镜像文件,镜像文件名称可自定义,可以按照渲染软件名称、渲染软件版本、操作系统名称、操作系统版本号、创建时间进行渲染软件镜像文件命名,例如,Maya(软件名称)_2020(软件版本)_Windows10(操作系统名称)_22H2(操作系统版本号)_20231010(创建时间).qcow2。Exemplarily, a specified version of the rendering software is installed in the newly created first virtual machine. After the installation is complete, the rendering software is started to confirm that the rendering software can perform production and rendering, and then the first virtual machine is shut down. The newly added storage data is exported as a qcow2 format file as a rendering software image file. The image file name is customizable and can be named according to the rendering software name, rendering software version, operating system name, operating system version number, and creation time. For example, Maya (software name)_2020 (software version)_Windows 10 (operating system name)_22H2 (operating system version number)_20231010 (creation time).qcow2.

在新创建的第二虚拟机中安装指定版本的渲染插件,安装完成后启动渲染软件和插件,确认渲染插件可被使用,关闭第二虚拟机,将新增的存储数据导出为qcow2格式文件作为渲染插件镜像文件,渲染插件镜像文件名称可自定义,可以按照渲染插件名称、渲染插件版本、渲染软件名称、渲染软件版本、操作系统名称、操作系统版本号、创建时间进行渲染插件镜像文件命名,如Mtoa(插件名称)_423(插件版本)_Maya(渲染软件名称)_2020(渲染软件版本)_Windows10(操作系统名称)_22H2(操作系统版本号)_20231010(创建时间).qcow2。Install the specified version of the rendering plug-in in the newly created second virtual machine. After the installation is complete, start the rendering software and plug-in, confirm that the rendering plug-in can be used, shut down the second virtual machine, and export the newly added storage data as a qcow2 format file as a rendering plug-in image file. The name of the rendering plug-in image file can be customized. The rendering plug-in image file can be named according to the rendering plug-in name, rendering plug-in version, rendering software name, rendering software version, operating system name, operating system version number, and creation time, such as Mtoa (plug-in name)_423 (plug-in version)_Maya (rendering software name)_2020 (rendering software version)_Windows10 (operating system name)_22H2 (operating system version number)_20231010 (creation time).qcow2.

需要说明的是,虚拟机镜像具有不同格式,本申请对此不作具体限定,上述说明仅以qcow2格式作为实施例。常见的有raw格式和qcow2格式等,qcow2格式镜像相比raw格式,具有占用更小的空间,支持快照、Copy-On-Write、AES加密、zlib压缩等特性,但性能略逊于raw格式镜像。It should be noted that virtual machine images have different formats, which are not specifically limited in this application. The above description only uses the qcow2 format as an example. Common formats include raw format and qcow2 format. Compared with the raw format, the qcow2 format image occupies less space and supports snapshots, Copy-On-Write, AES encryption, zlib compression and other features, but its performance is slightly inferior to the raw format image.

该实施方式中,上述云渲染方法可以通过在所述第一虚拟机中安装预设的渲染软件,将所述第一虚拟机中新增的存储数据导出,得到所述渲染软件镜像,在所述第二虚拟机中安装预设的渲染插件;将所述第二虚拟机中新增的存储数据导出,得到所述渲染插件镜像,使得系统镜像、渲染软件镜像和渲染插件镜像可以分开存储并根据需求进行组合使用,从而能够提高使用镜像文件的灵活性,在满足需求的情况下减少镜像文件的占用空间。In this implementation, the cloud rendering method can be implemented by installing a preset rendering software in the first virtual machine, exporting the newly added storage data in the first virtual machine to obtain the rendering software image, and installing a preset rendering plug-in in the second virtual machine; exporting the newly added storage data in the second virtual machine to obtain the rendering plug-in image, so that the system image, the rendering software image, and the rendering plug-in image can be stored separately and used in combination according to needs, thereby improving the flexibility of using image files and reducing the space occupied by image files while meeting the needs.

作为一种具体的实施例,上述云渲染方法可以应用于云渲染平台,图3是本申请实施例提供的一种云渲染平台的交互示意图,如图3所示,所述云渲染平台包括云渲染控制台、云渲染服务平台和云管平台,其中,云渲染控制台用于接收渲染请求,所述渲染请求携带渲染素材和渲染参数;云渲染服务平台用于解析渲染素材并创建渲染任务,云管平台用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像,并基于所述镜像文件创建目标虚拟机;云渲染服务平台用于基于所述目标虚拟机对所述渲染素材进行渲染。As a specific embodiment, the above-mentioned cloud rendering method can be applied to a cloud rendering platform. Figure 3 is an interactive schematic diagram of a cloud rendering platform provided in an embodiment of the present application. As shown in Figure 3, the cloud rendering platform includes a cloud rendering console, a cloud rendering service platform and a cloud management platform, wherein the cloud rendering console is used to receive a rendering request, and the rendering request carries rendering materials and rendering parameters; the cloud rendering service platform is used to parse the rendering materials and create a rendering task, and the cloud management platform is used to obtain an image file corresponding to the rendering parameters based on a preset image file library, and the image file includes a system image, a rendering software image and a rendering plug-in image, and creates a target virtual machine based on the image file; the cloud rendering service platform is used to render the rendering material based on the target virtual machine.

图4是本申请实施例提供的一种云渲染方法的流程图之三,如图4所示,首先,用户登录云渲染控制台,图5是本申请实施例提供的一种界面显示示意图之一,如图5所示,用户上传渲染素材,素材上传完成后,点击提交按钮,选择上传文件中的主工程文件。Figure 4 is a third flowchart of a cloud rendering method provided in an embodiment of the present application. As shown in Figure 4, first, the user logs in to the cloud rendering console. Figure 5 is one of the interface display diagrams provided in an embodiment of the present application. As shown in Figure 5, the user uploads the rendering material. After the material is uploaded, click the Submit button and select the main project file in the uploaded file.

图6是本申请实施例提供的一种界面显示示意图之二,如图6所示,用户编辑配置参数,根据用户选择的渲染软件,从数据库中读取该渲染软件版本信息和插件信息,用户根据素材的制作信息选择对应的渲染软件和插件信息,当用户选择渲染软件后,通过该渲染软件对应的镜像唯一标识在镜像录入信息表中进行关联查询,查询规则为用镜像唯一标识作为父镜像唯一标识,查询所有的渲染插件信息并将查询到的所有渲染插件信息展示,用户根据实际制作时的使用的渲染插件进行插件选择;如当前渲染软件和插件对应的版本镜像不存在,则用户可以进行其他版本的选择;如渲染插件信息不存在展示的插件信息列表中,用户也可以提交自定义的渲染插件需求,后续云渲染服务平台将根据用户的需求制作对应的渲染插件镜像;FIG6 is a second interface display schematic diagram provided by an embodiment of the present application. As shown in FIG6 , the user edits the configuration parameters, and reads the rendering software version information and plug-in information from the database according to the rendering software selected by the user. The user selects the corresponding rendering software and plug-in information according to the production information of the material. After the user selects the rendering software, the image unique identifier corresponding to the rendering software is used to perform an associated query in the image entry information table. The query rule is to use the image unique identifier as the parent image unique identifier, query all rendering plug-in information and display all the queried rendering plug-in information. The user selects the plug-in according to the rendering plug-in used in the actual production; if the version image corresponding to the current rendering software and plug-in does 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 also submit a customized rendering plug-in requirement, and the subsequent cloud rendering service platform will produce the corresponding rendering plug-in image according to the user's requirements;

云渲染服务平台对渲染素材进行素材解析,素材解析提示无错误后,创建渲染任务并发起创建虚拟机申请,将本次虚拟机所需要的渲染插件、渲染软件的名称信息通知云管平台;The cloud rendering service platform analyzes the rendering material. If the material analysis indicates that there is no error, it creates a rendering task and initiates a request to create a virtual machine. It notifies the cloud management platform of the name information of the rendering plug-in and rendering software required for this virtual machine.

云管平台依据接收信息,申请创建虚拟机所需要的物理资源,包含CPU、内存、存储等,同时依据云渲染服务平台提交的渲染软件和渲染插件名称信息在镜像录入信息表中进行数据查询,如用户选择的渲染插件为Mtoa 4.2.3,根据渲染插件名称查询镜像录入信息表中对应的渲染插件明细信息,查询对应镜像所在的位置,镜像文件名称,父镜像标识,再根据父镜像标识查询父镜像信息,直到查询的父镜像标识为0结束,顺序记录镜像信息;Based on the received information, the cloud management platform applies for the physical resources required to create the virtual machine, including CPU, memory, storage, etc. At the same time, it queries the data in the image entry information table based on the rendering software and rendering plug-in name information submitted by the cloud rendering service platform. For example, if the rendering plug-in selected by the user is Mtoa 4.2.3, the corresponding rendering plug-in detailed information in the image entry information table is queried according to the rendering plug-in name, and the location of the corresponding image, the image file name, and the parent image ID are queried. Then, the parent image information is queried according to the parent image ID until the queried parent image ID is 0, and the image information is recorded in sequence;

云管平台创建虚拟机,将查询到的镜像文件按照父子关系依此加载到内存中,即加载时先加载父镜像文件,再加载子镜像文件,完成虚拟机的创建,虚拟机启动后,任务控制软件向云渲染服务平台进行注册;The cloud management platform creates a virtual machine and loads the queried image files into the memory in a parent-child relationship. That is, the parent image file is loaded first, and then the child image file is loaded to complete the creation of the virtual machine. After the virtual machine is started, the task control software registers with the cloud rendering service platform.

云渲染服务平台向任务控制软件分配渲染任务,虚拟机执行渲染任务,完成任务后通知云渲染服务平台;The cloud rendering service platform assigns rendering tasks to the task control software, and the virtual machine executes the rendering tasks and notifies the cloud rendering service platform after completing the tasks;

在所有渲染任务完成后,云渲染服务平台通知云管平台进行虚拟机的注销。After all rendering tasks are completed, the cloud rendering service platform notifies the cloud management platform to deregister the virtual machine.

参见图7,图7是本申请实施例提供的一种云渲染平台的结构示意图,如图7所示,云渲染平台700包括:Referring to FIG. 7 , FIG. 7 is a schematic diagram of the structure of a cloud rendering platform provided in an embodiment of the present application. As shown in FIG. 7 , the cloud rendering platform 700 includes:

云渲染控制台701,用于接收渲染请求,所述渲染请求携带渲染素材和渲染参数;The cloud rendering console 701 is used to receive a rendering request, where the rendering request carries rendering materials and rendering parameters;

云管平台702,用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;The cloud management platform 702 is used to obtain an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image;

所述云管平台702,还用于基于所述镜像文件创建目标虚拟机;The cloud management platform 702 is further used to create a target virtual machine based on the image file;

云渲染服务平台703,用于基于所述目标虚拟机对所述渲染素材进行渲染。The cloud rendering service platform 703 is used to render the rendering material based on the target virtual machine.

可选地,所述云渲染平台700还包括:Optionally, the cloud rendering platform 700 further includes:

第一生成模块,用于生成与预设的操作系统对应的所述系统镜像;A first generating module, used to generate the system image corresponding to a preset operating system;

第二生成模块,用于基于所述系统镜像创建第一虚拟机,并基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像;A second generating module, configured to create a first virtual machine based on the system image, and generate the rendering software image corresponding to the preset rendering software based on the first virtual machine;

第三生成模块,用于基于所述渲染软件镜像创建第二虚拟机,并基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像。The third generation module is used to create a second virtual machine based on the rendering software image, and generate the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine.

可选地,所述云渲染平台700还包括:Optionally, the cloud rendering platform 700 further includes:

第一存储模块,用于将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中。The first storage module is used to store the system image, the rendering software image and the rendering plug-in image in the image file library.

可选地,所述云管平台702包括:Optionally, the cloud management platform 702 includes:

获取单元,用于在所述镜像文件库中存储所述渲染参数对应的镜像文件的情况下,从所述镜像文件库获取与所述渲染参数对应的镜像文件;an acquiring unit, configured to acquire the image file corresponding to the rendering parameter from the image file library when the image file corresponding to the rendering parameter is stored in the image file library;

生成单元,用于在所述镜像文件库中未存储所述渲染参数对应的镜像文件的情况下,生成所述渲染参数对应的镜像文件。The generating unit is configured to generate an image file corresponding to the rendering parameter when the image file corresponding to the rendering parameter is not stored in the image file library.

可选地,所述云渲染平台700还包括:Optionally, the cloud rendering platform 700 further includes:

第二存储模块,用于存储所述系统镜像对应的第一标识信息和第一位置信息的对应关系,所述渲染软件镜像对应的第二标识信息和第二位置信息的对应关系,以及所述渲染插件镜像对应的第三标识信息和第三位置信息的对应关系;A second storage module is used to store the correspondence between the first identification information and the first location information corresponding to the system image, the correspondence between the second identification information and the second location information corresponding to the rendering software image, and the correspondence between the third identification information and the third location information corresponding to the rendering plug-in image;

所述第二标识信息包括所述渲染软件镜像的第一父镜像标识,所述第一父镜像标识用于标识所述渲染软件镜像对应的系统镜像;The second identification information includes a first parent image identification of the rendering software image, where the first parent image identification is used to identify a system image corresponding to the rendering software image;

所述第三标识信息包括所述渲染插件镜像的第二父镜像标识,所述第二父镜像标识用于标识所述渲染插件镜像对应的渲染插件镜像。The third identification information includes a second parent image identifier of the rendering plug-in image, where the second parent image identifier is used to identify the rendering plug-in image corresponding to the rendering plug-in image.

可选地,所述第二生成模块包括:Optionally, the second generating module includes:

第一安装单元,用于在所述第一虚拟机中安装预设的渲染软件;A first installation unit, configured to install preset rendering software in the first virtual machine;

第一导出单元,用于将所述第一虚拟机中新增的存储数据导出,得到所述渲染软件镜像;A first exporting unit, configured to export the newly added storage data in the first virtual machine to obtain the rendering software image;

所述第三生成模块包括:The third generation module comprises:

第二安装单元,用于在所述第二虚拟机中安装预设的渲染插件;A second installation unit, configured to install a preset rendering plug-in in the second virtual machine;

第二导出单元,用于将所述第二虚拟机中新增的存储数据导出,得到所述渲染插件镜像。The second exporting unit is used to export the newly added storage data in the second virtual machine to obtain the rendering plug-in image.

具体的,参见图8所示,本申请实施例还提供了一种电子设备,包括总线801、收发机802、天线803、总线接口804、处理器805和存储器806。Specifically, as shown in 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 .

收发机802,用于接收渲染请求,所述渲染请求携带渲染素材和渲染参数;The transceiver 802 is used to receive a rendering request, where the rendering request carries rendering material and rendering parameters;

进一步地,处理器805,用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;Further, the processor 805 is used to obtain an image file corresponding to the rendering parameter based on a preset image file library, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image;

用于基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。The method is used to create a target virtual machine based on the image file, and render the rendering material based on the target virtual machine.

在图8中,总线架构(用总线801来代表),总线801可以包括任意数量的互联的总线和桥,总线801将包括由处理器805代表的一个或多个处理器和存储器806代表的存储器的各种电路链接在一起。总线801还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口804在总线801和收发机802之间提供接口。收发机802可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器805处理的数据通过天线803在无线介质上进行传输,进一步,天线803还接收数据并将数据传送给处理器805。In FIG8 , a bus architecture (represented by bus 801) is shown, and bus 801 may include any number of interconnected buses and bridges, and bus 801 links various circuits including one or more processors represented by processor 805 and memory represented by memory 806. Bus 801 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 804 provides an interface between bus 801 and transceiver 802. Transceiver 802 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 805 is transmitted on a wireless medium via antenna 803, and further, antenna 803 also receives data and transmits the data to processor 805.

处理器805负责管理总线801和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器806可以被用于存储处理器805在执行操作时所使用的数据。The processor 805 is responsible for managing the bus 801 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 806 can be used to store data used by the processor 805 when performing operations.

可选地,处理器805可以是中央处理器(Central Processing Unit,CPU)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或复杂可编程逻辑器件(Complex Programmable LogicDevice,CPLD)。Optionally, the processor 805 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

可选地,处理器805还用于:Optionally, the processor 805 is further configured to:

生成与预设的操作系统对应的所述系统镜像;Generate the system image corresponding to the preset operating system;

基于所述系统镜像创建第一虚拟机,并基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像;Creating a first virtual machine based on the system image, and generating the rendering software image corresponding to the preset rendering software based on the first virtual machine;

基于所述渲染软件镜像创建第二虚拟机,并基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像。A second virtual machine is created based on the rendering software image, and the rendering plug-in image corresponding to the preset rendering plug-in is generated based on the second virtual machine.

可选地,处理器805还用于:Optionally, the processor 805 is further configured to:

将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中。The system image, the rendering software image and the rendering plug-in image are stored in the image file library.

可选地,处理器805具体用于:Optionally, the processor 805 is specifically configured to:

在所述镜像文件库中存储所述渲染参数对应的镜像文件的情况下,从所述镜像文件库获取与所述渲染参数对应的镜像文件;In a case where the image file corresponding to the rendering parameter is stored in the image file library, acquiring the image file corresponding to the rendering parameter from the image file library;

在所述镜像文件库中未存储所述渲染参数对应的镜像文件的情况下,生成所述渲染参数对应的镜像文件。In a case where the image file corresponding to the rendering parameter is not stored in the image file library, an image file corresponding to the rendering parameter is generated.

可选地,处理器805还用于:Optionally, the processor 805 is further configured to:

存储所述系统镜像对应的第一标识信息和第一位置信息的对应关系,所述渲染软件镜像对应的第二标识信息和第二位置信息的对应关系,以及所述渲染插件镜像对应的第三标识信息和第三位置信息的对应关系;storing 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 includes a first parent image identification of the rendering software image, where the first parent image identification is used to identify a system image corresponding to the rendering software image;

所述第三标识信息包括所述渲染插件镜像的第二父镜像标识,所述第二父镜像标识用于标识所述渲染插件镜像对应的渲染插件镜像。The third identification information includes a second parent image identifier of the rendering plug-in image, where the second parent image identifier is used to identify the rendering plug-in image corresponding to the rendering plug-in image.

可选地,处理器805具体用于:Optionally, the processor 805 is specifically configured to:

在所述第一虚拟机中安装预设的渲染软件;Installing preset rendering software in the first virtual machine;

将所述第一虚拟机中新增的存储数据导出,得到所述渲染软件镜像;Exporting the newly added storage data in the first virtual machine to obtain the rendering software image;

处理器805具体用于:The processor 805 is specifically used for:

在所述第二虚拟机中安装预设的渲染插件;Installing a preset rendering plug-in in the second virtual machine;

将所述第二虚拟机中新增的存储数据导出,得到所述渲染插件镜像。The newly added storage data in the second virtual machine is exported to obtain the rendering plug-in image.

本申请实施例还提供了一种电子设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述云渲染方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the various processes of the above-mentioned cloud rendering method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述云渲染方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned cloud rendering method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

本申请实施例还提供一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现上述云渲染方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned cloud rendering method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (10)

1.一种云渲染方法,其特征在于,包括:1. A cloud rendering method, comprising: 接收渲染请求,所述渲染请求携带渲染素材和渲染参数;Receive a rendering request, wherein the rendering request carries rendering material and rendering parameters; 基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;Based on a preset image file library, an image file corresponding to the rendering parameter is obtained, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image; 基于所述镜像文件创建目标虚拟机,并基于所述目标虚拟机对所述渲染素材进行渲染。A target virtual machine is created based on the image file, and the rendering material is rendered based on the target virtual machine. 2.根据权利要求1所述的方法,其特征在于,在所述基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件之前,所述方法还包括:2. The method according to claim 1, characterized in that before acquiring the image file corresponding to the rendering parameters based on the preset image file library, the method further comprises: 生成与预设的操作系统对应的所述系统镜像;Generate the system image corresponding to the preset operating system; 基于所述系统镜像创建第一虚拟机,并基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像;Creating a first virtual machine based on the system image, and generating the rendering software image corresponding to the preset rendering software based on the first virtual machine; 基于所述渲染软件镜像创建第二虚拟机,并基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像。A second virtual machine is created based on the rendering software image, and the rendering plug-in image corresponding to the preset rendering plug-in is generated based on the second virtual machine. 3.根据权利要求2所述的方法,其特征在于,在所述基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像之后,所述方法还包括:3. The method according to claim 2, characterized in that after generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine, the method further comprises: 将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中。The system image, the rendering software image and the rendering plug-in image are stored in the image file library. 4.根据权利要求1所述的方法,其特征在于,所述基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件包括:4. The method according to claim 1, wherein obtaining the image file corresponding to the rendering parameter based on a preset image file library comprises: 在所述镜像文件库中存储所述渲染参数对应的镜像文件的情况下,从所述镜像文件库获取与所述渲染参数对应的镜像文件;In a case where the image file corresponding to the rendering parameter is stored in the image file library, acquiring the image file corresponding to the rendering parameter from the image file library; 在所述镜像文件库中未存储所述渲染参数对应的镜像文件的情况下,生成所述渲染参数对应的镜像文件。In a case where the image file corresponding to the rendering parameter is not stored in the image file library, an image file corresponding to the rendering parameter is generated. 5.根据权利要求3所述的方法,其特征在于,在将所述系统镜像、所述渲染软件镜像和所述渲染插件镜像存储至所述镜像文件库中之后,所述方法还包括:5. The method according to claim 3, characterized in that 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 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 includes a first parent image identification of the rendering software image, where the first parent image identification is used to identify a system image corresponding to the rendering software image; 所述第三标识信息包括所述渲染插件镜像的第二父镜像标识,所述第二父镜像标识用于标识所述渲染插件镜像对应的渲染插件镜像。The third identification information includes a second parent image identifier of the rendering plug-in image, where the second parent image identifier is used to identify the rendering plug-in image corresponding to the rendering plug-in image. 6.根据权利要求2所述的方法,其特征在于,所述基于所述第一虚拟机生成与预设的渲染软件对应的所述渲染软件镜像包括:6. The method according to claim 2, wherein generating the rendering software image corresponding to the preset rendering software based on the first virtual machine comprises: 在所述第一虚拟机中安装预设的渲染软件;Installing preset rendering software in the first virtual machine; 将所述第一虚拟机中新增的存储数据导出,得到所述渲染软件镜像;Exporting the newly added storage data in the first virtual machine to obtain the rendering software image; 所述基于所述第二虚拟机生成与预设的渲染插件对应的所述渲染插件镜像包括:The generating the rendering plug-in image corresponding to the preset rendering plug-in based on the second virtual machine includes: 在所述第二虚拟机中安装预设的渲染插件;Installing a preset rendering plug-in in the second virtual machine; 将所述第二虚拟机中新增的存储数据导出,得到所述渲染插件镜像。The newly added storage data in the second virtual machine is exported to obtain the rendering plug-in image. 7.一种云渲染平台,其特征在于,包括:7. A cloud rendering platform, comprising: 云渲染控制台,用于接收渲染请求,所述渲染请求携带渲染素材和渲染参数;The cloud rendering console is used to receive a rendering request, wherein the rendering request carries rendering materials and rendering parameters; 云管平台,用于基于预设的镜像文件库,获取与所述渲染参数对应的镜像文件,所述镜像文件包括系统镜像、渲染软件镜像和渲染插件镜像;A cloud management platform, for acquiring an image file corresponding to the rendering parameters based on a preset image file library, wherein the image file includes a system image, a rendering software image, and a rendering plug-in image; 所述云管平台,还用于基于所述镜像文件创建目标虚拟机;The cloud management platform is further used to create a target virtual machine based on the image file; 云渲染服务平台,用于基于所述目标虚拟机对所述渲染素材进行渲染。The cloud rendering service platform is used to render the rendering material based on the target virtual machine. 8.一种电子设备,其特征在于,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至6中任一项所述的云渲染方法的步骤。8. An electronic device, characterized in that it comprises: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the cloud rendering method according to any one of claims 1 to 6 are implemented. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的云渲染方法的步骤。9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the cloud rendering method according to any one of claims 1 to 6 are implemented. 10.一种计算机程序产品,其特征在于,包括计算机指令,所述计算机指令被处理器执行时实现如权利要求1至6中任一项所述的云渲染方法的步骤。10. A computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the cloud rendering method according to any one of claims 1 to 6.
CN202410145433.XA 2024-02-01 2024-02-01 Cloud rendering method, device, electronic device, storage medium and program product Pending CN117950809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410145433.XA CN117950809A (en) 2024-02-01 2024-02-01 Cloud rendering method, 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, 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, device, electronic device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN117950809A (en)

Similar Documents

Publication Publication Date Title
TWI757743B (en) Mini program generation method and device
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
CN111414391A (en) Method and system for accessing multiple data sources
TW201439792A (en) System and method for accessing database
CN113641413B (en) Target model loading and updating method and device, readable medium and electronic device
US20140330875A1 (en) Method and system for processing data files using distributed services
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN112015534B (en) Configurable platform scheduling method, system and storage medium
CN105765533A (en) Method and apparatus for firmware virtualization
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN111984239A (en) Page configuration method, device, server and storage medium
CN111866099A (en) Method, device, system, equipment and storage medium for downloading mirror image file
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN114036439A (en) Website construction method, device, medium and electronic equipment
CN112134908B (en) Application adaptation method, server, medium and vehicle-mounted multimedia system
CN112685091A (en) Service request processing method, device, equipment and medium based on big data
CN111881051A (en) Test case generation method and device, terminal and storage medium
CN115617780A (en) Data import method, device, equipment and storage medium
CN116149650B (en) Configuration method of data integration strategy, data integration method, device, equipment and storage medium
CN117950809A (en) Cloud rendering method, device, electronic device, storage medium and program product
CN116112279A (en) Access control method, device, computer equipment and storage medium
US20140236661A1 (en) Supplier analysis and verification system and method
CN115454403A (en) Page construction method and device and storage medium
WO2023193609A1 (en) Selective privileged container augmentation
CN112596812B (en) Response method, device, equipment and storage medium of operation request

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