Virtual building control method and device, storage medium and electronic equipment

By establishing splicing relationships between virtual buildings and allowing rotation operations, the problem of balancing control efficiency and freedom in virtual buildings is solved, achieving stable splicing and free adjustment, thus enhancing the player's building experience.

CN120833459APending Publication Date: 2025-10-24TENCENT TECH SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410466510.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

In the control scenarios of virtual buildings, existing technologies cannot balance control efficiency and freedom, which restricts players when building virtual buildings.

Method used

By establishing splicing relationships between virtual buildings and allowing rotation operations while maintaining these relationships, stable splicing and free adjustment of virtual buildings can be achieved.

Benefits of technology

It improves the control efficiency of virtual buildings, increases the player's freedom, and makes the construction process of virtual buildings more flexible and richer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120833459A_ABST
    Figure CN120833459A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual building control method and device, a storage medium and electronic equipment. The method comprises the following steps: displaying a placed first virtual building and a to-be-placed second virtual building; in response to a first control operation performed on a second virtual building, displaying the second virtual building placed at a splicing position of the first virtual building, the virtual building placed at the splicing position being set to have a splicing relationship with the first virtual building; and in response to a second control operation executed on the second virtual building, displaying that the second virtual building rotates under the condition of keeping the splicing relationship between the second virtual building and the first virtual building. The technical problem that the control efficiency and the degree of freedom of the virtual building cannot be considered at the same time is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computers, in particular to a virtual building control method and device, a storage medium and an electronic device. BACKGROUND

[0002] In the control scene of a virtual building, the position of a previous virtual building is usually relied on, and only a specific angle and a specific way can be used for splicing, so that the arrangement and combination between virtual buildings are very fixed, and players are more limited in experiencing the building gameplay, and the degree of freedom is low.

[0003] If the control of the virtual building is completely open, and each virtual building is free and independent, although this control method eliminates the limitation, it increases the complexity of the control of the virtual building, and further reduces the control efficiency of the virtual building. Therefore, the control efficiency and the degree of freedom of the virtual building cannot be considered.

[0004] At present, no effective solution has been proposed for the above problems. SUMMARY

[0005] The embodiments of the present application provide a virtual building control method, device, storage medium and electronic device to at least solve the technical problem that the control efficiency and the degree of freedom of the virtual building cannot be considered.

[0006] According to an aspect of the embodiments of the present application, a virtual building control method is provided, including: displaying a first virtual building that has been placed and a second virtual building to be placed; in response to a first control operation performed on the second virtual building, displaying the second virtual building placed at a splicing position of the first virtual building, wherein the virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building; and in response to a second control operation performed on the second virtual building, displaying the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0007] According to another aspect of the embodiments of the present application, a control device for a virtual building is provided, comprising: a first display unit configured to display a first virtual building that has been placed and a second virtual building that is to be placed; a second display unit configured to display the second virtual building placed at a splicing position of the first virtual building in response to a first control operation performed on the second virtual building, wherein the virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building; and a third display unit configured to display the second virtual building rotating in response to a second control operation performed on the second virtual building while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0008] As an optional solution, the third display unit comprises a first display module configured to display the second virtual building rotating with a first intersection line at which the first virtual building and the second virtual building are connected as an axis of rotation.

[0009] As an optional solution, the device further comprises a second display module configured to display the second virtual building rotating with a second intersection line at which the first virtual building and the second virtual building are connected as an axis of rotation in response to a third control operation performed on the second virtual building after displaying the second virtual building rotating with the first intersection line at which the first virtual building and the second virtual building are connected as an axis of rotation.

[0010] As an optional solution, the third display unit comprises a third display module configured to display the second virtual building rotating clockwise in response to the second control operation being a clockwise rotation control operation, and a fourth display module configured to display the second virtual building rotating counterclockwise in response to the second control operation being a counterclockwise rotation control operation.

[0011] As an optional solution, the device further comprises a fifth display module configured to display a clockwise rotation control before displaying the clockwise rotation of the second virtual building on the display; the fifth display module comprises at least one of the following: a first display sub-module configured to display a first preset angle of clockwise rotation of the second virtual building in response to a first single control operation performed on the clockwise rotation control; and a second display sub-module configured to display a first continuous time length of clockwise rotation of the second virtual building in response to a first long press control operation performed on the clockwise rotation control, wherein the first continuous time length is in a positive correlation with an execution time length of the first long press control operation; the device further comprises a sixth display module configured to display an anticlockwise rotation control before displaying the anticlockwise rotation of the second virtual building on the display; the sixth display module comprises at least one of the following: a third display sub-module configured to display a second preset angle of anticlockwise rotation of the second virtual building in response to a second single control operation performed on the anticlockwise rotation control; and a fourth display sub-module configured to display a second continuous time length of anticlockwise rotation of the second virtual building in response to a second long press control operation performed on the anticlockwise rotation control, wherein the second continuous time length is in a positive correlation with an execution time length of the second long press control operation.

[0012] As an optional solution, the device further comprises a fourth display unit configured to display the second virtual building placed at the splicing position and having a preset angle after displaying the placed first virtual building and the second virtual building to be placed, in response to a fourth control operation performed on the second virtual building, wherein the preset angle is a placement angle corresponding to the fourth control operation, and the second virtual building having the preset angle is set to be prohibited from rotating; and a setting unit configured to set the second virtual building having the preset angle to be allowed to rotate in response to an authority opening operation performed on the second virtual building having the preset angle after displaying the placed first virtual building and the second virtual building to be placed.

[0013] As an optional solution, the device further comprises a fifth display unit configured to, after the preset angle second virtual building is set to be allowed to rotate in response to the permission opening operation performed on the preset angle second virtual building, display the preset angle second virtual building rotated to a target angle second virtual building in response to the second control operation performed on the preset angle second virtual building while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0014] As an optional solution, the device further comprises a sixth display unit configured to, after the first virtual building and the second virtual building to be placed are displayed, display the second virtual building placed in the virtual scene and in a free placement state in response to a fifth control operation performed by the virtual character on the second virtual building, wherein the virtual building in the free placement state is set to be prohibited from having the splicing relationship, the number of virtual buildings in the free placement state placed by the virtual character is set to be less than or equal to a first preset threshold, and the number of virtual buildings in the free placement state placed in the virtual scene is set to be less than or equal to a second preset threshold.

[0015] According to still another aspect of the embodiments of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of an electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the electronic device to perform the virtual building control method as described above.

[0016] According to still another aspect of the embodiments of the present application, an electronic device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor performs the virtual building control method as described above through the computer program.

