Editing Method, Device, Terminal and Storage Medium for Virtual Building

By displaying the architectural style list and virtual building preview area in the virtual building editing interface, responding to users' selection and displaying virtual props with matching styles, it solves the problem that players find it difficult to obtain virtual buildings and props with matching architectural styles, and improves editing efficiency and resource utilization.

CN114642879BActive Publication Date: 2025-06-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011519447.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2025-06-17
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

In game applications, it is difficult for players to quickly obtain virtual buildings and virtual props belonging to the same architectural style, resulting in mismatch in architectural styles, and some virtual props are low in utilization, resulting in waste of resources.

Method used

It provides a method of editing a virtual building, by displaying a virtual building editing interface, including a list of architectural styles and a virtual building preview area, responds to the user's selection of architectural styles and virtual buildings, displays virtual props with matching styles, and allows users to edit and update the display status of virtual props in the virtual building.

Benefits of technology

It improves the editing efficiency of virtual buildings and virtual props, ensures that virtual props match the virtual building style, avoids waste of resources, and simplifies the process of users purchasing virtual props of different categories in the same interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114642879B_ABST
    Figure CN114642879B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an editing method, device, terminal, and storage medium for virtual buildings, belonging to the technical field of human-computer interaction. The method includes: displaying a virtual building editing interface; in response to a triggering operation on a target building style selection control, displaying a target virtual building belonging to the target building style in a building preview area; in response to a triggering operation on the target virtual building, displaying at least one virtual prop in the target virtual building; and in response to an editing operation on a target virtual prop among the virtual props, updating the display state of the target virtual prop in the target virtual building. In the embodiments of the present application, the virtual buildings and virtual props are classified and displayed according to the building style, which facilitates the user to edit the virtual buildings and virtual props of the same building style; based on the editing operation on the virtual prop, the display state of the virtual prop is updated in the target virtual building, improving the editing efficiency of the virtual buildings and virtual props.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of human-computer interaction technologies, and particularly to an editing method, device, terminal, and storage medium for virtual buildings. Background Art

[0002] In game applications, players can use virtual resources to obtain virtual furniture, virtual buildings, etc. for assembly.

[0003] In related technologies, before obtaining virtual buildings and virtual props, players can view the display effects of virtual buildings or virtual props in the virtual building preview area. Usually, games will classify and display virtual buildings and virtual props in different interfaces according to their types. Users can select in the interfaces with different labels. For example, users can select the appearance of a house in the interface corresponding to the house, select a table in the interface corresponding to the table, and select a decorative painting, a wall clock, etc. in the interface corresponding to the ornaments.

[0004] However, buildings usually have style attributes. In related technologies, players obtain virtual buildings and virtual props in the interfaces corresponding to different category labels respectively and view the preview effects of single buildings or single props. They cannot quickly obtain virtual buildings and virtual props belonging to the same architectural style, which may lead to low utilization rate of some virtual props due to mismatched architectural styles when players assemble the obtained virtual buildings and virtual props later, resulting in resource waste. Summary of the Invention

[0005] Embodiments of the present application provide an editing method, device, terminal, and storage medium for virtual buildings, which can improve the editing efficiency of virtual buildings and virtual props. The technical solutions are as follows:

[0006] On the one hand, embodiments of the present application provide an editing method for virtual buildings. The method includes:

[0007] Display a virtual building editing interface, where the virtual building editing interface includes an architectural style list and a virtual building preview area, and the architectural style list includes at least one architectural style selection control;

[0008] In response to a triggering operation on a target architectural style selection control, display a target virtual building belonging to the target architectural style in the architectural preview area, where the target architectural style is the architectural style corresponding to the target architectural style selection control;

[0009] In response to a triggering operation on the target virtual building, display at least one virtual prop in the target virtual building, and the prop style of the virtual prop matches the target architectural style;

[0010] In response to an editing operation on a target virtual item in the virtual items, update the display state of the target virtual item in the target virtual building.

[0011] On the other hand, an embodiment of the present application provides an editing device for a virtual building, and the device includes:

[0012] A first display module, configured to display a virtual building editing interface, where the virtual building editing interface includes an architectural style list and a virtual building preview area, and the architectural style list includes at least one architectural style selection control;

[0013] A second display module, configured to, in response to a triggering operation on a target architectural style selection control, display a target virtual building belonging to the target architectural style in the architectural preview area, where the target architectural style is the architectural style corresponding to the target architectural style selection control;

[0014] A third display module, configured to, in response to a triggering operation on the target virtual building, display at least one virtual item in the target virtual building, and the item style of the virtual item matches the target architectural style;

[0015] A first update module, configured to, in response to an editing operation on a target virtual item in the virtual items, update the display state of the target virtual item in the target virtual building.

[0016] On the other hand, an embodiment of the present application provides a terminal, and the terminal includes a processor and a memory; at least one instruction, at least one program segment, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program segment, the code set or the instruction set is loaded and executed by the processor to implement the editing method of the virtual building as described in the above aspect.

[0017] On the other hand, an embodiment of the present application provides a computer-readable storage medium, and at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the editing method of the virtual building as described in the above aspect.

[0018] According to one aspect of the present application, there is provided a computer program product or a computer program, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal implements the editing method of the virtual building provided in various optional implementation manners of the above aspect.

[0019] The beneficial effects brought by the technical solutions provided by the embodiments of the present application at least include:

[0020] In the embodiments of the present application, virtual buildings and virtual props are classified and displayed according to architectural styles. The virtual buildings and virtual props that match the architectural style are simultaneously displayed in the virtual building preview area, facilitating the user to edit the virtual buildings and virtual props of the same architectural style. Moreover, based on the editing operation of the virtual prop, the display state of the virtual prop is updated in the target virtual building, enabling the user to view the display effect of the virtual prop in the virtual building that matches the architectural style. Compared with the method in the related art of classifying according to prop types and independently displaying virtual buildings and virtual props, the editing efficiency of virtual buildings and virtual props is improved, and it is avoided that the utilization rate of some virtual props or virtual buildings is low due to the mismatch between the virtual props obtained by the user and the architectural style of the virtual building.

[0021] The virtual buildings and virtual props are classified according to architectural styles. The target virtual building, as well as virtual props of different categories but matching the architectural style of the target virtual building, are simultaneously displayed in the virtual building preview area. The user can purchase virtual props of different categories under the target architectural style in the same interface without purchasing each category of virtual props separately, improving the purchase efficiency of virtual props. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a schematic diagram of a virtual building editing interface in the related art;

[0023] Figure 2 is a flowchart of a method for editing a virtual building provided by an exemplary embodiment of the present application;

[0024] Figure 3 is a schematic diagram of a virtual building editing interface provided by an exemplary embodiment of the present application;

[0025] Figure 4 is a schematic diagram of an interior view of a building and virtual props provided by an exemplary embodiment of the present application;

[0026] Figure 5 is a flowchart of a method for editing a virtual building provided by another exemplary embodiment of the present application;

