Scene debugging method and device, electronic equipment and storage medium
By independently adjusting parameters and generating parameter files through the scene design terminal, the problem of low efficiency in the virtual scene debugging process is solved, real-time effect display and resource reduction are achieved, and the efficiency of multi-functional collaboration is improved.
Patent Information
- Application Number
- CN202411868421.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In existing technologies, the virtual scene debugging process is cumbersome and inefficient. Artists cannot complete parameter adjustments independently and must rely on technical teams. Furthermore, the resource volume of scene integration and packaging is large, and technical teams cannot see the modification effects in real time, resulting in high communication costs and repetitive work.
The scene design terminal (artist) independently adjusts scene parameters, generates parameter files, and sends them to the software development terminal (technical team). The preset shared debugging tool automatically generates and sends parameter files, reducing resource usage and ensuring that the technical team can see the modification effects in real time.
It improved the efficiency of multi-functional collaboration, reduced communication costs and repetitive work, ensured real-time updates and consistency of scenes, and simplified the workflow of art and technology teams.
Smart Images

Figure CN119829470B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a scene debugging method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, when building a virtual scene, the artists usually need to import the scene resources into the editor and adjust some parameters in the editor. However, the artists cannot adjust other parameters themselves and need to integrate and package the entire modified scene for the technical team to check the effect. Based on the effect, the technical team can further adjust the parameters through code.
[0003] However, the above debugging process is cumbersome and inefficient, and the amount of resources for scene integration and packaging is large, so the technical team cannot see the effects of the art team's modifications in real time. Summary of the Invention
[0004] In view of this, embodiments of this application provide a scene debugging method, apparatus, electronic device, and storage medium to solve the problems that the debugging process is cumbersome and inefficient, and that the amount of resources in scene integration and packaging is large, making it impossible for the technical party to see the modification effects of the art party in real time.
[0005] In a first aspect, embodiments of this application provide a scene debugging method, applied to a scene design terminal, the method comprising:
[0006] Based on the adjustment operation performed on the initial 3D virtual scene, adjust the target object in the initial 3D virtual scene corresponding to the adjustment operation;
[0007] Generate the first parameter file based on the adjusted attribute parameters of the target object;
[0008] The first parameter file is sent to the software development terminal so that the software development terminal renders and displays the initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted target object attribute parameters in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
[0009] Secondly, embodiments of this application also provide a virtual scene debugging device, including:
[0010] The processing module is used to adjust the target object in the initial three-dimensional virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial three-dimensional virtual scene;
[0011] The processing module is also used to generate a first parameter file based on the adjusted attribute parameters of the target object;
[0012] The sending module is used to send the first parameter file to the software development terminal, so that the software development terminal renders and displays the initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted target object attribute parameters in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
[0013] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the method described in any of the first aspects.
[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the method described in any of the first aspects.
[0015] This application provides a scene debugging method, apparatus, electronic device, and storage medium. The method includes: a scene design terminal adjusting a target object corresponding to an adjustment operation in an initial 3D virtual scene; generating a first parameter file based on the attribute parameters of the adjusted target object; sending the first parameter file to a software development terminal; enabling the software development terminal to render and display the initial 3D virtual scene based on a pre-acquired scene file; and updating the target object in the initial 3D virtual scene according to the adjusted attribute parameters of the target object in the first parameter file, thus obtaining a target 3D virtual scene for virtual scene testing. The scene parameter adjustment is performed by the scene design terminal, improving debugging efficiency. Furthermore, packaging the first parameter file and sending it to the software development terminal reduces resource usage and allows the technical team to see the modification effects in real time. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 Flowchart of the scene debugging method provided in the embodiments of this application Figure 1 ;
[0018] Figure 2 Flowchart of the scene debugging method provided in the embodiments of this application Figure 2 ;
[0019] Figure 3 A schematic diagram of the debugging panel provided in an embodiment of this application;
[0020] Figure 4 Flowchart of the scene debugging method provided in the embodiments of this application Figure 3 ;
[0021] Figure 5 Flowchart of the scene debugging method provided in the embodiments of this application Figure 4 ;
[0022] Figure 6 Flowchart of the scene debugging method provided in the embodiments of this application Figure 5 ;
[0023] Figure 7 This is a schematic diagram of the structure of the virtual scene debugging device provided in the embodiments of this application;
[0024] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0026] First, let's explain the relevant concepts involved in this application:
[0027] Web3D technology: A technology that enables virtual reality on web pages without the need for plugins, allowing web pages to support the display and interaction of 3D models.
[0028] Threejs editor: An online tool based on the Three.js library, primarily used for creating and editing 3D scenes for web pages.
[0029] Parameter tuning: A process of optimizing performance or effects by adjusting various parameter settings.
[0030] JSON files: A lightweight, easy-to-read, and easy-to-parse data format. JSON's simplicity and efficiency make it one of the preferred formats for modern data transmission and storage.
[0031] Currently, when building a virtual scene, the artists usually need to import the scene resources into an editor (such as Threejseditor) and make some parameter adjustments in the editor. The artists cannot adjust other parameters on their own and need to integrate and package the modified scene and send it to the technical team to check the effect. Based on the effect, the technical team can further adjust the parameters and develop the code.
[0032] During the aforementioned scene debugging process, it is necessary to rely on the art team and the technical team to communicate and repeatedly debug the parameters in the scene face-to-face until the expected effect is achieved. This is quite cumbersome and not conducive to multi-functional collaboration. Moreover, the art team cannot complete the parameter tuning process independently and is heavily dependent on the technical team, resulting in low efficiency. In addition, after each adjustment, the art team needs to integrate and package the entire scene and output it to the technical team. During this process, the technical team may make other adjustments to the scene. The art team and the technical team cannot see each other's modification effects in real time, which is not conducive to multi-functional collaboration. Furthermore, the modification effects seen by the art team and the technical team in their respective editors may be inconsistent, which may lead to repeated adjustments by both parties and a complex modification process.
[0033] Based on this, this application provides a scene debugging method in which the scene design terminal (artist) independently adjusts the scene parameters, reducing reliance on technical personnel. Furthermore, the first parameter file is packaged and given to the software development terminal (technical team), reducing resource consumption. This allows the technical team to see the modification effects in real time, reducing communication costs and repetitive work, and improving the efficiency of multi-functional collaboration.
[0034] Figure 1 Flowchart of the scene debugging method provided in the embodiments of this application Figure 1 In this embodiment, the execution entity can be a scene design terminal, which can be a terminal device corresponding to the artist or the animator.
[0035] like Figure 1 As shown, the method may include:
[0036] S101. Based on the adjustment operation for the initial 3D virtual scene, adjust the target object corresponding to the adjustment operation in the initial 3D virtual scene.
[0037] The initial 3D virtual scene can include multiple virtual objects, such as virtual buildings, virtual animals, virtual characters, and virtual cameras. The artist can input adjustment operations for the initial 3D virtual scene, and the scene design terminal adjusts the target object in the initial 3D virtual scene according to the adjustment operation. The adjustment operation is applied to the target object in the initial 3D virtual scene.
[0038] The initial 3D virtual scene can be a virtual scene to be presented on a webpage, that is, the initial 3D virtual scene can be a 3D network element scene.
[0039] In an optional implementation, adjusting the target object in the initial 3D virtual scene may include adjusting the target object's attribute parameters. If the target object is a virtual camera, the position of the virtual camera can be adjusted; if the target object is a virtual building, the position, lighting intensity, texture resources, texture parameters, etc., of the virtual building can be adjusted. Adjusting texture resources, for example, may involve changing the color of the texture. Figure 1 Adjust to color sticker Figure 2 Adjusting texture parameters can include adjusting texture roughness, texture black and white contrast, etc.
[0040] In another alternative implementation, adjusting the target object in the initial 3D virtual scene may include replacing the target object with another object, such as replacing virtual building 1 with virtual building 2.
[0041] In an optional implementation, before adjusting the target object corresponding to the adjustment operation in the initial 3D virtual scene according to the adjustment operation for the initial 3D virtual scene, the method may further include:
[0042] Obtain the scene file of the initial 3D virtual scene; render and display the initial 3D virtual scene based on the scene file.
[0043] The initial 3D virtual scene file can include model resources of virtual models in the 3D virtual scene, texture resources of virtual models, and virtual camera information. The virtual models can include models of virtual buildings, virtual animals, virtual characters, etc. The texture resources of the virtual models can include normal maps, color maps, material maps, etc. The virtual camera information is used to indicate the position of the virtual camera in the 3D virtual scene.
[0044] An editor (such as the Threejs editor) can be deployed on the scene design terminal. Artists can import the scene files of the initial 3D virtual scene into the editor by inputting resource import operations through the editor. The editor can then render and display the initial 3D virtual scene based on the scene files.
[0045] S102. Generate the first parameter file based on the adjusted attribute parameters of the target object.
[0046] After adjusting the target object in the initial 3D virtual scene, a first parameter file can be generated based on the attribute parameters of the adjusted target object. The first parameter file includes the attribute parameters of the adjusted target object.
[0047] If the adjustment is made to the attribute parameters of the target object, the adjusted attribute parameters of the target object may include the adjusted position of the virtual camera, the adjusted position of the virtual building, the adjusted light intensity, the adjusted texture resources, and the adjusted texture parameters.
[0048] If the target object is adjusted, that is, the adjusted target object is the replaced object (such as virtual building 2), the attribute parameters of the adjusted target object may include: the position of the adjusted target object, the light intensity, the texture resources, the texture parameters, etc.
[0049] S103. Send the first parameter file to the software development terminal so that the software development terminal renders and displays the initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted attribute parameters of the target object in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
[0050] The scene design terminal sends a first parameter file to the software development terminal. The software development terminal renders and displays an initial 3D virtual scene based on the pre-acquired scene file, and updates the target object in the initial 3D virtual scene according to the adjusted attribute parameters of the target object in the first parameter file to obtain the target 3D virtual scene. For example, updating the position of the virtual camera, the position of the virtual building, and the light intensity of the virtual building in the initial 3D virtual scene will result in the target 3D virtual scene.
[0051] An editor can be deployed on the software development terminal. The editor renders and displays the initial 3D virtual scene and updates the target objects in the initial 3D virtual scene according to the first parameter file to obtain the target 3D virtual scene.
[0052] In other words, during the scene adjustments made by the art team, if the technical team needs to view updates in real time, they can generate a first parameter file. The technical team simply drags and drops this first parameter file into their deployed editor to read the file, enabling real-time iteration of the current scene. This method ensures that the scene perfectly replicates the art team's intended result, reduces resource usage, and avoids repeated modifications caused by differences in the environments of the editors deployed by the art and technical teams. It also allows the technical team to see the art team's modifications instantly, reducing communication costs and repetitive work, and improving work efficiency.
[0053] It is worth noting that the editor integrates a preset shared debugging tool. Using this tool, a first parameter file can be generated based on the adjusted attribute parameters of the target object, and then the first parameter file can be sent to the software development terminal.
[0054] In an optional implementation, step S102 above, generating a first parameter file based on the adjusted attribute parameters of the target object, includes: using a parameter generation plugin of a preset shared debugging tool to generate a first parameter file based on the adjusted attribute parameters of the target object.
[0055] Step S103 above, sending the first parameter file to the software development terminal, includes: using a file sending plugin of a preset shared debugging tool to send the first parameter file to the software development terminal.
[0056] The preset shared debugging tool integrates a parameter generation plugin and a file sending plugin. The parameter generation plugin generates a first parameter file based on the adjusted target object's attribute parameters, and the file sending plugin sends this first parameter file to the software development terminal. This achieves automatic generation and sending of the parameter file.
[0057] The software development terminal can also build a code framework to generate interactive code for the target 3D virtual scene based on the code input operation of the technical party. The interactive code is used to indicate the interactive logic in the target 3D virtual scene. For example, if the target 3D virtual scene is a scene of a person picking up a cup, the interactive logic is used to indicate the triggering condition for the person to pick up the cup. For example, when the person walks to the area where the cup is located, the scene of the person picking up the cup is displayed.
[0058] The software development terminal can also use Web3D technology to render and generate the target 3D virtual scene on the target webpage based on the scene file and interaction code of the target 3D virtual scene. Then, the test address of the target webpage is published so that the tester can perform scene testing and interaction testing on the target 3D virtual scene presented on the target webpage based on the test address.
[0059] In this embodiment, the scene design terminal (artist) independently adjusts the scene parameters, reducing reliance on technical personnel. The first parameter file is packaged and sent to the software development terminal (technical team), reducing resource usage. This allows the technical team to see the modification effects in real time, reducing communication costs and repetitive work, and improving the efficiency of multi-functional collaboration.
[0060] In an alternative implementation, the method may further include:
[0061] Receive test results sent by the scenario test terminal;
[0062] If the test results indicate that the test fails, adjust the scene resources and / or readjust the target objects in the initial 3D virtual scene.
[0063] The tester performs scene testing and interaction testing of the target 3D virtual scene based on the test address, and sends the test results to the scene design terminal through the scene test terminal. If the test result indicates that the test fails, the scene design terminal can adjust the scene resources, re-render and display the initial 3D virtual scene according to the adjusted scene resources, and repeat the above steps until the test passes. Alternatively, the scene design terminal can readjust the target objects in the initial 3D virtual scene and repeat the above steps until the test passes.
[0064] In an alternative implementation, the method may further include:
[0065] Receive a third parameter file for the target 3D virtual scene sent by the software development terminal. The third parameter file is a parameter file generated based on the attribute parameters of other objects in the target 3D virtual scene after adjustment.
[0066] Update other objects in the adjusted initial 3D virtual scene based on the adjusted attribute parameters of other objects in the third parameter file.
[0067] Among them, other objects can be any object in the target 3D virtual scene. Other objects can be target objects or not, depending on actual needs. This embodiment does not make any special limitations on this.
[0068] The technical team can also adjust other objects in the target 3D virtual scene through the software development terminal. The software development terminal responds to the input adjustment operation for other objects in the target 3D virtual scene and adjusts the other objects in the target 3D virtual scene.
[0069] In an optional implementation, receiving a third parameter file for a target 3D virtual scene sent by a software development terminal includes: using a file receiving plugin of a preset shared debugging tool to receive the third parameter file sent by the software development terminal through the file sending plugin of the preset shared debugging tool.
[0070] The software development terminal is equipped with an editor that integrates a preset shared debugging tool. This tool includes file receiving, file sending, and parameter generation plugins. After the technical team adjusts other objects in the target 3D virtual scene using the editor on the software development terminal, the parameter generation plugin of the preset shared debugging tool generates a third parameter file based on the adjusted object attributes. The file sending plugin of the same tool then sends this third parameter file to the scene design terminal, which receives it using the file receiving plugin. This achieves automatic parameter file generation, sending, and reception.
[0071] In an optional implementation, adjusting other objects in the target 3D virtual scene may include adjusting the attribute parameters of the other objects. If the other object is a virtual camera, the position of the virtual camera can be adjusted; if the other object is a virtual building, the position, lighting intensity, texture resources, texture parameters, etc. of the virtual building can be adjusted. Adjusting texture resources, for example, may involve changing the color of the texture. Figure 1 Adjust to color sticker Figure 2 Adjusting texture parameters can include adjusting texture roughness, texture black and white contrast, etc.
[0072] In another alternative implementation, adjusting other objects in the target 3D virtual scene may include replacing other objects with another object, such as replacing virtual building 1 with virtual building 2.
[0073] After adjusting other objects in the target 3D virtual scene, a third parameter file can be generated. The third parameter file is a parameter file generated based on the adjusted attribute parameters of other objects in the target 3D virtual scene. The third parameter file includes the adjusted attribute parameters of other objects.
[0074] If the attribute parameters of other objects are adjusted, the adjusted attribute parameters of other objects may include the adjusted position of the virtual camera, the adjusted position of the virtual building, the adjusted light intensity, the adjusted texture resources, and the adjusted texture parameters.
[0075] If other objects are adjusted, that is, the adjusted other objects are replaced objects (such as virtual building 2), the attribute parameters of the adjusted other objects may include: the position of the adjusted other objects, lighting intensity, texture resources, texture parameters, etc.
[0076] The software development terminal sends a third parameter file to the scene design terminal. Correspondingly, the scene design terminal receives the third parameter file sent by the software development terminal and updates the other objects in the adjusted initial 3D virtual scene according to the adjusted attribute parameters of other objects in the third parameter file, so that the attribute parameters of other objects in the adjusted initial 3D virtual scene are the same as the attribute parameters of other objects in the third parameter file.
[0077] Then, the artists can view the effect of the updated initial 3D virtual scene. If it meets the expected effect, they can send a test instruction to the software development terminal to conduct virtual scene testing on the adjusted target 3D virtual scene.
[0078] The adjusted initial 3D virtual scene is the target 3D virtual scene. The adjusted initial 3D virtual scene is the 3D virtual scene obtained by adjusting the target object in the initial 3D virtual scene according to the adjustment operation on the initial 3D virtual scene.
[0079] In some embodiments, after adjusting other objects in the target 3D virtual scene, the software development terminal can also generate a scene link of the adjusted target 3D virtual scene and send the scene link to the scene design terminal. The scene design terminal responds to the scene link, renders and displays the adjusted target 3D virtual scene, and the artist can view the effect of the adjusted target 3D virtual scene. If the effect meets the expectations, a test instruction is sent to the software development terminal to perform virtual scene testing on the adjusted target 3D virtual scene.
[0080] In this embodiment, during the process of the technical team adjusting the scene, if the art team needs to view updates in real time, a third-party parameter file is generated. The art team simply drags and drops this file into their deployed editor to read the file, enabling real-time iteration of the current scene. This method ensures that the scene completely replicates the art team's expected results, reduces resource usage, and avoids repeated modifications caused by differences in the environments of the editors deployed by the art and technical teams. This allows the art team to see the technical team's modifications instantly, reducing communication costs and repetitive work, and improving work efficiency.
[0081] Figure 2 Flowchart of the scene debugging method provided in the embodiments of this application Figure 2 ,like Figure 2 As shown, in an optional implementation, step S103 above, adjusting the target object corresponding to the adjustment operation in the initial 3D virtual scene according to the adjustment operation for the initial 3D virtual scene, may include:
[0082] S201. A plugin for generating a debug panel using a preset shared debug tool is used to generate and display the debug panel of the initial 3D virtual scene based on the initial 3D virtual scene.
[0083] A plugin for generating a debug panel using a pre-defined shared debug tool is used to traverse the virtual objects and their attributes in the initial 3D virtual scene. Based on the virtual objects and their attributes in the initial 3D virtual scene, a debug panel for the initial 3D virtual scene is generated and displayed. The virtual objects can be, for example, virtual buildings, virtual animals, virtual characters, virtual cameras, etc. The attributes of the virtual objects can include lighting attributes, position attributes, rotation angle attributes, scaling attributes, transparency attributes, roughness attributes, metallicity attributes, texture attributes, and field of view (FOV) attributes.
[0084] The debugging panel can include attribute parameters of virtual objects in the initial 3D virtual scene, such as virtual object parameters, lighting parameters, position parameters, rotation angle parameters, scaling parameters, transparency parameters, roughness parameters, metallicity parameters, texture parameters, and camera field of view (FOV) parameters.
[0085] Of course, the art team can also manually add or delete parameter items in the debugging panel according to actual needs. This embodiment does not make any special restrictions on the specific parameter items in the debugging panel.
[0086] S202. Adjust the target object in the initial 3D virtual scene according to the adjustment operation input through the debugging panel.
[0087] The artist inputs adjustment operations through the debugging panel to adjust target objects in the initial 3D virtual scene. The initial 3D virtual scene is rendered and displayed in the scene design terminal based on scene resources. The artist can then adjust the target objects in the currently displayed initial 3D virtual scene based on the effect of the initial 3D virtual scene and actual needs, by inputting adjustment operations through the adjustment panel. The target object can be a virtual object pre-selected by the artist from the initial 3D virtual scene.
[0088] For example, the virtual object parameter includes multiple candidate virtual objects. The artist can select one candidate virtual object and replace the target object in the initial 3D virtual scene with the candidate object, such as replacing virtual building 1 with virtual building 2.
[0089] For example, the lighting parameters section includes multiple candidate lighting values. The artist can select one of these candidate values to adjust the lighting value of the target object in the initial 3D virtual scene. Alternatively, the lighting parameters section provides an adjustment progress bar, allowing the target object's lighting value to be adjusted through dragging, clicking, or other operations.
[0090] In this embodiment, by displaying the debugging panel of the initial 3D virtual scene, the artist can easily adjust the target objects in the initial 3D virtual scene through the debugging panel, making the adjustments more targeted. Furthermore, by providing a complete debugging panel, the artist's workflow is simplified, and the artist can directly adjust parameters on the debugging panel without writing code. This not only greatly simplifies the adjustment process, but also allows the artist to create more autonomously and reduces dependence on the technical team.
[0091] Figure 3 A schematic diagram of the debugging panel provided in the embodiments of this application, as shown below. Figure 3 As shown, the debugging panel includes lighting parameters, position parameters, rotation angle parameters, and candidate virtual object 1 and candidate virtual object 2.
[0092] In an optional implementation, step S201 above, which uses a preset shared debugging tool's debugging panel generation plugin to generate and display the debugging panel of the initial 3D virtual scene based on the initial 3D virtual scene, includes:
[0093] The plugin generates a debug panel that displays the debug panel of the target object based on the object selection operation input for the initial 3D virtual scene.
[0094] The artist can select any object in the initial 3D virtual scene. This selected object becomes the target object, and a plugin is generated using the preset shared debugging tool's debugging panel to display the target object's debugging panel. The target object's debugging panel can include parameters corresponding to the target object's attributes. For example, if the target object is a multi-faceted model, the parameters can include transparency, roughness, metallicity, and self-illumination parameters for the faces that make up the virtual object; for the multi-faceted model, the parameters include light intensity, color, distance, shadow on / off parameters, environment map parameters, and post-processing effect parameters. The environment map parameters include multiple switchable environment maps, and the post-processing effect parameters can include depth of field, glow, filter parameters, look-up table (LUT) parameters, and anti-aliasing parameters.
[0095] In this embodiment, a debug panel visualization is optimized by using a debug panel generation plugin, providing a collapsible debug panel that can be displayed when a target object is selected, and offering a wealth of effect adjustments.
[0096] In an optional implementation, step S104 above, generating a first parameter file based on the adjusted attribute parameters of the target object, may include: generating a first parameter file based on the file export operation input through the debug panel and the adjusted attribute parameters of the target object.
[0097] Artists can input a file export operation through the debugging panel. Based on this file export operation, a first parameter file is generated according to the adjusted attribute parameters of the target object. The debugging panel has a file export option. Artists can click the file export option to export the adjusted attribute parameters of the target object and generate the first parameter file. The first parameter file includes the adjusted attribute parameters of the target object.
[0098] Understandably, when generating the first parameter file, the file format can be specified, such as JSON format. In other words, the one-click file export function makes it easy for the art team and the technical team to synchronize the latest changes.
[0099] Figure 4 Flowchart of the scene debugging method provided in the embodiments of this application Figure 3 ,like Figure 4 As shown, in an optional implementation, step S202, which adjusts the target object in the initial 3D virtual scene according to the adjustment operation input through the debugging panel, may include step S301 or step S302:
[0100] S301. Adjust the attribute parameters of the target object in the initial 3D virtual scene according to the parameters input through the debugging panel.
[0101] The artists can adjust the attribute parameters of the target objects in the initial 3D virtual scene by inputting parameters through the debugging panel. These attribute parameters may include, for example, lighting parameters, position parameters, and rotation angle parameters.
[0102] In an optional implementation, the artist can input target parameters through the debugging panel to adjust the attribute parameters of the target object in the initial 3D virtual scene to the target parameters. Alternatively, the debugging panel may include parameter items for the target object, such as lighting parameters, position parameters, and rotation angle parameters. The artist can select any parameter item and adjust the parameter of the target object in that parameter item.
[0103] S302. Based on the object replacement operation input through the debugging panel, replace the target object in the initial 3D virtual scene with another object corresponding to the object replacement operation.
[0104] The debugging panel can display multiple candidate objects. Artists can input object replacement operations through the debugging panel. The replacement operation corresponds to another object. Based on the object replacement operation, the target object in the initial 3D virtual scene is replaced with the other object. The adjusted target object is the other object. For example, if the target object is virtual building 1 and the candidate objects include virtual building 2 and virtual building 3, then after the artist selects virtual building 3, virtual building 1 in the initial 3D virtual scene can be replaced with virtual building 3.
[0105] In this embodiment, a complete debugging panel is provided by using a debugging panel generation plugin. This allows not only the parameters to be adjusted but also the entire virtual object to be replaced. As a result, the artists can independently adjust the scene parameters, reducing their reliance on technical personnel.
[0106] Figure 5 Flowchart of the scene debugging method provided in the embodiments of this application Figure 4 ,like Figure 5 As shown, in an optional implementation, step S301 above, adjusting the attribute parameters of the target object in the initial 3D virtual scene according to the parameter adjustment operation input through the debugging panel, may include:
[0107] S402. Adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item according to the parameter adjustment operation input for the target object in the debug panel.
[0108] The debugging panel can include attribute parameters of the target object, such as lighting parameters, position parameters, rotation angle parameters, scaling parameters, transparency parameters, roughness parameters, and metallicity parameters.
[0109] The target parameter item can be any of the attribute parameters of the target object. The artist can input parameter adjustment operations for the target parameter item through the debugging panel to adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item. For example, if the target parameter item is a lighting parameter item, then the lighting parameters of the target object under the lighting parameter item will be adjusted.
[0110] In one implementation, the target parameter item can have multiple candidate parameter values. The parameter adjustment operation is a selection operation for any one of the multiple candidate parameter values. That is, the artist selects any candidate parameter value to adjust the parameter of the target object in the initial 3D virtual scene under the target parameter item to the selected candidate parameter value.
[0111] In another implementation, the target parameter item has an adjustment progress, and the parameter adjustment operation is a selection operation for the adjustment progress. This selection operation can include, for example, dragging or clicking. In other words, it supports dragging, clicking and other operations to flexibly modify the parameters of the target object under the target parameter item.
[0112] In step S402 above, before adjusting the parameters of the target object in the initial 3D virtual scene under the target parameter item according to the parameter adjustment operation input for the target parameter item of the target object in the debugging panel, the method may further include:
[0113] S401. Based on the parameter items entered through the debugging panel, determine the target parameter items of the target object.
[0114] The debugging panel now includes a parameter search bar. Artists can use the debugging panel to search for parameters by entering the target parameter in the search bar to determine the target parameter of the target object. Then, they can adjust the parameters of the target object under the target parameter by entering parameter adjustment operations.
[0115] When there are many attribute parameters of the target object, searching by parameter item eliminates the need for searching, simplifies the parameter adjustment operation for the artist, and improves the ease of operation.
[0116] In an optional implementation, step S301, which adjusts the attribute parameters of the target object in the initial 3D virtual scene according to the parameter adjustment operation input through the debugging panel, may further include:
[0117] S403. Confirm that the file import operation entered through the debug panel is a parameter adjustment operation.
[0118] S404. Based on the second parameter file imported by the file import operation, adjust the attribute parameters of the target object in the initial 3D virtual scene.
[0119] The second parameter file includes target attribute parameters. The file import operation entered through the debug panel is determined to be a parameter adjustment operation. The artist enters the file import operation through the debug panel, which has a file import item. The artist can click the file import item to import the second parameter file from a preset storage location into the editor. Based on the target attribute parameters in the second parameter file, the artist adjusts the attribute parameters of the target objects in the initial 3D virtual scene. For example, if the target attribute parameters in the second parameter file include target color attribute parameters and target position attribute parameters, then the color attribute parameters of the target objects in the initial 3D virtual scene will be adjusted to the target color attribute parameters in the second parameter file, and the position attribute parameters will be adjusted to the target position attribute parameters in the second parameter file.
[0120] It is worth noting that the target attribute parameter can be the attribute parameter of a virtual object in another 3D virtual scene, and the file format of the second parameter file can be JSON.
[0121] In this embodiment, the parameter batch adjustment is achieved by using a debugging panel to generate a plugin that provides individual parameter adjustment and one-click import function. This provides a relatively rich set of scene adjustment methods. Furthermore, the one-click import function allows parameters from other scenes to be stored and reused in this scene, solving the problem of low reusability of existing parameters, enhancing parameter storage and reusability, and improving cross-project work efficiency.
[0122] Figure 6 Flowchart of the scene debugging method provided in the embodiments of this application Figure 5 ,like Figure 6 As shown, in an optional implementation, obtaining the scene file of the initial 3D virtual scene may include:
[0123] S501. Based on the preset two-dimensional scene design drawing, and using the preset artificial intelligence model, generate the model resources, texture resources, and virtual camera information of the initial three-dimensional virtual scene.
[0124] S502. Based on the model resources, texture resources, and virtual camera information, composite the data to generate a scene file.
[0125] Among them, the preset two-dimensional scene design drawing can be generated using an artificial intelligence model, such as an Artificial Intelligence Generated Content model.
[0126] Using a preset 2D scene design as the model input, and employing a preset artificial intelligence model, the model resources, texture resources, and virtual camera information of the initial 3D virtual scene are generated. Then, the model resources, texture resources, and virtual camera information are synthesized to obtain the scene file of the initial 3D virtual scene.
[0127] In one possible implementation, after creating materials (model resources, texture resources, virtual camera information) using an artificial intelligence model, post-processing can be performed in processing software (such as PS, AE, 3D software), for example, adjusting brightness, color, etc., and then the processed materials can be combined (composite) in software that can output video to generate the scene file of the initial 3D virtual scene.
[0128] After generating scene files through the scene design terminal, the requester, the technical team, and the designer can jointly review them. If the review fails, the preset two-dimensional scene design drawing and / or the materials can be modified, and the above process can be repeated until the review is approved.
[0129] In this embodiment, the model resources, texture resources, and virtual camera information of the initial 3D virtual scene are generated by an artificial intelligence model, and the scene file of the initial 3D virtual scene is synthesized, which simplifies the design work of the artists and reduces costs.
[0130] Figure 7 This is a schematic diagram of the structure of the virtual scene debugging device provided in the embodiment of this application. The device can be integrated into the scene design terminal.
[0131] like Figure 7 As shown, the device may include:
[0132] The processing module 601 is used to adjust the target object in the initial three-dimensional virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial three-dimensional virtual scene;
[0133] The processing module 601 is also used to generate a first parameter file based on the adjusted attribute parameters of the target object;
[0134] The sending module 602 is used to send a first parameter file to the software development terminal, so that the software development terminal renders and displays an initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted attribute parameters of the target object in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
[0135] In an optional implementation, the processing module 601 is specifically used for:
[0136] A plugin for generating debug panels using a pre-defined shared debug tool generates and displays the debug panel of the initial 3D virtual scene based on the initial 3D virtual scene.
[0137] Adjust the target objects in the initial 3D virtual scene according to the adjustment operations entered through the debugging panel.
[0138] In an optional implementation, the processing module 601 is specifically used for:
[0139] The plugin generates a debug panel that displays the debug panel of the target object based on the object selection operation input for the initial 3D virtual scene.
[0140] In an optional implementation, the processing module 601 is specifically used for:
[0141] Adjust the attribute parameters of the target object in the initial 3D virtual scene based on the parameters input through the debugging panel; or...
[0142] Based on the object replacement operation input through the debugging panel, the target object in the initial 3D virtual scene is replaced with another object corresponding to the object replacement operation, and the adjusted target object is another object.
[0143] In an optional implementation, the processing module 601 is specifically used for:
[0144] Adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target object in the debug panel.
[0145] In an optional implementation, the processing module 601 is specifically used for:
[0146] The target parameter items of the target object are determined by searching the parameters entered through the debug panel.
[0147] In an optional implementation, the processing module 601 is specifically used for:
[0148] Confirm that the file import operation entered through the debug panel is a parameter adjustment operation;
[0149] Based on the second parameter file imported by the file import operation, adjust the attribute parameters of the target object in the initial 3D virtual scene. The second parameter file includes: target attribute parameters.
[0150] In an optional implementation, the processing module 601 is specifically used for:
[0151] Based on the file export operation input through the debug panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0152] In an optional implementation, it further includes:
[0153] The acquisition module 603 is used to acquire the scene file of the initial 3D virtual scene;
[0154] The processing module 601 is also used to render and display the initial 3D virtual scene based on the scene file.
[0155] In an optional implementation, the acquisition module 603 is specifically used for:
[0156] Based on the preset two-dimensional scene design drawings, and using the preset artificial intelligence model, the model resources, texture resources, and virtual camera information of the initial three-dimensional virtual scene are generated.
[0157] The scene file is generated by compositing model resources, texture resources, and virtual camera information.
[0158] In an optional implementation, the processing module 601 is specifically used for:
[0159] The parameter generation plugin of the preset shared debugging tool is used to generate the first parameter file based on the adjusted attribute parameters of the target object;
[0160] The sending module 602 is specifically used for:
[0161] The first parameter file is sent to the software development terminal using a file sending plugin of a pre-set shared debugging tool.
[0162] In an optional embodiment, the device further includes:
[0163] The receiving module 604 is used to receive a third parameter file for the target 3D virtual scene sent by the software development terminal. The third parameter file is a parameter file generated based on the attribute parameters of other objects in the target 3D virtual scene after adjustment.
[0164] The processing module 601 is also used to update other objects in the adjusted initial 3D virtual scene according to the attribute parameters of other objects adjusted in the third parameter file.
[0165] In an optional implementation, the receiving module 604 is specifically used for:
[0166] The file receiving plugin of the preset shared debugging tool is used to receive the third parameter file sent by the software development terminal through the file sending plugin of the preset shared debugging tool.
[0167] In this embodiment, the processing module is used to adjust the target object corresponding to the adjustment operation in the initial 3D virtual scene according to the adjustment operation for the initial 3D virtual scene. The processing module is also used to generate a first parameter file according to the attribute parameters of the adjusted target object. The sending module is used to send the first parameter file to the software development terminal, so that the software development terminal renders and displays the initial 3D virtual scene according to the pre-acquired scene file, and updates the target object in the initial 3D virtual scene according to the attribute parameters of the adjusted target object in the first parameter file, thereby obtaining the target 3D virtual scene for virtual scene testing. The scene parameter tuning is performed by the scene design terminal, which improves debugging efficiency. Furthermore, packaging the first parameter file and sending it to the software development terminal reduces resource usage, allowing the technical team to see the modification effects in real time.
[0168] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The device can be implemented using the terminal designed in the above scenario.
[0169] like Figure 8As shown, the device may include a processor 701, a memory 702, and a bus 703. The memory 702 stores machine-readable instructions executable by the processor 701. When the electronic device is running, the processor 701 communicates with the memory 702 via the bus 703. The processor executes the machine-readable instructions to perform the following steps:
[0170] Based on the adjustment operations performed on the initial 3D virtual scene, adjust the target objects in the initial 3D virtual scene corresponding to the adjustment operations;
[0171] Generate the first parameter file based on the adjusted attribute parameters of the target object;
[0172] Send a first parameter file to the software development terminal so that the software development terminal can render and display an initial 3D virtual scene based on the pre-acquired scene file, and update the target object in the initial 3D virtual scene according to the adjusted attribute parameters of the target object in the first parameter file, so as to obtain the target 3D virtual scene for virtual scene testing.
[0173] In an optional implementation, adjusting the target object in the initial 3D virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial 3D virtual scene includes:
[0174] A plugin for generating debug panels using a pre-defined shared debug tool generates and displays the debug panel of the initial 3D virtual scene based on the initial 3D virtual scene.
[0175] Adjust the target objects in the initial 3D virtual scene according to the adjustment operations entered through the debugging panel.
[0176] In an optional implementation, the debug panel generation plugin is used to generate and display a debug panel of the initial 3D virtual scene based on the initial 3D virtual scene, including:
[0177] The plugin generates a debug panel that displays the debug panel of the target object based on the object selection operation input for the initial 3D virtual scene.
[0178] In an optional implementation, adjusting the target object in the initial 3D virtual scene according to the adjustment operation input via the debugging panel includes:
[0179] Adjust the attribute parameters of the target object in the initial 3D virtual scene based on the parameters input through the debugging panel; or...
[0180] Based on the object replacement operation input through the debugging panel, the target object in the initial 3D virtual scene is replaced with another object corresponding to the object replacement operation, and the adjusted target object is another object.
[0181] In an optional implementation, the attribute parameters of the target object in the initial 3D virtual scene are adjusted according to the parameter adjustment operation input via the debugging panel, including:
[0182] Adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target object in the debug panel.
[0183] In an optional implementation, before adjusting the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target parameter item of the target object in the debug panel, the method further includes:
[0184] The target parameter items of the target object are determined by searching the parameters entered through the debug panel.
[0185] In an optional implementation, the attribute parameters of the target object in the initial 3D virtual scene are adjusted according to the parameter adjustment operation input via the debugging panel, including:
[0186] Confirm that the file import operation entered through the debug panel is a parameter adjustment operation;
[0187] Based on the second parameter file imported by the file import operation, adjust the attribute parameters of the target object in the initial 3D virtual scene. The second parameter file includes: target attribute parameters.
[0188] In an optional implementation, a first parameter file is generated based on the adjusted attribute parameters of the target object, including:
[0189] Based on the file export operation input through the debug panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0190] In an optional implementation, the method further includes:
[0191] Obtain the scene file of the initial 3D virtual scene;
[0192] Render and display the initial 3D virtual scene based on the scene file.
[0193] In an optional implementation, obtaining the scene file of the initial 3D virtual scene includes:
[0194] Based on the preset two-dimensional scene design drawings, and using the preset artificial intelligence model, the model resources, texture resources, and virtual camera information of the initial three-dimensional virtual scene are generated.
[0195] The scene file is generated by compositing model resources, texture resources, and virtual camera information.
[0196] In an optional implementation, a first parameter file is generated based on the adjusted attribute parameters of the target object, including:
[0197] The parameter generation plugin of the preset shared debugging tool is used to generate the first parameter file based on the adjusted attribute parameters of the target object;
[0198] Send the first parameter file to the software development terminal, including:
[0199] The first parameter file is sent to the software development terminal using a file sending plugin of a pre-set shared debugging tool.
[0200] In an optional implementation, the method further includes:
[0201] Receive a third parameter file for the target 3D virtual scene sent by the software development terminal. The third parameter file is a parameter file generated based on the attribute parameters of other objects in the target 3D virtual scene after adjustment.
[0202] Update other objects in the adjusted initial 3D virtual scene based on the adjusted attribute parameters of other objects in the third parameter file.
[0203] In an optional implementation, a third parameter file for the target 3D virtual scene is received from a software development terminal, including:
[0204] The file receiving plugin of the preset shared debugging tool is used to receive the third parameter file sent by the software development terminal through the file sending plugin of the preset shared debugging tool.
[0205] In this embodiment, the processor executes machine-readable instructions to perform adjustments to the target objects corresponding to the adjustments in the initial 3D virtual scene, based on the adjustment operations for the initial 3D virtual scene. Based on the attribute parameters of the adjusted target objects, a first parameter file is generated and sent to the software development terminal. This allows the software development terminal to render and display the initial 3D virtual scene according to a pre-acquired scene file, and update the target objects in the initial 3D virtual scene according to the adjusted attribute parameters in the first parameter file, thus obtaining the target 3D virtual scene for virtual scene testing. Having the scene design terminal perform the scene parameter tuning improves debugging efficiency, and packaging the first parameter file for the software development terminal reduces resource usage, allowing the technical team to see the modification effects in real time.
[0206] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor performs the following steps:
[0207] Based on the adjustment operations performed on the initial 3D virtual scene, adjust the target objects in the initial 3D virtual scene corresponding to the adjustment operations;
[0208] Generate the first parameter file based on the adjusted attribute parameters of the target object;
[0209] Send a first parameter file to the software development terminal so that the software development terminal can render and display an initial 3D virtual scene based on the pre-acquired scene file, and update the target object in the initial 3D virtual scene according to the adjusted attribute parameters of the target object in the first parameter file, so as to obtain the target 3D virtual scene for virtual scene testing.
[0210] In an optional implementation, adjusting the target object in the initial 3D virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial 3D virtual scene includes:
[0211] A plugin for generating debug panels using a pre-defined shared debug tool generates and displays the debug panel of the initial 3D virtual scene based on the initial 3D virtual scene.
[0212] Adjust the target objects in the initial 3D virtual scene according to the adjustment operations entered through the debugging panel.
[0213] In an optional implementation, a debug panel generation plugin for a pre-defined shared debug tool is used to generate and display a debug panel for the initial 3D virtual scene, including:
[0214] The plugin generates a debug panel that displays the debug panel of the target object based on the object selection operation input for the initial 3D virtual scene.
[0215] In an optional implementation, adjusting the target object in the initial 3D virtual scene according to the adjustment operation input via the debugging panel includes:
[0216] Adjust the attribute parameters of the target object in the initial 3D virtual scene based on the parameters input through the debugging panel; or...
[0217] Based on the object replacement operation input through the debugging panel, the target object in the initial 3D virtual scene is replaced with another object corresponding to the object replacement operation, and the adjusted target object is another object.
[0218] In an optional implementation, the attribute parameters of the target object in the initial 3D virtual scene are adjusted according to the parameter adjustment operation input via the debugging panel, including:
[0219] Adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target object in the debug panel.
[0220] In an optional implementation, before adjusting the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target parameter item of the target object in the debug panel, the method further includes:
[0221] The target parameter items of the target object are determined by searching the parameters entered through the debug panel.
[0222] In an optional implementation, the attribute parameters of the target object in the initial 3D virtual scene are adjusted according to the parameter adjustment operation input via the debugging panel, including:
[0223] Confirm that the file import operation entered through the debug panel is a parameter adjustment operation;
[0224] Based on the second parameter file imported by the file import operation, adjust the attribute parameters of the target object in the initial 3D virtual scene. The second parameter file includes: target attribute parameters.
[0225] In an optional implementation, a first parameter file is generated based on the adjusted attribute parameters of the target object, including:
[0226] Based on the file export operation input through the debug panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0227] In an optional implementation, the method further includes:
[0228] Obtain the scene file of the initial 3D virtual scene;
[0229] Render and display the initial 3D virtual scene based on the scene file.
[0230] In an optional implementation, obtaining the scene file of the initial 3D virtual scene includes:
[0231] Based on the preset two-dimensional scene design drawings, and using the preset artificial intelligence model, the model resources, texture resources, and virtual camera information of the initial three-dimensional virtual scene are generated.
[0232] The scene file is generated by compositing model resources, texture resources, and virtual camera information.
[0233] In an optional implementation, a first parameter file is generated based on the adjusted attribute parameters of the target object, including:
[0234] The parameter generation plugin of the preset shared debugging tool is used to generate the first parameter file based on the adjusted attribute parameters of the target object;
[0235] Send the first parameter file to the software development terminal, including:
[0236] The first parameter file is sent to the software development terminal using a file sending plugin of a pre-set shared debugging tool.
[0237] In an optional implementation, the method further includes:
[0238] Receive a third parameter file for the target 3D virtual scene sent by the software development terminal. The third parameter file is a parameter file generated based on the attribute parameters of other objects in the target 3D virtual scene after adjustment.
[0239] Update other objects in the adjusted initial 3D virtual scene based on the adjusted attribute parameters of other objects in the third parameter file.
[0240] In an optional implementation, a third parameter file for the target 3D virtual scene is received from a software development terminal, including:
[0241] The file receiving plugin of the preset shared debugging tool is used to receive the third parameter file sent by the software development terminal through the file sending plugin of the preset shared debugging tool.
[0242] In this embodiment, when the computer program is run by the processor, the processor performs adjustments to the target objects corresponding to the adjustments in the initial 3D virtual scene based on the adjustment operations for the initial 3D virtual scene. Based on the attribute parameters of the adjusted target objects, a first parameter file is generated and sent to the software development terminal. This allows the software development terminal to render and display the initial 3D virtual scene according to the pre-acquired scene file, and update the target objects in the initial 3D virtual scene according to the adjusted attribute parameters of the target objects in the first parameter file, thus obtaining the target 3D virtual scene for virtual scene testing. The scene parameter tuning is performed by the scene design terminal, improving debugging efficiency. Furthermore, packaging the first parameter file and sending it to the software development terminal reduces resource usage, allowing the technical team to see the modification effects in real time.
[0243] In this embodiment, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.
[0244] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0245] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0246] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0247] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0248] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0249] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A scene debugging method, characterized in that, Applications include: terminal devices for scenario design Based on the adjustment operation performed on the initial 3D virtual scene, adjust the target object in the initial 3D virtual scene corresponding to the adjustment operation; Generate the first parameter file based on the adjusted attribute parameters of the target object; The first parameter file is sent to the software development terminal so that the software development terminal renders and displays the initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted target object attribute parameters in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
2. The method according to claim 1, characterized in that, The step of adjusting the target object in the initial 3D virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial 3D virtual scene includes: A plugin for generating a debug panel using a preset shared debug tool is used to generate and display the debug panel of the initial 3D virtual scene based on the initial 3D virtual scene. Adjust the target object in the initial 3D virtual scene according to the adjustment operation input through the debugging panel.
3. The method according to claim 2, characterized in that, The debug panel generation plugin using a preset shared debug tool generates and displays a debug panel for the initial 3D virtual scene based on the initial 3D virtual scene, including: The plugin generates a plugin using the aforementioned debug panel, which displays the debug panel of the target object based on the object selection operation input for the initial 3D virtual scene.
4. The method according to claim 2 or 3, characterized in that, The step of adjusting the target object in the initial 3D virtual scene according to the adjustment operation input through the debugging panel includes: Adjust the attribute parameters of the target object in the initial 3D virtual scene according to the parameter adjustment operation input through the debugging panel; or, Based on the object replacement operation input through the debugging panel, the target object in the initial 3D virtual scene is replaced with another object corresponding to the object replacement operation, and the adjusted target object is the other object.
5. The method according to claim 4, characterized in that, The step of adjusting the attribute parameters of the target object in the initial 3D virtual scene according to the parameters input through the debugging panel includes: Based on the parameter adjustment operation input for the target parameter item of the target object in the debugging panel, adjust the parameters of the target object in the initial 3D virtual scene under the target parameter item.
6. The method according to claim 5, characterized in that, Before adjusting the parameters of the target object in the initial 3D virtual scene under the target parameter item based on the parameter adjustment operation input for the target object in the debugging panel, the method further includes: The target parameter item of the target object is determined based on the parameter item search operation input through the debugging panel.
7. The method according to claim 4, characterized in that, The step of adjusting the attribute parameters of the target object in the initial 3D virtual scene according to the parameters input through the debugging panel includes: The file import operation entered through the debugging panel is confirmed to be the parameter adjustment operation; Based on the second parameter file imported by the file import operation, adjust the attribute parameters of the target object in the initial 3D virtual scene. The second parameter file includes: target attribute parameters.
8. The method according to claim 2, characterized in that, The step of generating a first parameter file based on the adjusted attribute parameters of the target object includes: Based on the file export operation input through the debugging panel, the first parameter file is generated according to the adjusted attribute parameters of the target object.
9. The method according to claim 1, characterized in that, Before adjusting the target object corresponding to the adjustment operation in the initial 3D virtual scene based on the adjustment operation for the initial 3D virtual scene, the method further includes: Obtain the scene file of the initial 3D virtual scene; The initial 3D virtual scene is rendered and displayed based on the scene file.
10. The method according to claim 9, characterized in that, The process of obtaining the scene file of the initial 3D virtual scene includes: Based on the preset two-dimensional scene design drawing, a preset artificial intelligence model is used to generate the model resources, texture resources, and virtual camera information of the initial three-dimensional virtual scene; The scene file is generated by compositing the model resources, texture resources, and virtual camera information.
11. The method according to claim 1, characterized in that, The step of generating a first parameter file based on the adjusted attribute parameters of the target object includes: The first parameter file is generated using a parameter generation plugin of a preset shared debugging tool, based on the adjusted attribute parameters of the target object. Sending the first parameter file to the software development terminal includes: The first parameter file is sent to the software development terminal using the file sending plugin of the preset shared debugging tool.
12. The method according to claim 1, characterized in that, The method further includes: The software development terminal sends a third parameter file for the target 3D virtual scene, wherein the third parameter file is generated by adjusting other objects in the target 3D virtual scene and based on the attribute parameters of the adjusted other objects; Based on the adjusted attribute parameters of other objects described in the third parameter file, update the other objects in the adjusted initial 3D virtual scene.
13. The method according to claim 12, characterized in that, The receipt of the third parameter file for the target 3D virtual scene sent by the software development terminal includes: The software development terminal uses a file receiving plugin of a preset shared debugging tool to receive the third parameter file sent by the file sending plugin of the preset shared debugging tool.
14. A virtual scene debugging device, characterized in that, include: The processing module is used to adjust the target object in the initial three-dimensional virtual scene corresponding to the adjustment operation based on the adjustment operation for the initial three-dimensional virtual scene; The processing module is also used to generate a first parameter file based on the adjusted attribute parameters of the target object; The sending module is used to send the first parameter file to the software development terminal, so that the software development terminal renders and displays the initial three-dimensional virtual scene according to the pre-acquired scene file, and updates the target object in the initial three-dimensional virtual scene according to the adjusted target object attribute parameters in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
15. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Browser-based cloud native three-dimensional model processing method and device and electronic equipment
CN117095121A
Accident process processing assessment device and method used in virtual scene
CN117672055A