[0017] In the embodiment of the present application, a first virtual building that has been placed and a second virtual building to be placed are displayed; in response to a first control operation performed on the second virtual building, the second virtual building placed at a splicing position of the first virtual building is displayed, wherein the virtual building placed at the splicing position is arranged to have a splicing relationship with the first virtual building; and in response to a second control operation performed on the second virtual building, the second virtual building is displayed as being rotated while the splicing relationship between the second virtual building and the first virtual building is maintained. When the first control operation is performed, the second virtual building is automatically placed at the splicing position of the first virtual building, ensuring a stable splicing relationship between the two, reducing the trial and error time, and thus improving the control efficiency of the virtual building. When the user wants to make further adjustments, the second virtual building can be freely rotated while the splicing relationship between the two buildings is maintained, increasing the control freedom of the virtual building, thus achieving the purpose of ensuring the stable splicing of the buildings and providing more customization space for the user, thereby realizing the technical effect of balancing the control efficiency and freedom of the virtual building, and thus solving the technical problem that the control efficiency and freedom of the virtual building cannot be balanced. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of this application and help to explain the present application, but do not limit the present application in any way. In the drawings:

[0019] Figure 1 is a schematic diagram of an application environment of an optional virtual building control method according to an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of the flow of an optional virtual building control method according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an optional virtual building control method according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of another optional virtual building control method according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of another optional virtual building control method according to an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of another optional virtual building control method according to an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of another optional control method of a virtual building according to an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of another optional control method of a virtual building according to an embodiment of the present application;

[0027] Figure 9 is a schematic diagram of an optional control device of a virtual building according to an embodiment of the present application;

[0028] Figure 10 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative work should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.

[0031] According to an aspect of an embodiment of the present application, a control method of a virtual building is provided. Optionally, as an optional implementation, the above-mentioned control method of a virtual building can be applied in, but is not limited to, the environment as shown in Figure 1 . Wherein, it can include, but is not limited to, a user device 102 and a server 112, the user device 102 can include, but is not limited to, a display 104, a processor 106 and a memory 108, and the server 112 includes a database 114 and a processing engine 116.

[0032] The specific process can be as follows:

[0033] Step S102, the user equipment 102 obtains operation information of a control operation (such as a first control operation, a second control operation, etc.);

[0034] Step S104, sending the operation information to the server 112 via the network 110;

[0035] Step S106: The server 112 obtains a control screen corresponding to the operation information through the processing engine 116, such as a second virtual building placed at the splicing position of the first virtual building, and the second virtual building rotates.

[0036] In step S108 , the control screen is sent to the user device 102 via the network 110 . The user device 102 displays the control screen on the display 104 via the processor 106 and stores the control screen in the memory 108 .

[0037] remove Figure 1 In addition to the examples shown, the above-mentioned terminal device can be a terminal device configured with a target client, which can include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, an MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client can be a video client, an instant messaging client, a browser client, an education client, etc. The above-mentioned network can include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The above-mentioned server can be a single server, or it can be a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0038] Alternatively, as an optional implementation, Figure 2 As shown, the control method of the virtual building can be executed by an electronic device, which can be, for example, Figure 1 The user device or server shown in the figure includes the following steps:

[0039] S202, displaying a first virtual building that has been placed and a second virtual building to be placed;

[0040] S204, in response to the first control operation performed on the second virtual building, displaying the second virtual building placed at the splicing position of the first virtual building, wherein the virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building;

[0041] S206, in response to the second control operation performed on the second virtual building, displaying the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0042] Optionally, in the present embodiment, the above-mentioned control method of virtual buildings can be applied in a virtual game with a building system or building gameplay, in which a plurality of selectable virtual buildings are provided for players to freely arrange and place by control operations, so as to combine the virtual buildings into various shaped buildings.

[0043] Specifically, when the player selects and places the first virtual building, the virtual game clearly displays the position and state of the building. Subsequently, when the player selects the second virtual building to be placed and performs the first control operation, the virtual game can intelligently calculate the optimal splicing position between the second virtual building and the first virtual building, and immediately display the effect after placement. In this process, the virtual game automatically establishes the splicing relationship between the two virtual buildings to ensure that they can be stably connected together.

[0044] More importantly, when the player wants to further adjust the position or orientation of the second virtual building, they can perform the second control operation. At this time, the virtual game allows the second virtual building to rotate while maintaining the splicing relationship with the first virtual building. This function greatly increases the freedom of the player, allowing them to flexibly adjust the direction and angle of the building according to their own creativity and needs, creating a more rich and unique building layout.

[0045] Through the above-mentioned control method of virtual buildings, the virtual game not only retains the accuracy and stability of traditional building gameplay, but also provides players with more creativity and freedom by introducing flexible rotation operations.

[0046] Optionally, in the present embodiment, the splicing position can refer to the position at which two or more virtual buildings or model components can be stably connected together during the splicing process of virtual buildings or models. This position can be determined based on pre-designed interfaces, notches, connection points or suction points to ensure that virtual buildings or model components can form a whole after splicing and maintain the stability and integrity of the structure.

[0047] Specifically, in a virtual reality game or application, when a player attempts to place a virtual building or component on another, the virtual reality game or application detects and identifies possible splicing positions. These positions can be displayed in the game interface using highlights, indicators or other visual aids to help players accurately place buildings or components.

[0048] Once the player places the building or component in the correct snapping position, the virtual reality game or application can ensure a stable connection between the two through some mechanism such as suction, locking, or automatic alignment. In this way, the player can continue to add more buildings or components on this basis, thereby constructing a more complex and complete virtual structure or scene.

[0049] Specifically, through the response mechanism of the first control operation, the player can easily place the second virtual building in the snapping position of the first virtual building and ensure a stable snapping relationship between the two, improving the control efficiency of virtual buildings.

[0050] Further, for example, in a virtual Lego building game, the player has already built a base block (first virtual building) and now wants to add a decorative roof block (second virtual building) on top. When the player places the roof block in the snapping position of the base block through dragging, clicking, or other operation methods (first control operation), the game will immediately respond by displaying the roof block in the correct snapping position of the base block and ensuring a stable connection between the two.

[0051] Optionally, in the present embodiment, the snapping relationship can refer to a connection or combination relationship established between two or more virtual objects (such as buildings, model components, etc.) in a virtual environment. This relationship ensures that these objects can be stably connected together in a predetermined manner to form a complete structure or model.

[0052] In addition, the snapping relationship can be established based on some pre-set rules and conditions. These rules and conditions may involve the shape, size, interface design, and other physical characteristics of the objects. For example, in a virtual building game, two building models may have matching interfaces that the virtual building game automatically recognizes and establishes a snapping relationship when they are close, allowing the two buildings to be tightly connected together.

[0053] Optionally, in the present embodiment, in response to the second control operation, the second virtual building will perform a circular motion around its own or some other center point or axis, thereby changing its orientation or direction, but the snapping relationship with the first virtual building or its position in the virtual space will not change during this process.