[0027] Figure 6 is an axonometric view of the exterior and interior views of a building provided by an exemplary embodiment of the present application;

[0028] Figure 7 is a schematic diagram of removing the exterior of a building provided by an exemplary embodiment of the present application;

[0029] Figure 8 is a schematic diagram of splitting the interior view of a building provided by an exemplary embodiment of the present application;

[0030] Figure 9 It is a schematic diagram showing the combination of a split building interior scene and virtual props provided by an exemplary embodiment of the present application;

[0031] Figure 10 It is a flowchart of an editing method for a virtual building provided by another exemplary embodiment of the present application;

[0032] Figure 11 It is a schematic diagram showing a first editing operation on a target virtual prop provided by an exemplary embodiment of the present application;

[0033] Figure 12 It is a schematic diagram showing a second editing operation on a target virtual prop provided by an exemplary embodiment of the present application;

[0034] Figure 13 It is a schematic diagram of an editing interface for virtual props provided by another exemplary embodiment of the present application;

[0035] Figure 14 It is a flowchart of an editing method for a virtual building provided by another exemplary embodiment of the present application;

[0036] Figure 15 It is a structural block diagram of an editing device for a virtual building provided by an exemplary embodiment of the present application;

[0037] Figure 16 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. Detailed implementation manners

[0038] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0039] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0040] In the related art, before obtaining a virtual building and virtual props, a player can view the display effects of the virtual building or virtual props in a virtual building preview area. Usually, the game will classify and display them in different interfaces according to the types of virtual buildings and virtual props. Users can select in the interfaces with different labels. For example, users can select the appearance of a house in the interface corresponding to the house, select a table in the interface corresponding to the table, and select a decorative painting, a wall clock, etc. in the interface corresponding to the ornaments. As Figure 1As shown, in the virtual building editing interface 101, there is a building type selection control. The user can trigger the cottage selection control 102 to make the terminal display the appearance of the virtual building provided by the application program, or trigger the window selection control 103 to make the terminal display windows of different architectural styles provided by the application program.

[0041] However, buildings usually have style attributes. In the related art, players obtain virtual buildings and virtual props respectively in the interfaces corresponding to different category labels and view the preview effects of single buildings or single props, and cannot quickly obtain virtual buildings and virtual props belonging to the same architectural style. For example, when the user obtains the appearance of a French building and American windows, it may lead to low utilization rate of some virtual props when the player assembles the obtained virtual buildings and virtual props later due to the mismatch of architectural styles, resulting in waste of resources.

[0042] To solve the above technical problems, the embodiments of the present application provide an editing method for virtual buildings. This method can be applied to a terminal installed with a game application program. The terminal can be a smart phone, a tablet computer, a personal computer or a portable computer, etc. The embodiments of the present application do not limit the specific device type. In a possible implementation manner, the editing method for virtual buildings provided by the embodiments of the present application can be implemented as an application program or a part of an application program and installed in the terminal. When the user selects an architectural style, the terminal displays virtual buildings belonging to the architectural style and virtual props in the virtual buildings. The user can change the display state of the virtual props in the virtual buildings based on the editing operations on the virtual props, which is convenient for the user to edit and obtain a set of virtual buildings and virtual props under the same architectural style.

[0043] Figure 2 The flowchart of the editing method for virtual buildings provided by an exemplary embodiment of the present application is shown. This embodiment is described by taking the method being used in a terminal installed with a game application program as an example. The method includes the following steps:

[0044] Step 201, display a virtual building editing interface. The virtual building editing interface includes an architectural style list and a virtual building preview area. The architectural style list includes at least one architectural style selection control.

[0045] Virtual buildings usually have a certain architectural style, such as Chinese architecture, French architecture, American architecture, etc. The virtual props corresponding to the virtual buildings, such as virtual furniture and virtual decorations placed inside the virtual building, and virtual courtyards and virtual streets outside the virtual building, usually also belong to a certain specific architectural style. Virtual buildings and virtual props of the same architectural style are unified in appearance, and users usually prefer to edit virtual props and virtual buildings that match the architectural style.

[0046] The application program in the embodiment of the present application classifies virtual buildings according to architectural styles. When the user triggers to make the terminal display a virtual building editing interface, the terminal displays an architectural style list in the virtual building editing interface. The architectural style selection control in the architectural style list is used to trigger the display of virtual buildings corresponding to the architectural styles.

[0047] Schematically, the architectural style selection control displays a thumbnail of a typical virtual building in the corresponding architectural style, as well as a text prompt of the architectural style, which is convenient for the user to select the architectural style according to the architectural style selection control.

[0048] Step 202, in response to a trigger operation on the target architectural style selection control, display a target virtual building belonging to the target architectural style in the building preview area, where the target architectural style is the architectural style corresponding to the target architectural style selection control.

[0049] To facilitate the user to view the display effect of the virtual building, the virtual building editing interface further includes a building preview area. The user can trigger the target architectural style selection control to make the terminal display the target virtual building in the building preview area, and the target virtual building belongs to the target architectural style corresponding to the target architectural style selection control.

[0050] Optionally, the target virtual building includes a virtual house belonging to the target architectural style, or includes a virtual house belonging to the target architectural style and virtual enclosures, virtual roads, virtual courtyards, etc. outside the virtual house.

[0051] Schematically, as Figure 3 shown, the virtual building editing interface 301 displays an architectural style list 302. The architectural style list 302 includes architectural style selection controls corresponding to 4 different architectural styles. When a trigger operation on the architectural style selection control 303 for Shirakawa architecture and furniture is received, the terminal displays the Shirakawa architecture 304 in the building preview area.

[0052] Step 203, in response to a trigger operation on the target virtual building, display at least one virtual prop in the target virtual building, and the prop style of the virtual prop matches the target architectural style.

[0053] In a possible implementation, after the terminal receives a trigger operation on the target building style selection control, only the target virtual building is displayed. If the user wants to view or edit the virtual props in the target building style, the user can perform a trigger operation on the target virtual building to make the terminal display at least one virtual prop in the target virtual building. For example, if the user triggers the building style selection control of the Chinese-style building style, the terminal displays the Chinese-style virtual building, and after receiving the trigger operation on the Chinese-style virtual building, further displays the virtual props belonging to the Chinese-style building style in the Chinese-style virtual building.

[0054] Optionally, the trigger operation is a touch operation such as a click operation, a swipe operation, or a long-press operation. When the terminal detects a trigger operation on the target virtual building or detects a trigger operation in the building preview area, at least one virtual prop is displayed in the target virtual building. The embodiments of the present application do not limit this.

[0055] Schematically, as Figure 4 shown, after the terminal receives a trigger operation on the target virtual building 401, at least one corresponding virtual prop is displayed in the target virtual building 401, including a bed 402, a table 403, etc. Before receiving the trigger operation, the terminal only displays the target virtual building 401 without displaying the virtual props.

