Model editing method and device, storage medium and electronic equipment

By displaying multiple reference axis controls in the virtual model editing interface, allowing users to adjust editing operations in multiple directions at the same time, solving the problem of low model editing efficiency in the prior art, and achieving more flexible and efficient model editing.

CN119180931APending Publication Date: 2024-12-24NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411164853.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the existing model editing methods, the movement, rotation and scaling of virtual models are cumbersome, resulting in poor model editing efficiency and inability to edit in multiple directions at the same time.

Method used

By displaying multiple reference axis controls in the editing interface of the virtual model, users allow them to select and adjust multiple axes simultaneously to achieve target editing type adjustments for the virtual model in multiple directions, including movement, rotation, and scaling.

Benefits of technology

This improves the convenience and efficiency of model editing, and users can perform model editing operations in multiple directions at the same time, improving operation flexibility and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119180931A_ABST
    Figure CN119180931A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a model editing method and device, a storage medium and electronic equipment. An editing interface of a virtual model is displayed; in response to a selection operation for an editing type of the virtual model, determining a target editing type, and displaying a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; selecting at least two target reference coordinate axis controls in response to selection operations respectively acting on the at least two reference coordinate axis controls; determining a target editing direction in response to an adjustment operation for an adjustment area located in an editing interface under the condition of keeping the selected state of the target reference coordinate axis control; and controlling the virtual model to execute adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. Therefore, the virtual model can be controlled to execute model editing adjustment in the target editing direction based on the at least two coordinate axes at the same time, model editing of the virtual model is achieved conveniently, and the model editing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a model editing method, device, storage medium and electronic device. Background Art

[0002] With the rapid development of life and technology, people often use games or tool applications for entertainment or work. In some UGC (User-generated Content) games, tool or editing background products, users often need to move, rotate or scale virtual models to control virtual objects to perform model editing operations that meet their needs.

[0003] In the process of research and practice of the prior art, it is found that in the existing model editing methods, model editing operations such as moving / rotating / scaling the virtual model are relatively cumbersome, resulting in poor model editing efficiency. Summary of the invention

[0004] The embodiments of the present application provide a model editing method, device, storage medium and electronic device, which can control the virtual model to simultaneously perform adjustment of the target editing type in the target editing direction based on at least two coordinate axes, thereby realizing convenient model editing of the virtual model and improving model editing efficiency.

[0005] The present application provides a model editing method, including:

[0006] Displaying an editing interface of a virtual model, wherein the editing interface includes the virtual model;

[0007] In response to a selection operation for an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively;

[0008] In response to selection operations respectively acting on at least two of the reference coordinate axis controls, at least two target reference coordinate axis controls are selected;

[0009] While keeping the at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, determining a target editing direction, wherein the target editing direction includes a positive direction and a negative direction for performing the target editing type adjustment;

[0010] The virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

[0011] Accordingly, an embodiment of the present application provides a model editing device, including:

[0012] An interface display unit, used to display an editing interface of a virtual model, wherein the editing interface includes the virtual model;

[0013] an editing type determining unit, configured to determine a target editing type in response to a selection operation of the editing type of the virtual model, and display a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model;

[0014] A coordinate axis control selection unit, configured to select at least two target reference coordinate axis controls in response to selection operations respectively acting on at least two of the reference coordinate axis controls;

[0015] a direction determination unit, configured to determine a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface while keeping the at least two target reference coordinate axis controls selected, wherein the target editing direction includes a positive direction and a negative direction for performing the target editing type adjustment;

[0016] An editing control unit is used to control the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

[0017] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for loading by a processor to execute the steps in any model editing method provided in the embodiment of the present application.

[0018] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the model editing method provided in the embodiment of the present application.

[0019] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps in the model editing method provided in the embodiment of the present application.

[0020] The embodiment of the present application displays an editing interface of a virtual model, wherein the editing interface includes a virtual model; in response to a selection operation on an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; in response to a selection operation respectively acting on at least two reference coordinate axis controls, at least two target reference coordinate axis controls are selected; while keeping at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, a target editing direction is determined, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and the virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a schematic diagram of a scenario for implementing a model editing method provided in an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a model editing method provided in an embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of an editing interface of a model editing method provided in an embodiment of the present application;

[0025] Figure 4 is another schematic diagram of an editing interface of a model editing method provided in an embodiment of the present application;

[0026] Figure 5 is another schematic diagram of an editing interface of a model editing method provided in an embodiment of the present application;

[0027] Figure 6 It is a structural schematic diagram of a model editing device provided in an embodiment of the present application;

[0028] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0030] The embodiment of the present application provides a method, device, storage medium and electronic device for model editing, wherein the model editing device can be integrated in an electronic device, and the electronic device can be a server, a terminal or other device.

[0031] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Terminals may include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminals and servers can be directly or indirectly connected via wired or wireless communications, and this application does not limit this.

[0032] See also Figure 1 , taking the integration of the model editing device into an electronic device as an example, Figure 1A schematic diagram of an implementation scenario of the model editing method provided in an embodiment of the present application, wherein the electronic device may be a terminal, and the electronic device may display an editing interface of a virtual model, the editing interface including a virtual model; in response to a selection operation on an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; in response to selection operations acting on at least two reference coordinate axis controls respectively, at least two target reference coordinate axis controls are selected; while keeping at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, a target editing direction is determined, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and the virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

[0033] It should be noted that Figure 1 The implementation environment scenario diagram of the model editing method shown is only an example. The implementation environment scenario of the model editing method described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of data processing and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0034] The solutions provided in the embodiments of the present application are specifically described by the following embodiments. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0035] This embodiment will be described from the perspective of a model editing device. The model editing device may be integrated into an electronic device, which may be a terminal and / or a server, and this application does not limit this.