[0054] Specifically, by implementing the rotation function of the second virtual building in response to the second control operation, the player can freely adjust the orientation and angle of the building without breaking the splicing relationship between buildings. This not only increases the player's control over the building layout, but also makes the virtual building scene more diverse and dynamic. Players can flexibly adjust the direction of the building according to their own aesthetic and design concept, thereby creating a more unique and attractive virtual building landscape. At the same time, this function also enhances the interactivity and playability of the game, allowing players to more deeply participate in the design and construction process of virtual buildings.

[0055] For further illustration, for example, in a virtual city planning game, the player has placed a road module (first virtual building) in the game world and connected a street lamp module (second virtual building). Now, the player wants to adjust the direction of the street lamp to face a main road. By performing the second control operation (such as dragging the rotation icon on the street lamp or using a specific rotation shortcut key), the street lamp will rotate while maintaining the connection with the road module until the player is satisfied with the direction.

[0056] It should be noted that the embodiment first displays the first virtual building that has been placed and the second virtual building to be placed. Then, when the player performs the first control operation on the second virtual building, the second virtual building is placed at the splicing position of the first virtual building, and a splicing relationship is established between the two. Then, when the player performs the second control operation on the second virtual building, the second virtual building rotates while maintaining the splicing relationship with the first virtual building.

[0057] For further illustration, for example, as shown in (a) of FIG. 3, Figure 3 , the first virtual building 302 that has been placed and the second virtual building 304 to be placed are displayed; in response to the first control operation performed on the second virtual building 304, the second virtual building 304 placed at the splicing position of the first virtual building 302 is displayed, as shown in (b) of FIG. 3; Figure 3 ; further in response to the second control operation performed on the second virtual building 304, the second virtual building 304 rotates while maintaining the splicing relationship between the second virtual building 304 and the first virtual building 302, as shown in (c) of FIG. 3, where the dashed line indicates that rotation occurs; and the second virtual building 304 after rotation, although the orientation and angle change, still maintains the splicing relationship with the first virtual building 302, as shown in (d) of FIG. 3. Figure 3 Figure 3

[0058] ​​By the embodiments provided in the present application, a first virtual building that has been placed and a second virtual building to be placed are displayed; in response to a first control operation performed on the second virtual building, the second virtual building placed at a splicing position of the first virtual building is displayed, wherein the virtual building placed at the splicing position is arranged to have a splicing relationship with the first virtual building; and in response to a second control operation performed on the second virtual building, the second virtual building is displayed to rotate while the splicing relationship between the second virtual building and the first virtual building is maintained. When the first control operation is performed, the second virtual building is automatically placed at the splicing position of the first virtual building, ensuring a stable splicing relationship between the two, reducing trial and error time, and thus improving the control efficiency of the virtual building. When the user wants to further adjust, the second virtual building is allowed to rotate freely while the splicing relationship between the two buildings is maintained, increasing the control freedom of the virtual building, and thus achieving the purpose of ensuring stable splicing of the buildings and providing more self-defined space for the user, thereby realizing the technical effect of balancing the control efficiency and freedom of the virtual building.

[0059] As an optional solution, the second virtual building is displayed to rotate, including:

[0060] The second virtual building is displayed to rotate with a first intersection line at a connection position of the first virtual building and the second virtual building as a rotation axis of the second virtual building, wherein the first intersection line is located at the splicing position.

[0061] Optionally, in the present embodiment, the first intersection line can refer to a line formed by the contact part of the first virtual building and the second virtual building when splicing or connecting. This line is the contact boundary of the two building models in the virtual space, and can be understood as the joint or contact line of the splicing position.

[0062] When the first virtual building and the second virtual building are spliced or connected, their contact part can form a region instead of a simple line. This region represents the contact surface or connection surface between the two buildings. In this region, there can be multiple intersection lines, and the first intersection line can specifically refer to a specific line used to define the rotation axis.

[0063] Optionally, in the present embodiment, the rotation axis of the second virtual building can refer to the center line or axis line around which the second virtual building rotates when the rotation operation is performed. For example, when the rotation axis is the first intersection line, the second virtual building rotates around the first intersection line. This means that when the user triggers the rotation command, the second virtual building will perform circular motion along the first intersection line, thereby changing its facing direction or angle while maintaining the splicing relationship with the first virtual building.

[0064] It should be noted that the second virtual building can rotate around the first intersection line at the connection with the first virtual building as the central axis. This rotation ensures that the second virtual building always maintains the splicing relationship with the first virtual building during rotation.

[0065] Further, for example, it is assumed that two building models are placed in a virtual architectural design software, one is the first virtual building (such as a built house) that has been placed, and the other is the second virtual building (such as a balcony to be built) that is intended to be placed. When trying to splice the balcony to one side of the house, the balcony will rotate around the line in contact with the house (i.e., the first intersection line) in order to better match the structure of the house.

[0066] Through the embodiments provided in the present application, when the user triggers the rotation operation of the second virtual building, the second virtual building is displayed to rotate smoothly around the first intersection line as the rotation axis. During this process, the user can clearly see that the second virtual building gradually changes its orientation and direction while maintaining the splicing relationship with the first virtual building. This visual effect not only improves the user's operation experience, but also makes the construction of the virtual environment more intuitive and convenient.

[0067] As an optional solution, after displaying the second virtual building to rotate around the first intersection line at the connection between the first virtual building and the second virtual building as the rotation axis, the method further includes:

[0068] In response to a third control operation performed on the second virtual building, the second virtual building is displayed to rotate around a second intersection line at the connection between the first virtual building and the second virtual building as the rotation axis, wherein the second intersection line is located at the splicing position.

[0069] Optionally, in the present embodiment, the second intersection line can refer to another line that can serve as a rotation axis at the splicing position of the first virtual building and the second virtual building in addition to the first intersection line. The user can select this line as a new rotation axis through a third control operation to make the second virtual building perform further rotation adjustment.

[0070] It should be noted that after the second virtual building has rotated around the first intersection line as the rotation axis, the present embodiment further provides an additional function: in response to a third control operation performed by the user on the second virtual building, the second virtual building can rotate around a second intersection line at the connection between the first virtual building and the second virtual building as a new rotation axis. The second intersection line is also a line at the splicing position of the two buildings, but it is different from the first intersection line.

[0071] Further, for example, it is assumed that a staircase model (the second virtual building) has been spliced into the entrance of a room model (the first virtual building) in a 3D modeling software. First, the staircase is rotated about the contact line between the staircase and the floor of the room (the first intersection line) so as to align with the entrance of the room. However, it is found that the handrail of the staircase needs to be fine-tuned, and thus the contact line between the handrail of the staircase and the wall of the room (the second intersection line) is selected as a new rotation axis, and the staircase is further rotated and adjusted.