[0056] Step 204, in response to an edit operation on the target virtual prop in the virtual props, update the display state of the target virtual prop in the target virtual building.

[0057] In a possible implementation, the user can change the display state of the target virtual prop in the target virtual building through an edit operation on the target virtual prop, so as to assemble the target virtual building and the target virtual prop according to their own preferences. For example, the user can perform a delete operation on the target virtual prop or change the position of the target virtual prop in the target virtual building, etc.

[0058] Optionally, the edit operation on the target virtual prop is a touch operation such as a click operation, a swipe operation, or a long-press operation.

[0059] In summary, in the embodiments of the present application, virtual buildings and virtual props are classified and displayed according to architectural styles. The virtual buildings and virtual props that match the architectural style are simultaneously displayed in the virtual building preview area, facilitating the user to edit the virtual buildings and virtual props of the same architectural style. Moreover, based on the editing operation of the virtual prop, the display state of the virtual prop is updated in the target virtual building, enabling the user to view the display effect of the virtual prop in the virtual building that matches the architectural style. Compared with the related art in which the props are classified according to the prop type and the virtual buildings and virtual props are independently displayed, the editing efficiency of the virtual buildings and virtual props is improved, and it is avoided that the virtual props obtained by the user do not match the architectural style of the virtual building, resulting in a low utilization rate of some virtual props or virtual buildings.

[0060] Classify the virtual buildings and virtual props according to the architectural style, and simultaneously display the target virtual building and the virtual props of different categories but matching the architectural style of the target virtual building in the virtual building preview area. The user can purchase virtual props of different categories under the target architectural style in the same interface without purchasing each category of virtual props separately, improving the purchase efficiency of the virtual props.

[0061] Figure 5 The flowchart of the editing method of the virtual building provided by an exemplary embodiment of the present application is shown. In this embodiment, it is described by taking the method being applied to a terminal installed with a game application as an example. The method includes the following steps:

[0062] Step 501, display a virtual building editing interface. The virtual building editing interface includes an architectural style list and a virtual building preview area, and the architectural style list includes at least one architectural style selection control.

[0063] For the specific implementation manner of step 501, reference can be made to step 201 above, and it will not be elaborated in the embodiments of the present application.

[0064] Step 502, in response to the triggering operation on the target architectural style selection control, display the architectural appearance of the target virtual building in the building preview area.

[0065] In a possible implementation, the target virtual building consists of a building exterior and an interior scene. The building exterior covers the interior scene, and the virtual props are located in the interior scene. Among them, the building exterior is the external image of the target virtual building, including the outer wall, roof of the target virtual building, as well as roads, fences, etc. outside the target virtual building; the interior scene is the internal image of the target virtual building, including the inner wall, floor, etc. of the target virtual building, and the virtual props are objects such as virtual furniture and virtual decorations located inside the target virtual building. To make the display effect of the target virtual building more realistic, the terminal only displays the building exterior of the target virtual building after receiving a trigger operation on the target building style selection control. If the user needs to further view the interior scene and virtual props of the building, a trigger operation is required.

[0066] As Figure 3 shown, after the terminal receives a trigger operation on the building style selection control 303 of the Shirakawa building and furniture, only the building exterior of the Shirakawa building 304 is displayed in the building preview area. When a trigger operation on the Shirakawa building 304 is received, the interior scene and virtual props of the target virtual building 401 as shown in Figure 4 are displayed.

[0067] Specifically, the terminal displays the axonometric views of the building exterior, interior scene, and virtual props in the building preview area. As Figure 6 shown, the bottom surfaces of the building exterior 601 and the interior scene 602 are located in the plane formed by the x-axis and the z-axis, and the areas, shapes, and coordinate ranges of their bottom surfaces are the same. The virtual props are located within the range of the interior scene 602. When the terminal displays the target virtual building, the building exterior 601 covers the interior scene 602 and the virtual props.

[0068] Step 503, in response to a trigger operation on the target virtual building, remove the building exterior and display the interior scene and virtual props.

[0069] If the user wants to edit the target virtual building, a trigger operation can be performed on the target virtual building to cause the terminal to remove the building exterior and display the virtual props and interior scene inside the target virtual building, so as to view the display effects of various virtual props in the interior scene under the target building style.

[0070] Optionally, the trigger operation on the target virtual building is a touch operation of a preset operation type, such as a swipe operation, a long-press operation, a click operation, etc. Illustratively, the touch operation is a horizontal swipe operation from right to left. As Figure 4 shown, when the terminal receives a horizontal swipe operation from right to left, the interior scene of the target virtual building 401 and virtual props such as a bed 402 and a table 403 are displayed; or, the trigger operation on the target virtual building is a trigger operation on a preset control.

[0071] Optionally, the touch landing point of the triggering operation on the target virtual building is located on the target virtual building, or the touch landing point of the triggering operation on the target virtual building can be located at any position in the building preview area.

[0072] In a possible implementation manner, the triggering operation for triggering the display of the interior view of the building and virtual props is a sliding operation, and step 503 further includes the following steps:

[0073] Step 503a, in response to the first sliding operation on the target virtual building, determine the removal area based on the sliding direction and sliding distance of the first sliding operation.

[0074] In a possible implementation manner, the terminal gradually removes the building appearance of the target virtual building based on the first sliding operation, causing the building appearance to gradually disappear as the user's finger slides, and displaying the corresponding interior view of the building and virtual props in the disappeared part of the building appearance. The terminal determines the removal area based on the sliding direction and sliding distance of the first sliding operation. Specifically, the terminal determines the starting side for removing the building appearance based on the sliding direction of the first sliding operation, and trims the building appearance based on the sliding distance of the first sliding operation.

[0075] Optionally, the first sliding operation refers to a sliding operation in a preset direction. When the terminal determines that the sliding direction of the received sliding operation is the preset direction, it determines that the first sliding operation is received; or the first sliding operation can be a sliding operation in any direction, and the user can, based on different sliding directions, enable the terminal to remove the building appearance from different angles. The embodiments of the present application do not make any limitations in this regard.

[0076] Schematically, as Figure 7 shown, after the terminal receives the first sliding operation on the target virtual building and determines that the sliding direction of the first sliding operation is from right to left, the terminal determines the corresponding removal area 702 of the building appearance 701 based on the sliding direction and sliding distance of the first sliding operation.

[0077] Step 503b, remove the building appearance within the removal area, and display the interior view of the building and virtual props within the removal area.

[0078] The terminal trims the building appearance according to the removal area, cancels the display of the building appearance in the removal area part, and displays the interior view of the building and virtual props covered by the building appearance in the removed area.

[0079] As Figure 7As shown, after the terminal determines the removal area 702, it removes the building exterior 701 within the removal area 702, and displays the interior view 703 and virtual props 704 within the removal area 702. When the sliding distance of the first sliding operation is greater than the preset distance, the terminal completely removes the building exterior 701.

[0080] Step 504, in response to a second sliding operation on the interior view of the building, the interior view of the building is split and displayed, and the interior view layers of the building after splitting are separated from each other.