[0036] See also Figure 2 , Figure 2 : is a flow chart of a method for model editing provided in an embodiment of the present application. The method for model editing includes:

[0037] In step 101, an editing interface of a virtual model is displayed.

[0038] The editing interface may include a virtual model.

[0039] The virtual model may be a three-dimensional model of a virtual object, and the virtual object may be an object in a virtual scene, for example, an object such as an article, a person, an animal, a building, etc. placed in a virtual scene, and the virtual scene may be a simulation environment of the real world, or a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment, etc. The editing interface may be an interface for editing the virtual model.

[0040] In step 102, in response to a selection operation on an editing type of a virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in an editing interface.

[0041] Among them, multiple reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively.

[0042] Among them, the editing type can be a type of editing the target model, for example, it can include a moving type, a rotating type, and a scaling type. The target editing type can be an editing type selected based on a selection operation. The reference coordinate axis control can be a control corresponding to each coordinate axis of the coordinate system corresponding to the virtual model, and the coordinate axis can include coordinate axes such as the X-axis, the Y-axis, and the Z-axis. The coordinate system can include a local coordinate system and a world coordinate system of the virtual model. The local coordinate system can be a coordinate system on the virtual model, which can also be called a model coordinate system. The world coordinate system can be a coordinate system in the virtual scene where the virtual model is located. When the virtual model is transformed, the direction of the coordinate axis in the local coordinate system changes with the change of the position of the virtual model itself, while the direction of the coordinate axis in the world coordinate system does not change with the change of the virtual model.

[0043] In one embodiment, the coordinate system corresponding to the virtual model can be switched and displayed in the editing interface, so that the virtual model can be edited using different coordinate systems, thereby further improving the flexibility and convenience of model editing.

[0044] Optionally, the world coordinate system may be displayed on the editing interface in response to the first coordinate system display instruction.

[0045] The first coordinate system display instruction may be an instruction for displaying the world coordinate system in the editing interface. At this time, the reference coordinate axis control displayed in the editing interface may be a control corresponding to each coordinate axis in the world coordinate system of the scene where the virtual model is located.

[0046] Optionally, in response to a second coordinate system display instruction, a local coordinate system may be displayed at an associated position of the virtual model.

[0047] The second coordinate system display instruction may be an instruction for displaying the world coordinate system in the editing interface. At this time, the reference coordinate axis control displayed in the editing interface may be a control corresponding to each coordinate axis in the local coordinate system of the virtual model.

[0048] In one embodiment, the editing interface may include at least one adjustment area, each adjustment area corresponding to an editing type. For example, assuming that it is necessary to perform editing type adjustments such as movement type, rotation type, and scaling type on the virtual model, the editing interface may include an adjustment area corresponding to the movement type, an adjustment area corresponding to the rotation type, and an adjustment area corresponding to the scaling type, so that adjustment operations can be performed in different adjustment areas, and the editing type corresponding to the adjustment area where the adjustment operation occurs is determined to be the target editing type.

[0049] In step 103, in response to selection operations respectively acting on at least two reference coordinate axis controls, at least two target reference coordinate axis controls are selected.

[0050] The target reference coordinate axis control may be a control selected in the reference coordinate axis control. The selection operation may include a long press operation, a click operation, and the like.

[0051] Among them, in response to selection operations acting on at least two reference coordinate axis controls respectively, there can be multiple ways to select at least two target reference coordinate axis controls. For example, in response to a long press operation acting on at least two reference coordinate axis controls at the same time, the at least two reference coordinate axis controls being operated are determined as selected target reference coordinate axis controls.

[0052] For example, see Figure 3 , Figure 3 It is a schematic diagram of an editing interface of a model editing method provided by an embodiment of the present application. A virtual model can be displayed in the editing interface, and three reference coordinate axis controls, namely, X-axis control, Y-axis control and Z-axis control, indicating the coordinate axes of the X-axis, Y-axis and Z-axis in the coordinate system of the virtual model, can be displayed. In this way, the user can long press at least two reference coordinate axis controls, for example, the user can long press the X-axis control and the Z-axis control at the same time, so that the operated X-axis control and the Z-axis control can be determined as the selected target reference coordinate axis control in response to the long press operation acting on the X-axis control and the Z-axis control. For another example, the user can long press the X-axis control, the Y-axis control and the Z-axis control at the same time, so that the operated X-axis control, the Y-axis control and the Z-axis control can be determined as the selected target reference coordinate axis control in response to the long press operation acting on the X-axis control, the Y-axis control and the Z-axis control. In this way, in the subsequent model editing operation, the model editing operation in three directions can be realized on the virtual model at the same time, and the flexibility and convenience of model editing can be improved.

[0053] During the duration of the long press operation, at least two selected target reference coordinate axis controls remain in a selected state, and when the long press operation ends, the target reference coordinate axis controls operated by the long press operation are in a non-selected state.

[0054] Optionally, in response to the selection operation acting on at least two reference coordinate axis controls respectively, there can be multiple ways to select at least two target reference coordinate axis controls, for example, the editing interface includes a preset state control, the preset state control is used to control the reference coordinate axis controls to be in a multiple selection state, and in the multiple selection state, at least two reference coordinate axis controls selected in sequence can be determined as selected target reference coordinate axis controls. For example, in response to the click operation acting on at least two reference coordinate axis controls in sequence, the at least two reference coordinate axis controls operated can be determined as selected target reference coordinate axis controls.