[0072] Through the embodiments provided in the present application, when the user performs the third control operation, the system displays the effect of the second virtual building rotating about the new rotation axis (the second intersection line). In this process, the user can clearly see that the second virtual building changes its orientation and angle in a new way while maintaining the splicing relationship with the first virtual building. This flexible rotation function not only improves the user's operation experience, but also makes the construction and adjustment of the virtual environment more accurate and efficient.

[0073] As an optional solution, displaying the rotation of the second virtual building comprises:

[0074] S1-1, in the case where the second control operation is a clockwise rotation control operation, displaying the second virtual building rotating clockwise;

[0075] S1-2, in the case where the second control operation is a counterclockwise rotation control operation, displaying the second virtual building rotating counterclockwise.

[0076] Optionally, in the present embodiment, clockwise rotation can refer to the second virtual building rotating about its rotation axis in the direction in which the clock hand moves (from left to right). Counterclockwise rotation can refer to the second virtual building also rotating about its rotation axis, but in the direction opposite to the movement of the clock hand (from right to left).

[0077] It should be noted that according to the difference of the second control operation (clockwise or counterclockwise), the second virtual building will rotate in the corresponding direction (clockwise or counterclockwise), and the effect of this rotation will be displayed in real time on the screen.

[0078] Further, for example, in a 3D modeling software, a user attempts to adjust the direction of a virtual table lamp (the second virtual building). When the user performs a clockwise rotation control operation, the table lamp will slowly rotate in the clockwise direction. Conversely, if the user selects a counterclockwise rotation control operation, the table lamp will rotate in the counterclockwise direction.

[0079] According to the embodiments provided in the present application, the second virtual building is rendered and displayed on the screen in real time to rotate in the corresponding direction according to the second control operation (clockwise or counterclockwise) selected by the user. This visual feedback not only enhances the user's operation experience, but also enables the user to accurately control and adjust the direction of the virtual building to achieve the desired visual effect or design goal.

[0080] As an optional solution, before displaying the second virtual building rotating clockwise, the method further comprises: displaying a clockwise rotation control;

[0081] Displaying the second virtual building rotating clockwise comprises at least one of the following:

[0082] S2-1, in response to performing a first single control operation on the clockwise rotation control, displaying the second virtual building rotating clockwise by a first preset angle;

[0083] S2-2, in response to performing a first long press control operation on the clockwise rotation control, displaying the second virtual building rotating clockwise for a first duration, wherein the first duration is positively correlated with the execution duration of the first long press control operation;

[0084] Before displaying the second virtual building rotating clockwise, the method further comprises: displaying a counterclockwise rotation control;

[0085] Displaying the second virtual building rotating counterclockwise comprises at least one of the following:

[0086] S3-1, in response to performing a second single control operation on the counterclockwise rotation control, displaying the second virtual building rotating counterclockwise by a second preset angle;

[0087] S3-2, in response to performing a second long press control operation on the counterclockwise rotation control, displaying the second virtual building rotating counterclockwise for a second duration, wherein the second duration is positively correlated with the execution duration of the second long press control operation.

[0088] Optionally, in the present embodiment, the clockwise rotation control and the counterclockwise rotation control can be elements on the user interface, and the user can control the rotation direction of the second virtual building by interacting with these controls.

[0089] Optionally, in the present embodiment, the first single control operation and the second single control operation can respectively refer to a one-time, short operation, such as clicking, of the user on the clockwise and counterclockwise rotation controls.

[0090] Optionally, in the embodiment, the first long-press control operation and the second long-press control operation can respectively refer to a user's continuous pressing operation on the clockwise rotation control and the counterclockwise rotation control.

[0091] Optionally, in the embodiment, the first preset angle and the second preset angle can be preset by the system, and can be an angle of rotation of the second virtual building after a single control operation.

[0092] Optionally, in the embodiment, the first duration and the second duration can respectively refer to a duration of the continuous clockwise rotation and the continuous counterclockwise rotation of the second virtual building under the long-press control operation, and the duration is positively correlated with a duration of the user's pressing operation on the control.

[0093] It should be noted that the embodiment describes a specific method of controlling the clockwise rotation and the counterclockwise rotation of the second virtual building and display of related controls. First, before displaying the clockwise rotation of the second virtual building, a clockwise rotation control is displayed, and the user can control the rotation of the building by operating the control. Similarly, a counterclockwise rotation control is also displayed for controlling the counterclockwise rotation. According to the user's operation mode (single control operation or long-press control operation), the second virtual building rotates by a preset angle or for a preset duration.

[0094] Further, for example, in a home design software, a user wants to fine-tune the orientation of a virtual sofa. The interface provides clockwise and counterclockwise rotation controls. When the user clicks the clockwise rotation control, the sofa rotates clockwise by a preset small angle (e.g., 5 degrees); when the user long-presses the control, the sofa continuously rotates clockwise until the user releases the control. Similarly, operation of the counterclockwise rotation control causes the sofa to rotate counterclockwise.

[0095] According to the embodiments provided in the present application, according to the user's operation on the clockwise or counterclockwise rotation control, the rotation effect of the second virtual building is displayed in an intuitive and rapid manner. Single operation brings about accurate and small-angle rotation changes, and long-press operation realizes continuous and smooth rotation animation. This interactive design improves the convenience and accuracy of user operation, and also enhances the interactivity and dynamics of the virtual environment.

[0096] As an optional solution, after displaying the placed first virtual building and the to-be-placed second virtual building, the method further includes:

[0097] S4-1, in response to a fourth control operation performed on the second virtual building, display the second virtual building placed at the splicing position and at a preset angle, wherein the preset angle is a placement angle corresponding to the fourth control operation, and the second virtual building at the preset angle is set to be prohibited from rotating;

[0098] S4-2, in response to an authority opening operation performed on the second virtual building at the preset angle, set the second virtual building at the preset angle to be allowed to rotate.

[0099] Optionally, in the embodiment, the fourth control operation can be a specific operation performed by the user to place the second virtual building at the splicing position and set a preset placement angle. The preset angle can refer to a specific placement angle set for the second virtual building when the fourth control operation is performed. The authority opening operation can be another operation performed by the user to remove the rotation restriction of the second virtual building so that it can be rotated.

[0100] It should be noted that when the user performs the fourth control operation, the second virtual building is placed at the splicing position and displayed at a preset angle, which corresponds to the fourth control operation, wherein the second virtual building is set to be prohibited from rotating. Subsequently, if the user performs the authority opening operation, the rotation restriction is removed to allow the user to rotate the second virtual building.

[0101] Further, for example, in a home layout software, the user can want to place a virtual TV cabinet (second virtual building) in an existing living room layout (next to the first virtual building). By performing the fourth control operation, the TV cabinet is placed at a specific angle, for example, facing the sofa. At this time, the TV cabinet is locked and cannot be rotated at will. If the user later feels that the angle of the TV cabinet needs to be adjusted, they can perform an authority opening operation, and then freely rotate the TV cabinet to the desired angle.

