Editing method and device of virtual scene, electronic equipment and storage medium
By using a slider sequence in the graphical user interface to adjust the arrangement order of virtual models, the problem of low model adjustment efficiency in virtual scenes is solved, achieving precise and efficient model placement.
Patent Information
- Application Number
- CN202510315836.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2045-03-17
AI Technical Summary
In existing technologies, the adjustment efficiency of virtual models in virtual scenes is low, especially when there are many models, which requires manual adjustment by the user, resulting in low efficiency.
By providing a graphical user interface that includes a target virtual model and a sequence of sliders for the virtual model, users can determine the placement of the target virtual model relative to other models by adjusting the order of the sliders in the sequence, thus achieving precise adjustment.
It improves the efficiency and accuracy of adjusting virtual models in virtual scenes, reduces the number of manual operations, and significantly improves efficiency and flexibility, especially in large-scale scene editing.
Smart Images

Figure CN119971505B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the game technical field, and particularly relates to a virtual scene editing method and device, an electronic device and a storage medium. BACKGROUND
[0002] The track editor in user-generated content (UGC) is a tool that allows users to customize and edit racing tracks. Users can design unique track layouts, landscapes, and difficulties according to their ideas and needs. The editor usually provides various tools and options, such as curve tools, straight line tools, height adjustment tools, etc., to help users more easily create and modify tracks.
[0003] In the prior art, when adjusting the position of a virtual model in a racing scene, the user often needs to select the virtual model in the scene for manual adjustment.
[0004] Therefore, when using the existing adjustment method for adjustment, if there are many virtual models in the scene, there will be a problem of low adjustment efficiency. SUMMARY
[0005] The present application aims to overcome the deficiencies in the prior art and provide a virtual scene editing method, device, electronic device and storage medium, which can achieve accurate adjustment of virtual models in a virtual scene and improve adjustment efficiency.
[0006] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows:
[0007] In a first aspect, the present application provides a virtual scene editing method, which provides a graphical user interface through a terminal device, the graphical user interface contains a first target virtual model, at least one first virtual model and a first adjustment control in a virtual scene, the first adjustment control includes a slider sequence, the slider sequence includes a target slider corresponding to the first target virtual model and a first slider corresponding to each first virtual model, and the method includes:
[0008] In response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, determining the arrangement position of the target slider in the slider sequence;
[0009] According to the arrangement position of the target slider in the slider sequence, adjusting the placement position of the first target virtual model relative to each first virtual model in the virtual scene.
[0010] In a second aspect, the present application provides an editing device of a virtual scene, which provides a graphical user interface through a terminal device, the graphical user interface comprising a first target virtual model in a virtual scene, at least one first virtual model, and a first adjustment control, the first adjustment control comprising a slider sequence, the slider sequence comprising: a target slider corresponding to the first target virtual model, and a first slider corresponding to each first virtual model, and the method comprising: in response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, determining the arrangement position of the target slider in the slider sequence; and adjusting the placement position of the first target virtual model relative to each first virtual model in the virtual scene according to the arrangement position of the target slider in the slider sequence.
[0011] a response module configured to determine the arrangement position of the target slider in the slider sequence in response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence;
[0012] an adjustment module configured to adjust the placement position of the first target virtual model relative to each first virtual model in the virtual scene according to the arrangement position of the target slider in the slider sequence.
[0013] In a third aspect, the present application provides an electronic device, comprising a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium being in communication through the bus when the electronic device is running, and the processor executing the machine-readable instructions to perform the steps of the editing method of the virtual scene according to any one of the preceding embodiments.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium storing a computer program, the computer program being executed by a processor to perform the steps of the editing method of the virtual scene according to any one of the preceding embodiments.
[0015] The present application has the following beneficial effects:
[0016] In the editing method, device, electronic device, and storage medium of a virtual scene provided by the present application, the graphical user interface provided by the terminal device comprises a first target virtual model in a virtual scene, at least one first virtual model, and a first adjustment control, the first adjustment control comprising a slider sequence, the slider sequence comprising: a target slider corresponding to the first target virtual model, and a first slider corresponding to each first virtual model, the method comprising: in response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, determining the arrangement position of the target slider in the slider sequence; and adjusting the placement position of the first target virtual model relative to each first virtual model in the virtual scene according to the arrangement position of the target slider in the slider sequence. According to the present application, the user can adjust the placement position of the first target virtual model relative to each first virtual model by adjusting the arrangement position of the target slider in the slider sequence, precise adjustment is achieved, and the adjustment efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as a limitation to the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor.
[0018] Figure 1 A flowchart of an editing method of a virtual scene provided by the present application;
[0019] Figure 2 A schematic diagram of a game interface provided by the present application;
[0020] Figure 3 A schematic diagram of another game interface provided by the present application;
[0021] Figure 4 A schematic diagram of another game interface provided by the present application;
[0022] Figure 5 Another editing method of a virtual scene provided by the present application;
[0023] Figure 6 A schematic diagram of another game interface provided by the present application;
[0024] Figure 7 A schematic diagram of a first adjustment control provided by the present application;
[0025] Figure 8 A flowchart of another editing method of a virtual scene provided by the present application;
[0026] Figure 9 A flowchart of another editing method of a virtual scene provided by the present application;
[0027] Figure 10 A flowchart of another editing method of a virtual scene provided by the present application;
[0028] Figure 11 A schematic diagram of another game interface provided by the present application;
[0029] Figure 12 A flowchart of another editing method of a virtual scene provided by the present application;
[0030] Figure 13 A schematic diagram of another game interface provided by the present application;
[0031] Figure 14 A flowchart of another editing method of a virtual scene provided by the present application;
[0032] Figure 15 a schematic view of another game interface provided by the present application;
[0033] Figure 16 a schematic view of another game interface provided by the present application;
[0034] Figure 17 a flowchart of another editing method of a virtual scene provided by the present application;
[0035] Figure 18 a functional module schematic view of an editing device of a virtual scene provided by the present application;
[0036] Figure 19 a schematic view of an electronic device structure provided by the present application. DETAILED DESCRIPTION
[0037] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will be combined with the accompanying drawings for the embodiments of the present application to make a clear and complete description of the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations.
[0038] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present application.
[0039] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0040] In the prior art, when adjusting the position of a virtual model in a racing scene through a track editor in user-generated content (UGC), the user often needs to select the virtual model in the scene for manual adjustment. Therefore, if there are many virtual models in the scene, using the existing adjustment method for adjustment will have the problem of low adjustment efficiency.
[0041] In view of this, the embodiments of the present application provide an editing method of a virtual scene, and application of the method can improve the adjustment efficiency and adjustment accuracy of the virtual model in the virtual scene.
[0042] The virtual scene editing method in the embodiment of the present disclosure can run on a local terminal device or a server. When the virtual scene editing method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes the server and a client device.
[0043] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the virtual scene editing method are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud game server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0044] In an optional embodiment, taking games as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, a conventional game program is downloaded and installed on an electronic device and is run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor, the display screen is used for presenting a graphical user interface, the graphical user interface includes a game picture, and the processor is used for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
[0045] In a possible embodiment, the embodiment of the present disclosure provides a virtual scene editing method, which provides a graphical user interface through a terminal device. The terminal device can be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
[0046] The virtual scene editing method provided by the present application is described in detail through multiple embodiments.
[0047] Figure 1A flowchart of an editing method of a virtual scene is provided. The method can provide a graphical user interface through a terminal device, the graphical user interface can include a first target virtual model in a virtual scene, at least one first virtual model, and a first adjustment control. Each virtual model can correspond to a slider. The first adjustment control includes a slider sequence, and the slider sequence includes a target slider corresponding to the first target virtual model and a first slider corresponding to each first virtual model.
[0048] Each slider can be labeled with a corresponding virtual model. Optionally, the display style (e.g., fill color) of each slider can be set to be different according to the actual application scenario. Optionally, the types of virtual models in the virtual scene can be buildings, trees, rivers, pipelines, roads, and machines, without limitation. The types can be different according to the actual application scenario.
[0049] As shown in Figure 1 The editing method of the virtual scene includes the following steps.
[0050] In step 101, a target slider is arranged in a slider sequence in response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence.
[0051] The number of first virtual models in the virtual scene is not limited herein and can be one or more according to the actual application scenario. The slider sequence can include virtual sliders corresponding to the virtual models, i.e., the slider sequence can include a target slider corresponding to the first target virtual model and a first slider corresponding to each first virtual model. The number of first sliders in the slider sequence is not limited herein and can be one or more according to the actual application scenario.
[0052] Optionally, a player can adjust the arrangement order of a target slider in a slider sequence by dragging, dragging and holding, long pressing and dragging, or other trigger methods. In response to the trigger method, the arrangement order of the target slider in the slider sequence can be obtained.
[0053] In addition, according to the actual application scenario, in response to the trigger operation of adjusting the arrangement order of the target slider in the slider sequence, the target slider can be moved to a corresponding position and displayed in a preview format (e.g., displayed with 50% transparency). If no further adjustment operation of the user is received within a preset time threshold, the arrangement position of the target slider in the slider sequence is determined accordingly. Otherwise, the trigger operation can be canceled and the adjustment can be performed again.
[0054] In step 102, the arrangement position of the first target virtual model relative to each first virtual model in the virtual scene is adjusted according to the arrangement position of the target slider in the slider sequence.
[0055] The arrangement position of the target slider in the slider sequence has a corresponding relationship with the placement position of the first target virtual model relative to each first virtual model. When adjusting, the placement position of the first target virtual model relative to each first virtual model in the virtual scene can be adjusted according to the arrangement position of the target slider in the slider sequence.
[0056] It should be noted that, during the adjustment, the adjustment of the placement position of the first target virtual model can also cause the placement position of at least part of the first virtual models in the virtual scene to be updated synchronously, wherein, when updating, for the placement position of each first virtual model in the virtual scene, the placement position can be updated according to the arrangement position of the first slider corresponding to the first virtual model in the slider sequence and the placeable position in the virtual scene.
[0057] Figure 2 A schematic diagram of a game interface provided by the present application, Figure 3 A schematic diagram of another game interface provided by the present application. As Figure 2 shown, the virtual scene includes four first virtual models (A1, A2, A3, and A4) and a first target virtual model B, wherein, before adjustment, in the virtual scene, in order from left to right, the virtual models placed in each placement position are as follows: the placement position C1 corresponds to the first virtual model A1, the placement position C2 corresponds to the first virtual model A2, the placement position C3 corresponds to the first virtual model A3, the placement position C4 corresponds to the first virtual model A4, and the placement position C5 corresponds to the first target virtual model B; in order from left to right, the slider sequence S1 is in the following order: the first slider M1 corresponding to the first virtual model A1, the second slider M2 corresponding to the first virtual model A2, the fourth slider M3 corresponding to the first virtual model A3, the fourth slider M4 corresponding to the first virtual model A4, and the target slider Ms corresponding to the first target virtual model B, and the display styles (such as fill colors) of the sliders are different.
[0058] Optionally, referring to Figure 3As shown, by applying the method, the player can act on the target slider Ms in the slider sequence S1 through triggering modes such as dragging, dragging, long pressing and dragging, so as to adjust the slider order of the slider sequence S1 to: the first slider M1, the target slider Ms, the second slider M2, the third slider M3, and the fourth slider M4. Further, in response to the triggering mode, the first target virtual model B can be adjusted from the placement position C5 to the placement position C2, the first virtual model A2 is adjusted to the placement position C3, the first virtual model A3 is adjusted to the placement position C4, and the first virtual model A4 is adjusted to the placement position C5, realizing the synchronous and flexible update of the placement position of at least part of the first virtual model in the virtual scene, without the need for the user to make further adjustments, improving the flexibility and applicability of the method. It should be noted that according to the actual application scenario, the update position of each virtual model can be determined according to the placeable position of the virtual scene and the attribute parameters (such as size, shape, etc.) of the virtual model.
[0059] Of course, it should be noted that according to the actual application scenario, the placement positions of the first virtual model A1 and the first virtual model A2 can also be updated. Optionally, in the case of following the arrangement order indicated by the slider sequence, the first virtual model A1 can be placed at other placeable positions, and the first virtual model A2 can be placed at the placement position C1. The placement positions of the first virtual models A2, A3 and A4 remain unchanged. Of course, the specific adjustment mode is not limited thereto.
[0060] It can be seen that by applying the embodiment of the present application, the target slider can be accurately selected, and the user can adjust the arrangement position of the target slider in the slider sequence to adjust the placement position of the first target virtual model relative to each first virtual model, realize accurate adjustment, and improve the adjustment efficiency. For example, when the first target virtual model (such as a building group composed of multiple buildings) includes multiple sub-target virtual models (such as each building in the building group), the user does not need to manually select the first target virtual model multiple times through framing, which can improve the adjustment efficiency, and can also avoid missing part of the sub-target virtual model in the framing process, realizing accurate adjustment. According to the adjustment of the placement position of the first target virtual model, the placement positions of each first virtual model in the virtual scene can be adjusted synchronously, and flexible adjustment can be realized.
[0061] In summary, the embodiment of the present application provides an editing method of a virtual scene, which can provide a graphical user interface through a terminal device, the graphical user interface contains a first target virtual model in the virtual scene, at least one first virtual model, and a first adjustment control, the first adjustment control includes a slider sequence, the slider sequence includes a target slider corresponding to the first target virtual model and a first slider corresponding to each first virtual model, the method includes: in response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, determining the arrangement position of the target slider in the slider sequence; and adjusting the placement position of the first target virtual model relative to each first virtual model in the virtual scene according to the arrangement position of the target slider in the slider sequence. By adjusting the arrangement position of the target slider in the slider sequence, the user can adjust the placement position of the first target virtual model relative to each first virtual model, achieve accurate adjustment, and improve the adjustment efficiency.
[0062] In an optional embodiment, the above method further includes:
[0063] In response to a selection operation on the target slider, a boundary adjustment control is displayed on at least one side of the target slider; and in response to a trigger operation on the boundary adjustment control, the display proportion of the target slider in the slider sequence and the distribution range of the first target virtual model in the virtual scene are adjusted.
[0064] The display proportion of the target slider in the slider sequence and the distribution range of the first target virtual model in the virtual scene have a corresponding relationship. Optionally, the greater the display proportion of the target slider in the slider sequence, the greater the distribution range of the first target virtual model in the virtual scene, and the smaller the display proportion of the target slider in the slider sequence, the smaller the distribution range of the first target virtual model in the virtual scene.
[0065] Optionally, the selection operation on the target slider can be generated by a trigger operation such as long pressing, double clicking, etc. In response to the selection operation, the boundary adjustment control can be displayed on at least one side of the target slider. In some embodiments, when the boundary adjustment control is displayed, it can be displayed on one side of the target slider, or on both sides, which is not limited herein.
[0066] In the case that the boundary adjustment control is displayed on at least one side of the target slider, optionally, any boundary adjustment control can be acted on by a trigger mode such as long pressing and dragging, double clicking and dragging, etc. In response to the trigger operation on the boundary adjustment control, the display proportion of the target slider in the slider sequence and the distribution range of the first target virtual model in the virtual scene can be adjusted, thereby improving the layout and adjustment efficiency of the model.
[0067] In some embodiments, the display proportion of the target slider in the slider sequence can be adjusted to increase, and the distribution area of the first target virtual model in the virtual scene can be adjusted to expand synchronously; or the display proportion of the target slider in the slider sequence can be adjusted to decrease, and the distribution area of the first target virtual model in the virtual scene can be adjusted to shrink synchronously.
[0068] Figure 4 Another schematic diagram of a game interface is provided in the present application. In an optional implementation, the boundary adjustment control is displayed on at least one side of the target slider in response to the selection operation on the target slider, including: the first boundary adjustment control and the second boundary adjustment control are respectively displayed on the left and right sides of the target slider in response to the selection operation on the target slider.
[0069] As shown in Figure 4 , optionally, the user can generate the selection operation on the target slider Ms by a long press, a double click or the like trigger operation, and the first boundary adjustment control N1 and the second boundary adjustment control N2 can be respectively displayed on the left and right sides of the target slider Ms in response to the selection operation.
[0070] Figure 5 Another method for editing a virtual scene is provided in the present application. Figure 6 Another schematic diagram of a game interface is provided in the present application. Accordingly, the display proportion of the target slider in the slider sequence and the distribution area of the first target virtual model in the virtual scene are adjusted in response to the trigger operation on the boundary adjustment control, including:
[0071] In step 501, the display proportion of the target slider in the slider sequence is adjusted in response to the trigger operation on the first boundary adjustment control or the second boundary adjustment control.
[0072] In step 502, the distribution area of the first target virtual model in the virtual scene is adjusted according to the new display proportion of the target slider in the slider sequence.
[0073] As shown in Figure 3 , optionally, the first boundary adjustment control N1 or the second boundary adjustment control N2 can be acted on by a long press and drag, a double click and drag or the like trigger mode, and the display proportion of the target slider Ms in the slider sequence S1 can be adjusted in response to the trigger mode to obtain a new display proportion and a new distribution area of the first target virtual model in the virtual scene.
[0074] In some embodiments, when the adjustment is specifically made, it can be made by adjusting the display proportion of the target slider in the slider sequence to increase the distribution area of the first target virtual model in the virtual scene, or by adjusting the display proportion of the target slider in the slider sequence to decrease the distribution area of the first target virtual model in the virtual scene, which is not limited here and can be flexibly applied according to actual application scenarios.
[0075] In addition, in combination with Figure 1 and Figure 5 It should be noted that steps 501 and 502 can also be performed after steps 101 and 102, and the order between the two embodiments is not limited here and can be flexibly set according to actual application scenarios.
[0076] As shown in Figure 6 In some embodiments, for example, the first virtual model B is a virtual tree, the display proportion of the target slider Ms in the slider sequence S1 before adjustment is 17%, and the number of the first target virtual model B in the virtual scene is 1; as shown in Figure 6 Optionally, the new display proportion of the target slider Ms in the slider sequence S1 after adjustment is 25%, and the number of the first target virtual model B in the virtual scene is 2. It can be seen that the distribution area of the first target virtual model in the virtual scene is expanded before and after adjustment, and therefore, the method of the present application can be used to flexibly adjust the distribution area of the first virtual model in the virtual scene.
[0077] Of course, it should be noted that the present application does not limit the numerical value of the display proportion of the target slider in the slider sequence before and after adjustment, the distribution position of the distribution area of the first target virtual model in the virtual scene, the distribution density, etc., which can be different according to actual application scenarios.
[0078] Figure 7 A schematic diagram of a first adjustment control provided by the present application. In an optional embodiment, the above-mentioned adjusting the display proportion of the target slider in the slider sequence in response to the triggering operation of the first boundary adjustment control or the second boundary adjustment control comprises:
[0079] In response to the triggering operation of controlling the first boundary adjustment control to move in the first direction, or in response to the triggering operation of controlling the second boundary adjustment control to move in the second direction, the display proportion of the target slider in the slider sequence is increased.
[0080] The first direction and the second direction are opposite directions. Alternatively, taking an example in which each slider in the slider sequence is arranged in a horizontal direction, the first direction can be a horizontal left direction, and the second direction can be a horizontal right direction. Of course, it should be noted that in some scenarios, if each slider in the slider sequence is arranged in a vertical direction, the first direction can be a vertical upward direction, and the second direction can be a vertical downward direction, which is not limited herein.
[0081] Alternatively, referring to FIG. 1B, Figure 7 As shown in FIG. 1B, the user can act on the first boundary adjustment control N1 to move in the first direction L1 by a trigger mode such as long pressing and dragging, double pressing and dragging, double clicking and dragging, and the like. In response to the trigger operation, the display proportion of the target slider Ms in the slider sequence S1 can be increased. Alternatively, the user can act on the second boundary adjustment control N2 to move in the second direction L2 by a trigger mode such as long pressing and dragging, double pressing and dragging, double clicking and dragging, and the like. In response to the trigger operation, the display proportion of the target slider Ms in the slider sequence S1 can be increased.
[0082] It should be noted that taking the first boundary adjustment control N1 as an example, the increased value of the display proportion of the target slider Ms in the slider sequence S2 is proportional to the distance of the first boundary adjustment control N1 moving in the first direction L1. The farther the distance of movement is, the more the display proportion is increased. The closer the distance of movement is, the less the display proportion is increased.
[0083] In an optional implementation, the above-mentioned adjusting the display proportion of the target slider in the slider sequence in response to the trigger operation on the first boundary adjustment control or the second boundary adjustment control comprises:
[0084] In response to a trigger operation of controlling the first boundary adjustment control to move in the second direction, or in response to a trigger operation of controlling the second boundary adjustment control to move in the first direction, the display proportion of the target slider in the slider sequence is decreased. The first direction and the second direction are opposite directions.
[0085] Alternatively, referring to FIG. 1B, Figure 7 Of course, the user can also act on the first boundary adjustment control N1 to move in the second direction L2 by a trigger mode such as long pressing and dragging, double pressing and dragging, double clicking and dragging, and the like. In response to the trigger operation, the display proportion of the target slider Ms in the slider sequence S1 can be decreased. Alternatively, the user can act on the second boundary adjustment control N2 to move in the first direction L1 by a trigger mode such as long pressing and dragging, double pressing and dragging, double clicking and dragging, and the like. In response to the trigger operation, the display proportion of the target slider Ms in the slider sequence S1 can be decreased.
[0086] In summary, by applying the embodiments of the present application, the display proportion of the target slider in the slider sequence can be flexibly adjusted through the first boundary adjustment control or the second boundary adjustment control, so as to more intuitively adjust the layout range of the first target virtual model. In particular, by applying the method, the rapid copying and repetition of the model layout can be realized, so as to quickly create a large number of similar models. Compared with the existing manual creation mode, the editing efficiency of the virtual scene can be improved.
[0087] Figure 8 Another flowchart of the method for editing a virtual scene is provided in the present application. In an optional embodiment, as shown in Figure 8 The method further includes the following steps:
[0088] In step 801, when the target slider is in the selected state, the first model identifier corresponding to the first target virtual model is displayed in the model selection control.
[0089] Optionally, the model identifier can represent the model type. In some embodiments, the model type can include trees, buildings, rivers, arch bridges, etc., without limitation. The model selection control can be used to modify the model type of each virtual model.
[0090] In some embodiments, the user can act on the target slider through a long press, double-click, double-tap, or other triggering methods. In response to the triggering operation, it can be determined that the target slider is in the selected state. At this time, the first model identifier corresponding to the first target virtual model can be displayed in the model selection control.
[0091] In step 802, in response to the triggering operation on the first model identifier, a model selection list is displayed.
[0092] In step 803, in response to the selection operation on the second model identifier in the model selection list, the first target virtual model in the virtual scene is switched to display the second target virtual model corresponding to the second model identifier.
[0093] When the first model identifier corresponding to the first target virtual model is displayed in the model selection control, the first model identifier can be acted on through a single click, double-click, long press, double-tap, or other triggering methods. In response to the triggering operation, a model selection list can be displayed around the model selection control. Optionally, the model selection list can include multiple selectable model identifiers different from the first model identifier.
[0094] Further, the second model identifier in the model selection list can be acted on through a single click, double-click, long press, double-tap, or other selection methods. In response to the selection operation, the model type of the first target virtual model in the virtual scene can be changed, that is, the first target virtual model in the virtual scene is switched to display the second target virtual model corresponding to the second model identifier.
[0095] It should be noted that the second model identifier can be any model identifier in the model selection list different from the first model identifier, which is not limited herein. For example, the model type indicated by the first model identifier can be a large tree, and the model type indicated by the second model identifier can be a building, but not limited thereto.
[0096] Figure 9 Another flowchart of the method for editing a virtual scene is provided in the present application. In an optional embodiment, as shown in Figure 9 The method further comprises:
[0097] Step 901, in the case that the target slider is in a selected state, display an adjustment interface corresponding to the first target virtual model in response to a triggering operation on the second adjustment control.
[0098] Step 902, adjust the placement angle and / or display size of the first target virtual model in the virtual scene in response to a triggering operation on at least one sub-adjustment control in the adjustment interface.
[0099] In some embodiments, in order to adjust the placement angle and / or display size of the first target virtual model in the virtual scene, improve the flexibility and applicability of the method of the present application, optionally, a second adjustment control can also be provided in the game interface.
[0100] Optionally, when adjusting, a selection mode such as single-click, double-click, long press, and repeated press can be applied to the target slider, and in response to the selection operation, it is determined that the target slider is in a selected state. At this time, a triggering mode such as single-click, double-click, long press, and repeated press can be applied to the second adjustment control, and in response to the triggering mode, the adjustment interface corresponding to the first target virtual model can be displayed, wherein the adjustment interface can include at least one sub-adjustment control, and each sub-adjustment control is used to adjust different attribute parameters of the first target virtual model in the virtual scene.
[0101] Of course, it should be noted that the present application does not limit the specific form of each sub-adjustment control, which can be flexibly adjusted according to the actual application scenario. In addition, it can be understood that the first target virtual model is a three-dimensional model, and the placement angle in the virtual scene is a three-dimensional placement angle of the first target virtual model in the virtual scene.
[0102] Figure 10 Another flowchart of the method for editing a virtual scene is provided in the present application. In an optional embodiment, at least part of the sub-adjustment controls include an adjusting rod and a first adjusting slider on the adjusting rod.
[0103] Optionally, the sub-adjustment control can include multiple sub-adjustment controls, and each sub-adjustment control is used to adjust different attribute parameters of the target virtual model.
[0104] like Figure 10 As shown, in certain scenarios, the second adjustment control may include a first sub-adjustment control P1 and a second sub-adjustment control P2. The first sub-adjustment control P1 includes a first adjustment lever P1-1 and a first adjustment slider P1-2 located on the first adjustment lever P1-1. The first sub-adjustment control P1 is used to adjust the placement angle of the first target virtual model B in the virtual scene. The second sub-adjustment control P2 includes a second adjustment lever P2-1 and a first adjustment slider P2-2 located on the second adjustment lever P2-1. The second sub-adjustment control P2 is used to adjust the display size of the first target virtual model B in the virtual scene.
[0105] Optionally, the above-mentioned response to a triggering operation of at least one sub-adjustment control in the adjustment interface to adjust the placement angle and / or display size of the first target virtual model in the virtual scene includes:
[0106] In response to a first sliding operation of the first adjustment slider on the adjustment rod, the placement angle and / or display size of the first target virtual model in the virtual scene are adjusted according to the first target adjustment value corresponding to the first sliding operation.
[0107] Referring to the settings of the first sub-adjustment control P1 and the second sub-adjustment control P2 mentioned above, taking the first sub-adjustment control P1 as an example, during adjustment, the first adjustment slider P1-2 can be controlled to slide on the first adjustment rod P1-1 through a first sliding operation. In response to this first sliding operation, the first target adjustment value of the first sliding operation can be obtained, and the placement angle of the first target virtual model B in the virtual scene can be adjusted according to the first target adjustment value (which can be any value between 0 and 360°). For example, the first target virtual model B can be adjusted to rotate counterclockwise by the first target adjustment value (10°) based on the current placement angle before being displayed. Of course, the specific adjustment method is not limited to this.
[0108] It is understandable that if the first adjustment slider P2-2 is controlled to slide on the first adjustment rod P2-1 via the first sliding operation, the display size of the first target virtual model B in the virtual scene can be adjusted according to the first target adjustment value (which can be any value greater than 0 and less than 30). For example, the first target virtual model can be enlarged by 2 times, 3 times, etc., based on the current display size, without limitation. It is also understandable that if the first target adjustment value is less than 1, it indicates a shrinking operation, such as shrinking by 0.5 times.
[0109] The embodiment of the present application can improve the accuracy of model position and angle adjustment, make the layout result more meet the user demand, and improve the efficiency of model layout and adjustment compared with the adjustment mode through the coordinate axis tool and the rotation tool, especially in large-scale scene editing.
[0110] Figure 11 Another schematic diagram of a graphical user interface provided by the present application is shown. In an optional embodiment, at least part of the sub-adjustment controls further include a mode control, which is used to set the adjustment mode to a random mode or a manual mode.
[0111] Optionally, as shown in Figure 11 In some embodiments, the adjustment interface can include a second sub-adjustment control P2 for adjusting the display size of the first target virtual model B in the virtual scene, and the second sub-adjustment control P2 further includes a mode control P3. Optionally, when the mode control P3 is not selected, the default mode is the manual mode, and when the mode control P3 is selected, the mode is switched to the random mode.
[0112] It should be noted that the random mode and the manual mode are two ways of adjusting the attribute parameters of the first target virtual model in the virtual scene. If the random mode is set, the corresponding target adjustment value in the random mode is determined according to a preset rule, and if the manual mode is set, the corresponding target adjustment value in the manual mode can be determined according to the user's interactive operation.
[0113] Correspondingly, optionally, before the first target virtual model is adjusted in the virtual scene according to the first target adjustment value corresponding to the first sliding operation of the first adjustment slider on the adjustment rod, the method further includes:
[0114] In response to a first trigger operation on the mode control corresponding to the target sub-adjustment control in the at least one sub-adjustment control, the adjustment mode is set to the manual mode.
[0115] In combination with Figure 11 As shown, the target sub-adjustment control can be the second sub-adjustment control P2. Optionally, the mode control P3 in the second sub-adjustment control P2 can be operated by single-clicking, double-clicking or other first trigger modes to cancel the selection of the mode control P3, so as to set the corresponding adjustment mode to the manual mode. It should be noted that after being set to the manual mode, the first target virtual model can be adjusted in the virtual scene according to the first target adjustment value corresponding to the first sliding operation of the first adjustment slider on the adjustment rod. The specific adjustment mode can be referred to the foregoing related description, and will not be described here.
[0116] Figure 12Another flowchart of the method for editing a virtual scene is provided in the present application. Figure 13 Another schematic diagram of the graphical user interface is provided in the present application. In optional embodiments, the adjusting the placement angle and / or display size of the first target virtual model in the virtual scene in response to the triggering operation on the at least one sub-adjustment control in the adjustment interface comprises:
[0117] In step 1201, in response to a second triggering operation on the mode control in the target sub-adjustment control, the adjustment mode is set to the random mode, and a second adjustment slider is added to the target adjustment rod corresponding to the target sub-adjustment control.
[0118] As shown in Figure 13 The target sub-adjustment control can be the second sub-adjustment control P2. Optionally, the mode control P3 in the second sub-adjustment control P2 can be operated by a second triggering mode such as single-click or double-click. In response to the second triggering mode, the mode control P3 can be framed and selected, the adjustment mode corresponding to the mode control P3 can be set to the random mode, and a second adjustment slider P2-4 can be added to the target adjustment rod corresponding to the target sub-adjustment control.
[0119] Optionally, the added second adjustment slider P2-4 can be located at a specific position of the target adjustment rod, such as the end or the middle, which is not limited herein and can be flexibly set according to actual application scenarios.
[0120] In step 1202, in response to a second sliding operation of the first adjustment slider on the target adjustment rod, a starting adjustment value is determined.
[0121] In step 1203, in response to a third sliding operation of the second adjustment slider on the target adjustment rod, a terminal adjustment value is determined.
[0122] The random adjustment range can be determined according to the starting adjustment value and the terminal adjustment value.
[0123] In some embodiments, during the specific adjustment, the first adjustment slider can be controlled to slide on the target adjustment rod by the second sliding operation, and the starting adjustment value can be determined according to the second sliding operation; the second adjustment slider can be controlled to slide on the target adjustment rod by the third sliding operation, and the terminal adjustment value can be determined according to the third sliding operation.
[0124] As shown in Figure 13 That is, the random adjustment range can be determined according to the starting adjustment value indicated by the first adjustment slider P2-2 and the terminal adjustment value indicated by the second adjustment slider P2-3.
[0125] Step 1204, determining a second target adjustment value between the starting adjustment value and the ending adjustment value, and adjusting the placement angle and / or display size of the first target virtual model in the virtual scene according to the second target adjustment value.
[0126] The second target adjustment value can be any value within the random adjustment range, and can be determined according to a preset random algorithm, such as a random number generator, which is not limited herein.
[0127] It can be understood that after the second target adjustment value is determined, the placement angle and / or display size of the first target virtual model in the virtual scene can be adjusted according to the second target adjustment value, so as to automatically adjust the first target virtual model, improve the editing efficiency of the virtual scene, and improve the detail level of the virtual scene layout. Referring to Figure 12 For example, in the random mode, the determined second target adjustment value can be 10, but the specific value is not limited thereto.
[0128] It should be noted that in the random mode, after the placement angle and / or display size of the first target virtual model in the virtual scene is adjusted according to the second target adjustment value, the user can further switch to the manual mode according to the actual application scenario, so as to realize fine adjustment of the placement angle and / or display size, and improve the flexibility and applicability of the method. In addition, if the placement angle is a three-dimensional angle, the placement angle of the first target virtual model in each dimension (XYZ) in the virtual scene can be adjusted respectively.
[0129] Figure 14 Another flowchart of the virtual scene editing method provided by the present application is provided. 15 is a schematic diagram of another graphical user interface provided by the present application. In an optional embodiment, as shown in Figure 15 The graphical user interface further includes a curve editing control S2. Optionally, before determining the arrangement position of the target slider in the slider sequence, the method further includes:
[0130] Step 1401, in response to a triggering operation of the control curve editing control in the virtual scene, displaying a corresponding model layout curve in the virtual scene.
[0131] The curve editing control is used to edit the model layout curve in the virtual scene, and the model layout curve can determine the layout path and layout direction of each virtual model in the virtual scene.
[0132] Optionally, referring to Figure 15As shown, the curve editing control S2 can be brought up by clicking, double-clicking, long-pressing, or pressing hard. The curve editing control S2 can be moved in the virtual scene by long-pressing and dragging. At this time, the model layout curve S3 can be displayed on the movement path corresponding to the curve editing control S2. For example, it can be a non-closed curve.
[0133] It should be noted that the model layout curve can be a straight line, a curve, or a closed curve (such as a circle). The specific form of the model layout curve is not limited here.
[0134] Step 1402: Based on the model layout curve, lay out the first target virtual model and at least one first virtual model.
[0135] Optionally, when the model layout curve is displayed, a first target virtual model and at least one first virtual model can be set along the model layout curve. It should be noted that the specific layout settings can be implemented according to a preset layout algorithm, or they can be implemented manually by the user; this is not limited here.
[0136] Step 1403: In response to the trigger operation on the model layout curve, display the first adjustment control.
[0137] When the corresponding model layout curve S3 is displayed in the virtual scene, it can be applied to the model layout curve S3 by single click, double click, long press, heavy click, etc. In response to the triggering method, the first adjustment control S1 can be displayed.
[0138] As can be seen from the foregoing description, the placement of the first target virtual model relative to each of the first virtual models can be adjusted using the first adjustment control S1. The specific adjustment method can be found in the foregoing description and will not be repeated here.
[0139] Figure 16 A schematic diagram of another graphical user interface provided by the present invention. In an optional embodiment, the above method further includes:
[0140] Count the number of the first slider in the first adjustment control; if the number is less than a preset threshold, display the newly added control around the first adjustment control.
[0141] like Figure 16 As shown, optionally, to improve the editing efficiency of the virtual scene, the number of the first slider in the first adjustment control can be counted in real time. If the counted number is less than a preset threshold (e.g., 3), a new control S4 can be displayed around the first adjustment control. Understandably, this new control S4 can then be used to quickly add new virtual models to the virtual scene, improving the editing efficiency of the virtual scene.
[0142] Of course, it needs to be explained that the display position and display method of the new control are not limited to the illustration, and can be flexibly set according to the actual application scene.
[0143] Figure 17 Another flowchart of the editing method of the virtual scene provided by the application is shown. In the optional embodiment, before determining the arrangement position of the target slider in the slider sequence, the above-mentioned triggering operation of responding to the adjustment of the target slider in the arrangement order of the slider sequence further comprises:
[0144] Step 1701, in response to the triggering operation of the new control, a first target virtual model is displayed at the place where the virtual scene can be placed along the model layout curve.
[0145] Referring to Figure 16 As shown, the new control S4 can be triggered by clicking, long pressing, double pressing, etc. In response to the triggering operation, a first target virtual model can be displayed at the place where the virtual scene can be placed along the model layout curve. Specifically, the display can be performed according to a preset rule, for example, a random position away from the model layout curve can be set according to a random number generator.
[0146] Optionally, the initially displayed first target virtual model can be a default virtual model, such as a house, and the model type of the first target virtual model can be changed by referring to the above-mentioned related method.
[0147] Of course, it needs to be explained that the type of the first target virtual model (such as a tree) can also be determined in response to the triggering operation of the new control, and the first target virtual model can be displayed at the place where the virtual scene can be placed along the model layout curve according to the type of the first target virtual model.
[0148] Step 1702, according to the initial placement position of the first target virtual model and each first virtual model in the virtual scene, the initial arrangement position of the target slider in the slider sequence is determined, and the target slider is displayed at the initial arrangement position.
[0149] Wherein, as can be known from the foregoing description, each virtual module can correspond to a slider in a slider sequence, that is, the first target virtual model can correspond to a target slider; wherein, after the initial placement position of the first target virtual model relative to each first virtual model is determined, the initial arrangement position of the target slider relative to each first slider, that is, the initial arrangement position of the target slider in the slider sequence, can be determined accordingly, and the target slider is displayed at the initial arrangement position, so that when a new virtual model is added in the virtual scene, the slider sequence can be updated synchronously, so that subsequent adjustment of the arrangement position of the target slider in the slider sequence can be used to adjust the placement position of the first target virtual model relative to each first virtual model, precise adjustment is achieved, and adjustment efficiency is improved.
[0150] Optionally, according to an actual application scenario, subsequent other virtual models such as a race track, a river, a bridge, etc. can also be arranged at a position where the model layout curve is located, which is not limited herein.
[0151] It should be noted that in an actual application process, when the user confirms model selection and setting, the editor of the virtual scene saves all changes, so as to maintain the current state when loaded next time, so that the user can quickly copy and repeat the previous layout, saving a large amount of time; meanwhile, according to the user's setting, the editor can add new models along the model layout curve, achieving quick copying and repetition of model layout.
[0152] Figure 18 A functional module schematic diagram of an editing device of a virtual scene provided by the application is shown in FIG. 1. A graphical user interface is provided by a terminal device, the graphical user interface contains a first target virtual model in a virtual scene, at least one first virtual model, and a first adjustment control. The first adjustment control includes a slider sequence, and the slider sequence includes a target slider corresponding to the first target virtual model and first sliders corresponding to each first virtual model. The basic principle and technical effects of the device are the same as those of the corresponding method embodiments described above. For brief description, the parts not mentioned in the present embodiment can refer to the corresponding contents in the method embodiments. As shown in FIG. 1, the editing device includes: Figure 18
[0153] The response module 110 is configured to, in response to a trigger operation of adjusting an arrangement order of the target slider in the slider sequence, determine an arrangement position of the target slider in the slider sequence.
[0154] The adjustment module 120 is configured to adjust a placement position of the first target virtual model relative to each first virtual model in the virtual scene according to the arrangement position of the target slider in the slider sequence.
[0155] In an optional implementation, the response module 110 is further configured to, in response to the selection operation on the target slider, display a boundary adjustment control on at least one side of the target slider.
[0156] In response to a triggering operation on the boundary adjustment control, adjust the display proportion of the target slider in the slider sequence and the distribution area of the first target virtual model in the virtual scene.
[0157] In an optional implementation, the response module 110 is further configured to, in response to the selection operation on the target slider, display a first boundary adjustment control and a second boundary adjustment control on two sides of the target slider respectively.
[0158] The response to the triggering operation on the boundary adjustment control includes:
[0159] In response to a triggering operation on the first boundary adjustment control or the second boundary adjustment control, adjust the display proportion of the target slider in the slider sequence.
[0160] According to the new display proportion of the target slider in the slider sequence, adjust the distribution area of the first target virtual model in the virtual scene.
[0161] In an optional implementation, the response module 110 is further configured to, in response to a triggering operation of controlling the first boundary adjustment control to move in a first direction, or in response to a triggering operation of controlling the second boundary adjustment control to move in a second direction, increase the display proportion of the target slider in the slider sequence, the first direction being opposite to the second direction.
[0162] In an optional implementation, the response module 110 is further configured to, in response to a triggering operation of controlling the first boundary adjustment control to move in a second direction, or in response to a triggering operation of controlling the second boundary adjustment control to move in a first direction, decrease the display proportion of the target slider in the slider sequence.
[0163] In an optional implementation, the response module 110 is further configured to, in response to the target slider being in a selected state, display a first model identifier corresponding to the first target virtual model in the model selection control.
[0164] In response to a triggering operation on the first model identifier, display a model selection list.
[0165] In response to a selection operation on a second model identifier in the model selection list, switch the first target virtual model in the virtual scene to display a second target virtual model corresponding to the second model identifier.
[0166] In an optional implementation, the response module 110 is further configured to, in response to a triggering operation on a second adjustment control when the target slider is in a selected state, display an adjustment interface corresponding to the first target virtual model.
[0167] In response to a triggering operation on at least one sub-adjustment control in the adjustment interface, adjust the display size and / or the placement angle of the first target virtual model in the virtual scene.
[0168] In an optional implementation, at least part of the sub-adjustment controls include an adjustment rod and a first adjustment slider on the adjustment rod.
[0169] The response module 110 is specifically configured to, in response to a first sliding operation of the first adjustment slider on the adjustment rod, adjust the display size and / or the placement angle of the first target virtual model in the virtual scene according to a first target adjustment value corresponding to the first sliding operation.
[0170] In an optional implementation, at least part of the sub-adjustment controls further include a mode control, which is configured to set the adjustment mode as a random mode or a manual mode.
[0171] The response module 110 is further configured to, in response to a first triggering operation on a mode control corresponding to a target sub-adjustment control among the at least one sub-adjustment control, set the adjustment mode as the manual mode.
[0172] In an optional implementation, the response module 110 is specifically configured to, in response to a second triggering operation on the mode control in a target sub-adjustment control, set the adjustment mode as the random mode, and increase a second adjustment slider displayed on a target adjustment rod corresponding to the target sub-adjustment control.
[0173] In response to a second sliding operation of the first adjustment slider on the target adjustment rod, determine a starting adjustment value.
[0174] In response to a third sliding operation of the second adjustment slider on the target adjustment rod, determine a terminal adjustment value.
[0175] Determine a second target adjustment value between the starting adjustment value and the terminal adjustment value, and adjust the display size and / or the placement angle of the first target virtual model in the virtual scene according to the second target adjustment value.
[0176] In an optional implementation, the graphical user interface further includes a curve editing control, and the response module is further configured to, in response to a triggering operation of controlling the curve editing control in the virtual scene, display a corresponding model layout curve in the virtual scene.
[0177] In response to a triggering operation on the model layout curve, the first adjustment control is displayed.
[0178] In an optional implementation, the above editing apparatus further includes a display module configured to count a number of the first sliders in the first adjustment control.
[0179] If it is determined that the number is less than a preset number threshold, a new control is displayed around the first adjustment control.
[0180] In an optional implementation, the display module is further configured to, in response to a triggering operation on the new control, display the first target virtual model at a place where the virtual scene can be placed along the model layout curve.
[0181] According to the first target virtual model and initial placement positions of each first virtual model in the virtual scene, an initial arrangement position of the target slider in the slider sequence is determined, and the target slider is displayed at the initial arrangement position.
[0182] The apparatus is configured to execute the method provided in the foregoing embodiments, and has similar implementation principles and technical effects, which will not be described here.
[0183] The above modules can be one or more integrated circuits configured to implement the above method, for example, one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs), etc. For another example, when the above module is implemented in the form of a processing element scheduling code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can invoke code. For another example, the modules can be integrated together to implement a system-on-a-chip (SOC).
[0184] Figure 19 An electronic device structure schematic diagram provided by an embodiment of the present application is provided. The electronic device can be integrated into the above editing apparatus. As shown in FIG. 6, the electronic device includes a processor 60, a memory 61, a display 62, and a communication interface 63. Figure 19As shown, the electronic device can include a processor 210, a storage medium 220, and a bus 230. The storage medium 220 stores machine-readable instructions executable by the processor 210. When the electronic device is running, the processor 210 communicates with the storage medium 220 through the bus 230. The processor 210 executes the machine-readable instructions to perform the steps of the method embodiments described below.
[0185] In response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, a position of the target slider in the slider sequence is determined; and a display position of the first target virtual model in the virtual scene relative to each of the first virtual models is adjusted according to the position of the target slider in the slider sequence.
[0186] In an optional embodiment, the method further includes: in response to a selection operation on the target slider, displaying a boundary adjustment control on at least one side of the target slider; and in response to a trigger operation on the boundary adjustment control, adjusting a display proportion of the target slider in the slider sequence and a distribution area of the first target virtual model in the virtual scene.
[0187] In an optional embodiment, the displaying of the boundary adjustment control on at least one side of the target slider in response to the selection operation on the target slider includes: in response to the selection operation on the target slider, displaying a first boundary adjustment control and a second boundary adjustment control on two sides of the target slider respectively.
[0188] The adjusting of the display proportion of the target slider in the slider sequence and the distribution area of the first target virtual model in the virtual scene in response to the trigger operation on the boundary adjustment control includes: in response to a trigger operation on the first boundary adjustment control or the second boundary adjustment control, adjusting the display proportion of the target slider in the slider sequence; and adjusting the distribution area of the first target virtual model in the virtual scene according to the new display proportion of the target slider in the slider sequence.
[0189] In an optional embodiment, the adjusting of the display proportion of the target slider in the slider sequence in response to the trigger operation on the first boundary adjustment control or the second boundary adjustment control includes: in response to a trigger operation of controlling the first boundary adjustment control to move in a first direction, or in response to a trigger operation of controlling the second boundary adjustment control to move in a second direction, increasing the display proportion of the target slider in the slider sequence, the first direction being opposite to the second direction.
[0190] In an optional implementation, the adjusting the display proportion of the target slider in the slider sequence in response to the triggering operation on the first or second boundary adjusting control includes: in response to the triggering operation of controlling the first boundary adjusting control to move in a second direction, or in response to the triggering operation of controlling the second boundary adjusting control to move in a first direction, reducing the display proportion of the target slider in the slider sequence.
[0191] In an optional implementation, the method further includes: displaying a first model identifier corresponding to the first target virtual model in the model selection control when the target slider is in the selected state; displaying a model selection list in response to a triggering operation on the first model identifier; and switching the first target virtual model in the virtual scene to display a second target virtual model corresponding to a second model identifier in the model selection list in response to a selection operation on the second model identifier.
[0192] In an optional implementation, the method further includes: displaying an adjusting interface corresponding to the first target virtual model in response to a triggering operation on a second adjusting control when the target slider is in the selected state; and adjusting a display size and / or a placement angle of the first target virtual model in the virtual scene in response to a triggering operation on at least one sub-adjusting control in the adjusting interface.
[0193] In an optional implementation, at least part of the sub-adjusting controls include: an adjusting rod and a first adjusting slider on the adjusting rod; and the adjusting the display size and / or the placement angle of the first target virtual model in the virtual scene in response to the triggering operation on the at least one sub-adjusting control in the adjusting interface includes:
[0194] adjusting the display size and / or the placement angle of the first target virtual model in the virtual scene according to a first target adjusting value corresponding to the first sliding operation of the first adjusting slider on the adjusting rod.
[0195] In an optional implementation, at least part of the sub-adjusting controls further include: a mode control configured to set an adjusting mode as a random mode or a manual mode.
[0196] The adjusting the display size and / or the placement angle of the first target virtual model in the virtual scene according to the first target adjusting value corresponding to the first sliding operation of the first adjusting slider on the adjusting rod is performed in response to a first triggering operation on a mode control corresponding to a target sub-adjusting control in the at least one sub-adjusting control.
[0197] In an optional implementation, the adjusting the placement angle and / or display size of the first target virtual model in the virtual scene in response to the triggering operation of at least one sub-adjustment control in the adjustment interface comprises: in response to a second triggering operation of the mode control in the target sub-adjustment control, setting the adjustment mode as a random mode, and displaying a second adjustment slider on the target adjustment rod corresponding to the target sub-adjustment control; in response to a second sliding operation of the first adjustment slider on the target adjustment rod, determining a start adjustment value; in response to a third sliding operation of the second adjustment slider on the target adjustment rod, determining a stop adjustment value; determining a second target adjustment value between the start adjustment value and the stop adjustment value, and adjusting the placement angle and / or display size of the first target virtual model in the virtual scene according to the second target adjustment value.
[0198] In an optional implementation, the graphical user interface further comprises a curve editing control, and the method further comprises: in response to a triggering operation of the curve editing control in the virtual scene, displaying a corresponding model layout curve in the virtual scene; and in response to a triggering operation of the model layout curve, displaying the first adjustment control.
[0199] In an optional implementation, the method further comprises: counting the number of the first sliders in the first adjustment control; and in response to a determination that the number is less than a preset number threshold, displaying a new control around the first adjustment control.
[0200] In an optional implementation, the method further comprises: in response to a triggering operation of the new control, displaying the first target virtual model at a place in the virtual scene where the model layout curve can be placed; and determining an initial arrangement position of the target slider in the slider sequence according to the first target virtual model and initial placement positions of the first virtual models in the virtual scene, and displaying the target slider at the initial arrangement position.
[0201] The specific implementation manners and technical effects of the method embodiments are similar to those of the above method embodiments, and thus are not described herein.
[0202] Optionally, the present application further provides a storage medium, and the storage medium stores a computer program. When the computer program is run by a processor, the steps of the method embodiments are executed.
[0203] In response to a trigger operation of adjusting the arrangement order of the target slider in the slider sequence, a position of the target slider in the slider sequence is determined; and a display position of the first target virtual model in the virtual scene relative to each of the first virtual models is adjusted according to the position of the target slider in the slider sequence.
[0204] In an optional implementation, the method further includes: in response to a selection operation on the target slider, displaying a boundary adjustment control on at least one side of the target slider; and in response to a trigger operation on the boundary adjustment control, adjusting a display proportion of the target slider in the slider sequence and a distribution area of the first target virtual model in the virtual scene.
[0205] In an optional implementation, the displaying of the boundary adjustment control on at least one side of the target slider in response to the selection operation on the target slider includes: in response to the selection operation on the target slider, displaying a first boundary adjustment control and a second boundary adjustment control on two sides of the target slider respectively.
[0206] The adjusting of the display proportion of the target slider in the slider sequence and the distribution area of the first target virtual model in the virtual scene in response to the trigger operation on the boundary adjustment control includes: in response to a trigger operation of controlling the first boundary adjustment control to move in a first direction or a trigger operation of controlling the second boundary adjustment control to move in a second direction, increasing the display proportion of the target slider in the slider sequence, the first direction being opposite to the second direction.
[0207] In an optional implementation, the adjusting of the display proportion of the target slider in the slider sequence in response to the trigger operation of controlling the first boundary adjustment control or the second boundary adjustment control includes: in response to the trigger operation of controlling the first boundary adjustment control to move in a first direction or the trigger operation of controlling the second boundary adjustment control to move in a second direction, increasing the display proportion of the target slider in the slider sequence, the first direction being opposite to the second direction.
[0208] In an optional implementation, the adjusting of the display proportion of the target slider in the slider sequence in response to the trigger operation of controlling the first boundary adjustment control or the second boundary adjustment control includes:
[0209] In response to the trigger operation of controlling the first boundary adjustment control to move in a second direction or the trigger operation of controlling the second boundary adjustment control to move in a first direction, decreasing the display proportion of the target slider in the slider sequence.
[0210] In an optional implementation, the method further includes: displaying a first model identifier corresponding to the first target virtual model in the model selection control when the target slider is in the selected state; displaying a model selection list in response to a triggering operation on the first model identifier; and switching the first target virtual model in the virtual scene to display a second target virtual model corresponding to a second model identifier in response to a selection operation on the second model identifier in the model selection list.
[0211] In an optional implementation, the method further includes: displaying an adjustment interface corresponding to the first target virtual model in response to a triggering operation on a second adjustment control when the target slider is in the selected state; and adjusting a placement angle and / or a display size of the first target virtual model in the virtual scene in response to a triggering operation on at least one sub-adjustment control in the adjustment interface.
[0212] In an optional implementation, at least part of the sub-adjustment controls include: an adjustment rod and a first adjustment slider on the adjustment rod; and the adjusting the placement angle and / or the display size of the first target virtual model in the virtual scene in response to the triggering operation on at least one sub-adjustment control in the adjustment interface includes:
[0213] adjusting the placement angle and / or the display size of the first target virtual model in the virtual scene according to a first target adjustment value corresponding to the first sliding operation of the first adjustment slider on the adjustment rod.
[0214] In an optional implementation, at least part of the sub-adjustment controls further include: a mode control configured to set an adjustment mode as a random mode or a manual mode.
[0215] the adjusting the placement angle and / or the display size of the first target virtual model in the virtual scene according to the first target adjustment value corresponding to the first sliding operation of the first adjustment slider on the adjustment rod includes: setting the adjustment mode as the manual mode in response to a first triggering operation on a mode control corresponding to a target sub-adjustment control in the at least one sub-adjustment control.
[0216] In an optional implementation, the adjusting the placement angle and / or display size of the first target virtual model in the virtual scene in response to the triggering operation of at least one sub-adjustment control in the adjustment interface comprises: in response to a second triggering operation of the mode control in the target sub-adjustment control, setting the adjustment mode as a random mode, and displaying a second adjustment slider on the target adjustment rod corresponding to the target sub-adjustment control; in response to a second sliding operation of the first adjustment slider on the target adjustment rod, determining a start adjustment value; in response to a third sliding operation of the second adjustment slider on the target adjustment rod, determining a stop adjustment value; determining a second target adjustment value between the start adjustment value and the stop adjustment value, and adjusting the placement angle and / or display size of the first target virtual model in the virtual scene according to the second target adjustment value.
[0217] In an optional implementation, the graphical user interface further comprises a curve editing control, and the method further comprises: before determining the arrangement position of the target slider in the slider sequence in response to the triggering operation of adjusting the arrangement order of the target slider in the slider sequence, displaying a corresponding model layout curve in the virtual scene in response to a triggering operation of controlling the curve editing control in the virtual scene; and displaying the first adjustment control in response to a triggering operation of the model layout curve.
[0218] In an optional implementation, the method further comprises: counting the number of the first sliders in the first adjustment control; and if it is determined that the number is less than a preset number threshold, displaying a new control around the first adjustment control.
[0219] In an optional implementation, before determining the arrangement position of the target slider in the slider sequence in response to the triggering operation of adjusting the arrangement order of the target slider in the slider sequence, the method further comprises: displaying the first target virtual model at a placeable position in the virtual scene along the model layout curve in response to a triggering operation of the new control; and determining an initial arrangement position of the target slider in the slider sequence according to the first target virtual model and initial placement positions of each first virtual model in the virtual scene, and displaying the target slider at the initial arrangement position.
[0220] The specific implementation manners and technical effects of the method embodiments are similar to those of the above method embodiments, and will not be described here.
[0221] Optionally, the present application also provides a computer program product, which comprises instructions for enabling an electronic device to implement the steps of the above method embodiments when the instructions are executed on the electronic device.
[0222] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.
[0223] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, can be located in one place, or can be distributed to a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0224] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
[0225] The integrated unit realized in the form of software functional unit can be stored in a computer readable storage medium. The software functional unit stored in a storage medium includes a plurality of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) execute part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated as: ROM), random access memory (English: Random Access Memory, abbreviated as: RAM), magnetic disk or optical disk and various program code storage media.
[0226] It has to be noted that, in the present document, the terms "first", "second", etc. merely serve the purpose of differentiation and do not require or imply any kind of ordering or sequence of the entities or actions associated therewith. Furthermore, the terms "comprising", "containing", or any other similar term are intended to encompass non-exclusive inclusions, such that a process, method, article, or apparatus that comprises a list of elements does not necessarily comprise only those elements, but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without further constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0227] The preferred embodiments of the present application are described above in detail with reference to only a few examples. However, various modifications and changes can be made thereto by those skilled in the art which fall within the scope of the application as defined by the appended claims. Any reference numerals in the claims shall not be construed as limiting the scope of the claims but are intended to address multiple embodiments. Moreover, certain language can be used by the patent to describe one example of the application including, for example, the terms "comprises", "comprising", "containing", "containing", "includes", "including", and the like, means "including, but not limited to". Any reference numerals in the claims shall not be construed as limiting the scope of the claims but are intended to address multiple embodiments. Moreover, certain language can be used by the patent to describe one example of the application including, for example, the terms "comprises", "comprising", "containing", "containing", "includes", "including", and the like, means "including, but not limited to". Any reference numerals in the claims shall not be construed as limiting the scope of the claims but are intended to address multiple embodiments. Moreover, certain language can be used by the patent to describe one example of the application including, for example, the terms "comprises", "comprising", "containing", "containing", "includes", "including", and the like, means "including, but not limited to". Any reference numerals in the claims shall not be construed as limiting the scope of the claims but are intended to address multiple embodiments.
Claims
1. A method for editing a virtual scene, characterized in that, A graphical user interface is provided through a terminal device. The graphical user interface includes a first target virtual model in a virtual scene, at least one first virtual model, and first adjustment controls. The first adjustment controls include a slider sequence, which includes a target slider corresponding to the first target virtual model and first sliders corresponding to each first virtual model. The method includes: In response to a trigger operation that adjusts the order of the target slider in the slider sequence, the arrangement position of the target slider in the slider sequence is determined; Based on the arrangement position of the target slider in the slider sequence, adjust the placement position of the first target virtual model in the virtual scene relative to each of the first virtual models; The method further includes: In response to the selection operation of the target slider, a boundary adjustment control is displayed on at least one side of the target slider; In response to a trigger operation on the at least one side display boundary adjustment control, the display proportion of the target slider in the slider sequence is adjusted; Based on the new display proportion of the target slider in the slider sequence, adjust the distribution area of the first target virtual model in the virtual scene.
2. The method according to claim 1, characterized in that, The step of displaying a boundary adjustment control on at least one side of the target slider in response to a selection operation includes: In response to the selection operation of the target slider, a first boundary adjustment control and a second boundary adjustment control are displayed on both sides of the target slider, respectively; The step of adjusting the display proportion of the target slider in the slider sequence in response to a trigger operation on the at least one side display boundary adjustment control includes: In response to a trigger operation on the first boundary adjustment control or the second boundary adjustment control, the display proportion of the target slider in the slider sequence is adjusted.
3. The method according to claim 2, characterized in that, The step of adjusting the display proportion of the target slider in the slider sequence in response to a trigger operation on the first boundary adjustment control or the second boundary adjustment control includes: In response to a trigger operation that controls the first boundary adjustment control to move in a first direction, or in response to a trigger operation that controls the second boundary adjustment control to move in a second direction, the display proportion of the target slider in the slider sequence is increased, wherein the first direction and the second direction are opposite directions.
4. The method according to claim 3, characterized in that, The step of adjusting the display proportion of the target slider in the slider sequence in response to a trigger operation on the first boundary adjustment control or the second boundary adjustment control includes: In response to a trigger operation that controls the first boundary adjustment control to move in a second direction, or in response to a trigger operation that controls the second boundary adjustment control to move in a first direction, the display proportion of the target slider in the slider sequence is reduced.
5. The method according to claim 1, characterized in that, The method further includes: When the target slider is selected, the first model identifier corresponding to the first target virtual model is displayed in the model selection control; In response to a trigger operation on the first model identifier, a list of model selections is displayed; In response to the selection operation of the second model identifier in the model selection list, the first target virtual model in the virtual scene is switched to be displayed as the second target virtual model corresponding to the second model identifier.
6. The method according to claim 1, characterized in that, The method further includes: When the target slider is selected, in response to the triggering operation of the second adjustment control, the adjustment interface corresponding to the first target virtual model is displayed; In response to a trigger operation on at least one sub-adjustment control in the adjustment interface, the placement angle and / or display size of the first target virtual model in the virtual scene are adjusted.
7. The method according to claim 6, characterized in that, At least part of the sub-adjustment control includes: an adjustment lever and a first adjustment slider located on the adjustment lever; The step of adjusting the placement angle and / or display size of the first target virtual model in the virtual scene in response to a trigger operation on at least one sub-adjustment control in the adjustment interface includes: In response to a first sliding operation of the first adjustment slider on the adjustment rod, the placement angle and / or display size of the first target virtual model in the virtual scene are adjusted according to a first target adjustment value corresponding to the first sliding operation.
8. The method according to claim 7, characterized in that, At least part of the sub-adjustment control also includes: a mode control, the mode control being used to set the adjustment mode to random mode or manual mode; Before adjusting the placement angle and / or display size of the first target virtual model in the virtual scene according to the first target adjustment value corresponding to the first sliding operation, in response to the first sliding operation of the first adjustment slider on the adjustment rod, the following steps are included: In response to a first trigger operation on the mode control corresponding to the target sub-adjustment control in at least one of the said sub-adjustment controls, the adjustment mode is set to manual mode.
9. The method according to claim 8, characterized in that, The step of adjusting the placement angle and / or display size of the first target virtual model in the virtual scene in response to a trigger operation on at least one sub-adjustment control in the adjustment interface includes: In response to a second trigger operation on the mode control in the target sub-adjustment control, the adjustment mode is set to random mode, and a second adjustment slider is added to the target adjustment bar corresponding to the target sub-adjustment control. In response to a second sliding operation of the first adjusting slider on the target adjusting rod, an initial adjustment value is determined; In response to a third sliding operation of the second adjusting slider on the target adjusting rod, a termination adjustment value is determined; A second target adjustment value is determined between the initial adjustment value and the final adjustment value, and the placement angle and / or display size of the first target virtual model in the virtual scene are adjusted according to the second target adjustment value.
10. The method according to any one of claims 1-9, characterized in that, The graphical user interface further includes: a curve editing control, and before determining the arrangement position of the target slider in the slider sequence in response to a trigger operation that adjusts the arrangement order of the target slider in the slider sequence, it further includes: In response to a trigger operation controlling the curve editing control in the virtual scene, the corresponding model layout curve is displayed in the virtual scene; In response to a trigger operation on the model layout curve, the first adjustment control is displayed.
11. The method according to claim 10, characterized in that, The method further includes: Count the number of the first sliders in the first adjustment control; If the quantity is determined to be less than a preset quantity threshold, a new control is displayed around the first adjustment control.
12. The method according to claim 11, characterized in that, Before determining the position of the target slider in the slider sequence in response to a triggering operation that adjusts the order of the target slider in the slider sequence, the method further includes: In response to the triggering operation of the newly added control, the first target virtual model is displayed at the placeable position in the virtual scene along the model layout curve; Based on the initial placement positions of the first target virtual model and each first virtual model in the virtual scene, the initial arrangement position of the target slider in the slider sequence is determined, and the target slider is displayed at the initial arrangement position.
13. A virtual scene editing device, characterized in that, A graphical user interface is provided through a terminal device. The graphical user interface includes a first target virtual model in a virtual scene, at least one first virtual model, and first adjustment controls. The first adjustment controls include a sequence of sliders, comprising: a target slider corresponding to the first target virtual model, and first sliders corresponding to each first virtual model, including: A response module is used to determine the arrangement position of the target slider in the slider sequence in response to a trigger operation that adjusts the arrangement order of the target slider in the slider sequence; An adjustment module is used to adjust the placement position of the first target virtual model relative to each of the first virtual models in the virtual scene according to the arrangement position of the target slider in the slider sequence; The response module is specifically configured to display a boundary adjustment control on at least one side of the target slider in response to the selection operation of the target slider; In response to a trigger operation on the at least one side display boundary adjustment control, the display proportion of the target slider in the slider sequence is adjusted; Based on the new display proportion of the target slider in the slider sequence, adjust the distribution area of the first target virtual model in the virtual scene.
14. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the virtual scene editing method as described in any one of claims 1-12.
15. 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 steps of the virtual scene editing method as described in any one of claims 1-12.
Citation Information
Patent Citations
Virtual article transfer method and device, electronic equipment and storage medium
CN117547807A
Virtual model placement method and device, electronic equipment and readable storage medium
CN117959704A