[0055] For example, please refer to Figure 3 , the user can select a preset state control so that the reference coordinate axis control is in a multi-select state, so that the user can select at least two reference coordinate axis controls. For example, the user can click the X-axis control and the Z-axis control in sequence when the preset state control is in the selected state, so that the operated X-axis control and the Z-axis control can be determined as the selected target reference coordinate axis control in response to the click operation acting on the X-axis control and the Z-axis control in sequence. For another example, the user can click the X-axis control, the Y-axis control, and the Z-axis control in sequence when the preset state control is in the selected state, so that the operated X-axis control, the Y-axis control, and the Z-axis control can be determined as the selected target reference coordinate axis control in response to the click operation acting on the X-axis control, the Y-axis control, and the Z-axis control in sequence.

[0056] Among them, when the preset state control is in the selected state, the target reference coordinate axis controls selected in sequence remain in the selected state, and when the selected state of the preset state control ends, the target reference coordinate axis controls selected in sequence are in the unselected state.

[0057] In step 104, while keeping at least two target reference coordinate axis controls selected, a target editing direction is determined in response to an adjustment operation on an adjustment area located in the editing interface.

[0058] Among them, the target editing direction may be the direction for adjusting the target editing type, and may include the positive direction and negative direction for adjusting the target editing type. For example, when the target editing type is a moving type, the positive direction for adjusting the target editing type may be the positive axis direction, that is, moving in the positive axis direction of the coordinate axis corresponding to the target reference coordinate axis control, and the negative direction for adjusting the target editing type may be the positive axis direction, that is, moving in the negative axis direction of the coordinate axis corresponding to the target reference coordinate axis control, etc. When the target editing type is a rotating type, the positive direction for adjusting the target editing type may be clockwise rotation, and the negative direction for adjusting the target editing type may be counterclockwise rotation, etc. When the target editing type is a zooming type, the positive direction for adjusting the target editing type may be zooming in on the virtual model, and the negative direction for adjusting the target editing type may be zooming out on the virtual model, etc. The adjustment area may be an area for controlling model editing adjustment of the virtual model, and may be used to determine the target editing direction for controlling model editing adjustment of the virtual model, and may also be used to determine the editing amplitude for adjusting the target editing type. The editing amplitude may be the amplitude for model editing adjustment of the virtual model. The adjustment operation may include a sliding operation, a clicking operation, a long pressing operation, and the like.

[0059] Optionally, for the movement type, the editing amplitude can indicate the movement distance of controlling the virtual model to perform movement adjustment in the target editing direction based on at least two target reference coordinate axis controls, that is, it can indicate how much the virtual model moves in the coordinate axis direction corresponding to each target reference coordinate axis control. For the rotation type, the editing amplitude can indicate the rotation angle of controlling the virtual model to perform rotation adjustment in the target editing direction based on at least two target reference coordinate axis controls, that is, it can indicate how much the virtual model rotates on the rotation axis corresponding to each target reference coordinate axis control. For the scaling type, the editing amplitude can indicate the scaling multiple of controlling the virtual model to perform rotation adjustment in the target editing direction based on at least two target reference coordinate axis controls, that is, it indicates how many times the virtual model is scaled on the coordinate axis corresponding to each target reference coordinate axis control.

[0060] Among them, there are multiple ways to determine the target editing direction in response to an adjustment operation on an adjustment area located in the editing interface. For example, in response to a sliding operation on an adjustment area located in the editing interface, the sliding direction of the sliding operation can be determined, and the target editing direction can be determined based on the sliding direction.

[0061] The sliding direction may be a direction in which the sliding operation is performed.

[0062] Among them, there are multiple ways to determine the target editing direction based on the sliding direction. For example, assuming that sliding to the left is the negative direction and sliding to the right is the positive direction, when the sliding direction of the sliding operation is sliding to the left, the target editing direction can be determined as the negative direction for adjusting the target editing type. When the sliding direction of the sliding operation is sliding to the right, the target editing direction can be determined as the positive direction for adjusting the target editing type.

[0063] Optionally, the editing amplitude for adjusting the target editing type can also be determined based on the sliding operation. For example, the sliding distance of the sliding operation can be determined in response to the sliding operation in the adjustment area of ​​the editing interface, and the editing amplitude corresponding to the target editing type can be determined based on the sliding distance.

[0064] Among them, the sliding distance can be the distance that the sliding operation slides in the adjustment area. For example, corresponding editing amplitudes can be preset for different sliding distances, so that the editing amplitude corresponding to the target editing type can be determined according to the sliding distance of the sliding operation in the adjustment area.

[0065] Optionally, the adjustment area can be a blank area in the editing interface or any area in the editing interface. In this case, during the sliding operation, controls in the editing interface except the reference coordinate axis controls can be shielded, thereby avoiding accidental triggering of other controls in the editing interface during the sliding operation.

[0066] Optionally, the adjustment area may display an adjustment control, which may be used to determine the target editing direction and the editing range. Specifically, the step of determining the target editing direction in response to an adjustment operation on the adjustment area located in the editing interface may include: determining the target editing direction in response to the adjustment operation acting on the adjustment control.

[0067] Among them, there may be multiple ways to determine the target editing direction in response to an adjustment operation acting on the adjustment control. For example, the adjustment control may include a first sub-area and a second sub-area, and the editing amplitude corresponding to the connection position of the first sub-area and the second sub-area is zero; thereby, in response to a sliding operation starting at the connection position, the target editing direction can be determined based on the sliding direction of the sliding operation; and the editing amplitude corresponding to the target editing type can be determined based on the distance between the stop position of the sliding operation and the connection position.

[0068] The connection position may be a position connecting the first sub-area and the second sub-area in the adjustment control.

[0069] Optionally, a scale may be displayed in the first sub-region and the second sub-region respectively, and the scale value of each scale position on the scale is used to represent the distance between the scale position and the connection position.