[0102] Through the embodiments provided in the present application, after the user performs the fourth control operation, the second virtual building is stably placed at the splicing position at a preset angle, and at this time it is not rotatable. This visual effect gives the user a sense of stability and order. When the user performs the authority opening operation, the rotation restriction of the second virtual building is removed, and the user can freely rotate it to achieve the best visual effect or meet specific design requirements. This interactive way is intuitive and efficient, greatly improving the user experience.

[0103] As an optional solution, after setting the second virtual building of the preset angle to allow rotation in response to the permission opening operation performed on the second virtual building of the preset angle, the method further comprises:

[0104] S5-1, in response to the second control operation performed on the second virtual building of the preset angle, displaying the second virtual building of the preset angle rotating to the second virtual building of the target angle while maintaining the splicing relationship between the second virtual building and the first virtual building;

[0105] S5-2, in response to the angle saving operation performed on the second virtual building of the target angle, updating the placement angle corresponding to the fourth control operation to the target angle.

[0106] Optionally, in the embodiment, the target angle can refer to an angle that the user sets through the second control operation and hopes the second virtual building to rotate to. The angle saving operation can be an operation performed by the user to save the current rotation angle of the second virtual building as a new placement angle.

[0107] It should be noted that when the user performs the second control operation, the second virtual building will rotate from the preset angle to the target angle set by the user while maintaining the splicing relationship with the first virtual building. Then, when the user performs the angle saving operation on the second virtual building of the target angle, the placement angle corresponding to the fourth control operation is updated to the new target angle.

[0108] Further, for example, in a home arrangement software, after the user removes the rotation restriction of the TV cabinet (second virtual building), the user rotates it from the initial preset angle to a more suitable target angle for watching TV through the second control operation. Satisfied with the current angle, the user performs the angle saving operation, and the home arrangement software updates the default placement angle of the TV cabinet to the new target angle. Next time the user places the TV cabinet, the home arrangement software will appear by default at the new target angle.

[0109] Through the embodiments provided in the present application, after the user performs the second control operation, the user can intuitively see that the second virtual building is smoothly rotated to the target angle set by the user while maintaining the splicing relationship with the first virtual building. After performing the angle saving operation, the placement angle is seamlessly updated, so that the user can directly obtain the angle setting that meets his preferences when placing the second virtual building in the future. This instant visual feedback and seamless update mechanism significantly improves the user experience.

[0110] As an optional solution, after displaying the placed first virtual building and the second virtual building to be placed, the method further comprises:

[0111] In response to the fifth control operation performed by the virtual character on the second virtual building, the second virtual building is displayed as being placed in the virtual scene and in a free placement state, wherein the virtual building in the free placement state is set to be prohibited from having a splicing relationship, the number of virtual buildings placed by the virtual character and in the free placement state is set to be less than or equal to a first preset threshold, and the number of virtual buildings placed in the virtual scene and in the free placement state is set to be less than or equal to a second preset threshold.

[0112] Optionally, in this embodiment, the fifth control operation can refer to a specific operation performed by the user on the second virtual building through the virtual character, for placing the building in the virtual scene and making it in the free placement state.

[0113] Optionally, in this embodiment, the free placement state can refer to a state of the virtual building in the virtual scene, and the building in this state is prohibited from forming a splicing relationship with other buildings.

[0114] Optionally, in this embodiment, the first preset threshold is used to limit the maximum number of virtual buildings in the free placement state that can be placed by each virtual character in the virtual scene. The second preset threshold is used to limit the maximum number of virtual buildings in the free placement state that can be placed in the entire virtual scene.

[0115] It should be noted that after the user performs the fifth control operation on the second virtual building through the virtual character, the second virtual building is placed in the virtual scene and in the free placement state. The virtual building in this state is prohibited from forming a splicing relationship with other buildings. At the same time, the number of virtual buildings in the free placement state is limited, including the number placed by each virtual character and the total number in the entire virtual scene.

[0116] Further, for example, in a sandbox game, a player (through a virtual character) wants to place an independent house (second virtual building). By performing the fifth control operation, the house is placed in a certain position in the game world and in the free placement state, which means that it will not be automatically connected or form a continuous structure with other buildings. The game also stipulates that each player can only place a limited number of such independent houses in the game, and the total number of such houses in the entire game world is also limited.

[0117] Through the embodiments provided herein, after executing the fifth control operation, the user will see the second virtual building successfully placed in the virtual scene, in a freely placed state. Due to the quantity restrictions, users will be more cautious and strategic when choosing where to place buildings. At the same time, these restrictions will also maintain a dynamic equilibrium in the architectural layout of the entire virtual scene. Taking a virtual game scene as an example, this embodiment ensures player freedom in the game, allowing them to freely place buildings, while also maintaining game balance and performance through quantity restrictions.

[0118] As an optional solution, and for ease of understanding, the aforementioned virtual building control method is applied to construction game scenarios. Considering that the core fun of construction games often lies in their freedom, players can freely place and combine buildings, unleashing their creativity. Traditional control methods, however, impose numerous restrictions on players' construction experience. For example, they can only build in specific scenes and locations, not across the entire scene or map. This limits players' creativity and freedom, while also significantly wasting map art resources.

[0119] Furthermore, under traditional control methods, players' placement of building objects (virtual buildings) depends on the position of the previous object, and can only be connected at specific angles and in specific ways. This makes the arrangement and combination of objects very fixed, and further restricts players' experience of building gameplay. However, this embodiment decouples the object adsorption logic, allowing players to freely place objects according to their own ideas and freely rotate objects in both clockwise and counterclockwise directions, greatly increasing the freedom of building gameplay.

[0120] In addition, when players experience construction gameplay in the entire scene and map, it often puts greater pressure on hardware performance. This embodiment achieves a better balance between experience freedom and game performance by limiting the number of individually customized objects.

[0121] Optionally, in this embodiment, there is no restriction on the scene and location of the construction, and players can freely choose the location to build. Figure 4 As shown in (a), the player built in scene A; and if Figure 4 As shown in (b) in FIG, the player has built in scene B. That is, in this embodiment, the player is allowed to build at any location in any scene without being restricted.

[0122] Optionally, in this embodiment, the building objects support free rotation in both clockwise and counterclockwise directions. Players only need to click on an object they want to place in the building object bar, and then click Figure 5The clockwise / anticlockwise rotation button on the right side of the screen can rotate the object, and the object will continue to rotate when the rotation button is pressed and held, the object can be placed by clicking the check button, and the object can be deleted by clicking the cross button.

[0123] Optionally, in this embodiment, the quantity limit of each building object is customized from multiple dimensions, so as to balance the player experience and performance pressure more finely. When the quantity of the building object placed by the player reaches the limit, the building object cannot be placed again, and a prompt information "quantity limit reached" is displayed as shown, and the player is prohibited from placing a new building object. Figure 6