[0081] The target virtual building may be a multi-story building, that is, the target virtual building includes n floors, and the interior view of the building includes n interior view layers of the building, where n is an integer greater than 1. When the number of floors of the target virtual building exceeds 1 floor, in two adjacent interior view layers of the building, the upper layer will block the interior view of the lower layer and the virtual props located in the lower layer, such as Figure 4 As shown in the target virtual building 401, its interior view of the building includes two interior view layers of the building, and the upper interior view layer covers some walls, doors and windows of the lower layer. In a possible implementation manner, in order to facilitate the user to further observe the internal structure of the target virtual building, for a target virtual building including n floors, its interior view layers can be split, and the user can separate each interior view layer by performing a second sliding operation on the interior view of the building.

[0082] Optionally, the second sliding operation is a sliding operation in a preset direction. After the terminal receives the sliding operation in the preset direction, it determines that the second sliding operation is received and splits the interior view of the building in a preset manner; or, the second sliding operation can be a sliding operation in any direction, and the terminal splits the interior view of the building based on the sliding direction of the second sliding operation (that is, moves the interior view layer according to the sliding direction of the second sliding operation).

[0083] Optionally, the user can select an interior view layer in the interior view of the building for separate splitting through a selection operation; or, the user can, through a single second sliding operation, separate all the interior view layers included in the interior view of the building from each other.

[0084] Optionally, after the terminal receives the second sliding operation, it moves the interior view layer to a preset position, or the terminal determines the moving distance of the interior view layer based on the sliding distance of the second sliding operation, and the user can manually control the distance between the interior view layers.

[0085] Illustratively, such as Figure 8As shown, the target virtual building is a two-story building, and its interior view includes a lower-story interior view layer 801 and an upper-story interior view layer 802. When the user makes a first sliding operation to make the terminal display the interior view of the target virtual building, the upper-story interior view layer 802 contacts the lower-story interior view layer 801, and the upper-story interior view layer 802 obscures some of the content in the lower-story interior view layer 801. When the terminal receives a second sliding operation, the interior view is split, and the upper-story interior view layer 802 moves upward, so that the upper-story interior view layer 802 is separated from the lower-story interior view layer 801.

[0086] Step 505, in response to a third sliding operation on the interior view of the building, the virtual prop combination is split and displayed, and each virtual prop in the split virtual prop combination is separated from each other.

[0087] In a possible implementation, there is a virtual prop combination composed of at least two virtual props in the interior view of the building. There is a contact surface between the virtual props in the virtual prop combination. For example, a table and a table lamp placed on the table. At this time, some virtual props in the virtual prop combination will obscure other virtual props. For example, the table lamp will obscure a certain area of the tabletop. In order to enable the user to clearly view each virtual prop in the target virtual building, the virtual prop combination in the embodiment of the present application can be split, and the user can make each virtual prop in the virtual prop combination separate through a third sliding operation.

[0088] Optionally, the user can split all the virtual prop combinations in the target virtual building through one third sliding operation; or, the user can manually select the target virtual prop combination and then, through the third sliding operation, make the terminal split the target virtual prop combination.

[0089] When the target virtual building is a multi-story building and there is a virtual prop combination in the target virtual building, optionally, the second sliding operation and the third sliding operation are independent trigger operations, that is, the second sliding operation is only used to trigger the terminal to split the interior view of the building, and the third sliding operation is only used to trigger the terminal to split the virtual prop combination. At least one of the trigger conditions such as the number of touch points, the sliding direction, and the sliding distance of the two is different, or, the trigger conditions of the two are the same, and the user needs to first separate the interior view layer through the second sliding operation before being able to separate the virtual prop combination through the third trigger operation; or, the second sliding operation and the third sliding operation are the same sliding operation, and the user can separate the interior view layer and the virtual prop combination through one sliding operation. The embodiment of the present application does not limit this.

[0090] Optionally, after receiving the third sliding operation, the terminal separates the virtual items in the virtual item combination and moves them to a preset position, or the terminal adjusts the relative distance between the virtual items in the virtual item combination based on the sliding distance of the third sliding operation.

[0091] Schematically, as Figure 9 shown, the target virtual building is a two-story building, and its interior view includes a lower interior view layer 901 and an upper interior view layer 902. There is a virtual item combination composed of virtual item 903 and virtual item 904 in the target virtual building. In the initial state, the upper interior view layer 902 blocks the lower interior view layer 901 and some virtual items in the lower interior view layer 901. When receiving a sliding operation from bottom to top, the terminal splits the lower interior view layer 901 and the upper interior view layer 902, and at the same time splits the virtual item 903 and the virtual item 904. The bottom surface of the split upper interior view layer 902 is higher than the top surface of the lower interior view layer 901, and the bottom surface of the virtual item 903 is higher than the top surface of the virtual item 904.

[0092] Step 506, in response to an editing operation on the target virtual item in the virtual items, update the display state of the target virtual item in the target virtual building.

[0093] For the specific implementation manner of step 506, reference may be made to the above step 204, and details are not described herein again in the embodiments of the present application.

[0094] In the embodiments of the present application, the target virtual building includes a building exterior and a building interior. When the target virtual building is a multi-story building, the user can, through a second triggering operation, cause the terminal to split the building interior. And when there is a virtual item combination in the target virtual building, the user can, through a third triggering operation, cause the terminal to split the virtual item combination, so that the blocked building interior or virtual items can be fully displayed, facilitating the user to clearly observe the building interior and virtual items of the target virtual building.

[0095] In a possible implementation manner, in order to facilitate the user to edit the target virtual building based on a suitable display size, after the above step 503, the following steps are further included:

[0096] Step 1, in response to a zoom-in operation on the building interior and virtual items, perform a zoom-in display on the building interior and virtual items.

[0097] In a possible implementation, the user can magnify the interior view of the building and virtual props through a magnification operation. Optionally, the magnification operation is a triggering operation on the magnification control in the virtual building editing interface. After the terminal receives the triggering operation on the magnification control, it magnifies and displays the interior view of the building and virtual props according to a preset magnification factor or the magnification factor selected by the user; alternatively, the magnification operation is a touch operation directly on the interior view of the building and virtual props, or any position in the building preview area, such as a two-finger inward shrinking sliding operation. The terminal determines the magnification size of the interior view of the building and virtual props based on the sliding distance of the sliding operation.

[0098] Optionally, the user can, through a single magnification operation, enable the terminal to simultaneously magnify and display the interior view of the building and virtual props in equal proportion; or, the user can manually select the interior view of the building or virtual props to be magnified, and then, through the magnification operation, enable the terminal to magnify and display the selected interior view of the building or virtual props.

[0099] Step 2: In response to the reduction operation on the interior view of the building and virtual props, reduce and display the interior view of the building and virtual props.