[0070] For example, please refer to Figure 3 , the scale value corresponding to the connection position in the adjustment control is 0, and the corresponding editing range is zero. The scale in the first sub-area may include scale values ​​such as "-1, -2, -3, -4, -5", and the scale in the second sub-area may include scale values ​​such as "1, 2, 3, 4, 5", and each scale value represents the distance between the scale position and the connection position, and may correspond to an editing range. In this way, according to the indication of the scale value of the scale in the adjustment control, the user can accurately select the editing range of the target editing type adjustment of the virtual model, thereby realizing a more accurate model editing adjustment of the virtual model.

[0071] In one embodiment, a sliding operation can start at any position in the adjustment control, so that in response to the sliding operation in the adjustment control, the target editing direction can be determined based on the sliding direction of the sliding operation, and the editing amplitude corresponding to the target editing type can be determined based on the distance between the stop position of the sliding operation and the starting position.

[0072] In one embodiment, in response to an adjustment operation on an adjustment area located in the editing interface, there may be multiple ways to determine the target editing direction. For example, a first control control corresponding to the positive direction of the target editing type adjustment and a second control control corresponding to the negative direction of the target editing type adjustment may be displayed in the adjustment area, which can be used to determine the target editing direction and editing amplitude of the target editing type adjustment of the virtual model. For example, assuming that the selected target reference coordinate axis controls are the controls corresponding to the X-axis and the Y-axis, for the movement type, the first control control may be triggered to control the virtual model to move in the positive direction of the X-axis and the positive direction of the Y-axis, and the second control control may be triggered to control the virtual model to move in the negative direction of the X-axis and the negative direction of the Y-axis. For the rotation type, assuming that the positive direction is clockwise rotation and the negative direction is counterclockwise rotation, the virtual model can be controlled to rotate clockwise in the directions corresponding to the X-coordinate axis and the Y-coordinate axis by triggering the first control control, and the virtual model can be controlled to rotate counterclockwise in the directions corresponding to the X-coordinate axis and the Y-coordinate axis by triggering the second control control. For the scaling type, assuming that the positive direction is zooming in and the negative direction is zooming out, the virtual model can be controlled to zoom in and out on the X-coordinate axis and the Y-coordinate axis by triggering the first control control, and the virtual model can be controlled to zoom out and adjust on the X-coordinate axis and the Y-coordinate axis by triggering the second control control.

[0073] Among them, the editing range of adjusting the target editing type of the virtual model can be determined according to the trigger parameters of the first control control and the second control control. For example, when the trigger operation of the control control is a click operation, the trigger parameter can be the number of clicks, so that the editing range of adjusting the target editing type of the virtual model can be determined according to the number of clicks, for example, the larger the number of clicks, the larger the corresponding editing range, and the smaller the number of clicks, the smaller the corresponding editing range. For another example, when the trigger operation of the control control is a long press operation, the trigger parameter can be the long press duration, so that the editing range of adjusting the target editing type of the virtual model can be determined according to the long press duration of the control control, for example, the longer the long press duration, the larger the corresponding editing range, and the shorter the long press duration, the smaller the corresponding editing range. For another example, when the trigger operation of the control control is a sliding operation, the trigger parameter can be the sliding distance, so that the editing range of adjusting the target editing type of the virtual model can be determined according to the sliding distance of the control control, for example, the longer the sliding distance, the larger the corresponding editing range, and the shorter the sliding distance, the smaller the corresponding editing range, etc.

[0074] In a specific implementation, the effective time of the selection operation may overlap with the effective time of the adjustment operation. For example, during the operation of the selection operation, the adjustment operation in the adjustment area may be triggered. During the operation of the adjustment operation, the selection operation is still in a valid state. For example, please continue to refer to Figure 3 , the user can press and hold the X-axis control and the Z-axis control with the left hand to trigger the selection operation of the X-axis control and the Z-axis control. At this time, the user can operate in the adjustment area with the right hand to trigger the adjustment operation. When the user releases both hands, the selection operation of the target reference coordinate axis control and the adjustment operation in the adjustment area can be ended, thereby completing the model editing operation of the virtual model based on the X-axis control and the Z-axis control.

[0075] For another example, based on the selection operation, a direction control can be selected. After the selection operation is completed, the target reference coordinate axis control selected by the selection operation is still in the selected state, thereby triggering an adjustment operation in the adjustment area. During the adjustment operation, the virtual model is edited based on the selected target reference coordinate axis control. For example, please continue to refer to Figure 3, the user can press and hold the X-axis control and the Z-axis control to trigger the selection operation of the X-axis control and the Z-axis control. When the user releases his left hand, the X-axis control and the Z-axis control are still in the selected state. Then, the user can operate in the adjustment area to trigger the adjustment operation. During the adjustment operation, the user can perform model editing operations on the virtual model based on the selected X-axis control and the Z-axis control, thereby completing the model editing operation on the virtual model in at least two directions, effectively improving the flexibility and convenience of model editing, and further improving the efficiency of model editing.

[0076] In step 105 , the virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on at least two target reference coordinate axis controls.

[0077] There may be multiple ways to control the virtual model to adjust the target editing type in the target editing direction based on at least two target reference coordinate axis controls. For example, the virtual model may be controlled to simultaneously adjust the target editing type in the target editing direction based on at least two target reference coordinate axis controls.