[0124] Optionally, in this embodiment, the process of the adsorption, placement and splicing combination of the building object is as shown in the following figure. Figure 7

[0125] Step S702, start tick frame by frame, start a frame-by-frame time advancing process, in which the state of the game or animation is updated every frame (or every tick). Such update can be collision checking, object moving, score calculation, etc.

[0126] Step S704, ray penetration, the penetration range is from the ray machine to nMaxBuildDistance, that is, a ray is emitted from the player's perspective (or a specific point), and the intersection of the ray with the object within the nMaxBuildDistance range is detected.

[0127] Step S706, result list processing, which specifically includes discarding targets with a distance from the character less than nMinBuildDistance, discarding targets after the first entity, sorting targets with a distance from nHitLocationMaxOffset from near to far, and targets with a structure piece in an adsorption relationship.

[0128] Step S708, judge whether the list is empty, if yes, the adsorption fails, and the object is suspended, if not, the first target is popped up, and step S710 is further executed.

[0129] Step S710, judge whether the target matches the structure piece, if not, continue to judge whether the list is empty, if yes, the adsorption is successful, and step S712 is further executed.

[0130] In step S710, if the target is a virtual body, it is judged whether the target has an adsorption relationship with the structure piece, if yes, it is judged whether the current adsorption position has a support relationship, if not, it is judged whether the parent body of the virtual body has an adsorption relationship with the structure piece.

[0131] ​​Further, if the current adsorption position support relationship is legal, it is determined whether there is a collision after adsorption, if yes, green adsorption is triggered, if not, it is consistent with the case that the current adsorption position support relationship is illegal, and red adsorption is triggered;

[0132] For the case that the virtual body and the structural member exist adsorption relationship, the target is determined to be a solid (structural body), and the slot is sorted according to the intersection and the direction of the ray. The current structural member direction is used to traverse the target slot, and the adsorption information of the first slot is recorded;

[0133] Further determine whether the traversal encounters the result of green adsorption, if not, remove the current structural member direction to traverse all target slots, if yes, trigger green adsorption;

[0134] After removing the current structural member direction to traverse all target slots, it is determined whether the traversal encounters the result of green adsorption, if yes, green adsorption is triggered, if not, it is further determined whether the first slot result is red adsorption, if yes, red adsorption is triggered, if not, it is determined that the adsorption fails.

[0135] Step S712, special case correction, specifically, it is determined whether the current matching object is corrected, if yes, the correction is ended, if not, it is determined whether the correction rule is met;

[0136] If the correction rule is not met, the correction is ended, if the correction rule is met, it is determined whether the correction direction allows green adsorption, if yes, the correction is performed, if not, the correction is ended.

[0137] Step S714, adsorption is ended.

[0138] Optionally, in the embodiment, as shown in Figure 8 When the player selects an object, a ray is shot from the camera to the position aimed at by the crosshair. Based on the ray, it is detected whether the ray contacts any ground or other model. If there is a ground or other model, a build object is created at this position. If there is no ground or model, a build object is created at the end of the ray (20 meters away). In this way, it can be determined whether the build object is in a buildable state. The player can change the position of the object by changing the position aimed at by the crosshair.

[0139] If there is a build object at this time, it is detected whether there is a buildable build object in the range around the ray based on the ray. If there is, the player is automatically adsorbed to the existing object by default. The player can choose to cancel the automatic adsorption function. If the automatic adsorption function is canceled, the player will not be automatically adsorbed to the existing object. Different objects can apply this logic.

[0140] Optionally, in this embodiment, during the process of building and placing the object, the player can freely change the placement angle and building position of the object by rotating the object clockwise and counterclockwise through the rotation button on the right side. Finally, the player can click the green check button on the right side to finally build and place the object.

[0141] Optionally, in this embodiment, the field of view of the building is synchronized in small objects, and each synchronization brief contains a list of globally unique identifiers (GUIDs) of the objects. After synchronization, the data class building block data (UBuild Piece Data) is created, the protocol data is saved, the data streaming callback is registered, the streaming callback dynamically creates the entity (APieceEntity) that is seen and interacted with in the game, the blueprint class corresponding to all objects in the game is saved, each type of object corresponds to a blueprint, and the blueprint uses components to modify the functions of the objects.

[0142] The adsorption, interaction, and special performance of the objects in the building can be achieved by corresponding components, which can be freely assembled in the blueprint. The building component alignment component (Build Piece Snap Component) describes an adsorption point, and the adsorption points between two objects will interact.

[0143] Through the embodiments provided in this application, the building system of the open world is opened up, realizing the free building of the player in the whole scene and the whole map, greatly improving the freedom and creative play of building. By decoupling the object adsorption logic, the player can place objects at will and rotate them freely in both directions, enriching the diversity of building gameplay. At the same time, by individually customizing the quantity limit of each object, the scheme not only guarantees the game performance, but also maintains the freedom of the player's experience. These innovative functions together create a more free, creative, and balanced building environment for the player, not only improving the utilization rate of map resources, but also greatly improving the player's game pleasure and satisfaction. In addition, the first direction rotation function realized by technical means can greatly amplify the player's building creativity, allowing the construction of various strange-shaped buildings, and even using building objects to draw pictures, bringing more possibilities and interestingness to the game.

[0144] It can be understood that in the specific embodiments of the present application, user information and other related data are involved. When the above embodiments of the present application are applied to specific products or technologies, the user's permission or consent needs to be obtained, and the collection, use, and processing of related data need to comply with relevant laws, regulations, and standards of relevant countries and regions.

[0145] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a combination of a series of actions, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary for the present application.

[0146] According to another aspect of the embodiments of the present application, a control device of a virtual building for implementing the control method of the virtual building is further provided. As shown in the figure, the device comprises: Figure 9

[0147] A first display unit 902 is configured to display a first virtual building that has been placed and a second virtual building to be placed.

[0148] A second display unit 904 is configured to display the second virtual building placed at a splicing position of the first virtual building in response to a first control operation performed on the second virtual building, wherein the virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building.

[0149] A third display unit 906 is configured to display the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building in response to a second control operation performed on the second virtual building.

[0150] The specific embodiments can refer to the examples shown in the control method of the virtual building described above, which will not be described here in this example.

[0151] As an optional solution, the third display unit 906 comprises:

[0152] A first display module is configured to display the second virtual building rotating with a first intersection line at the connection between the first virtual building and the second virtual building as the rotation axis of the second virtual building, wherein the first intersection line is located at the splicing position.

[0153] The specific embodiments can refer to the examples shown in the control method of the virtual building described above, which will not be described here in this example.

[0154] As an optional solution, the device further comprises:

[0155] ​The second display module is configured to, after the first virtual building and the second virtual building are displayed to be connected at the first intersection line, and the first virtual building and the second virtual building are rotated around the first intersection line as the rotation axis, display the second virtual building to be rotated around a second intersection line as the rotation axis in response to a third control operation performed on the second virtual building, wherein the second intersection line is located at the splicing position.

[0156] The embodiments can refer to the examples shown in the control method of the virtual building, which will not be repeated here.

[0157] As an optional solution, the third display unit 906 includes:

[0158] The third display module is configured to, in a case where the second control operation is a clockwise rotation control operation, display the second virtual building to rotate clockwise.

[0159] The fourth display module is configured to, in a case where the second control operation is a counterclockwise rotation control operation, display the second virtual building to rotate counterclockwise.

[0160] The embodiments can refer to the examples shown in the control method of the virtual building, which will not be repeated here.

[0161] As an optional solution, the device further includes a fifth display module configured to, before displaying the second virtual building to rotate clockwise, display a clockwise rotation control.

[0162] The fifth display module includes at least one of:

[0163] The first display submodule is configured to, in response to a first single control operation performed on the clockwise rotation control, display the second virtual building to rotate clockwise by a first preset angle.

[0164] The second display submodule is configured to, in response to a first long press control operation performed on the clockwise rotation control, display the second virtual building to rotate clockwise for a first duration, wherein the first duration is in a positive correlation with the execution duration of the first long press control operation.

[0165] The device further includes a sixth display module configured to, before displaying the second virtual building to rotate clockwise, display a counterclockwise rotation control.

[0166] The sixth display module includes at least one of:

[0167] The third display submodule is configured to, in response to a second single control operation performed on the counterclockwise rotation control, display the second virtual building to rotate counterclockwise by a second preset angle.

[0168] The fourth display submodule is configured to display a second virtual building performing counterclockwise rotation for a second duration in response to a second long-press control operation performed on the counterclockwise rotation control, wherein the second duration is in positive correlation with a duration of the second long-press control operation.

[0169] The specific embodiments can refer to the examples shown in the virtual building control method described above, which will not be described herein again in this example.

[0170] As an optional solution, the apparatus further includes:

[0171] The fourth display unit is configured to display the second virtual building placed at the splicing position and having the preset angle in response to a fourth control operation performed on the second virtual building after the first virtual building and the second virtual building are displayed, wherein the preset angle is a placement angle corresponding to the fourth control operation, and the second virtual building having the preset angle is set to be prohibited from rotating.

[0172] The setting unit is configured to set the second virtual building having the preset angle to be allowed to rotate in response to an authority opening operation performed on the second virtual building having the preset angle after the first virtual building and the second virtual building are displayed.

[0173] The specific embodiments can refer to the examples shown in the virtual building control method described above, which will not be described herein again in this example.

[0174] As an optional solution, the apparatus further includes:

[0175] The fifth display unit is configured to display the second virtual building having the target angle in response to a second control operation performed on the second virtual building having the preset angle after the second virtual building having the preset angle is set to be allowed to rotate in response to the authority opening operation, and display the second virtual building having the target angle while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0176] The updating unit is configured to update the placement angle corresponding to the fourth control operation to the target angle in response to an angle saving operation performed on the second virtual building having the target angle after the second virtual building having the preset angle is set to be allowed to rotate in response to the authority opening operation.

[0177] The specific embodiments can refer to the examples shown in the virtual building control method described above, which will not be described herein again in this example.

[0178] As an optional solution, the apparatus further includes:

[0179] The sixth display unit is configured to display the second virtual building that has been placed in the virtual scene and is in a free placement state in response to a fifth control operation performed by the virtual character on the second virtual building after displaying the first virtual building that has been placed and the second virtual building to be placed, wherein the virtual building in the free placement state is set to be prohibited from having a splicing relationship, the number of virtual buildings in the free placement state that have been placed by the virtual character is set to be less than or equal to a first preset threshold, and the number of virtual buildings in the free placement state that have been placed in the virtual scene is set to be less than or equal to a second preset threshold.

[0180] The specific embodiments can refer to the examples shown in the above-mentioned virtual building control method, and the examples will not be described here again.

[0181] According to another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned virtual building control method is also provided, which can be but is not limited to the user equipment 102 or the server 112 shown in Figure 1 The embodiments take the user equipment 102 as an example to illustrate that the electronic device further includes a memory 1002 and a processor 1004, the memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above-mentioned method embodiments through the computer program. Figure 10

[0182] Optionally, in the embodiments, the above-mentioned electronic device can be located in at least one network device of a plurality of network devices of a computer network.

[0183] Optionally, in the embodiments, the above-mentioned processor can be configured to execute the following steps through the computer program:

[0184] S1, display the first virtual building that has been placed and the second virtual building to be placed;

[0185] S2, in response to a first control operation performed on the second virtual building, display the second virtual building placed at a splicing position of the first virtual building, wherein the virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building;

[0186] S3, in response to a second control operation performed on the second virtual building, display the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0187] Optionally, those skilled in the art can understand that the structure shown in Figure 10 is only schematic, Figure 10 ​It does not limit the structure of the electronic device described above. For example, the electronic device can further include more or less components (such as a network interface, etc.) than those shown in FIG. 10, or have a different configuration from that shown in FIG. 10. Figure 10 Figure 10

[0188] The memory 1002 can be used to store software programs and modules, such as program instructions / modules corresponding to the control method and device of the virtual building in the embodiments of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implements the control method of the virtual building described above. The memory 1002 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 1002 can further include a memory remotely arranged with respect to the processor 1004, which can be connected to the electronic device through a network. Examples of the network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. Specifically, the memory 1002 can be used to store, but is not limited to, information such as the first virtual building, the second virtual building, and the splicing relationship. As an example, as shown in FIG. 9, the memory 1002 can include, but is not limited to, the first display unit 902, the second display unit 904, and the third display unit 906 in the control device of the virtual building described above. In addition, other module units in the control device of the virtual building described above can also be included, but are not limited to, which will not be described in detail in this example. Figure 10

[0189] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the network can include wired networks and wireless networks. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.

[0190] In addition, the electronic device further includes a display 1008 for displaying information such as the first virtual building, the second virtual building, and the splicing relationship, and a connection bus 1010 for connecting various module components in the electronic device.

[0191] ​​​In other embodiments, the user equipment or the server described above can be a node in a distributed system, wherein the distributed system can be a blockchain system, which can be a distributed system formed by the plurality of nodes connected through network communication. Wherein, the nodes can form a peer-to-peer network, and any form of computing device, such as a server, a user equipment, and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network.

[0192] According to an aspect of the present application, a computer program product is provided, which includes computer programs / instructions containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a detachable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0193] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0194] It should be noted that the computer system of the electronic device is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present application.

[0195] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or programs loaded from a storage part to a random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory, and the random access memory are connected to each other through a bus. An input / output interface (I / O interface) is also connected to the bus.