[0100] In a possible implementation, the user can reduce the interior view of the building and virtual props through a reduction operation. Optionally, the reduction operation is a triggering operation on the reduction control in the virtual building editing interface. After the terminal receives the triggering operation on the reduction control, it reduces and displays the interior view of the building and virtual props according to a preset reduction factor or the reduction factor selected by the user; or, the reduction operation is a touch operation directly on the interior view of the building and virtual props, or any position in the building preview area, such as a two-finger outward expansion sliding operation. The terminal determines the reduction size of the interior view of the building and virtual props based on the sliding distance of the sliding operation.

[0101] Optionally, the user can, through a single reduction operation, enable the terminal to simultaneously reduce and display the interior view of the building and virtual props in equal proportion; or, the user can manually select the interior view of the building or virtual props to be reduced, and then, through the reduction operation, enable the terminal to reduce and display the selected interior view of the building or virtual props.

[0102] The above Step 1 and Step 2 are in a parallel relationship and there is no strict sequence. The terminal determines whether to execute Step 1 or Step 2 based on the specific operation.

[0103] The above various embodiments illustrate the process in which the user, through the triggering operation on the target virtual building, enables the terminal to display the interior view of the building and virtual props, and to perform split, zoom-in and zoom-out display on the interior view of the building and virtual props. The user can also change the display state of the virtual props in the target virtual building through an editing operation. On Figure 2 this basis, such as Figure 10As shown, the above step 204 further includes the following steps:

[0104] Step 204a, in response to a first editing operation on the target virtual item, set the target virtual item to a first display state. The first editing operation refers to the operation of dragging the target virtual item to the item addition control. The first display state includes at least one of displaying an item addition mark and highlighting.

[0105] In a possible implementation, the virtual building editing interface includes an item addition control. The user can, through the first editing operation, select the virtual item they want to obtain. The first editing operation refers to the operation of dragging the target virtual item to the item addition control. The terminal sets the target virtual item that receives the first editing operation to the first display state to prompt the user that the virtual item has been selected.

[0106] Schematically, as Figure 11 shown, the virtual building editing interface 1101 includes an item addition control 1102. When the terminal detects that the user drags the target virtual item 1103 to the item addition control 1102, an item addition mark is displayed at the target virtual item 1103, and the quantity of the target virtual item added to the shopping cart is updated in the item addition control 1102.

[0107] Step 204b, display the updated first resource consumption amount in the first acquisition control. The first resource consumption amount is the amount of resources required to obtain the target virtual item. The first acquisition control is used to trigger the acquisition of the target virtual item.

[0108] In a possible implementation, the virtual building editing interface further includes a first acquisition control. For the target virtual item in the target virtual building that receives the first editing operation, the user can trigger the first acquisition control to obtain it. Since the acquisition of virtual items requires consuming virtual resources, in order to facilitate the user to quickly view the amount of resources required to obtain the target virtual item, whenever the terminal receives the first editing operation on the target virtual item, it will display the updated first resource consumption amount in the first acquisition control.

[0109] For example, if the target virtual building includes a cabinet priced at 88 gold coins and a table priced at 50 gold coins, then after the terminal receives the first editing operation on the cabinet, it displays 88 gold coins at the first acquisition control, and when it receives the first editing operation on the table, it displays 138 gold coins at the first acquisition control.

[0110] Schematically, as Figure 11 shown, a first acquisition control 1104 is displayed below the item addition control 1102. The user can trigger this control to obtain the target virtual item in the first display state in the building interior scene with one key.

[0111] Step 204c, in response to a second editing operation on the target virtual item, set the target virtual item to a second display state. The second editing operation refers to the operation of dragging the target virtual item to the item exclusion control. The second display state includes at least one of canceling the display and transparently displaying with a preset transparency.

[0112] In a possible implementation, the virtual building editing interface includes an item exclusion control. The user can, through the second editing operation, select the virtual item that they want to exclude from the target virtual building. The second editing operation refers to the operation of dragging the target virtual item to the item exclusion control. The terminal sets the target virtual item that receives the second editing operation to the second display state to prompt the user that the virtual item has been excluded.

[0113] Schematically, as Figure 12 shown, the virtual building editing interface 1201 includes an item exclusion control 1202. When the terminal detects that the user drags the target virtual item 1203 to the item exclusion control 1202, the target virtual item 1203 is transparently displayed, and the quantity of the target virtual item that has been excluded is updated in the item exclusion control 1202.

[0114] Step 204d, display the updated second resource consumption amount in the second acquisition control. The second resource consumption amount is the amount of resources required to acquire the target virtual building and virtual items other than the target virtual item. The second acquisition control is used to trigger the acquisition of the target virtual building and virtual items other than the target virtual item.

[0115] In a possible implementation, the virtual building editing interface further includes a second acquisition control. For virtual items in the target virtual building that do not receive the second editing operation, the user can acquire them by triggering the second acquisition control. That is, the user can exclude the unnecessary virtual items in the target virtual building through the second editing operation and, by triggering the second acquisition control, acquire the target virtual building and the virtual items that have not been excluded in one click. Since the acquisition of virtual items consumes virtual resources, in order to facilitate the user to quickly view the amount of resources required to acquire the target virtual building and the virtual items that have not been excluded, whenever the terminal receives the second editing operation on the target virtual item, it will display the updated second resource consumption amount in the second acquisition control.

[0116] For example, if the price of the target virtual building is 100 gold coins, and the target virtual building contains a cabinet priced at 88 gold coins and a table priced at 50 gold coins, and the initial value of the second resource consumption amount displayed by the second acquisition control is 238 gold coins, then after the terminal receives the second editing operation on the cabinet, 150 gold coins are displayed at the second acquisition control, and when the second editing operation on the table is received, 100 gold coins are displayed at the second acquisition control.

[0117] Schematically, as Figure 12 shown, a second acquisition control 1204 is displayed in the virtual building editing interface 1201, and the user can trigger this control to obtain the target virtual building and the virtual props that have not been excluded in the building interior scene with one key.

[0118] Step 204e, in response to the triggering operation on the prop exclusion control, restore the display state of the target virtual prop in the target virtual building.

[0119] After the user excludes the target virtual prop, the user may also need to restore the target virtual prop to its initial display state. For the convenience of editing the virtual prop, when the terminal receives the triggering operation on the prop exclusion control, the target virtual prop in the second display state is restored to its initial display state.

[0120] Optionally, the user can directly trigger the prop exclusion control to restore all the excluded target virtual props with one key; or, the user triggers the prop exclusion control to make the terminal display the list of the proposed target virtual props, so as to select the target virtual prop whose display state is to be restored.

[0121] Correspondingly, the user can also restore the display state of the target virtual prop in the target virtual building by triggering the prop addition control, that is, cancel the addition operation on the target virtual prop.

[0122] The first editing operation and the second editing operation in the embodiments of the present application can act on virtual props, and can also act on the building appearance and the building interior scene of the target virtual building, so as to obtain or exclude the target virtual building.