[0078] There may be multiple ways to control the virtual model to simultaneously perform the adjustment of the target editing type in the target editing direction based on at least two target reference coordinate axis controls. For example, if the target reference coordinate axis control includes a first target reference coordinate axis control and a second target reference coordinate axis control, then while controlling the virtual model to perform the adjustment of the target editing type in the target editing direction based on the first target reference coordinate axis control, the virtual model is also controlled to perform the adjustment of the target editing type in the target editing direction based on the second target reference coordinate axis control. For example, assuming that the target editing type is a moving type, the first target reference coordinate axis control is an X-axis control, the second target reference coordinate axis control is a Y-axis control, and the target editing direction is a positive direction, then controlling the virtual model to perform the adjustment of the target editing type in the target editing direction based on the first target reference coordinate axis control and the second target reference coordinate axis control may refer to controlling the virtual model to move simultaneously along the positive direction of the X-axis and the positive direction of the Y-axis; for another example, assuming that the target editing type is a rotation type, the first target reference coordinate axis control is an X-axis control, the second target reference coordinate axis control is a Y-axis control, and the target editing direction is a positive direction, then controlling the virtual model to perform the adjustment of the target editing type in the target editing direction based on the first target reference coordinate axis control and the second target reference coordinate axis control may refer to controlling the virtual model to move simultaneously along the positive direction of the X-axis and the positive direction of the Y-axis. A target reference coordinate axis control and a second target reference coordinate axis control perform target editing type adjustment in the target editing direction, which may refer to controlling the virtual model to rotate clockwise along the rotation axes corresponding to the X-axis control and the Y-axis control at the same time; for another example, assuming that the target editing type is a scaling type, the first target reference coordinate axis control is an X-axis control, the second target reference coordinate axis control is a Z-axis control, and the target editing direction is a negative direction, then controlling the virtual model to perform target editing type adjustment in the target editing direction based on the first target reference coordinate axis control and the second target reference coordinate axis control may refer to controlling the virtual model to shrink along the X-axis direction and the Z-axis direction at the same time. In this way, model editing and adjustment of multiple directional dimensions can be performed on the virtual model at the same time, realizing model editing of the virtual model with convenient and efficient operation control, and improving model editing efficiency.

[0079] For example, for the mobile type, continue to refer to Figure 3 When the target reference coordinate axis includes an X-axis control and a Z-axis control, if the sliding operation in the adjustment control is a sliding operation starting from the connection position and sliding to the left, the virtual model can be controlled to move in the negative axis direction of the X-axis and the negative axis direction of the Z-axis at the same time; if the sliding operation in the adjustment control is a sliding operation starting from the connection position and sliding to the right, the virtual model can be controlled to move in the positive axis direction of the X-axis and the positive axis direction of the Z-axis at the same time.

[0080] For example, for the rotation type, refer to Figure 4 , Figure 4This is another schematic diagram of an editing interface of a model editing method provided in an embodiment of the present application. When the target reference coordinate axis includes an X-axis control and a Z-axis control, if the sliding operation in the adjustment control is a sliding operation starting from a connection position and sliding to the left, the virtual model can be controlled to rotate counterclockwise on the rotation axes corresponding to the X-axis control and the Z-axis control at the same time. If the sliding operation in the adjustment control is a sliding operation starting from a connection position and sliding to the right, the virtual model can be controlled to rotate clockwise on the rotation axes corresponding to the X-axis control and the Z-axis control at the same time.

[0081] For example, for the scaling type, see Figure 5 , Figure 5 This is another editing interface schematic diagram of a model editing method provided in an embodiment of the present application. When the target reference coordinate axis includes an X-axis control and a Z-axis control, if the sliding operation in the adjustment control is a sliding operation starting from a connection position and sliding to the left, the virtual model can be controlled to shrink along the coordinate axes corresponding to the X-axis control and the Z-axis control at the same time. If the sliding operation in the adjustment control is a sliding operation starting from a connection position and sliding to the right, the virtual model can be controlled to shrink along the coordinate axes corresponding to the X-axis control and the Z-axis control at the same time.

[0082] Optionally, when the editing amplitude of the target editing type adjustment is determined, the virtual model can be controlled to perform the adjustment of the editing amplitude of the target editing type in the target editing direction based on at least two target reference coordinate axis controls. For example, for the moving type, assuming the editing amplitude is 2 distance units, the virtual model can be controlled to perform the adjustment of moving two distance units in the target editing direction based on at least two target reference coordinate axis controls; for the rotating type, assuming the editing amplitude is 15 degrees, the virtual model can be controlled to perform the adjustment of rotating 15 degrees in the target editing direction based on at least two target reference coordinate axis controls; for the scaling type, assuming the editing amplitude is 1.5 times, the virtual model can be controlled to perform the adjustment of scaling 1.5 times in the target editing direction based on at least two target reference coordinate axis controls.

[0083] Optionally, the triggering time interval between the adjustment operation and the selection operation may be shorter than a preset time interval.

[0084] The trigger time interval may be the time interval between the trigger time of the adjustment operation and the trigger time of the selection operation, and the trigger time may be the time when the operation is triggered. For example, assuming that the trigger time of the adjustment operation is 17:50:06 and the trigger time of the selection operation is 17:50:07 on the same day, the trigger time interval is 1 second. The preset time interval may be a critical value of a preset time interval, for example, a time interval of 2 seconds, 3 seconds, etc., which may be used to determine whether the adjustment operation is effectively associated with the selection operation. When the trigger time interval is less than the preset time interval, it may indicate that the adjustment operation and the selection operation are continuous and associated operations. At this time, based on the target reference coordinate axis control selected by the selection operation, and the target editing direction and editing amplitude determined by the adjustment operation, the virtual model may be controlled to perform the adjustment of the editing amplitude of the target editing type in the target editing direction based on at least two target reference coordinate axis controls. When the trigger time interval is not less than the preset time interval, it may indicate that the adjustment operation and the selection operation are discontinuous and unassociated operations, and the model editing operation for the virtual model is not performed at this time. In this way, based on continuous selection operations and adjustment operations, the target reference coordinate axis control selected by the selection operation can be associated with the target editing direction and editing range determined by the adjustment operation, thereby realizing convenient operation to control the virtual model to perform target editing type model editing adjustments in at least two selected directions, thereby improving the flexibility and convenience of model editing operations, and thus improving model editing efficiency.