[0196] The following components are connected to the input / output interface: an input section including a keyboard, a mouse, etc.; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage section including a hard disk, etc.; and a communication section including a network interface card such as a Local Area Network card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as necessary. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive as necessary, so that a computer program read out from the removable medium is installed in the storage section as necessary.

[0197] In particular, according to embodiments of the present application, the processes described in the various method flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods illustrated in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section, and / or installed from a removable medium. When the computer program is executed by the central processing unit, the various functions defined in the system of the present application are performed.

[0198] According to an aspect of the present application, a computer readable storage medium is provided, from which a processor of a computer device reads computer instructions, the processor executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described above.

[0199] Optionally, in the present embodiment, the computer readable storage medium described above can be configured to store a computer program for executing the following steps:

[0200] S1, display a first virtual building that has been placed, and a second virtual building to be placed;

[0201] S2, in response to a first control operation performed on the second virtual building, display the second virtual building placed at a splicing position of the first virtual building, wherein the virtual building placed at the splicing position is configured to have a splicing relationship with the first virtual building;

[0202] S3, in response to a second control operation performed on the second virtual building, display the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

[0203] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an integral module or unit that includes the functions of the module or unit.

[0204] Optionally, in the embodiments, a person of ordinary skill in the art can understand that all or part of the steps of the various methods in the above embodiments can be completed by instructing the hardware related to the electronic device through a program, and the program can be stored in a computer readable storage medium, and the storage medium can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0205] The serial numbers of the embodiments of the present application described above are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0206] The integrated units in the above embodiments, if implemented in the form of software function units and sold or used as independent products, can be stored in the above computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the embodiments of the present application.

[0207] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0208] In the several embodiments provided by the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Of course, the device embodiment described above is only illustrative, and for example, the division of units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutual parts can be indirect coupling or communication connection through some interfaces, units or modules, and can be electrical or other forms.

[0209] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0210] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0211] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled persons in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.

Claims

1. A control method of a virtual building, characterized by, The method comprises: displaying a first virtual building that has been placed, and a second virtual building to be placed; in response to a first control operation performed on the second virtual building, displaying the second virtual building placed at a splicing position of the first virtual building, wherein the virtual building placed at the splicing position is arranged to have a splicing relationship with the first virtual building; in response to a second control operation performed on the second virtual building, displaying the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

2. The method of claim 1, wherein, The displaying of the second virtual building rotating comprises: displaying the second virtual building rotating with a first intersection line at which the first virtual building and the second virtual building are connected as a rotation axis of the second virtual building, wherein the first intersection line is located at the splicing position.

3. The method of claim 2, wherein, After the displaying of the second virtual building rotating with the first intersection line as the rotation axis, the method further comprises: in response to a third control operation performed on the second virtual building, displaying the second virtual building rotating with a second intersection line at which the first virtual building and the second virtual building are connected as the rotation axis, wherein the second intersection line is located at the splicing position.

4. The method of claim 1, wherein, The displaying of the second virtual building rotating comprises: in a case where the second control operation is a clockwise rotation control operation, displaying the second virtual building rotating clockwise; in a case where the second control operation is a counterclockwise rotation control operation, displaying the second virtual building rotating counterclockwise.

5. The method of claim 4, wherein, before the displaying of the second virtual building rotating clockwise, the method further comprises: displaying a clockwise rotation control; the displaying of the second virtual building rotating clockwise comprises at least one of: in response to a first single control operation performed on the clockwise rotation control, displaying the second virtual building rotating clockwise by a first preset angle; in response to a first long press control operation performed on the clockwise rotation control, displaying the second virtual building rotating clockwise for a first duration, wherein the first duration is in a positive correlation with an execution duration of the first long press control operation; before the displaying of the second virtual building rotating clockwise, the method further comprises: displaying a counterclockwise rotation control; the displaying of the second virtual building rotating counterclockwise comprises at least one of: in response to a second single control operation performed on the counterclockwise rotation control, displaying the second virtual building rotating counterclockwise by a second preset angle; In response to a second long press control operation performed on the counterclockwise rotation control, display a second virtual building performing counterclockwise rotation for a second duration, wherein the second duration is in positive correlation with a duration of the second long press control operation.

6. The method of claim 1, wherein, After the first virtual building that has been placed and the second virtual building that is to be placed are displayed, the method further includes: In response to a fourth control operation performed on the second virtual building, display the second virtual building placed at the splicing position and at a preset angle, wherein the preset angle is a placement angle corresponding to the fourth control operation, and the second virtual building at the preset angle is set to be prohibited from rotating; In response to an authority opening operation performed on the second virtual building at the preset angle, set the second virtual building at the preset angle to be allowed to rotate.

7. The method of claim 6, wherein, After the second virtual building at the preset angle is set to be allowed to rotate in response to the authority opening operation performed on the second virtual building at the preset angle, the method further includes: In response to the second control operation performed on the second virtual building at the preset angle, display the second virtual building at the preset angle rotating to a second virtual building at a target angle while maintaining the splicing relationship between the second virtual building and the first virtual building; In response to an angle saving operation performed on the second virtual building at the target angle, update the placement angle corresponding to the fourth control operation to the target angle.

8. The method according to any one of claims 1 to 7, characterized in that, After the first virtual building that has been placed and the second virtual building that is to be placed are displayed, the method further includes: In response to a fifth control operation performed on the second virtual building by a virtual character, display the second virtual building that has been placed in a virtual scene and is in a free placement state, wherein the virtual building in the free placement state is set to be prohibited from having the splicing relationship, a number of virtual buildings that have been placed by the virtual character and are in the free placement state is set to be less than or equal to a first preset threshold, and a number of virtual buildings that have been placed in the virtual scene and are in the free placement state is set to be less than or equal to a second preset threshold.

9. A control device of a virtual building, characterized by, The method includes: a first display unit configured to display a first virtual building that has been placed and a second virtual building that is to be placed; a second display unit configured to, in response to a first control operation performed on the second virtual building, display the second virtual building placed at a splicing position of the first virtual building, wherein a virtual building placed at the splicing position is set to have a splicing relationship with the first virtual building; a third display unit configured to, in response to a second control operation performed on the second virtual building, display the second virtual building rotating while maintaining the splicing relationship between the second virtual building and the first virtual building.

10. A computer readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is run by an electronic device to perform the method described in any one of claims 1 to 8. The computer-readable storage medium includes a stored program, wherein the program is run by an electronic device to perform the method described in any one of claims 1 to 8.

11. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instructions, when executed by the processor, implement the steps of the method recited in any one of claims 1 to 8.

12. An electronic device comprising a memory and a processor, characterized in that The memory stores a computer program, and the processor is configured to execute the method recited in any one of claims 1 to 8 by using the computer program.