[0123] The above steps 204a to 204b and steps 204c to 204e are in a parallel relationship, and among them, steps 204d and 204e are also in a parallel relationship. The terminal determines to execute steps 204a to 204b or steps 204c to 204e based on the type of the editing operation.

[0124] In a possible implementation manner, after step 203, the virtual building editing method provided by the embodiments of the present application further includes the following steps:

[0125] Step 1: Display a list of virtual items in the virtual building editing interface. The virtual item list contains item selection controls corresponding to each virtual item in the target virtual building.

[0126] In a possible implementation, when the terminal receives a trigger operation on the target virtual building, at least one virtual item is displayed in the target virtual building, and a virtual item list containing item selection controls corresponding to each virtual item is displayed in the virtual building editing interface, so that the user can quickly view the virtual items contained in the target virtual building.

[0127] Step 2: In response to a trigger operation on the target item selection control, highlight the virtual item corresponding to the target item selection control in the target virtual building.

[0128] In a possible implementation, the user can trigger the target item selection control to cause the terminal to highlight the corresponding virtual item, so that the user can clearly view the display effects of each virtual item in the target virtual building, avoid missing some virtual items that are not easily discovered, obtain unnecessary virtual items without knowing it, and can quickly view all virtual items in the target virtual building, improving the editing efficiency of virtual items and virtual buildings.

[0129] Schematically, as Figure 13 shown, in the virtual building editing interface 1301, a virtual item list is displayed above the interior view of the building. There are three virtual items, namely a bed, a cabinet, and a table 1303, in the interior view of the building, and there are item selection controls corresponding to the three virtual items in the virtual item list. When the terminal receives a trigger operation on the item selection control 1302 corresponding to the table 1303, the table 1303 is highlighted.

[0130] In the embodiments of the present application, the user can select the virtual item they want to obtain through the first editing operation and trigger the first acquisition control to obtain the virtual items added to the item addition control with one key, or remove the target virtual item from the interior view of the building through the second editing operation, and obtain the virtual building and virtual items that have not been removed by triggering the second acquisition control with one key, improving the diversity of building acquisition methods and the editing and purchase efficiency of buildings; moreover, the user can trigger the target item selection control to cause the terminal to highlight the corresponding virtual item, avoid missing some virtual items that are not easily discovered, and can quickly view all virtual items in the target virtual building, further improving the editing efficiency of virtual items and virtual buildings.

[0131] Combining the above various embodiments, in a schematic example, the editing process of the virtual building is as Figure 14 shown.

[0132] Step 1401, in response to a triggering operation on a target building style selection control, display a target virtual building.

[0133] Step 1402, display the resource amounts required for the target virtual building and virtual props through a second acquisition control.

[0134] Step 1403, in response to a first triggering operation on the target virtual building, remove the building exterior and display the building interior view and virtual props.

[0135] Step 1404, in response to a second triggering operation, split the combination of the building interior view and virtual props.

[0136] Step 1405, display a prop addition control and a prop removal control.

[0137] Step 1406, determine whether a second editing operation is received. If yes, execute Step 1408.

[0138] Step 1407, determine whether a first editing operation is received. If yes, execute Step 1410.

[0139] Step 1408, set the target virtual prop to a second display state and update the second virtual resource amount.

[0140] Step 1409, in response to a triggering operation on the second acquisition control, acquire the target virtual building and virtual props other than the target virtual prop.

[0141] Step 1410, set the target virtual prop to a first display state and update the first virtual resource amount.

[0142] Step 1411, in response to a triggering operation on the first acquisition control, acquire the target virtual prop.

[0143] Figure 15 It is a structural block diagram of an editing device for a virtual building provided by an exemplary embodiment of the present application. The device includes:

[0144] A first display module 1501, configured to display a virtual building editing interface. The virtual building editing interface includes a building style list and a virtual building preview area. The building style list includes at least one building style selection control;

[0145] A second display module 1502, configured to, in response to a triggering operation on a target building style selection control, display a target virtual building belonging to the target building style in the building preview area. The target building style is the building style corresponding to the target building style selection control;

[0146] The third display module 1503 is configured to display at least one virtual prop in the target virtual building in response to a trigger operation on the target virtual building, and the prop style of the virtual prop matches the target building style;

[0147] The first update module 1504 is configured to update the display state of the target virtual prop in the target virtual building in response to an edit operation on the target virtual prop in the virtual props.

[0148] Optionally, the target virtual building consists of a building exterior and an interior view of the building. The building exterior covers the interior view of the building, and the virtual prop is located in the interior view of the building;

[0149] The second display module 1502 includes:

[0150] The first display unit is configured to display the building exterior of the target virtual building in the building preview area;

[0151] The third display module 1503 includes:

[0152] The second display unit is configured to, in response to a trigger operation on the target virtual building, remove the building exterior and display the interior view of the building and the virtual prop.

[0153] Optionally, the second display unit is further configured to:

[0154] In response to a first sliding operation on the target virtual building, determine a removal area based on the sliding direction and sliding distance of the first sliding operation;

[0155] Remove the building exterior within the removal area and display the interior view of the building and the virtual prop within the removal area.

[0156] Optionally, the target virtual building includes n floors, and the interior view of the building includes n interior view layers of the building, where n is an integer greater than 1;

[0157] The device further includes:

[0158] The first splitting module is configured to split and display the interior view of the building in response to a second sliding operation on the interior view of the building, and each of the interior view layers in the split interior view of the building is separated from each other.

[0159] Optionally, there is a virtual prop combination consisting of at least two virtual props in the interior view of the building;

[0160] The device further includes:

[0161] A second splitting module, configured to split and display the virtual prop combination in response to a third sliding operation on the interior view of the building, and the virtual props in the split virtual prop combination are separated from each other.

[0162] Optionally, a prop adding control is included in the virtual building editing interface;

[0163] The first updating module 1504 includes:

[0164] A first updating unit, configured to set the target virtual prop to a first display state in response to a first editing operation on the target virtual prop, where the first editing operation refers to an operation of dragging the target virtual prop to the prop adding control, and the first display state includes at least one of displaying a prop adding mark and highlighting.

[0165] Optionally, a first obtaining control is further included in the virtual building editing interface;

[0166] The apparatus further includes:

[0167] A second updating module, configured to display an updated first resource consumption amount in the first obtaining control, where the first resource consumption amount is the amount of resources required to obtain the target virtual prop, and the first obtaining control is used to trigger obtaining the target virtual prop.

[0168] Optionally, a prop removing control is included in the virtual building editing interface;

[0169] The first updating module 1504 includes:

[0170] A second updating unit, configured to set the target virtual prop to a second display state in response to a second editing operation on the target virtual prop, where the second editing operation refers to an operation of dragging the target virtual prop to the prop removing control, and the second display state includes at least one of canceling display and transparent display according to a preset transparency.

[0171] Optionally, a second obtaining control is further included in the virtual building editing interface;

[0172] The apparatus further includes:

[0173] A third updating module, configured to display an updated second resource consumption amount in the second obtaining control, where the second resource consumption amount is the amount of resources required to obtain the target virtual building and virtual props other than the target virtual prop, and the second obtaining control is used to trigger obtaining the target virtual building and virtual props other than the target virtual prop.

[0174] Optionally, the apparatus further includes:

[0175] A fourth update module, configured to restore the display state of the target virtual prop in the target virtual building in response to a trigger operation on the prop removal control.

[0176] Optionally, the device further includes:

[0177] A fifth display module, configured to display a virtual prop list in the virtual building editing interface, where the virtual prop list includes prop selection controls corresponding to each virtual prop in the target virtual building;

[0178] A sixth display module, configured to highlight the virtual prop corresponding to the target prop selection control in the target virtual building in response to a trigger operation on the target prop selection control.

[0179] Optionally, the device further includes:

[0180] An enlargement module, configured to enlarge and display the interior view of the building and the virtual prop in response to an enlargement operation on the interior view of the building and the virtual prop;

[0181] A reduction module, configured to reduce and display the interior view of the building and the virtual prop in response to a reduction operation on the interior view of the building and the virtual prop.

[0182] In summary, in the embodiments of the present application, the virtual buildings and virtual props are classified and displayed according to the architectural style. The virtual building and virtual props that match the architectural style are simultaneously displayed in the virtual building preview area, which facilitates the user to edit the virtual buildings and virtual props of the same architectural style. Moreover, based on the editing operation of the virtual prop, the display state of the virtual prop is updated in the target virtual building, enabling the user to view the display effect of the virtual prop in the virtual building that matches the architectural style. Compared with the related art in which the props are classified by type and the virtual buildings and virtual props are independently displayed, the editing efficiency of the virtual buildings and virtual props is improved, and it is avoided that the virtual props obtained by the user do not match the architectural style of the virtual building, resulting in low utilization rates of some virtual props or virtual buildings.

[0183] The virtual buildings and virtual props are classified according to the architectural style. The target virtual building and virtual props of different categories but matching the architectural style of the target virtual building are simultaneously displayed in the virtual building preview area. The user can purchase virtual props of different categories under the target architectural style in the same interface without purchasing each category of virtual props separately, which improves the purchase efficiency of the virtual props.

[0184] Please refer to Figure 15, which shows a structural block diagram of a terminal 1600 provided by an exemplary embodiment of the present application. The terminal 1600 may be a portable mobile terminal, such as: a smart phone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1600 may also be referred to by other names such as user equipment, portable terminal, etc.

[0185] Generally, the terminal 1600 includes: a processor 1601 and a memory 1602.

[0186] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the Central Processing Unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1601 may be integrated with a Graphics Processing Unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an Artificial Intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0187] The memory 1602 may include one or more computer-readable storage media, and the computer-readable storage media may be tangible and non-transitory. The memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1601 to implement the method provided by the embodiments of the present application.

[0188] In some embodiments, the terminal 1600 may further optionally include: a peripheral device interface 1603 and at least one peripheral device. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1604, a touch display screen 1605, a camera assembly 1606, an audio circuit 1607, a positioning assembly 1608, and a power supply 1609.

[0189] The peripheral device interface 1603 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0190] The radio frequency circuit 1604 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1604 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1604 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so on. The radio frequency circuit 1604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a wireless fidelity (WiFi) network. In some embodiments, the radio frequency circuit 1604 may further include a circuit related to near field communication (NFC), and this application does not limit this.

[0191] The touch display screen 1605 is used to display the UI. The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1605 also has the ability to collect touch signals on or above the surface of the touch display screen 1605. The touch signal can be input to the processor 1601 as a control signal for processing. The touch display screen 1605 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 1605, which is disposed on the front panel of the terminal 1600; in other embodiments, there may be at least two touch display screens 1605, which are respectively disposed on different surfaces of the terminal 1600 or in a foldable design; in still other embodiments, the touch display screen 1605 may be a flexible display screen, which is disposed on a curved surface or a foldable surface of the terminal 1600. Even further, the touch display screen 1605 may also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The touch display screen 1605 may be prepared using materials such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0192] The camera module 1606 is used to collect images or videos. Optionally, the camera module 1606 includes a front camera and a rear camera. Generally, the front camera is used to implement video calls or selfies, and the rear camera is used to implement photo or video shooting. In some embodiments, there are at least two rear cameras, which are respectively any one of a main camera, a depth-of-field camera, and a wide-angle camera, so as to implement the function of background blurring by fusing the main camera and the depth-of-field camera, and implement panoramic shooting and virtual reality (VR) shooting functions by fusing the main camera and the wide-angle camera. In some embodiments, the camera module 1606 may further include a flash. The flash may be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0193] The audio circuit 1607 is used to provide an audio interface between the user and the terminal 1600. The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1601 for processing, or input to the radio frequency circuit 1604 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1600. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1607 may further include a headphone jack.

[0194] The positioning component 1608 is used to locate the current geographical location of the terminal 1600 to implement navigation or location-based service (LBS). The positioning component 1608 may be a positioning component of the Global Positioning System (GPS), the Beidou system or the Galileo system.

[0195] The power supply 1609 is used to supply power to each component in the terminal 1600. The power supply 1609 may be alternating current, direct current, a primary battery or a rechargeable battery. When the power supply 1609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0196] In some embodiments, the terminal 1600 further includes one or more sensors 1610. The one or more sensors 1610 include but are not limited to: an acceleration sensor 1611, a gyroscope sensor 1612, a pressure sensor 1613, a fingerprint sensor 1614, an optical sensor 1615, and a proximity sensor 1616.

[0197] The acceleration sensor 1611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 1600. For example, the acceleration sensor 1611 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1601 can control the touch display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1611. The acceleration sensor 1611 can also be used for collecting game or user movement data.

[0198] The gyroscope sensor 1612 can detect the body direction and rotation angle of the terminal 1600. The gyroscope sensor 1612 can cooperate with the acceleration sensor 1611 to collect the 3D actions of the user on the terminal 1600. Based on the data collected by the gyroscope sensor 1612, the processor 1601 can implement the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.

[0199] The pressure sensor 1613 can be disposed on the side frame of the terminal 1600 and / or the lower layer of the touch display screen 1605. When the pressure sensor 1613 is disposed on the side frame of the terminal 1600, it can detect the holding signal of the user on the terminal 1600, and perform left / right hand recognition or quick operation according to the holding signal. When the pressure sensor 1613 is disposed on the lower layer of the touch display screen 1605, it can control the operable controls on the UI interface according to the pressure operation of the user on the touch display screen 1605. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0200] The fingerprint sensor 1614 is used to collect the fingerprint of the user to identify the user's identity according to the collected fingerprint. When the identity of the user is identified as a trusted identity, the processor 1601 authorizes the user to perform relevant sensitive operations, and the sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings, etc. The fingerprint sensor 1614 can be disposed on the front, back, or side of the terminal 1600. When there are physical buttons or a manufacturer logo (Logo) on the terminal 1600, the fingerprint sensor 1614 can be integrated with the physical button or the manufacturer Logo.