[0085] Optionally, during the adjustment operation, if it is detected that all reference coordinate axis controls are in an unselected state, that is, no target reference coordinate axis control is selected, the target editing type adjustment operation for the virtual model may be stopped.

[0086] In existing model editing methods, the steps for editing types such as moving / rotating / scaling are relatively cumbersome. When performing model editing operations, model editing operations are often only supported in one direction. For example, only supporting the upward rotation of an object, and then rotating it to the left after the rotation is completed, or only supporting the upward movement of an object, and then moving it to the left, etc. This model editing method that can only perform single editing and adjustment cannot couple multiple editing capabilities, resulting in poor model editing operation efficiency. To this end, an embodiment of the present application provides a model editing method, which can utilize the user's left and right hands to cooperate at the same time to improve operation efficiency. At the same time, multiple target reference coordinate axis controls can be selected to support model editing and adjustment of the virtual model in the directions corresponding to the multiple target reference coordinate axis controls at the same time. For example, the left hand can be used to simultaneously hold down a single or multiple reference coordinate axis controls, and the right hand can be used to slide left or right in the scale of the adjustment area to further determine the target editing direction and editing amplitude of the target editing type adjustment of the virtual model. For example, for the rotation type, the left hand can be used to hold down the X-axis control and the Z-axis control, and the right hand can be used to slide right in the scale to allow the virtual model to rotate clockwise at the same time on the rotation axes corresponding to the X-axis and Z-axis. In this way, in a complex scene where multiple stages are superimposed on each other, or in a scene where the line of sight is blocked and it is impossible to accurately drag or rotate the current object, the virtual model can be controlled to perform model editing and adjustment in at least two adjustment directions at the same time, thereby improving the accuracy of object editing and adjustment, and realizing rapid movement, rotation, scaling and other types of adjustment operations on the virtual model, greatly improving the model editing efficiency.

[0087] As can be seen from the above, the embodiment of the present application displays an editing interface of a virtual model, wherein the editing interface includes a virtual model; in response to a selection operation on an editing type of the virtual model, a target editing type is determined, and multiple reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the multiple reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; in response to selection operations acting on at least two reference coordinate axis controls respectively, at least two target reference coordinate axis controls are selected; while keeping at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, a target editing direction is determined, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and the virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency.

[0088] In order to better implement the above method, an embodiment of the present invention further provides a model editing device, which can be integrated in an electronic device, and the electronic device can be a terminal.

[0089] For example, Figure 6 As shown, it is a schematic diagram of the structure of the model editing device provided in an embodiment of the present application. The model editing device may include an interface display unit 201, an editing type determination unit 202, a coordinate axis control selection unit 203, a direction determination unit 204 and an editing control unit 205, as follows:

[0090] The interface display unit 201 is used for the interface display unit, and is used to display the editing interface of the virtual model, and the editing interface includes the virtual model;

[0091] The editing type determining unit 202 is used to determine the target editing type in response to the selection operation of the editing type of the virtual model, and display a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model;

[0092] A coordinate axis control selection unit 203, used to select at least two target reference coordinate axis controls in response to selection operations respectively acting on at least two reference coordinate axis controls;

[0093] A direction determination unit 204 is used to determine a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface while keeping at least two target reference coordinate axis controls selected, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type;

[0094] The editing control unit 205 is used to control the virtual model to perform adjustment of the target editing type in the target editing direction based on at least two target reference coordinate axis controls.

[0095] In some embodiments, the direction determination unit 204 is configured to:

[0096] In response to a sliding operation on an adjustment area located on an editing interface, determining a sliding direction of the sliding operation;

[0097] Based on the sliding direction, the target editing direction is determined.

[0098] In some embodiments, the model editing apparatus further includes a first editing amplitude determining unit, configured to:

[0099] In response to a sliding operation on an adjustment area located on an editing interface, determining a sliding distance of the sliding operation;

[0100] Based on the sliding distance, determine the editing amplitude corresponding to the target editing type;

[0101] The editing control unit 205 is used for:

[0102] The virtual model is controlled to adjust the editing amplitude of the target editing type in the target editing direction based on at least two target reference coordinate axis controls.

[0103] In some embodiments, the adjustment area displays an adjustment control, and the direction determination unit 204 includes:

[0104] The editing direction determining subunit is used to determine a target editing direction in response to an adjustment operation acting on the adjustment control.

[0105] In some embodiments, the adjustment control includes a first sub-region and a second sub-region, and the edit amplitude corresponding to the connection position between the first sub-region and the second sub-region is zero;

[0106] Edit direction determination subunit, used for:

[0107] In response to a sliding operation starting at the connection position, determining a target editing direction based on a sliding direction of the sliding operation;

[0108] The device for model editing also includes:

[0109] The second editing range determining unit is used to determine the editing range corresponding to the target editing type based on the distance between the stop position of the sliding operation and the connection position.

[0110] In some embodiments, the first sub-area and the second sub-area respectively display a scale, and the scale value of each scale position on the scale is used to represent the distance between the scale position and the connection position.

[0111] In some embodiments, the editing control unit 205 is used to:

[0112] The virtual model is controlled to simultaneously perform target editing type adjustments in target editing directions based on at least two target reference coordinate axis controls.

[0113] In some embodiments, the coordinate system includes a local coordinate system of the virtual model and a world coordinate system.

[0114] In some embodiments, the model editing device further includes a first coordinate system display unit, which is used to:

[0115] In response to the first coordinate system display instruction, the world coordinate system is displayed on the editing interface.

