Scene debugging method and device, electronic equipment and storage medium
By independently adjusting and generating parameter files at the scene design terminal, and updating and rendering three-dimensional virtual scenes in real time, the problem of cumbersome and inefficient debugging process of the virtual scene is solved, and the function of technical parties to view the modification effects of the artist in real time is realized, improving debugging efficiency and collaboration efficiency.
Patent Information
- Application Number
- CN202411868421.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-17
AI Technical Summary
When building a virtual scene, the debugging process is cumbersome and inefficient. The artist cannot see the modification effect of the technical party in real time, and the resources for scene integration and packaging are large, so the technical party cannot view the modification effect of the artistic party in real time.
Provide a scene debugging method, through the scene design terminal, adjusts the target object in the initial three-dimensional virtual scene according to the adjustment operation, generates parameter files and sends them to the software development terminal, so that the scene is updated and rendered in real time.
It improves debugging efficiency and reduces the amount of resources, so that the technology can see the modification effect of the artist in real time, reduces communication costs and repetitive labor, and improves the efficiency of multi-function collaboration.
Smart Images

Figure CN119829470A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a scene debugging method, device, electronic device and storage medium. Background Art
[0002] Currently, when building a virtual scene, the artist usually needs to import the scene resources into the editor and adjust some parameters in the editor. The artist cannot adjust other parameters by himself, and needs to integrate and package the entire modified scene to the technical party to check the effect. The technical party can further adjust the parameters through code based on the effect.
[0003] However, the above debugging process is cumbersome and inefficient, and the amount of resources packaged for scene integration is large, so the technical party cannot see the effects of the art party's modifications in real time. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a scene debugging method, device, electronic device and storage medium to solve the problem that the debugging process is cumbersome and inefficient, the amount of resources packaged for scene integration is large, and the technical party cannot see the modification effects of the art party in real time.
[0005] In a first aspect, an embodiment of the present application provides a scene debugging method, which is applied to a scene design terminal, and the method includes:
[0006] According to the adjustment operation on the initial three-dimensional virtual scene, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene;
[0007] Generate a first parameter file according to the adjusted attribute parameters of the target object;
[0008] The first parameter file is sent to a 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 described in the first parameter file, so as to obtain the target three-dimensional virtual scene for virtual scene testing.
[0009] In a second aspect, the embodiment of the present application further provides a virtual scene debugging device, comprising:
[0010] A processing module, configured to adjust a target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene;
[0011] The processing module is further used to generate a first parameter file according to the adjusted attribute parameters of the target object;
[0012] A sending module is used to send the first parameter file to a software development terminal so that the software development terminal renders and displays the initial three-dimensional virtual scene according to a 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 a target three-dimensional virtual scene for virtual scene testing.
[0013] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: 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 through the bus, and the processor executes the machine-readable instructions to execute any one of the methods described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the first aspects is executed.
[0015] The present application provides a scene debugging method, device, electronic device and storage medium, wherein the method comprises: the scene design terminal adjusts the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene, generates a first parameter file according to the attribute parameters of the adjusted target object, and sends 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 attribute parameters of the adjusted target object in the first parameter file, and obtains the target three-dimensional virtual scene for virtual scene testing. The scene design terminal performs scene parameter adjustment, which improves the debugging efficiency, and packs the first parameter file to the software development terminal, which reduces the amount of resources, so that the technical party can see the modification effect in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 1 ;
[0018] Figure 2 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 2 ;
[0019] Figure 3 A schematic diagram of a debugging panel provided in an embodiment of the present application;
[0020] Figure 4 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 3 ;
[0021] Figure 5 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 4 ;
[0022] Figure 6 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 5 ;
[0023] Figure 7 A schematic diagram of the structure of a virtual scene debugging device provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0026] First, the relevant concepts involved in this application are explained:
[0027] Web3D technology: a technology that realizes virtual reality on web pages without plug-ins, allowing web pages to support the display and interaction of 3D models.
[0028] Threejs editor: An online tool based on the Three.js library, mainly used to create and edit three-dimensional scenes on web pages.
[0029] Parameter tuning: A process of optimizing performance or effects by adjusting various parameter settings.
[0030] JSON file: A lightweight, easy-to-read, and easy-to-parse data format. The simplicity and efficiency of JSON make it one of the preferred formats for modern data transmission and storage.
[0031] Currently, when building a virtual scene, the artist usually needs to import the scene resources into an editor (such as Threejseditor) and adjust some parameters in the editor. The artist cannot adjust other parameters by himself, and needs to integrate and package the entire modified scene to the technical party to check the effect. The technical party can further adjust the parameters and develop code based on the effect.
[0032] In the above scene debugging process, it is necessary to rely on the art party and the technical party to connect and repeatedly debug the parameters in the scene face to face until the expected effect is achieved. This is cumbersome and not conducive to multi-functional collaboration. Moreover, the art party cannot complete the parameter adjustment process independently and is heavily dependent on the technical party, which is inefficient. In addition, the art party needs to integrate and package the entire scene and output it to the technical party after each adjustment. During this process, the technical party may make other adjustments to the scene. The art party and the technical party cannot view the modification effects of the other party in real time, which is not conducive to multi-functional connection. In addition, the modification effects viewed by the art party and the technical party in their respective editors may be inconsistent, resulting in repeated adjustments by both parties and a complicated modification process.
[0033] Based on this, the present application provides a scene debugging method, in which the scene design terminal (art party) independently adjusts the scene parameters, reducing dependence on technical personnel, and packages the first parameter file to the software development terminal (technical party), reducing the amount of resources, allowing the technical party 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 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 1 The execution subject of this embodiment may be a scene design terminal, and the scene design terminal may be a terminal device corresponding to the artist or the animation party.
[0035] like Figure 1 As shown, the method may include:
[0036] S101. According to an adjustment operation on an initial three-dimensional virtual scene, adjust a target object corresponding to the adjustment operation in the initial three-dimensional virtual scene.
[0037] The initial three-dimensional virtual scene may include multiple virtual objects, for example, virtual buildings, virtual animals, virtual characters, and virtual lenses. The artist may input adjustment operations for the initial three-dimensional virtual scene, and the scene design terminal adjusts the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation. The adjustment operation acts on the target object in the initial three-dimensional virtual scene.
[0038] The initial three-dimensional virtual scene may be a virtual scene to be presented in a web page, that is, the initial three-dimensional virtual scene may be a three-dimensional network element scene.
[0039] In an optional implementation, adjusting the target object in the initial three-dimensional virtual scene may include adjusting the attribute parameters of the target object. If the target object is a virtual lens, the position of the virtual lens may be adjusted. If the target object is a virtual building, the position, lighting intensity, texture resources, and texture parameters of the virtual building may be adjusted. Adjusting the texture resources may, for example, be to adjust the color of the texture. Figure 1 Adjust to color sticker Figure 2 , adjusting the map parameters can include adjusting the map roughness, the map black and white contrast, etc.
[0040] In another optional implementation, adjusting the target object in the initial three-dimensional 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, in the above step S101, before adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene, the method may further include:
[0042] Obtain a scene file of an initial three-dimensional virtual scene; render and display the initial three-dimensional virtual scene according to the scene file.
[0043] Among them, the scene file of the initial three-dimensional virtual scene may include model resources of the virtual model in the three-dimensional virtual scene, texture resources of the virtual model, and virtual lens information. Among them, the virtual model may include models of virtual buildings, models of virtual animals, models of virtual characters, etc., and the texture resources of the virtual model may include normal maps, color maps, material maps, etc. The virtual lens information is used to indicate the position of the virtual camera in the three-dimensional virtual scene.
[0044] An editor (such as Threejs editor) can be deployed on the scene design terminal. The artist can input resource import operations through the editor to import the scene file of the initial three-dimensional virtual scene into the editor, and render and display the initial three-dimensional virtual scene in the editor according to the scene file.
[0045] S102: Generate a first parameter file according to the adjusted attribute parameters of the target object.
[0046] After the target object in the initial three-dimensional virtual scene is adjusted, a first parameter file may be generated according to the attribute parameters of the adjusted target object. The first parameter file includes: the attribute parameters of the adjusted target object.
[0047] If the adjusted attribute parameters are of the target object, the adjusted attribute parameters of the target object may include an adjusted position of the virtual lens, an adjusted position of the virtual building, an adjusted light intensity, an adjusted texture resource, and an adjusted texture parameter.
[0048] If the target object is adjusted, that is, the adjusted target object is a replaced object (such as virtual building 2), the attribute parameters of the adjusted target object may include: the position, light intensity, texture resources, texture parameters, etc. of the adjusted target object.
[0049] S103. Send a first parameter file to a software development terminal so that the software development terminal renders and displays an initial three-dimensional virtual scene according to a pre-acquired scene file, and updates a target object in the initial three-dimensional virtual scene according to the attribute parameters of the target object adjusted in the first parameter file, to obtain a 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 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 attribute parameters of the target object adjusted in the first parameter file to obtain a target three-dimensional virtual scene. For example, the position of the virtual lens in the initial three-dimensional virtual scene is updated, the position of the virtual building is updated, the lighting intensity of the virtual building is updated, etc. to obtain the target three-dimensional virtual scene.
[0051] An editor may be deployed on the software development terminal, in which the initial three-dimensional virtual scene is rendered and displayed, and the target object in the initial three-dimensional virtual scene is updated according to the first parameter file to obtain a target three-dimensional virtual scene.
[0052] That is to say, when the artist is adjusting the scene, if the technical party needs to view the update in real time, by generating the first parameter file, the technical party only needs to drag the first parameter file into the editor it deploys to read the file, and the current screen can be iterated in real time. This method ensures that the scene completely restores the expected result of the artist, reduces the amount of resources, and avoids the problem of repeated modifications caused by the differences in the environments of the editors deployed by the artist and the technical party. This allows the technical party to see the modification results of the artist in real time, reducing communication costs and repeated work, and improving work efficiency.
[0053] It is worth noting that the editor is integrated with a preset shared debugging tool. By using the preset shared debugging tool, a first parameter file can be generated according to the adjusted attribute parameters of the target object, and the first parameter file can be sent to the software development terminal.
[0054] In an optional implementation, the above step S102, generating a first parameter file according to the adjusted attribute parameters of the target object, includes: using a parameter generation plug-in of a preset shared debugging tool to generate the first parameter file according to the adjusted attribute parameters of the target object.
[0055] The above step S103, sending the first parameter file to the software development terminal, includes: using a file sending plug-in 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 plug-in and a file sending plug-in, and uses the parameter generation plug-in to generate a first parameter file according to the adjusted attribute parameters of the target object, and uses the file sending plug-in to send the first parameter file to the software development terminal, thereby realizing automatic generation and automatic sending of parameter files.
[0057] The software development terminal can also build a code framework to generate interaction code for the target three-dimensional virtual scene based on the code input operation of the technical party. The interaction code is used to indicate the interaction logic in the target three-dimensional virtual scene. For example, if the target three-dimensional virtual scene is a scene of a person picking up a cup, the interaction logic is used to indicate the trigger conditions for the person to trigger picking 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 adopt Web3D technology to render and generate the target three-dimensional virtual scene on the target web page according to the scene file and interaction code of the target three-dimensional virtual scene, and then publish the test address of the target web page so that the tester can perform scene testing and interaction testing on the target three-dimensional virtual scene presented on the target web page based on the test address.
[0059] In this embodiment, the scene design terminal (art party) independently adjusts the scene parameters to reduce dependence on technical personnel, and packages the first parameter file to the software development terminal (technical party), reducing the amount of resources, allowing the technical party 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 optional embodiment, the method may further include:
[0061] Receive test results sent by the scenario test terminal;
[0062] If the test result indicates that the test fails, the scene resources are adjusted and / or the target object in the initial three-dimensional virtual scene is readjusted.
[0063] The tester performs scene testing and interaction testing of the target three-dimensional virtual scene based on the test address, and sends the test results to the scene design terminal through the scene testing terminal. If the test results indicate that the test fails, the scene design terminal can adjust the scene resources, and re-render and display the initial three-dimensional virtual scene based on the adjusted scene resources, and repeat the above steps until the test passes, or the scene design can readjust the target object in the initial three-dimensional virtual scene, and repeat the above steps until the test passes.
[0064] In an optional embodiment, the method may further include:
[0065] Receiving a third parameter file for the target three-dimensional virtual scene sent by the software development terminal, where the third parameter file is a parameter file generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of the other objects;
[0066] Other objects in the adjusted initial three-dimensional virtual scene are updated according to the adjusted attribute parameters of other objects in the third parameter file.
[0067] Among them, other objects can be any objects in the target three-dimensional virtual scene. Other objects can be target objects or not. It can be determined according to actual needs, and this embodiment does not make any special limitation on this.
[0068] The technical party may also adjust other objects in the target three-dimensional virtual scene through the software development terminal. The software development terminal responds to the input adjustment operation for other objects in the target three-dimensional virtual scene and adjusts other objects in the target three-dimensional virtual scene.
[0069] In an optional embodiment, receiving a third parameter file for a target three-dimensional virtual scene sent by a software development terminal includes: using a file receiving plug-in of a preset shared debugging tool to receive the third parameter file sent by the software development terminal through a file sending plug-in of a preset shared debugging tool.
[0070] Among them, an editor is deployed on the software development terminal, and the editor is integrated with a preset shared debugging tool, and the preset shared debugging tool is integrated with a file receiving plug-in, a file sending plug-in, and a parameter generation plug-in. After the technical party adjusts other objects in the target three-dimensional virtual scene through the editor deployed on the software development terminal, the parameter generation plug-in of the preset shared debugging tool is used to generate a third parameter file based on the adjusted attribute parameters of other objects, and the file sending plug-in of the preset shared debugging tool is used to send the third parameter file to the scene design terminal, and the scene design terminal can use the file receiving plug-in of the preset shared debugging tool to receive the third parameter file. Thereby, the automatic generation, automatic sending and automatic receiving of parameter files are realized.
[0071] In an optional implementation, adjusting other objects in the target three-dimensional virtual scene may include adjusting attribute parameters of other objects. If the other object is a virtual lens, the position of the virtual lens may be adjusted. If the other object is a virtual building, the position, lighting intensity, texture resources, and texture parameters of the virtual building may be adjusted. Adjusting the texture resources may, for example, be to adjust the color of the texture. Figure 1 Adjust to color sticker Figure 2 , adjusting the map parameters can include adjusting the map roughness, the map black and white contrast, etc.
[0072] In another optional implementation, adjusting other objects in the target three-dimensional 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 three-dimensional virtual scene, a third parameter file can be generated. The third parameter file is a parameter file generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of other objects. The third parameter file includes: the adjusted attribute parameters of other objects.
[0074] If the adjusted attribute parameters are for other objects, the adjusted attribute parameters for other objects may include an adjusted position of a virtual lens, an adjusted position of a virtual building, an adjusted light intensity, an adjusted texture resource, and an adjusted texture parameter.
[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 positions, lighting intensity, texture resources, texture parameters, etc. of the adjusted other objects.
[0076] The software development terminal sends a third parameter file to the scene design terminal. Accordingly, the scene design terminal receives the third parameter file sent by the software development terminal, and updates other objects in the adjusted initial three-dimensional virtual scene according to the attribute parameters of other objects adjusted in the third parameter file, so that the attribute parameters of other objects in the adjusted initial three-dimensional virtual scene are the attribute parameters of other objects adjusted in the third parameter file.
[0077] Then, the artist can check the effect of the updated initial three-dimensional virtual scene. If the expected effect is met, a test instruction is sent to the software development terminal to perform a virtual scene test on the adjusted target three-dimensional virtual scene.
[0078] The adjusted initial three-dimensional virtual scene is the target three-dimensional virtual scene, and the adjusted initial three-dimensional virtual scene is the three-dimensional virtual scene obtained by adjusting the target object in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene.
[0079] In some embodiments, after adjusting other objects in the target three-dimensional virtual scene, the software development terminal can also generate a scene link of the adjusted target three-dimensional 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 three-dimensional virtual scene, and the artist can view the effect of the adjusted target three-dimensional virtual scene. If the expected effect is met, a test instruction is sent to the software development terminal to perform a virtual scene test on the adjusted target three-dimensional virtual scene.
[0080] In this embodiment, when the technical party adjusts the scene, if the artist needs to view the update in real time, by generating a third parameter file, the artist only needs to drag the third parameter file into the editor deployed by it to read the file, and the real-time iteration of the current screen can be realized. This method ensures that the scene completely restores the expected result of the art, reduces the amount of resources, and avoids the problem of repeated modifications caused by the environment differences of the editors deployed by the art party and the technical party. The art party can see the modification results of the technical party in real time, reducing communication costs and repeated work, and improving work efficiency.
[0081] Figure 2 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 2 ,like Figure 2 As shown, in an optional implementation, the above step S103, according to the adjustment operation on the initial three-dimensional virtual scene, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene may include:
[0082] S201, using a debugging panel generation plug-in of a preset shared debugging tool to generate and display a debugging panel of an initial three-dimensional virtual scene according to the initial three-dimensional virtual scene.
[0083] A debugging panel generation plug-in of a preset shared debugging tool is used to traverse the virtual objects and the properties of the virtual objects in the initial three-dimensional virtual scene, and a debugging panel of the initial three-dimensional virtual scene is generated and displayed according to the virtual objects and the properties of the virtual objects in the initial three-dimensional virtual scene, wherein the virtual objects may be, for example, virtual buildings, virtual animals, virtual characters, virtual lenses, etc., and the properties of the virtual objects may include lighting properties, position properties, rotation angle properties, scaling properties, transparency properties, roughness properties, metalness properties, texture properties, and camera field of view (FOV) properties.
[0084] Among them, the debugging panel may include attribute parameter items of virtual objects in the initial three-dimensional virtual scene, for example, virtual object parameter items, lighting parameter items, position parameter items, rotation angle parameter items, scaling parameter items, transparency parameter items, roughness parameter items, metalness parameter items, mapping parameter items, and camera field of view FOV parameter items.
[0085] Of course, the artist can also manually add or delete parameter items in the debugging panel according to actual needs. This embodiment does not specifically limit the specific parameter items in the debugging panel.
[0086] S202: Adjust the target object in the initial three-dimensional virtual scene according to the adjustment operation input through the debugging panel.
[0087] The artist inputs an adjustment operation through the debugging panel to adjust the target object in the initial 3D virtual scene according to the adjustment operation, wherein the initial 3D virtual scene is rendered and displayed on the scene design terminal according to the scene resources, and the artist can input the adjustment operation through the adjustment surface based on the effect of the initial 3D virtual scene and according to actual needs to adjust the target object in the currently displayed initial 3D virtual scene. 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 item includes multiple candidate virtual objects, and the artist can select a candidate virtual object from them and replace the target object in the initial three-dimensional virtual scene with the candidate object, such as replacing virtual building 1 with virtual building 2.
[0089] For another example, the lighting parameter item includes multiple candidate lighting values, and the artist can select a candidate lighting value from them to adjust the lighting value of the target object in the initial three-dimensional virtual scene. Alternatively, the lighting parameter item provides an adjustment progress, and the light value of the target object can be adjusted by dragging, clicking, and other operations.
[0090] In this embodiment, by displaying the debugging panel of the initial three-dimensional virtual scene, it is convenient for the artist to adjust the target object in the initial three-dimensional virtual scene through the debugging panel, making the adjustment more targeted. By providing a complete debugging panel, the art workflow is simplified, and the artist is allowed to adjust parameters directly on the debugging panel without writing code. This not only greatly simplifies the adjustment process, but also allows the artist to create more independently and reduce dependence on the technical party.
[0091] Figure 3 A schematic diagram of a debugging panel provided in an embodiment of the present application, such as Figure 3 As shown, the debugging panel includes light parameter items, position parameter items, rotation angle parameter items, and candidate virtual object 1 and candidate virtual object 2.
[0092] In an optional implementation, the above step S201, using a debugging panel generation plug-in of a preset shared debugging tool, generates and displays a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene, including:
[0093] A debug panel generation plug-in is adopted to display a debug panel of a target object according to an object selection operation input into an initial three-dimensional virtual scene.
[0094] The artist may select any object in the initial three-dimensional virtual scene for an object selection operation input into the initial three-dimensional virtual scene, use the selected object as a target object, and use a debugging panel of a preset shared debugging tool to generate a plug-in to display a debugging panel of the target object, wherein the debugging panel of the target object may include parameter items corresponding to the properties of the target object. For example, if the target object is a multi-faceted model, the parameter items may include transparency parameter items, roughness parameter items, metalness parameter items, and self-luminous parameter items of the facets constituting the virtual object, transparency parameter items, roughness parameter items, metalness parameter items, and self-luminous parameter items of the multi-faceted model, light intensity parameter items, color parameter items, distance parameter items, shadow on or off parameter items, environment map parameter items, and post-processing effect parameter items, wherein the environment map parameter items include multiple switchable environment maps, and the post-processing effect parameter items may include depth of field parameter items, glow parameter items, filter parameter items, look-up table (LUT) parameter items, and anti-aliasing parameter items.
[0095] In this embodiment, a debug panel generation plug-in is used to optimize the visualized debug panel, and a retractable debug panel is provided. When a target object is selected, the debug panel of the virtual object can be displayed, and a rich effect adjustment is provided.
[0096] In an optional implementation, the above step S104, generating the first parameter file according to the adjusted attribute parameters of the target object, may include: generating the first parameter file according to the adjusted attribute parameters of the target object based on a file export operation input through the debugging panel.
[0097] The artist can input a file export operation through the debugging panel, and based on the file export operation, generate a first parameter file according to the adjusted attribute parameters of the target object, wherein a file export item is provided on the debugging panel, and the artist can click the file export item to export the adjusted attribute parameters of the target object and generate a first parameter file, wherein the first parameter file includes: the adjusted attribute parameters of the target object.
[0098] It is understandable that when generating the first parameter file, the file format, such as JSON format, can also be specified. That is to say, through the one-click file export function, it is convenient for the art party and the technical party to synchronize the latest modification effects.
[0099] Figure 4 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, in an optional implementation, the above step S202, adjusting the target object in the initial three-dimensional virtual scene according to the adjustment operation input through the debugging panel, may include step S301 or step S302:
[0100] S301. According to a parameter adjustment operation input through a debugging panel, adjust the attribute parameters of a target object in an initial three-dimensional virtual scene.
[0101] The artist may input parameter adjustment operations through the debugging panel to adjust the attribute parameters of the target object in the initial three-dimensional virtual scene, wherein the attribute parameters of the target object may include, for example, lighting parameters, position parameters, rotation angle parameters, and the like.
[0102] In an optional embodiment, the artist can input target parameters through the debugging panel to adjust the attribute parameters of the target object in the initial three-dimensional virtual scene to the target parameters, or the debugging panel may include parameter items of the target object, such as lighting parameter items, position parameter items, and rotation angle parameter items, and the artist can select any parameter item to adjust the parameters of the target object in the parameter item.
[0103] S302: According to the object replacement operation input through the debugging panel, the target object in the initial three-dimensional virtual scene is replaced with another object corresponding to the object replacement operation.
[0104] Among them, multiple candidate objects can be displayed in the debugging panel. The artist can input an object replacement operation through the debugging panel. The replacement operation corresponds to another object. According to the object replacement operation, the target object in the initial three-dimensional virtual scene is replaced with the other object. The adjusted target object is another object. For example, the target object is virtual building 1, and the candidate objects include virtual building 2 and virtual building 3. After the artist selects virtual building 3, the virtual building 1 in the initial three-dimensional 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 plug-in, which can not only adjust parameters but also replace the entire virtual object, so that the artist can independently adjust the scene parameters and reduce dependence on technical personnel.
[0106] Figure 5 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 4 ,like Figure 5 As shown, in an optional implementation, the above step S301, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel, may include:
[0107] S402: According to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, the parameters of the target object in the initial three-dimensional virtual scene under the target parameter item are adjusted.
[0108] The debugging panel may include attribute parameter items of the target object, such as light parameter items, position parameter items, rotation angle parameter items, scaling parameter items, transparency parameter items, roughness parameter items, and metalness parameter items.
[0109] The target parameter item can be any one of the attribute parameter items of the target object. The artist inputs the parameter adjustment operation for the target parameter item through the debugging panel to adjust the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene. For example, if the target parameter item is a lighting parameter item, the lighting parameters of the target object under the lighting parameter item are adjusted.
[0110] In one implementation, there may be multiple candidate parameter values under the target parameter item, and the parameter adjustment operation is a selection operation for any one of the multiple candidate parameter values. That is, the artist selects any one candidate parameter value to adjust the parameters of the target object in the initial three-dimensional 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. The selection operation may include dragging and clicking, that is, it supports operations such as dragging and clicking to flexibly modify the parameters of the target object under the target parameter item.
[0112] Wherein, in the above step S402, before adjusting the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene 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: Determine a target parameter item of a target object according to a parameter item search operation input through a debugging panel.
[0114] Among them, the debug panel has been added with a parameter search bar. Artists can enter parameter item search operations through the debug panel, enter the target parameter item to be searched in the parameter search bar to determine the target parameter item of the target object, and then enter the parameter adjustment operation for the target parameter item to adjust the parameters of the target object under the target parameter item.
[0115] When the target object has many attribute parameter items, the parameter item search can omit the searching process, simplify the parameter adjustment operation of the artist, and improve the convenience of operation.
[0116] In an optional implementation, the above step S301, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel, may also include:
[0117] S403: Determine that the file import operation input through the debugging panel is a parameter adjustment operation.
[0118] S404: adjusting attribute parameters of the target object in the initial three-dimensional virtual scene according to the second parameter file imported by the file importing operation.
[0119] Among them, the second parameter file includes: target attribute parameters, determining that the file import operation input through the debugging panel is a parameter adjustment operation, the artist inputs the file import operation through the debugging panel, wherein a file import item is provided on the debugging panel, the artist can click the file import item to import the second parameter file at a preset storage location into the editor, and adjust the attribute parameters of the target object in the initial three-dimensional virtual scene according to the target attribute parameters in the second parameter file, for example, 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 object in the initial three-dimensional virtual scene are adjusted to the target color attribute parameters in the second parameter file, and the position attribute parameters are adjusted to the target position attribute parameters in the second parameter file.
[0120] It is worth noting that the target attribute parameters may be attribute parameters of virtual objects in other three-dimensional virtual scenes, and the file format of the second parameter file may be in JSON format.
[0121] In this embodiment, a debugging panel is used to generate a plug-in to provide individual parameter adjustment and one-key import function to achieve batch adjustment of parameters, providing a relatively rich scene adjustment method. Moreover, through the one-key import function, parameters of other scenes can be stored and reused in this scene, which solves the problem of low reusability of existing parameters, enhances parameter storage and reusability, and improves cross-project work efficiency.
[0122] Figure 6 Schematic diagram of the process of the scene debugging method provided in the embodiment of the present application Figure 5 ,like Figure 6 As shown, in an optional implementation, obtaining a scene file of an initial three-dimensional virtual scene may include:
[0123] S501. Generate model resources, texture resources and virtual lens information of an initial three-dimensional virtual scene based on a preset two-dimensional scene design drawing and using a preset artificial intelligence model.
[0124] S502: Synthesize according to model resources, texture resources, and virtual lens information to generate a scene file.
[0125] Among them, the preset two-dimensional scene design drawing can be generated by adopting an artificial intelligence model, and the artificial intelligence model can be, for example, an artificial intelligence generated content (Artificial Intelligence Generated Content) model.
[0126] The preset two-dimensional scene design drawing is used as the model input, and the preset artificial intelligence model is used to generate the model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene. Then, the model resources, texture resources and virtual lens information are synthesized to obtain the scene file of the initial three-dimensional virtual scene.
[0127] In one possible implementation, after the material (model resources, texture resources, virtual lens information) is produced by the artificial intelligence model, it can be post-processed in the processing software (such as PS, AE, 3D software), for example, adjusting the brightness, color, etc., and the processed material can be combined (synthesized) in the software that can output video to generate the scene file of the initial three-dimensional virtual scene.
[0128] Among them, after the scene file is generated by the scene design terminal, it can also be reviewed by the demand party, technical party, and design party. If the review fails, the preset two-dimensional scene design drawing and / or the material can be modified, and the above process can be repeated until the review is passed.
[0129] In this embodiment, the model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene are generated by the artificial intelligence model, and the scene file of the initial three-dimensional virtual scene is synthesized, which simplifies the design work of the artist and reduces costs.
[0130] Figure 7 This is a structural schematic diagram of a virtual scene debugging device provided in an embodiment of the present application, which can be integrated in a 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 corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene;
[0133] The processing module 601 is further used to generate a first parameter file according to 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 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 attribute parameters of the target object adjusted 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 configured to:
[0136] A debugging panel generation plug-in of a preset shared debugging tool is used to generate and display a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene;
[0137] According to the adjustment operation input through the debugging panel, the target object in the initial three-dimensional virtual scene is adjusted.
[0138] In an optional implementation, the processing module 601 is specifically configured to:
[0139] A debug panel generation plug-in is adopted to display a debug panel of a target object according to an object selection operation input into an initial three-dimensional virtual scene.
[0140] In an optional implementation, the processing module 601 is specifically configured to:
[0141] According to the parameter adjustment operation input through the debugging panel, adjust the attribute parameters of the target object in the initial three-dimensional virtual scene; or,
[0142] According to the object replacement operation input through the debugging panel, the target object in the initial three-dimensional 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 configured to:
[0144] According to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene are adjusted.
[0145] In an optional implementation, the processing module 601 is specifically configured to:
[0146] Determine the target parameter item of the target object according to the parameter item search operation entered through the debug panel.
[0147] In an optional implementation, the processing module 601 is specifically configured to:
[0148] Determine that the file import operation entered through the debug panel is a parameter adjustment operation;
[0149] According to the second parameter file imported by the file import operation, the attribute parameters of the target object in the initial three-dimensional virtual scene are adjusted, and the second parameter file includes: target attribute parameters.
[0150] In an optional implementation, the processing module 601 is specifically configured to:
[0151] Based on the file export operation input through the debugging panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0152] In an optional embodiment, it also includes:
[0153] An acquisition module 603 is used to acquire a scene file of an initial three-dimensional virtual scene;
[0154] The processing module 601 is further used to render and display the initial three-dimensional virtual scene according to the scene file.
[0155] In an optional implementation, the acquisition module 603 is specifically configured to:
[0156] According to the preset two-dimensional scene design drawing, the preset artificial intelligence model is used to generate the model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene;
[0157] The scene file is generated by synthesizing the model resources, map resources and virtual lens information.
[0158] In an optional implementation, the processing module 601 is specifically configured to:
[0159] Using a parameter generation plug-in of a preset shared debugging tool, a first parameter file is generated according to the adjusted attribute parameters of the target object;
[0160] The sending module 602 is specifically used for:
[0161] A file sending plug-in of a preset shared debugging tool is used to send a first parameter file to a software development terminal.
[0162] In an optional embodiment, the device further comprises:
[0163] The receiving module 604 is used to receive a third parameter file for the target three-dimensional virtual scene sent by the software development terminal, where the third parameter file is a parameter file generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of the other objects;
[0164] The processing module 601 is further configured to update other objects in the adjusted initial three-dimensional virtual scene according to the adjusted attribute parameters of other objects in the third parameter file.
[0165] In an optional implementation manner, the receiving module 604 is specifically configured to:
[0166] The file receiving plug-in of the preset shared debugging tool is adopted to receive the third parameter file sent by the software development terminal through the file sending plug-in 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 three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional 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 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 attribute parameters of the adjusted target object in the first parameter file, and obtains the target three-dimensional virtual scene for virtual scene testing. The scene design terminal performs scene parameter adjustment, which improves debugging efficiency, and packs the first parameter file to the software development terminal, which reduces the amount of resources, so that the technical party can see the modification effect in real time.
[0168] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the device can be implemented through the above-mentioned scenario design terminal.
[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 through the bus 703, and the processor executes the machine-readable instructions to perform the following steps:
[0170] According to the adjustment operation on the initial three-dimensional virtual scene, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene;
[0171] Generate a first parameter file according to the adjusted attribute parameters of the target object;
[0172] A first parameter file is sent to a software development terminal so that the software development terminal renders and displays an initial three-dimensional virtual scene according to a pre-acquired scene file, and updates a target object in the initial three-dimensional virtual scene according to the attribute parameters of the target object adjusted in the first parameter file, thereby obtaining a target three-dimensional virtual scene for virtual scene testing.
[0173] In an optional implementation, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene includes:
[0174] A debugging panel generation plug-in of a preset shared debugging tool is used to generate and display a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene;
[0175] According to the adjustment operation input through the debugging panel, the target object in the initial three-dimensional virtual scene is adjusted.
[0176] In an optional implementation, the debugging panel generation plug-in is used to generate and display a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene, including:
[0177] A debug panel generation plug-in is adopted to display a debug panel of a target object according to an object selection operation input into an initial three-dimensional virtual scene.
[0178] In an optional implementation, adjusting the target object in the initial three-dimensional virtual scene according to the adjustment operation input through the debugging panel includes:
[0179] According to the parameter adjustment operation input through the debugging panel, adjust the attribute parameters of the target object in the initial three-dimensional virtual scene; or,
[0180] According to the object replacement operation input through the debugging panel, the target object in the initial three-dimensional 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, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes:
[0182] According to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene are adjusted.
[0183] In an optional implementation, according to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, before adjusting the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene, the method further includes:
[0184] Determine the target parameter item of the target object according to the parameter item search operation entered through the debug panel.
[0185] In an optional implementation, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes:
[0186] Determine that the file import operation entered through the debug panel is a parameter adjustment operation;
[0187] According to the second parameter file imported by the file import operation, the attribute parameters of the target object in the initial three-dimensional virtual scene are adjusted, and the second parameter file includes: target attribute parameters.
[0188] In an optional implementation, generating a first parameter file according to the adjusted attribute parameters of the target object includes:
[0189] Based on the file export operation input through the debugging panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0190] In an optional embodiment, the method further comprises:
[0191] Obtaining a scene file of an initial three-dimensional virtual scene;
[0192] Render and display the initial 3D virtual scene according to the scene file.
[0193] In an optional implementation, obtaining a scene file of an initial three-dimensional virtual scene includes:
[0194] According to the preset two-dimensional scene design drawing, the preset artificial intelligence model is used to generate the model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene;
[0195] The scene file is generated by synthesizing the model resources, map resources and virtual lens information.
[0196] In an optional implementation, generating a first parameter file according to the adjusted attribute parameters of the target object includes:
[0197] Using a parameter generation plug-in of a preset shared debugging tool, a first parameter file is generated according to the adjusted attribute parameters of the target object;
[0198] Sending a first parameter file to the software development terminal includes:
[0199] A file sending plug-in of a preset shared debugging tool is used to send a first parameter file to a software development terminal.
[0200] In an optional embodiment, the method further comprises:
[0201] Receiving a third parameter file for the target three-dimensional virtual scene sent by the software development terminal, where the third parameter file is a parameter file generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of the other objects;
[0202] Other objects in the adjusted initial three-dimensional virtual scene are updated according to the adjusted attribute parameters of other objects in the third parameter file.
[0203] In an optional implementation, receiving a third parameter file for a target three-dimensional virtual scene sent by a software development terminal includes:
[0204] The file receiving plug-in of the preset shared debugging tool is adopted to receive the third parameter file sent by the software development terminal through the file sending plug-in of the preset shared debugging tool.
[0205] In this embodiment, the processor executes machine-readable instructions to perform adjustment operations on the initial three-dimensional virtual scene, adjust the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene, generate a first parameter file according to the attribute parameters of the adjusted target object, and 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 attribute parameters of the adjusted target object in the first parameter file, and obtains the target three-dimensional virtual scene for virtual scene testing. The scene design terminal performs scene parameter adjustment, which improves debugging efficiency, and packs the first parameter file to the software development terminal, which reduces the amount of resources, so that the technical party can see the modification effect in real time.
[0206] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0207] According to the adjustment operation on the initial three-dimensional virtual scene, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene;
[0208] Generate a first parameter file according to the adjusted attribute parameters of the target object;
[0209] A first parameter file is sent to a software development terminal so that the software development terminal renders and displays an initial three-dimensional virtual scene according to a pre-acquired scene file, and updates a target object in the initial three-dimensional virtual scene according to the attribute parameters of the target object adjusted in the first parameter file, thereby obtaining a target three-dimensional virtual scene for virtual scene testing.
[0210] In an optional implementation, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene includes:
[0211] A debugging panel generation plug-in of a preset shared debugging tool is used to generate and display a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene;
[0212] According to the adjustment operation input through the debugging panel, the target object in the initial three-dimensional virtual scene is adjusted.
[0213] In an optional implementation, a debugging panel generation plug-in of a preset shared debugging tool is used to generate and display a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene, including:
[0214] A debug panel generation plug-in is adopted to display a debug panel of a target object according to an object selection operation input into an initial three-dimensional virtual scene.
[0215] In an optional implementation, adjusting the target object in the initial three-dimensional virtual scene according to the adjustment operation input through the debugging panel includes:
[0216] According to the parameter adjustment operation input through the debugging panel, adjust the attribute parameters of the target object in the initial three-dimensional virtual scene; or,
[0217] According to the object replacement operation input through the debugging panel, the target object in the initial three-dimensional 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, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes:
[0219] According to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene are adjusted.
[0220] In an optional implementation, according to the parameter adjustment operation inputted into the target parameter item of the target object in the debugging panel, before adjusting the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene, the method further includes:
[0221] Determine the target parameter item of the target object according to the parameter item search operation entered through the debug panel.
[0222] In an optional implementation, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes:
[0223] Determine that the file import operation entered through the debug panel is a parameter adjustment operation;
[0224] According to the second parameter file imported by the file import operation, the attribute parameters of the target object in the initial three-dimensional virtual scene are adjusted, and the second parameter file includes: target attribute parameters.
[0225] In an optional implementation, generating a first parameter file according to the adjusted attribute parameters of the target object includes:
[0226] Based on the file export operation input through the debugging panel, a first parameter file is generated according to the adjusted attribute parameters of the target object.
[0227] In an optional embodiment, the method further comprises:
[0228] Obtaining a scene file of an initial three-dimensional virtual scene;
[0229] Render and display the initial 3D virtual scene according to the scene file.
[0230] In an optional implementation, obtaining a scene file of an initial three-dimensional virtual scene includes:
[0231] According to the preset two-dimensional scene design drawing, the preset artificial intelligence model is used to generate the model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene;
[0232] The scene file is generated by synthesizing the model resources, map resources and virtual lens information.
[0233] In an optional implementation, generating a first parameter file according to the adjusted attribute parameters of the target object includes:
[0234] Using a parameter generation plug-in of a preset shared debugging tool, a first parameter file is generated according to the adjusted attribute parameters of the target object;
[0235] Sending a first parameter file to the software development terminal includes:
[0236] A file sending plug-in of a preset shared debugging tool is used to send a first parameter file to a software development terminal.
[0237] In an optional embodiment, the method further comprises:
[0238] Receiving a third parameter file for the target three-dimensional virtual scene sent by the software development terminal, where the third parameter file is a parameter file generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of the other objects;
[0239] Other objects in the adjusted initial three-dimensional virtual scene are updated according to the adjusted attribute parameters of other objects in the third parameter file.
[0240] In an optional implementation, receiving a third parameter file for a target three-dimensional virtual scene sent by a software development terminal includes:
[0241] The file receiving plug-in of the preset shared debugging tool is adopted to receive the third parameter file sent by the software development terminal through the file sending plug-in of the preset shared debugging tool.
[0242] In this embodiment, when the computer program is executed by the processor, the processor performs the adjustment operation on the initial three-dimensional virtual scene, adjusts the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene, generates a first parameter file according to the attribute parameters of the adjusted target object, and sends 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 attribute parameters of the adjusted target object in the first parameter file, and obtains the target three-dimensional virtual scene for virtual scene testing. The scene design terminal performs the scene parameter adjustment, which improves the debugging efficiency, and packs the first parameter file to the software development terminal, which reduces the amount of resources, so that the technical party can see the modification effect in real time.
[0243] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0244] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0245] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0246] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0247] If the functions are implemented in the form of 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 the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0248] It should be noted that similar numbers and letters represent similar items in the following figures. 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 only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0249] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A scene debugging method, characterized in that: Applied to scenario design terminals, including: According to the adjustment operation on the initial three-dimensional virtual scene, adjusting the target object corresponding to the adjustment operation in the initial three-dimensional virtual scene; Generate a first parameter file according to the adjusted attribute parameters of the target object; The first parameter file is sent to a 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 described 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 corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene includes: Using a debugging panel generation plug-in of a preset shared debugging tool, generating and displaying a debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene; According to the adjustment operation input through the debugging panel, the target object in the initial three-dimensional virtual scene is adjusted.
3. The method according to claim 2, characterized in that The debugging panel generation plug-in using the preset shared debugging tool generates and displays the debugging panel of the initial three-dimensional virtual scene according to the initial three-dimensional virtual scene, including: The debugging panel generation plug-in is used to display the debugging panel of the target object according to an object selection operation input to the initial three-dimensional virtual scene.
4. The method according to claim 2 or 3, characterized in that: The step of adjusting the target object in the initial three-dimensional virtual scene according to the adjustment operation input through the debugging panel includes: According to the parameter adjustment operation input through the debugging panel, adjusting the attribute parameters of the target object in the initial three-dimensional virtual scene; or, According to the object replacement operation input through the debugging panel, the target object in the initial three-dimensional 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 three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes: According to the parameter adjustment operation input for the target parameter item of the target object in the debugging panel, the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene are adjusted.
6. The method according to claim 5, characterized in that Before adjusting the parameters of the target object under the target parameter item in the initial three-dimensional virtual scene according to the parameter adjustment operation input for the target parameter item of the target object in the debugging panel, the method further includes: The target parameter item of the target object is determined according to 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 three-dimensional virtual scene according to the parameter adjustment operation input through the debugging panel includes: Determining that a file import operation input through the debugging panel is the parameter adjustment operation; According to the second parameter file imported by the file import operation, the attribute parameters of the target object in the initial three-dimensional virtual scene are adjusted, and 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 according to the adjusted attribute parameters of the target object comprises: 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 three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene, the method further includes: Acquire a scene file of the initial three-dimensional virtual scene; The initial three-dimensional virtual scene is rendered and displayed according to the scene file.
10. The method according to claim 9, characterized in that The step of obtaining the scene file of the initial three-dimensional virtual scene comprises: According to the preset two-dimensional scene design drawing, a preset artificial intelligence model is used to generate model resources, texture resources and virtual lens information of the initial three-dimensional virtual scene; The scene file is generated by synthesizing the model resources, map resources, and virtual lens information.
11. The method according to claim 1, characterized in that: The step of generating a first parameter file according to the adjusted attribute parameters of the target object comprises: Using a parameter generation plug-in of a preset shared debugging tool, generating the first parameter file according to the adjusted attribute parameters of the target object; The 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 plug-in of the preset shared debugging tool.
12. The method according to claim 1, characterized in that The method further comprises: Receiving a third parameter file for the target three-dimensional virtual scene sent by the software development terminal, wherein the third parameter file is generated by adjusting other objects in the target three-dimensional virtual scene and based on the adjusted attribute parameters of the other objects; The other objects in the adjusted initial three-dimensional virtual scene are updated according to the adjusted attribute parameters of the other objects in the third parameter file.
13. The method according to claim 12, characterized in that The receiving a third parameter file for the target three-dimensional virtual scene sent by the software development terminal includes: The file receiving plug-in of the preset shared debugging tool is used to receive the third parameter file sent by the software development terminal through the file sending plug-in of the preset shared debugging tool.
14. A virtual scene debugging device, characterized in that: include: A processing module, configured to adjust a target object corresponding to the adjustment operation in the initial three-dimensional virtual scene according to the adjustment operation on the initial three-dimensional virtual scene; The processing module is further used to generate a first parameter file according to the adjusted attribute parameters of the target object; A sending module is used to send the first parameter file to a software development terminal so that the software development terminal renders and displays the initial three-dimensional virtual scene according to a 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 a target three-dimensional virtual scene for virtual scene testing.
15. An electronic device, characterized in that: include: 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 and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the method described in 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, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is executed.
Citation Information
Patent Citations
Web-based surgery simulation method, operation simulation device and electronic equipment
CN106874700A
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
Systems and methods for obtaining parameters for a three dimensional model from reflectance data
US20130271461A1