[0201] The optical sensor 1615 is used to collect the ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the touch display screen 1605 according to the ambient light intensity collected by the optical sensor 1615. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1605 is decreased. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameters of the camera module 1606 according to the ambient light intensity collected by the optical sensor 1615.

[0202] The proximity sensor 1616, also known as the distance sensor, is usually disposed on the front face of the terminal 1600. The proximity sensor 1616 is used to collect the distance between the user and the front face of the terminal 1600. In one embodiment, when the proximity sensor 1616 detects that the distance between the user and the front face of the terminal 1600 is gradually decreasing, the touch display screen 1605 is controlled by the processor 1601 to switch from the lit screen state to the off-screen state; when the proximity sensor 1616 detects that the distance between the user and the front face of the terminal 1600 is gradually increasing, the touch display screen 1605 is controlled by the processor 1601 to switch from the off-screen state to the lit screen state.

[0203] Those skilled in the art can understand that Figure 16 the structure shown in does not constitute a limitation on the terminal 1600, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0204] The embodiment of the present application also provides a computer-readable storage medium storing at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the editing method of the virtual building as described in each of the above embodiments.

[0205] According to one aspect of the present application, there is provided a computer program product or a computer program, the computer program product or the computer program including computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the editing method of the virtual building provided in various optional implementation manners of the above aspect.

[0206] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. The computer-readable storage medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transmission of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0207] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for editing a virtual building, characterized in that, The method includes: Displaying a virtual building editing interface, which includes a building style list and a virtual building preview area, and the building style list includes at least one building style selection control; In response to a triggering operation on a target building style selection control, displaying the building appearance of a target virtual building belonging to the target building style in the building preview area, where the target building style is the building style corresponding to the target building style selection control, and the target virtual building consists of the building appearance and the building interior scene, and the building appearance covers the building interior scene; In response to a triggering operation on the target virtual building, removing the building appearance and displaying the building interior scene and virtual props, where the prop style of the virtual props matches the target building style, and the virtual props are located in the building interior scene; In response to a second editing operation on a target virtual prop, setting the target virtual prop to a second display state, where the second editing operation refers to the operation of dragging the target virtual prop to a prop removal control, and the second display state includes at least one of canceling the display and displaying transparently according to a preset transparency; Displaying an updated second resource consumption amount in a second acquisition control, where the second resource consumption amount is the amount of resources required to acquire the target virtual building and virtual props other than the target virtual prop, and the second acquisition control is used to trigger the acquisition of the target virtual building and virtual props other than the target virtual prop.

2. The method according to claim 1, characterized in that, The step of, in response to a triggering operation on the target virtual building, removing the building appearance and displaying the building interior scene and virtual props includes: In response to a first sliding operation on the target virtual building, determining a removal area based on the sliding direction and sliding distance of the first sliding operation; Removing the building appearance within the removal area and displaying the building interior scene and the virtual props within the removal area.

3. The method according to claim 1, characterized in that, The target virtual building includes n layers, and the building interior scene includes n building interior scene layers, where n is an integer greater than 1; After the step of, in response to a triggering operation on the target virtual building, removing the building appearance and displaying the building interior scene and virtual props, the method includes: In response to a second sliding operation on the building interior scene, splitting and displaying the building interior scene, and after splitting, each of the building interior scene layers in the building interior scene is separated from each other.

4. The method according to claim 1, characterized in that, There is a virtual prop combination consisting of at least two virtual props in the building interior scene; After the step of, in response to a triggering operation on the target virtual building, removing the building appearance and displaying the building interior scene and virtual props, the method further includes: In response to a third sliding operation on the building interior scene, splitting and displaying the virtual prop combination, and after splitting, each of the virtual props in the virtual prop combination is separated from each other.

5. The method according to any one of claims 1 to 4, characterized in that, The virtual building editing interface includes a prop addition control; The method further includes: In response to a first editing operation on the target virtual prop, set the target virtual prop to a first display state. The first editing operation refers to the operation of dragging the target virtual prop to the prop addition control. The first display state includes at least one of displaying a prop addition mark and highlighting.

6. The method according to claim 5, characterized in that, The virtual building editing interface further includes a first acquisition control. After setting the target virtual prop to the first display state in response to the first editing operation on the target virtual prop, the method further includes: Display the updated first resource consumption amount in the first acquisition control. The first resource consumption amount is the amount of resources required to acquire the target virtual prop. The first acquisition control is used to trigger the acquisition of the target virtual prop.

7. The method according to claim 1, characterized in that, After setting the target virtual prop to a second display state in response to a second editing operation on the target virtual prop, the method further includes: In response to a trigger operation on the prop removal control, restore the display state of the target virtual prop in the target virtual building.

8. The method according to any one of claims 1 to 4, characterized in that, After removing the building exterior and displaying the building interior and virtual props in response to a trigger operation on the target virtual building, the method further includes: Display a virtual prop list in the virtual building editing interface. The virtual prop list includes prop selection controls corresponding to each virtual prop in the target virtual building. In response to a trigger operation on a target prop selection control, highlight the virtual prop corresponding to the target prop selection control in the target virtual building.

9. The method according to any one of claims 1 to 4, characterized in that, After removing the building exterior and displaying the building interior and virtual props in response to a trigger operation on the target virtual building, the method further includes: In response to a magnification operation on the building interior and the virtual props, perform a magnified display on the building interior and the virtual props. In response to a reduction operation on the building interior and the virtual props, perform a reduced display on the building interior and the virtual props.

10. An editing device for a virtual building, characterized in that, The device includes: A first display module for displaying a virtual building editing interface. The virtual building editing interface includes an architectural style list and a virtual building preview area. The architectural style list includes at least one architectural style selection control. A second display module for, in response to a trigger operation on a target architectural style selection control, displaying the building exterior of a target virtual building belonging to the target architectural style in the building preview area. The target architectural style is the architectural style corresponding to the target architectural style selection control. The target virtual building is composed of the building exterior and the building interior, and the building exterior covers the building interior. A third display module for, in response to a trigger operation on the target virtual building, removing the building exterior and displaying the building interior and virtual props. The prop style of the virtual props matches the target architectural style, and the virtual props are located in the building interior. A first update module, configured to set the target virtual item to a second display state in response to a second editing operation on the target virtual item, where the second editing operation refers to an operation of dragging the target virtual item to a prop removal control, and the second display state includes at least one of canceling the display and transparently displaying with a preset transparency; A third update module, configured to display an updated second resource consumption amount in a second acquisition control, where the second resource consumption amount is the amount of resources required to acquire the target virtual building and virtual items other than the target virtual item, and the second acquisition control is used to trigger the acquisition of the target virtual building and virtual items other than the target virtual item.

11. A terminal, characterized in that, The terminal includes a processor and a memory; at least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for editing a virtual building according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for editing a virtual building according to any one of claims 1 to 9.