[0116] In some embodiments, the model editing device further includes a second coordinate system display unit, which is used to:

[0117] In response to the second coordinate system display instruction, the local coordinate system is displayed at the associated position of the virtual model.

[0118] In some embodiments, the editing type includes a move type, a rotation type, and a scaling type.

[0119] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0120] As can be seen from the above, the embodiment of the present application displays the editing interface of the virtual model through the interface display unit 201, and the editing interface includes the virtual model; the editing type determination unit 202 determines the target editing type in response to the selection operation of the editing type of the virtual model, and displays multiple reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the multiple reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively; the coordinate axis control selection unit 203 selects at least two target reference coordinate axis controls in response to the selection operation acting on at least two reference coordinate axis controls respectively; the direction determination unit 204 determines the target editing direction in response to the adjustment operation on the adjustment area located in the editing interface while keeping at least two target reference coordinate axis controls selected, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; the editing control unit 205 controls the virtual model to perform the adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency.

[0121] The present application also provides an electronic device, such as Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal. Specifically:

[0122] The electronic device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0123] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device 300, executes various functions of the electronic device 300 and processes data by running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device 300 as a whole.

[0124] In the embodiment of the present application, the processor 301 in the electronic device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:

[0125] Displaying an editing interface of a virtual model, the editing interface including the virtual model;

[0126] In response to a selection operation for an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively;

[0127] In response to selection operations respectively acting on at least two reference coordinate axis controls, at least two target reference coordinate axis controls are selected;

[0128] While keeping at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, determining a target editing direction, wherein the target editing direction includes a positive direction and a negative direction for performing a target editing type adjustment;

[0129] The virtual model is controlled to perform target editing type adjustments in target editing directions based on at least two target reference coordinate axis controls.

[0130] In some embodiments, in response to an adjustment operation on an adjustment area located in an editing interface, determining a target editing direction includes:

[0131] In response to a sliding operation on an adjustment area located on an editing interface, determining a sliding direction of the sliding operation;

[0132] Based on the sliding direction, the target editing direction is determined.

[0133] In some embodiments, the model editing method provided in the embodiments of the present application further includes:

[0134] In response to a sliding operation on an adjustment area located on an editing interface, determining a sliding distance of the sliding operation;

[0135] Based on the sliding distance, determine the editing amplitude corresponding to the target editing type;

[0136] Controlling the virtual model to perform target editing type adjustment in the target editing direction based on at least two target reference coordinate axis controls, including:

[0137] The virtual model is controlled to adjust the editing amplitude of the target editing type in the target editing direction based on at least two target reference coordinate axis controls.

[0138] In some embodiments, the adjustment area displays an adjustment control, and in response to an adjustment operation on the adjustment area located in the editing interface, determining a target editing direction includes:

[0139] In response to an adjustment operation acting on an adjustment control, a target editing direction is determined.

[0140] In some embodiments, the adjustment control includes a first sub-region and a second sub-region, and the edit amplitude corresponding to the connection position between the first sub-region and the second sub-region is zero;

[0141] In response to an adjustment operation acting on an adjustment control, a target editing direction is determined, including:

[0142] In response to a sliding operation starting at the connection position, determining a target editing direction based on a sliding direction of the sliding operation;

[0143] The method also includes: determining an editing range corresponding to the target editing type based on a distance between a stop position of the sliding operation and a connection position.

[0144] In some embodiments, the first sub-area and the second sub-area respectively display a scale, and the scale value of each scale position on the scale is used to represent the distance between the scale position and the connection position.

[0145] In some embodiments, controlling the virtual model to perform adjustment of the target editing type in the target editing direction based on at least two target reference coordinate axis controls includes:

[0146] The virtual model is controlled to simultaneously perform target editing type adjustments in target editing directions based on at least two target reference coordinate axis controls.

[0147] In some embodiments, the coordinate system includes a local coordinate system of the virtual model and a world coordinate system.

[0148] In some embodiments, the model editing method provided in the embodiments of the present application further includes:

[0149] In response to the first coordinate system display instruction, the world coordinate system is displayed on the editing interface.

[0150] In some embodiments, the model editing method provided in the embodiments of the present application further includes:

[0151] In response to the second coordinate system display instruction, the local coordinate system is displayed at the associated position of the virtual model.

[0152] In some embodiments, the editing type includes a move type, a rotation type, and a scaling type.

[0153] The present solution can be achieved by displaying an editing interface of a virtual model, wherein the editing interface includes a virtual model; determining a target editing type in response to a selection operation on an editing type of the virtual model, and displaying a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; selecting at least two target reference coordinate axis controls in response to selection operations respectively acting on at least two reference coordinate axis controls; while keeping the at least two target reference coordinate axis controls selected, determining a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and controlling the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency.

[0154] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0155] Optional, such as Figure 7 As shown, the electronic device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 7 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0156] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.

[0157] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.

[0158] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another electronic device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earplug jack to provide communication between an external headset and the electronic device.

[0159] The input unit 306 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0160] The power supply 307 is used to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0161] although Figure 7 Not shown, the electronic device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0162] In the above embodiments, the description of each embodiment has its own emphasis. For the parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be noted that the electronic device provided in the embodiment of the present application and the method suitable for model editing in the above embodiment belong to the same concept. The specific implementation process is detailed in the above method embodiment, which will not be repeated here.

[0163] As can be seen from the above, the electronic device provided by the embodiment of the present application can display an editing interface of a virtual model, wherein the editing interface includes a virtual model; determine a target editing type in response to a selection operation on the editing type of the virtual model, and display multiple reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the multiple reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; select at least two target reference coordinate axis controls in response to selection operations acting on at least two reference coordinate axis controls respectively; while keeping at least two target reference coordinate axis controls selected, determine a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and control the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency.

