Resource visualization effect obtaining method and device, product and equipment
By receiving task platform instructions automatic conversion and configuration engine, the problem of low efficiency in obtaining resource visualization effects in the existing technology is solved, fully automated processes are realized, and the review capabilities of efficiency and resource quality are improved.
Patent Information
- Application Number
- CN202411232094.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-27
AI Technical Summary
In the fields of gaming, animation production, etc., the existing technology requires manual configuration of engine parameters to output correct resource visualization effects, which is low efficiency and lacks automated processing processes.
By receiving task processing instructions sent by the task platform, the multimedia resources are automatically converted into target files, and the target engine is run based on the project configuration of the target file to achieve fully automatic acquisition of resource visualization effects without manually configuring engine parameters.
It realizes the fully automatic acquisition process of resource visualization effects, saves manual operations, improves acquisition efficiency, and ensures automatic audit of resource quality.
Smart Images

Figure CN119185929A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for obtaining resource visualization effects, a device for obtaining resource visualization effects, a computer program product, and an electronic device. Background Art
[0002] In the fields of games and motion effects production, software (such as 3ds Max) is needed to produce multimedia resources (such as images, three-dimensional models, etc.). After the software outputs the required multimedia resources, the multimedia resources can be input into the corresponding engine (such as game engine, etc.) to detect the resource quality through the resource visualization effect output by the engine. In general, it is necessary to manually configure the parameters in the engine and input the multimedia resources into the engine in the corresponding format so that the engine can output the correct resource visualization effect. However, this has the problem of low efficiency.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute an existing solution known to ordinary technicians in the field. Summary of the invention
[0004] The purpose of the present application is to provide a resource visualization effect acquisition method, a resource visualization effect acquisition device, a computer-readable storage medium, and an electronic device, which can automatically run a target engine with a project configuration corresponding to a target file to obtain a resource visualization effect after receiving a task processing instruction sent by a task platform, and return the resource visualization effect to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure engine parameters, and the resource can be automatically converted into a target file that matches the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process for resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0006] According to one aspect of the present application, a method for obtaining a resource visualization effect is provided, the method comprising:
[0007] Receiving a task processing instruction sent by the task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with the target engine, and the target file is obtained by converting a multimedia resource that is not matched with the target engine;
[0008] In response to the task processing instruction, running the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect;
[0009] Send resource visualizations to the task platform.
[0010] In an exemplary embodiment of the present application, when the multimedia resource is a static resource, the target file is obtained by converting the data format of the multimedia resource; when the multimedia resource is a dynamic resource, the target file is obtained by adjusting the key frames of the skeleton nodes in the multimedia resource.
[0011] In an exemplary embodiment of the present application, the task platform is also used to select an idle device for processing the target file from the device set as the target device in response to the submitted target file, and send a task processing instruction to the target device.
[0012] In an exemplary embodiment of the present application, in response to a task processing instruction, running a target engine based on a project configuration corresponding to a target file to obtain a resource visualization effect includes:
[0013] In response to the task processing instruction, downloading the target file from the task platform based on the task processing instruction;
[0014] Read the project configuration corresponding to the target file from the configuration center corresponding to the target engine;
[0015] Apply the project configuration to the target engine;
[0016] In the foreground, the target engine is called up to render the target file to obtain resource visualization effects.
[0017] In an exemplary embodiment of the present application, calling a target engine in the foreground to render a target file to obtain a resource visualization effect includes:
[0018] Detect the current remaining hardware resources;
[0019] If the current remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
[0020] In an exemplary embodiment of the present application, it further includes:
[0021] If the currently remaining hardware resources do not meet the operating requirements, a process clearing operation is performed; if the currently remaining hardware resources still do not meet the operating requirements, a message is returned to the task platform to trigger the task platform to reallocate tasks.
[0022] In an exemplary embodiment of the present application, it further includes:
[0023] Shut down the targeting engine and revert the app project configuration's targeting engine back to the general version configuration.
[0024] According to one aspect of the present application, a device for obtaining a resource visualization effect is provided, comprising:
[0025] A signal receiving unit, used for receiving a task processing instruction sent by a task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is obtained by converting a multimedia resource that is not matched with the target engine;
[0026] A visualization effect acquisition unit, for responding to the task processing instruction and running the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect;
[0027] The visualization effect sending unit is used to send resource visualization effects to the task platform.
[0028] In an exemplary embodiment of the present application, when the multimedia resource is a static resource, the target file is obtained by converting the data format of the multimedia resource; when the multimedia resource is a dynamic resource, the target file is obtained by adjusting the key frames of the skeleton nodes in the multimedia resource.
[0029] In an exemplary embodiment of the present application, the task platform is also used to select an idle device for processing the target file from the device set as the target device in response to the submitted target file, and send a task processing instruction to the target device.
[0030] In an exemplary embodiment of the present application, the visualization effect acquisition unit responds to the task processing instruction and runs the target engine based on the project configuration corresponding to the target file to obtain the resource visualization effect, including:
[0031] In response to the task processing instruction, downloading the target file from the task platform based on the task processing instruction;
[0032] Read the project configuration corresponding to the target file from the configuration center corresponding to the target engine;
[0033] Apply the project configuration to the target engine;
[0034] In the foreground, the target engine is called up to render the target file to obtain resource visualization effects.
[0035] In an exemplary embodiment of the present application, the visualization effect acquisition unit calls up a target engine in the foreground to render a target file to obtain a resource visualization effect, including:
[0036] Detect the current remaining hardware resources;
[0037] If the current remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
[0038] In an exemplary embodiment of the present application, it further includes:
[0039] The process clearing unit is used to execute the process clearing operation if the currently remaining hardware resources do not meet the operating requirements. If the currently remaining hardware resources still do not meet the operating requirements, a message is returned to the task platform to trigger the task platform to reallocate tasks.
[0040] In an exemplary embodiment of the present application, it further includes:
[0041] The configuration restoration unit is used to shut down the target engine and restore the target engine configured by the application project to the general version configuration.
[0042] According to one aspect of the present application, a resource visualization effect acquisition system is provided, including a data conversion module, a task platform, and a target device, wherein:
[0043] A data conversion module, used to convert multimedia resources that are not matched to the target engine into target files that are matched to the target engine, and submit the target files to the task platform;
[0044] The task platform is used to generate task processing instructions based on the target file and send the task processing instructions to the target device;
[0045] The target device is used to receive the task processing instruction sent by the task platform, respond to the task processing instruction, run the target engine based on the project configuration corresponding to the target file to obtain the resource visualization effect, and send the resource visualization effect to the task platform.
[0046] According to one aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above methods is implemented.
[0047] According to one aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above methods by executing the executable instructions.
[0048] The exemplary embodiments of the present application may have some or all of the following beneficial effects:
[0049] In a resource visualization effect acquisition method provided in an example implementation of the present application, after receiving a task processing instruction sent by a task platform, the target engine can be automatically run with the project configuration corresponding to the target file to obtain a resource visualization effect, and the resource visualization effect can be returned to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process for resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A flowchart of a method for obtaining resource visualization effects according to an embodiment of the present application is schematically shown;
[0052] Figure 2 A flowchart of a method for obtaining resource visualization effects according to another embodiment of the present application is schematically shown;
[0053] Figure 3 A structural block diagram of a resource visualization effect acquisition system according to an embodiment of the present application is schematically shown;
[0054] Figure 4 A schematic diagram of a structure of a device for obtaining resource visualization effects according to an embodiment of the present application is shown;
[0055] Figure 5 The structure diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0056] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.
[0057] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0058] See also Figure 1 , Figure 1 The following schematically shows a flow chart of a method for obtaining resource visualization effects according to an embodiment of the present application. Figure 1 As shown, the resource visualization effect acquisition method may include: step S110 to step S130.
[0059] Step S110: receiving a task processing instruction sent by the task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is obtained by converting multimedia resources that are not matched with the target engine.
[0060] Step S120: In response to the task processing instruction, the target engine is run based on the project configuration corresponding to the target file to obtain a resource visualization effect.
[0061] Step S130: Send resource visualization effects to the task platform.
[0062] Implementation Figure 1The method shown can automatically run the target engine with the project configuration corresponding to the target file to obtain resource visualization effects after receiving the task processing instruction sent by the task platform, and return the resource visualization effects to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure the engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process of resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects.
[0063] Next, the above steps of this exemplary embodiment are described in more detail.
[0064] In step S110, a task processing instruction sent by the task platform is received; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is converted based on multimedia resources that are not matched with the target engine.
[0065] Specifically, there are differences in the display effects of different software. Generally speaking, multimedia resources produced using software A need to be imported into software B to test the display effect. Among them, software A provides powerful software functions in the resource production process, and the display effect of software A is not the display effect of multimedia resources in actual usage scenarios. Software B provides better display effects, so the display effect of software B is the display effect of multimedia resources in actual usage scenarios.
[0066] Because there are differences in format, parameters, etc. between software A and software B, the multimedia resources need to be converted before importing them into software B to obtain display effects, so that the multimedia resources matching software A are converted into target files matching software B.
[0067] Among them, software A refers to software that is not matched with the target engine, such as a type of modeling software such as 3dsMax; software B refers to the above-mentioned target engine. Optionally, the target engine can be a type of engine that matches the foreground method, such as messiah.
[0068] After the multimedia resources are converted into target files, they can be submitted as tasks to the task platform. The task platform includes a task pool, which is used to temporarily store submitted but unprocessed tasks. The task platform can distribute task processing instructions to corresponding devices based on the task submission order and / or task priority in the task pool to trigger the device to automatically process the task; it should be noted that multimedia resources can be images, three-dimensional models, animations, etc.
[0069] When the device receives the task processing instruction sent by the task platform, it can call the target engine in the device based on the task processing instruction to generate corresponding resource visualization effects through the target engine for user reference.
[0070] As an optional embodiment, the task platform is also used to select an idle device for processing the target file from the device set as the target device in response to the submitted target file, and send a task processing instruction to the target device.
[0071] It can be seen that the implementation of this optional embodiment can realize the device set call based on the task platform, thereby facilitating the task allocation, so that each device can process the tasks related to the resource visualization effect in a balanced manner.
[0072] Specifically, the task platform can be implemented in a server / server cluster. When the task platform detects the submitted target file, it can select an idle device as the target device for the target file based on the busyness of each device in the device set. The device with the lowest busyness can be an idle device. The busyness value depends on any one of the number of pending tasks in the device, the remaining hardware resources, and whether the device is in an upgrade state, etc., which is not limited by the embodiments of the present application. Alternatively, when the task platform detects the submitted target file, it can select an idle device as the target device based on the urgent tasks of each device in the device set. The device with the least urgent tasks can be an idle device.
[0073] In addition, optionally, after selecting the target device, the task platform can also generate a task processing instruction based on the target file, and the task processing instruction is used to instruct the target device to generate the resource visualization effect of the target file. Among them, each device in the device set is installed with a target engine. In the absence of processing tasks, the target engine in each device is configured as a universal version, which can be understood as a preset version, a default version, a public version, etc.
[0074] As an optional embodiment, when the multimedia resource is a static resource, the target file is obtained by converting the data format of the multimedia resource; when the multimedia resource is a dynamic resource, the target file is obtained by adjusting the key frames of the skeleton nodes in the multimedia resource.
[0075] It can be seen that by implementing this optional embodiment, a targeted processing method can be implemented for diverse resources to improve the accuracy of the target file.
[0076] Specifically, static resources may include resources such as images, and dynamic resources may include resources such as videos.
[0077] When the multimedia resource is a static resource, the format of the multimedia resource can be converted into a data format that matches the target engine to obtain a target file; for example, if the multimedia resource matches 3dsMax and the target engine is Unreal, the multimedia resource can be converted into a target file in fbx format; if the multimedia resource matches 3dsMax and the target engine is messiah, the multimedia resource can be converted into a target file in fbx format with the Y axis rotated 180°.
[0078] When the multimedia resource is a static resource, the key frames corresponding to the bone nodes in the multimedia resource can be adjusted to obtain the target file; for example, if the multimedia resource matches 3dsMax and the target engine is messiah, the key frame information of the Y-axis control object of the position controller (pos.controller) of the bone node in the multimedia resource (such as motion_node, HP_attack_fixed, HP_head, HP_hit, HP_root, etc.) can be multiplied by -1 to obtain the target file.
[0079] In step S120 , in response to the task processing instruction, the target engine is run based on the project configuration corresponding to the target file to obtain a resource visualization effect.
[0080] Specifically, different target files may correspond to different projects, a project may correspond to multiple target files, and the relationship between a project and a project configuration may be a one-to-one relationship. A project may be a building project, a game project, an animation project, etc., which is not limited in the embodiments of the present application.
[0081] As an optional embodiment of step S120, in response to the task processing instruction, running the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect includes:
[0082] Step S1201: in response to the task processing instruction, downloading the target file from the task platform based on the task processing instruction;
[0083] Step S1202: Read the project configuration corresponding to the target file from the configuration center corresponding to the target engine;
[0084] Step S1203: Apply the project configuration to the target engine;
[0085] Step S1204: calling up the target engine in the foreground to render the target file to obtain a resource visualization effect.
[0086] It can be seen that by implementing this optional embodiment, the project configuration corresponding to the target file can be applied to the target engine, so that the target engine outputs the correct resource visualization effect corresponding to the target file.
[0087] Specifically, after receiving the task processing instruction, the task ID in the task processing instruction can be parsed, and the task ID can be sent to the task platform, and then the target file corresponding to the task ID returned by the task platform can be received. Then, the project configuration corresponding to the target file can be determined, and the project configuration corresponding to the target file can be read from the configuration center; wherein the configuration center is used to store the project configuration corresponding to each project. After applying the project configuration to the target engine, the target engine can be called up in the foreground to render the target file to obtain a resource visualization effect; wherein, after the target engine is called up in the foreground, the resource visualization effect can be observed from the foreground display interface.
[0088] As an optional embodiment of step S1204, calling up a target engine in the foreground to render the target file to obtain a resource visualization effect includes:
[0089] Step S12041: Detect the current remaining hardware resources;
[0090] Step S12042: If the currently remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
[0091] It can be seen that by implementing this optional embodiment, the failure of task execution due to insufficient resources can be avoided by detecting the currently remaining hardware resources.
[0092] Specifically, the current remaining hardware resources include but are not limited to: memory resources, hard disk resources, video memory resources, etc. The operation requirements of the target engine are used to define the minimum parameters required for each hardware resource. If the current remaining hardware resources meet the operation requirements of the target engine, the target engine can be called up in the foreground to render the target file to obtain a resource visualization effect.
[0093] As an optional embodiment, it also includes:
[0094] Step S12043: If the currently remaining hardware resources do not meet the operating requirements, a process clearing operation is performed; if the currently remaining hardware resources still do not meet the operating requirements, a message is returned to the task platform to trigger the task platform to reallocate tasks.
[0095] It can be seen that by implementing this optional embodiment, the process can be processed in a timely manner so that the current remaining hardware resources can meet the operating requirements as soon as possible, which is conducive to improving the efficiency of task completion.
[0096] Specifically, when the current remaining hardware resources do not meet the operation requirements, the processes can be gradually cleared based on one or more factors such as the priority, importance, and execution progress of the processes. Prior to this, the number of processes to be cleared can be calculated based on the difference between the current remaining hardware resources and the operation requirements, and the process clearing operation can be performed based on the amount of process data. Optionally, if the current remaining hardware resources still do not meet the operation requirements, the task platform is triggered to reallocate a new device for the target file in the device set other than the target device; or, the task platform is triggered to reallocate a device for the target file in the device set. During the allocation process, the target device may be restored to have remaining hardware resources that meet the operation requirements. Therefore, in one case, the target device may not be excluded when the task is reallocated.
[0097] As an optional embodiment, it also includes:
[0098] Step S1205: close the target engine, and restore the target engine configured by the application project to the general version configuration.
[0099] It can be seen that the implementation of this optional embodiment can avoid excessive consumption of device resources and ensure that the target engine after executing the task matches the device environment with a universal version configuration, thereby avoiding system failures due to version issues.
[0100] Specifically, after obtaining the resource visualization effect, the general version configuration can be read from the configuration center corresponding to the target engine, and the general version configuration can be applied to the target engine to achieve version restoration for the target engine.
[0101] In addition, optionally, the target engine can be kept turned on to improve task processing efficiency and save engine startup time.
[0102] In step S130, the resource visualization effect is sent to the task platform.
[0103] Specifically, the task platform can also send reminder messages to legitimate user terminals to remind users to review resource visualization effects in a timely manner. The task platform can also support a resource visualization effect sending function to send resource visualization effects to user terminals.
[0104] See also Figure 2 , Figure 2 The following schematically shows a flow chart of a method for obtaining resource visualization effects according to another embodiment of the present application. Figure 2 As shown, the resource visualization effect acquisition method includes: step S210 to step S270.
[0105] Step S210: The data conversion module converts the multimedia resources that are not matched with the target engine into target files that match the target engine, and submits the target files to the task platform; wherein, when the multimedia resources are static resources, the target files are obtained by converting the data format of the multimedia resources; when the multimedia resources are dynamic resources, the target files are obtained by adjusting the key frames of the skeleton nodes in the multimedia resources.
[0106] Step S220: In response to the submitted target file, the task platform selects an idle device for processing the target file from the device set as the target device, and sends a task processing instruction to the target device.
[0107] Step S230: The target device receives the task processing instruction sent by the task platform.
[0108] Step S240: the target device responds to the task processing instruction, downloads the target file from the task platform based on the task processing instruction; reads the project configuration corresponding to the target file from the configuration center corresponding to the target engine; and applies the project configuration to the target engine.
[0109] Step S250: The target device detects the current remaining hardware resources. If the current remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect. If the current remaining hardware resources do not meet the operating requirements, a process clearing operation is performed. If the current remaining hardware resources still do not meet the operating requirements, a message is returned to the task platform to trigger the task platform to reallocate tasks.
[0110] Step S260: the target device shuts down the target engine and restores the target engine configured by the application project to a general version configuration.
[0111] Step S270: The target device sends the resource visualization effect to the task platform.
[0112] It should be noted that steps S210 to S270 are Figure 1 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S210 to S270, please refer to Figure 1 The steps and embodiments shown are not described in detail here.
[0113] It can be seen that implementation Figure 2The method shown can automatically run the target engine with the project configuration corresponding to the target file to obtain resource visualization effects after receiving the task processing instruction sent by the task platform, and return the resource visualization effects to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure the engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process of resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects.
[0114] See also Figure 3 , Figure 3 The structure block diagram of the resource visualization effect acquisition system according to an embodiment of the present application is schematically shown. Figure 1 The method shown corresponds to Figure 3 As shown, the resource visualization effect acquisition system 300 includes a data conversion module 301, a task platform 302, and a target device 303, wherein:
[0115] The data conversion module 301 is used to convert the multimedia resources that are not matched to the target engine into target files that are matched to the target engine, and submit the target files to the task platform 302;
[0116] The task platform 302 is used to generate a task processing instruction based on the target file and send the task processing instruction to the target device 303;
[0117] The target device 303 is used to receive the task processing instruction sent by the task platform 302, and in response to the task processing instruction, runs the target engine based on the project configuration corresponding to the target file to obtain the resource visualization effect, and sends the resource visualization effect to the task platform 302.
[0118] It can be seen that implementation Figure 3 The system shown can automatically run the target engine with the project configuration corresponding to the target file to obtain resource visualization effects after receiving the task processing instructions sent by the task platform, and return the resource visualization effects to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure the engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process of resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects.
[0119] See also Figure 4 , Figure 4The structure block diagram of the resource visualization effect acquisition device according to an embodiment of the present application is schematically shown. Figure 1 The method shown corresponds to Figure 4 As shown, the resource visualization effect acquisition device 400 includes:
[0120] The signal receiving unit 401 is used to receive a task processing instruction sent by the task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is obtained by converting a multimedia resource that is not matched with the target engine;
[0121] A visualization effect acquisition unit 402 is used to respond to the task processing instruction and run the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect;
[0122] The visualization effect sending unit 403 is used to send the resource visualization effect to the task platform.
[0123] It can be seen that implementation Figure 4 The device shown can automatically run the target engine with the project configuration corresponding to the target file to obtain resource visualization effects after receiving the task processing instruction sent by the task platform, and return the resource visualization effects to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure the engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process of resource visualization effects, which not only saves manual operations, but also improves the efficiency of obtaining resource visualization effects.
[0124] In an exemplary embodiment of the present application, when the multimedia resource is a static resource, the target file is obtained by converting the data format of the multimedia resource; when the multimedia resource is a dynamic resource, the target file is obtained by adjusting the key frames of the skeleton nodes in the multimedia resource.
[0125] It can be seen that by implementing this optional embodiment, a targeted processing method can be implemented for diverse resources to improve the accuracy of the target file.
[0126] In an exemplary embodiment of the present application, the task platform is also used to select an idle device for processing the target file from the device set as the target device in response to the submitted target file, and send a task processing instruction to the target device.
[0127] It can be seen that the implementation of this optional embodiment can realize the device set call based on the task platform, thereby facilitating the task allocation, so that each device can process the tasks related to the resource visualization effect in a balanced manner.
[0128] In an exemplary embodiment of the present application, the visualization effect acquisition unit 402 responds to the task processing instruction and runs the target engine based on the project configuration corresponding to the target file to obtain the resource visualization effect, including:
[0129] In response to the task processing instruction, downloading the target file from the task platform based on the task processing instruction;
[0130] Read the project configuration corresponding to the target file from the configuration center corresponding to the target engine;
[0131] Apply the project configuration to the target engine;
[0132] In the foreground, the target engine is called up to render the target file to obtain resource visualization effects.
[0133] It can be seen that by implementing this optional embodiment, the project configuration corresponding to the target file can be applied to the target engine, so that the target engine outputs the correct resource visualization effect corresponding to the target file.
[0134] In an exemplary embodiment of the present application, the visualization effect acquisition unit 402 calls up a target engine in the foreground to render a target file to obtain a resource visualization effect, including:
[0135] Detect the current remaining hardware resources;
[0136] If the current remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
[0137] It can be seen that by implementing this optional embodiment, the failure of task execution due to insufficient resources can be avoided by detecting the currently remaining hardware resources.
[0138] In an exemplary embodiment of the present application, it further includes:
[0139] The process clearing unit is used to execute the process clearing operation if the currently remaining hardware resources do not meet the operating requirements. If the currently remaining hardware resources still do not meet the operating requirements, a message is returned to the task platform to trigger the task platform to reallocate tasks.
[0140] It can be seen that by implementing this optional embodiment, the process can be processed in a timely manner so that the current remaining hardware resources can meet the operating requirements as soon as possible, which is conducive to improving the efficiency of task completion.
[0141] In an exemplary embodiment of the present application, it further includes:
[0142] The configuration restoration unit is used to shut down the target engine and restore the target engine configured by the application project to the general version configuration.
[0143] It can be seen that the implementation of this optional embodiment can avoid excessive consumption of device resources and ensure that the target engine after executing the task matches the device environment with a universal version configuration, thereby avoiding system failures due to version issues.
[0144] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0145] Since the various functional modules of the resource visualization effect acquisition device of the example embodiment of the present application correspond to the steps of the example embodiment of the resource visualization effect acquisition method described above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the resource visualization effect acquisition method described above in the present application.
[0146] See also Figure 5 , Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0147] It should be noted that Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0148] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. Various programs and data required for system operation are also stored in the RAM 503. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0149] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0150] In particular, according to an embodiment of the present application, the process described with reference to the flowchart above can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the method and apparatus of the present application are executed.
[0151] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for obtaining the resource visualization effect is implemented.
[0152] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0153] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0154] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0155] Computer programs can be carried or transmitted through electrical, magnetic, optical, electromagnetic, infrared and other signals. Electronic devices can convert signals carrying computer programs into digital signals, thereby running computer programs. When a computer program runs on an electronic device, its code is used to enable the electronic device to execute (more specifically, it can enable the processor of the electronic device to execute) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned resource visualization effect acquisition method, which includes the following steps: receiving a task processing instruction sent by a task platform; wherein the task processing instruction is generated by the task platform based on a target file that matches the target engine, and the target file is obtained by converting multimedia resources that do not match the target engine; running the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect; and sending the resource visualization effect to the task platform.
[0156] By executing the above method steps through a computer program, after receiving the task processing instruction sent by the task platform, the target engine can be automatically run with the project configuration corresponding to the target file to obtain the resource visualization effect, and the resource visualization effect can be returned to the task platform so that users can browse and review the resource quality. Among them, there is no need to manually configure the engine parameters, and the resources can be automatically converted into target files that match the target engine, and the target engine can be automatically run based on the project configuration corresponding to the target file, so that the target engine outputs the correct resource visualization effect, realizing a fully automatic acquisition process of the resource visualization effect, which not only saves manual operations, but also improves the efficiency of obtaining the resource visualization effect.
[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0158] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0159] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
Claims
1. A method for obtaining resource visualization effect, characterized in that: include: Receiving a task processing instruction sent by a task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is obtained by converting a multimedia resource that is not matched with the target engine; In response to the task processing instruction, running the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect; The resource visualization effect is sent to the task platform.
2. The method according to claim 1, characterized in that When the multimedia resource is a static resource, the target file is obtained by converting the data format of the multimedia resource; when the multimedia resource is a dynamic resource, the target file is obtained by adjusting the key frames of the skeleton nodes in the multimedia resource.
3. The method according to claim 1, characterized in that The task platform is also used to select an idle device for processing the target file from a device set as a target device in response to the submitted target file, and send the task processing instruction to the target device.
4. The method according to claim 1, characterized in that: In response to the task processing instruction, the target engine is run based on the project configuration corresponding to the target file to obtain a resource visualization effect, including: In response to the task processing instruction, downloading the target file from the task platform based on the task processing instruction; Read the project configuration corresponding to the target file from the configuration center corresponding to the target engine; Applying the project configuration to the target engine; The target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
5. The method according to claim 4, characterized in that The target engine is called up in the foreground to render the target file to obtain a resource visualization effect, including: Detect the current remaining hardware resources; If the currently remaining hardware resources meet the operating requirements of the target engine, the target engine is called up in the foreground to render the target file to obtain a resource visualization effect.
6. The method according to claim 5, characterized in that Also includes: If the currently remaining hardware resources do not meet the operating requirements, a process clearing operation is performed; if the currently remaining hardware resources still do not meet the operating requirements, a message for triggering the task platform to reallocate tasks is returned to the task platform.
7. The method according to claim 4, characterized in that Also includes: The target engine is shut down, and the target engine to which the project configuration is applied is restored to a general version configuration.
8. A device for obtaining resource visualization effects, characterized in that: include: A signal receiving unit, used for receiving a task processing instruction sent by a task platform; wherein the task processing instruction is generated by the task platform based on a target file matched with a target engine, and the target file is converted from a multimedia resource that is not matched with the target engine; A visualization effect acquisition unit, configured to respond to the task processing instruction and run the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect; The visualization effect sending unit is used to send the resource visualization effect to the task platform.
9. A resource visualization effect acquisition system, characterized in that: It includes data conversion module, task platform and target device, among which: The data conversion module is used to convert multimedia resources that are not matched to the target engine into target files that are matched to the target engine, and submit the target files to the task platform; The task platform is used to generate a task processing instruction based on the target file and send the task processing instruction to the target device; The target device is used to receive the task processing instruction sent by the task platform, and in response to the task processing instruction, runs the target engine based on the project configuration corresponding to the target file to obtain a resource visualization effect, and sends the resource visualization effect to the task platform.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.