[0164] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0165] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any model editing method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0166] Displaying an editing interface of a virtual model, the editing interface including the virtual model;

[0167] In response to a selection operation for an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively;

[0168] In response to selection operations respectively acting on at least two reference coordinate axis controls, at least two target reference coordinate axis controls are selected;

[0169] While keeping at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, determining a target editing direction, wherein the target editing direction includes a positive direction and a negative direction for performing a target editing type adjustment;

[0170] The virtual model is controlled to perform target editing type adjustments in target editing directions based on at least two target reference coordinate axis controls.

[0171] The present solution can be achieved by displaying an editing interface of a virtual model, wherein the editing interface includes a virtual model; determining a target editing type in response to a selection operation on an editing type of the virtual model, and displaying a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; selecting at least two target reference coordinate axis controls in response to selection operations respectively acting on at least two reference coordinate axis controls; while keeping the at least two target reference coordinate axis controls selected, determining a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface, wherein the target editing direction includes a positive direction and a negative direction for adjusting the target editing type; and controlling the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls. In this way, by displaying multiple reference coordinate axis controls corresponding to the target editing type in the editing interface of the virtual model, it is possible to respond to selection operations acting on at least two reference coordinate axis controls respectively, select at least two target reference coordinate axis controls, and determine the target editing direction while keeping at least two target reference coordinate axis controls selected. This allows the virtual model to be controlled to simultaneously perform adjustments to the target editing type in the target editing direction based on at least two coordinate axes, thereby achieving convenient model editing adjustments for the virtual model and thereby improving model editing efficiency.

[0172] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0173] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0174] Since the computer program stored in the computer-readable storage medium can execute the steps in any model editing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any model editing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0175] Among them, according to one aspect of the present application, a computer program product is provided, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the methods provided in the various optional implementations provided in the above embodiments.

[0176] The above is a detailed introduction to a model editing method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A model editing method, characterized in that: The method comprises: Displaying an editing interface of a virtual model, wherein the editing interface includes the virtual model; In response to a selection operation for an editing type of the virtual model, a target editing type is determined, and a plurality of reference coordinate axis controls corresponding to the target editing type are displayed in the editing interface; wherein the plurality of reference coordinate axis controls correspond to each coordinate axis of the coordinate system of the virtual model respectively; In response to selection operations respectively acting on at least two of the reference coordinate axis controls, at least two target reference coordinate axis controls are selected; While keeping the at least two target reference coordinate axis controls selected, in response to an adjustment operation on an adjustment area located in the editing interface, determining a target editing direction, wherein the target editing direction includes a positive direction and a negative direction for performing the target editing type adjustment; The virtual model is controlled to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

2. The method according to claim 1, characterized in that The step of determining a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface includes: In response to a sliding operation on an adjustment area located in the editing interface, determining a sliding direction of the sliding operation; Based on the sliding direction, a target editing direction is determined.

3. The method according to claim 2, characterized in that The method further comprises: In response to a sliding operation on an adjustment area located in the editing interface, determining a sliding distance of the sliding operation; Determining an edit amplitude corresponding to the target edit type based on the sliding distance; The controlling the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls includes: The virtual model is controlled to adjust the editing amplitude of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

4. The method according to claim 1, characterized in that The adjustment area displays an adjustment control, and the determining of a target editing direction in response to an adjustment operation on the adjustment area located in the editing interface includes: In response to an adjustment operation acting on the adjustment control, a target editing direction is determined.

5. The method according to claim 4, characterized in that The adjustment control includes a first sub-area and a second sub-area, and the editing amplitude corresponding to the connection position between the first sub-area and the second sub-area is zero; The step of determining a target editing direction in response to an adjustment operation acting on the adjustment control includes: In response to a sliding operation starting from the connection position, determining a target editing direction based on a sliding direction of the sliding operation; The method further includes: determining an editing range corresponding to the target editing type based on a distance between a stop position of the sliding operation and the connection position.

6. The method according to claim 5, characterized in that The first sub-area and the second sub-area respectively display a scale, and the scale value of each scale position on the scale is used to represent the distance between the scale position and the connection position.

7. The method according to claim 1, characterized in that Controlling the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls comprises: The virtual model is controlled to simultaneously perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

8. The method according to claim 1, characterized in that The coordinate system includes a local coordinate system of the virtual model and a world coordinate system.

9. The method according to claim 1, characterized in that The method further comprises: In response to the first coordinate system display instruction, the world coordinate system is displayed on the editing interface.

10. The method according to claim 1, characterized in that The method further comprises: In response to the second coordinate system display instruction, a local coordinate system is displayed at the associated position of the virtual model.

11. The method according to claim 1, characterized in that The editing types include a move type, a rotation type, and a zoom type.

12. A model editing device, characterized in that: include: An interface display unit, used to display an editing interface of a virtual model, wherein the editing interface includes the virtual model; an editing type determining unit, configured to determine a target editing type in response to a selection operation of the editing type of the virtual model, and display a plurality of reference coordinate axis controls corresponding to the target editing type in the editing interface; wherein the plurality of reference coordinate axis controls respectively correspond to each coordinate axis of the coordinate system of the virtual model; A coordinate axis control selection unit, configured to select at least two target reference coordinate axis controls in response to selection operations respectively acting on at least two of the reference coordinate axis controls; a direction determination unit, configured to determine a target editing direction in response to an adjustment operation on an adjustment area located in the editing interface while keeping the at least two target reference coordinate axis controls selected, wherein the target editing direction includes a positive direction and a negative direction for performing the target editing type adjustment; An editing control unit is used to control the virtual model to perform adjustment of the target editing type in the target editing direction based on the at least two target reference coordinate axis controls.

13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 11.