Virtual scene editing method and device and electronic equipment

By providing multiple editable planes and target editing plane determination functions in the game, the problem of perspective and position limitations when players build buildings is solved, achieving more refined and specific shape buildings are built, and user experience is improved.

CN120204730APending Publication Date: 2025-06-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510292993.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In the game, due to the limitations of perspective and position, it is difficult for players to build more refined or specific shapes of buildings, resulting in poor user experience and easily reduce the retention rate of the game.

Method used

By providing a virtual scene editing method, multiple editable planes in the editable space are displayed, allowing the user to determine the target editing plane from the multiple planes and fill the target material in the target editing plane and/or its related space in response to a material filling operation.

Benefits of technology

This method facilitates users to perform multi-dimensional scene editing, generates scene editing effects with rich effects, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120204730A_ABST
    Figure CN120204730A_ABST
Patent Text Reader

Abstract

The invention provides a virtual scene editing method and apparatus, and an electronic device. The method comprises the steps of displaying a plurality of editable planes in an editable space; determining a target editing plane from the plurality of editable planes; and in response to the material filling operation, filling the target editing plane and / or the related space of the target editing plane with a target material. According to the mode, the user can conveniently carry out multi-dimensional scene editing, a rich scene editing effect is generated, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of games, and in particular, to a method, an apparatus, and an electronic device for editing a virtual scene. Background Art

[0002] In some games, players can use the materials and virtual items provided by the system to build game scenes, such as laying floors, building walls, and placing furniture in the game scenes. During the building process, due to the limitations of the perspective of the game scene and the standing position of the controlled virtual character controlled by the player, it is difficult for players to build more delicate or specific-shaped buildings, resulting in a poor experience for players and easily reducing the retention rate of the game. Summary of the Invention

[0003] In view of this, the purpose of the present disclosure is to provide a method, an apparatus, and an electronic device for editing a virtual scene, so as to facilitate users to perform multi-dimensional scene editing, generate rich scene editing effects, and improve the user experience.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for editing a virtual scene. A graphical user interface is provided through a terminal device; the graphical user interface displays a virtual scene; the virtual scene includes a preset editable space; the method includes: displaying a plurality of editable planes in the editable space; determining a target editing plane from the plurality of editable planes; and in response to a material filling operation, filling a target material in the target editing plane and / or the related space of the target editing plane.

[0005] In a second aspect, an embodiment of the present disclosure provides an apparatus for editing a virtual scene. A graphical user interface is provided through a terminal device; the graphical user interface displays a virtual scene; the virtual scene includes a preset editable space; the apparatus includes: a multi-plane display module for displaying a plurality of editable planes in the editable space; a target editing plane determination module for determining a target editing plane from the plurality of editable planes; and a material filling module for filling a target material in the target editing plane and / or the related space of the target editing plane in response to a material filling operation.

[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned method for editing a virtual scene.

[0007] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned method for editing a virtual scene.

[0008] The embodiments of the present invention bring the following beneficial effects:

[0009] The above method, device, and electronic device for editing a virtual scene display a plurality of editable planes in an editable space; determine a target editing plane from the plurality of editable planes; and in response to a material filling operation, fill a target material in the target editing plane and / or the related space of the target editing plane. This method facilitates users to perform multi-dimensional scene editing, generates rich scene editing effects, and improves the user experience.

[0010] Other features and advantages of the present disclosure will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present disclosure. The objectives and other advantages of the present disclosure are realized and attained by the structures particularly pointed out in the specification, claims, and drawings.

[0011] To make the above objectives, features, and advantages of the present disclosure more comprehensible, the following preferred embodiments are specifically described in detail in conjunction with the accompanying drawings. Description of the Drawings

[0012] To more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0013] Figure 1 It is a flowchart of a method for editing a virtual scene provided by an embodiment of the present disclosure;

[0014] Figure 2 It is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0015] Figure 3 It is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0016] Figure 4 It is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0017] Figure 5 It is another schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0018] Figure 6 It is a schematic diagram of the structure of an apparatus for editing a virtual scene provided by an embodiment of the present disclosure;

[0019] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Specific Embodiments

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts shall fall within the scope of protection of the present disclosure.

[0021] In the game, after the player enters the construction mode, usually only the foundation and furniture can be placed one by one, and the operation is cumbersome. Due to holding the drawing, the perspective of the controlled virtual character is very limited. Even with the help of a drone, it is only a means of transportation for the controlled virtual character to go up and down the stairs, and it is almost useless in terms of vision.

[0022] Specifically, the current game construction mode has the following disadvantages:

[0023] 1. In the construction gameplay of many current games, there is no function of free batch construction. For example, the foundation of a certain game is 9*12. If the player wants to quickly cover the entire foundation with the floor, it needs to be placed 108 times continuously. Similarly, when the same type of building needs to be laid in a range, the operation amount is cumbersome.

[0024] 2. When advanced construction players want to build a more delicate or specific-shaped building, due to the limitations of the perspective and standing position, even for a single plane, players usually cannot see the entire construction situation, and need to frequently switch between the global-detail perspectives, which increases the operation difficulty and cumbersome degree.

[0025] 3. Currently, there is a lack of operation support in the vertical plane. For example, some games may support the global perspective of the horizontal plane, but do not have the global perspective of the vertical plane. And the switching operation between the horizontal-vertical planes is also very cumbersome.

[0026] Based on this, an editing method, device, and electronic device for a virtual scene provided by the embodiments of the present disclosure can be applied to a virtual scene that can be edited.

[0027] The editing method for the virtual scene in one of the embodiments disclosed in the present invention can run on a local terminal device or a server. When the editing method for the virtual scene runs on the server, this method can be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.

[0028] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the editing method of the virtual scene are complete on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0029] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0030] See also Figure 1 First, a method for editing a virtual scene provided by an embodiment of the present invention is introduced, and a graphical user interface is provided through a terminal device; the graphical user interface displays a virtual scene. Among them, the virtual scene can be a game scene, or a scene that simulates the display world. The virtual scene includes a preset editable space. The above-mentioned editable space usually includes the ground in the virtual scene as a plane at its edge. The editable space is usually a cube or a cuboid, and can also be a three-dimensional space of other shapes, which is not limited here.

[0031] The method comprises the following steps:

[0032] Step S102, displaying multiple editable planes in the editable space.

[0033] There are usually multiple editable planes in the editable space. The editable planes can be located at the edge of the editable space. For example, when the editable space is a cube, the editable planes are the multiple surfaces of the cube. The editable planes can also be located inside the editable space. For example, the editable space of a cube can be divided into 9 small cube spaces by 4 editable planes inside it. The multiple editable planes can also include the editable planes located at the edge of the editable space and the editable planes located inside the editable space, which is not restricted here.

[0034] The positions of the editable planes in the editable space can be preset by the system or set by the user according to requirements. When the user sets according to requirements, the lines representing the planes can be edited in the three views corresponding to the editable space, so as to determine the editable planes in the editable space.

[0035] In specific implementation, all the editable planes can be directly displayed in the editable space, or the user can control the display of some of the editable planes among the multiple editable planes through operations. For example, the editable plane located on the ground in the virtual scene in the editable space is usually always displayed. If the user changes the perspective of the virtual scene and moves the perspective upward, the editable plane perpendicular to the editable plane corresponding to the ground can be displayed, which is convenient for the user to perform editing operations on the editable plane perpendicular to the current ground. It can be specifically set according to requirements, which is not restricted here.

[0036] When displaying multiple editable planes, the identifiers of each editable plane can be displayed. In order to reduce the occlusion of the line of sight, the identifiers of the editable planes can be displayed in a semi-transparent format.

[0037] Step S104, determine the target editing plane from multiple editable planes.

[0038] Generally speaking, the user can determine the target editing plane from multiple editable planes through a selection operation. For example, long-press or click on the identifier of a certain editable plane. The user can select multiple target editing planes through the selection operation. For example, the identifiers of the editable planes of multiple planes can be passed through by sliding the track, so as to select multiple parallel target editing planes. So that subsequent material filling operations can be performed on multiple target editing planes at the same time.

[0039] Step S106, in response to the material filling operation, fill the target material in the target editing plane and / or the related space of the target editing plane.

[0040] The above material filling operation can be a click operation, a sliding operation, etc. The target material can be pre-set by the system or selected by the user through a selection operation, and there is no limitation here. When the material filling operation acts on the display area of the target editing plane, the position or area to be filled in the target editing plane can be determined based on the mapping of the action position of the material filling operation on the target editing plane.

[0041] The target material may also need to be placed in the relevant space of the target editing plane. The relevant space of the target editing plane can be the space including the target editing plane or the space on one side of the target editing plane. For example, when the target material represents a chair, the target material needs to be filled into the space above the target editing plane. Based on the mapping of the action position of the material filling operation on the target editing plane, the target position in the target editing plane can be determined, and then the target material can be filled in the relevant space of the target position.

[0042] The above method for editing a virtual scene includes: displaying multiple editable planes in an editable space; determining a target editing plane from the multiple editable planes; and in response to a material filling operation, filling a target material in the target editing plane and / or the relevant space of the target editing plane. This method facilitates the user to perform multi-dimensional scene editing, generates rich scene editing effects, and improves the user experience.

[0043] The following embodiments provide a specific way to display multiple editable planes in an editable space.

[0044] In practical applications, the above editable space usually includes a first editable plane, which can be located at the edge of the editable space or inside the editable space. Here, the first editable plane usually refers to the scene surface included in the editable space, such as the ground, which is always displayed.

[0045] The editable space usually further includes a second editable plane at a preset angle to the first editable plane, such as a second editable plane perpendicular to the first editable plane. The preset angle can also be 30°, 60°, etc., which is not limited here. The second editable plane can specifically be one or more. Multiple corresponding virtual materials can be set for the editable space. These virtual materials have position attributes. The position attribute is used to: indicate the relative position relationship between the editable plane filled with the virtual material and the first editable plane. The relative position relationship can be at a preset angle to the first editable plane, that is, the virtual material needs to be filled into the second editable plane; the relative position relationship can also be coincidence, that is, the virtual material needs to be filled into the first editable plane. When the first editable plane and the second editable plane are perpendicular, the first editable plane represents the ground and the second editable plane represents the wall. Generally speaking, it is to limit whether the virtual material can be used for the ground or the wall. For example, the virtual material representing the floor can usually only be used for the ground, and the virtual material representing the wall can usually only be used for the wall.

[0046] In addition, the virtual material usually also has an application attribute. The application attribute is used to indicate: the building part or furniture item formed by the editable plane filled with the virtual material. For example, the virtual material can be used to form the walls, ground, stairs, etc. of a building, and can also be used to form furniture such as virtual tables and virtual chairs.

[0047] In specific implementation, the first editable plane in the editable space can always be displayed. The user can select the virtual material to be filled through a selection operation. In response to the selection operation for the first material among multiple virtual materials, and the position attribute of the first material indicates that the editable plane filled with the first material is at a preset angle to the first editable plane, the first editable plane and the second editable plane need to be displayed simultaneously.

[0048] When there are multiple second editable planes, the user can select a certain plane among the multiple second editable planes as the target editing plane.

[0049] When there are multiple second editable planes, the target second editable plane among the multiple second editable planes can also be determined, and then only the first editable plane and the target second editable plane are displayed. The screen displayed by the graphical user interface is usually generated by a preset virtual camera photographing a virtual scene. The target second editable plane among the multiple second editable planes can be determined based on the photographing direction of the virtual camera. For example, the photographing direction can be the intersection point of the photographing direction of the virtual camera and the first editable plane, and then the plane among the multiple second editable planes whose intersection line with the first editable plane is closest to this intersection point is determined as the target second editable plane. The target second editable plane can also be determined based on the position of the controlled virtual character controlled by the terminal device in the virtual scene, that is, the plane among the multiple second editable planes closest to the position of the controlled virtual character is determined as the target second editable plane.

[0050] The target second editable plane can also be determined based on both the photographing direction of the virtual camera and the position of the controlled virtual character in the virtual scene. For example, the intersection point of the target second editable plane and the first editable plane can be determined based on the position of the controlled virtual character in the virtual scene, and then the intersection line passing through this intersection point is determined based on the photographing direction of the virtual camera, so as to display the target second editable plane passing through this intersection line. If only one target editable plane is displayed, the target second editable plane can be determined as the target editing plane at this time.

[0051] To facilitate the user's operation on the target editable plane, when the first editable plane is displayed and when the first editable plane and the second editable plane are displayed simultaneously, the virtual camera can photograph with different photographing directions. As Figure 2 shown, the left figure is the graphical user interface when only the first editable plane is displayed, and the right figure is the graphical user interface when two editable planes are displayed simultaneously. When changing from the left figure to the right figure, the photographing direction of the virtual camera needs to be updated so that the photographing direction of the virtual camera is parallel to the normal direction of the second editable plane; then the editable space is photographed by the updated virtual camera to obtain an updated screen; the first editable plane is displayed in the updated screen; the identifier of the second editable plane is displayed in the updated screen. This identifier can be displayed in a semi-transparent format.

[0052] In a game, a virtual scene may be displayed from the perspective of a player. The player's perspective is realized by a first virtual camera bound to a controlled virtual character. At this time, the graphical user interface displays a first image generated by the first virtual camera photographing the virtual scene. The first image usually displays a part of a first editable plane. To facilitate the user to adjust the display effect of the first editable plane, a first control can be set in the graphical user interface. The player can trigger the first control. In response to the trigger operation on the first control, the virtual scene is photographed by a preset second virtual camera to generate a second image; wherein, the second image displays the complete first editable plane; and the second image is displayed in the graphical user interface. As Figure 3 shown, the left and right figures respectively show the graphical user interface before and after the player triggers the first control.

[0053] A plurality of third editable planes parallel to the first editable plane and a plurality of second editable spaces can be preset in the editable space. When only the first editable plane is displayed on the graphical user interface, the virtual scene is usually photographed in a preset photographing direction. The preset photographing direction can be opposite to the normal direction of the first editable plane, or can have a certain angle with the normal direction of the first editable plane, but less than 90 degrees.

[0054] After the first editable plane and the second editable plane are displayed, the user can perform a perspective adjustment operation again. The perspective adjustment operation usually acts on a specified area of the graphical user interface, or corresponding controls can also be preset to achieve perspective adjustment. In response to the perspective adjustment operation, the photographing direction of the virtual camera is updated. If the photographing angle of the virtual camera after the update is different from the preset photographing direction and is not parallel to the normal direction of the second editable plane, the first editable plane, the second editable plane and the third editable plane can be displayed simultaneously, as Figure 4 shown.

[0055] The following embodiments provide a specific method for determining a target editing plane from multiple editable planes.

[0056] When the editable space includes a first editable plane, a fourth editable plane at a first preset angle to the first editable plane, and a fifth editable plane at a second preset angle to the first editable plane. For example, the first editable plane, the fourth editable plane, and the fifth editable plane can be perpendicular to each other pairwise.

[0057] When the graphical user interface simultaneously displays the first editable plane, the fourth editable plane, and the fifth editable plane, the player can select any editable plane as the target editing plane. In a specific implementation, in response to a trigger operation acting on the display area of the second plane among the multiple editable planes, the second plane is determined as the target editing plane. The trigger operation can be an operation such as clicking or long pressing, and is not limited herein.

[0058] After determining the target editing plane, the shooting direction of the virtual camera can be updated so that the shooting direction is parallel to the normal direction of the target editing plane, that is, the virtual camera shoots towards the target editing plane. Then, the image generated by the updated virtual camera is displayed on the graphical user interface, and the identifier of the target editing plane is displayed on the image.

[0059] The following embodiments provide a specific way to fill the target material in the target editing plane and / or the related space of the target editing plane in response to the material filling operation.

[0060] The target editing plane usually includes a plurality of adjacent cells. The user can perform a sliding operation on the target editing plane. In response to the sliding operation applied to the target editing plane, the target material is filled in the cells and / or the related space of the cells through which the trajectory of the sliding operation passes. As Figure 5 shown, the sliding trajectory on the first editable plane is displayed. This method realizes batch material filling and improves the efficiency of material filling.

[0061] The user can also delete the material in the filled cells. In response to the selection operation on the filled cells, a delete control is displayed on the graphical user interface. Among them, the selection operation can be a click operation, a sliding operation, etc., which are not limited here. In response to the triggering operation on the delete control, the target material is deleted from the cells and / or the related space of the cells selected by the selection operation.

[0062] The embodiments of the present disclosure also provide another method for editing a virtual scene. This method is implemented based on the method shown in Figure 1 . In this method, the player can turn on the "Free Batch Construction" mode, that is, the same type of buildings (equivalent to the above-mentioned "virtual materials"), especially structural floors, walls, roofs, and wallpapers, can be automatically filled through a sliding path or a painted area; similarly, "batch deletion" of buildings is supported. Free batch construction can automatically determine and adjust to global operations in horizontal and vertical perspectives according to the selected buildings; at the same time, it supports manual conversion from horizontal to vertical perspectives; and it supports batch operations on horizontal planes at different heights.

[0063] This method is specifically implemented through the following means:

[0064] 1. When the player is building, click "Batch Construction" to automatically open the "Global Perspective". The global perspective supports two-handed zooming, and on the computer side, it supports zooming through the mouse wheel. When the player continuously zooms out in the global perspective, it can be seamlessly connected to the normal perspective. In the global perspective, even a "reference image" can be used to copy a special-shaped foundation.

[0065] For example, if a player wants to replicate a building of a special shape, such as a puppy-shaped building, they can use the three views as a reference to accurately construct the shape.

[0066] 2. After the player selects the building materials (equivalent to the above-mentioned "virtual materials"), they can freely draw a route with their finger or mouse, and the cells along this route will automatically be paved with the selected building materials.

[0067] The following specific drawing rules can be adopted:

[0068] a. Pressing and holding until releasing is considered one drawing. The path can be repeated, and this process can be called "path paving".

[0069] b. By the edge connection lines and the areas passed by the path, it is determined whether each cell in the editable plane is passed through, and an automatic avoidance mechanism for edge overflow (or adsorption mechanism) can be automatically recognized.

[0070] c. The player can also smear a certain area, similar to "painting with a paint palette" for area paving.

[0071] 3. Similarly, the player can perform the reverse operation of demolishing the building for the path / area. The player can select the already paved building by "clicking", "drawing a path", or "smearing an area". After clicking the delete button, batch deletion can be performed.

[0072] 4. Similarly, the player can perform the same operations on the vertical plane as on the horizontal plane, which can be used for the expansion of tall buildings. Among them, both the above-mentioned vertical plane and horizontal plane can be regarded as the above-mentioned "editable plane".

[0073] 5. The system will automatically judge whether to display the horizontal view or the vertical view according to the position attribute of the building materials selected by the player (which can also be called "result"). When the player wants to temporarily change the view, in addition to switching the building, they can also manually change it. For example, enter the view adjustment operation and turn the view to the horizontal plane.

[0074] 6. When the player turns the view to the middle angle through the view adjustment operation, that is, the angle between the horizontal and vertical planes, an editable plane from horizontal to vertical (equivalent to the above-mentioned "cross-section") will appear simultaneously, and there are two planes in the vertical plane with intersecting directions. At this time, the player can freely select the editable plane for global batch construction. They can choose from three editable planes. Pressing and holding can be used for plane preselection, similar to a toggle switch. When a certain editable plane is selected, the view will automatically change to a front view with this editable plane as the reference, and the view will change accordingly. Pressing and holding can be used for plane selection, and releasing determines the selection.

[0075] This method can break through the limitations of perspective and movement in the early stage of building structures, and can be laid "quickly and freely". For example, by smearing a range, the building can be automatically filled on the free drawing path. And there is an intuitive understanding of the global three-dimensional space, intelligently switching the global perspective of the horizontal and vertical planes, switching multiple heights of the horizontal plane, etc. It can create more precise shapes of construction, save a lot of meaningless operation time, and improve the ease of use and fun of construction.

[0076] For the above method embodiments, see Figure 6 A virtual scene editing device is shown, which provides a graphical user interface through a terminal device; the graphical user interface displays the virtual scene; the virtual scene includes a preset editable space; the device includes:

[0077] A multi-plane display module 602, used to display multiple editable planes in the editable space;

[0078] A target editing plane determining module 604 is used to determine a target editing plane from a plurality of editable planes;

[0079] The material filling module 606 is used to respond to the material filling operation and fill the target material in the target editing plane and / or the related space of the target editing plane.

[0080] The above-mentioned virtual scene editing method, device and electronic device display multiple editable planes in the editable space; determine the target editing plane from the multiple editable planes; respond to the material filling operation, and fill the target material in the target editing plane and / or the space related to the target editing plane. This method facilitates users to perform multi-dimensional scene editing, generates rich scene editing effects, and improves user experience.

[0081] The above-mentioned editable space includes a first editable plane; the editable space also includes a second editable plane at a preset angle to the first editable plane; the editable space has multiple corresponding virtual materials; the virtual material has a position attribute, and the position attribute is used to: indicate the relative position relationship between the editable plane filled with the virtual material and the first editable plane; the multi-plane display module is also used to: display the first editable plane in the editable space; in response to a selection operation for the first material among the multiple virtual materials, and the position attribute of the first material indicates that the editable plane filled with the first material is at a preset angle to the first editable plane, display the first editable plane and the second editable plane.

[0082] The virtual material has application attributes; the application attributes are used to indicate: a building part or a furniture item formed by an editable plane filled with the virtual material.

[0083] The above-mentioned second editable plane includes multiple ones; the target editing plane determination module is further configured to: in response to a selection operation on the first plane among the multiple second editable planes, determine the first plane as the target editing plane.

[0084] The above-mentioned second editable plane includes multiple ones; the graphical user interface displays the picture generated by a preset virtual camera photographing a virtual scene; the multi-plane display module is further configured to: determine the target second editable plane among the multiple second editable planes based on the photographing direction of the virtual camera and / or the position of the controlled virtual character in the virtual scene; the controlled virtual character is controlled by the terminal device; display the first editable plane and the target second editable plane.

[0085] The above-mentioned target editing plane determination module is further configured to: determine the target second editable plane as the target editing plane.

[0086] The above-mentioned graphical user interface displays the picture generated by a preset virtual camera photographing a virtual scene; the multi-plane display module is further configured to: update the photographing direction of the virtual camera so that the photographing direction of the virtual camera is parallel to the normal direction of the second editable plane; photograph the editable space through the updated virtual camera to obtain an updated picture; display the first editable plane in the updated picture; display the identifier of the second editable plane in the updated picture.

[0087] The above-mentioned editable space further includes multiple third editable planes parallel to the first editable plane; the second editable plane includes multiple ones; the graphical user interface displays the picture generated by a preset virtual camera photographing the editable space in the virtual scene in a preset photographing direction; the device further includes: a viewing angle adjustment module, configured to update the photographing direction of the virtual camera in response to a viewing angle adjustment operation; a second multi-plane display module, configured to display the first editable plane, the second editable plane, and the third editable plane in response to the photographing angle of the virtual camera being different from the preset photographing direction and not parallel to the normal direction of the second editable plane.

[0088] The above-mentioned editable space includes a first editable plane; the editable space further includes a fourth editable plane at a first preset angle with the first editable plane and a fifth editable plane at a second preset angle with the first editable plane; the graphical user interface displays the first editable plane, the fourth editable plane, and the fifth editable plane; the target editing plane determination module is further configured to: in response to a trigger operation on the display area of the second plane among the multiple editable planes, determine the second plane as the target editing plane.

[0089] The above graphical user interface displays a picture generated by a preset virtual camera shooting a virtual scene; the above device further includes: a shooting direction updating module for updating the shooting direction of the virtual camera; the shooting direction is parallel to the normal direction of the target editing plane; a picture updating module for displaying, on the graphical user interface, a picture generated by the updated virtual camera, and displaying an identifier of the target editing plane in the picture.

[0090] The above graphical user interface further displays a first control; the editable space includes a first editable plane; the graphical user interface displays a first picture generated by a preset first virtual camera shooting a virtual scene; the first virtual camera is bound to a controlled virtual character; the first picture displays a part of the first editable plane; the above device includes: a second picture generating module for generating, in response to a triggering operation on the first control, a second picture by shooting the virtual scene with a preset second virtual camera; the second picture displays the complete first editable plane; and displaying the second picture on the graphical user interface.

[0091] The above target editing plane includes a plurality of adjacent cells; the material filling module is further configured to: in response to a sliding operation on the target editing plane, fill the target material in the cells and / or the related spaces of the cells through which the trajectory of the sliding operation passes.

[0092] The above device further includes: a deletion space display module for displaying a deletion control on the graphical user interface in response to a selection operation on a filled cell; a material deletion module for deleting the target material from the cell and / or the related space of the cell selected by the selection operation in response to a triggering operation on the deletion control.

[0093] This embodiment further provides an electronic device, including a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above method for editing a virtual scene, for example:

[0094] Display a plurality of editable planes in the editable space; determine a target editing plane from the plurality of editable planes; and in response to a material filling operation, fill the target material in the target editing plane and / or the related space of the target editing plane.

[0095] The above method facilitates the user to perform multi-dimensional scene editing, generates rich scene editing effects, and improves the user experience.

[0096] Optionally, the editable space described above includes a first editable plane; the editable space further includes a second editable plane at a preset angle to the first editable plane; the editable space has a plurality of corresponding virtual materials; the virtual materials have a position attribute, and the position attribute is used to: indicate the relative positional relationship between the editable plane filled with the virtual material and the first editable plane; the steps of displaying a plurality of editable planes in the editable space include: displaying the first editable plane in the editable space; in response to a selection operation on the first material among the plurality of virtual materials, and the position attribute of the first material indicating that the editable plane filled with the first material is at a preset angle to the first editable plane, displaying the first editable plane and the second editable plane.

[0097] Optionally, the virtual materials described above have an application attribute; the application attribute is used to indicate: the building part or furniture item formed by the editable plane filled with the virtual material.

[0098] Optionally, there are a plurality of the second editable planes described above; the steps of determining a target editable plane from the plurality of editable planes include: in response to a selection operation on the first plane among the plurality of second editable planes, determining the first plane as the target editable plane.

[0099] Optionally, there are a plurality of the second editable planes described above; the graphical user interface displays a picture generated by a preset virtual camera shooting a virtual scene; the steps of displaying the first editable plane and the second editable plane include: determining a target second editable plane among the plurality of second editable planes based on the shooting direction of the virtual camera and / or the position of the controlled virtual character in the virtual scene; the controlled virtual character is controlled by the terminal device; displaying the first editable plane and the target second editable plane.

[0100] Optionally, the steps of determining a target editable plane from the plurality of editable planes include: determining the target second editable plane as the target editable plane.

[0101] Optionally, the graphical user interface displays a picture generated by a preset virtual camera shooting a virtual scene; the steps of displaying the first editable plane and the second editable plane include: updating the shooting direction of the virtual camera so that the shooting direction of the virtual camera is parallel to the normal direction of the second editable plane; shooting the editable space with the updated virtual camera to obtain an updated picture; the updated picture displays the first editable plane; displaying the identifier of the second editable plane in the updated picture.

[0102] Optionally, the editable space further includes a plurality of third editable planes parallel to the first editable plane; there are a plurality of second editable planes; the graphical user interface displays a picture generated by a preset virtual camera shooting the editable space in the virtual scene in a preset shooting direction; after the first editable plane and the second editable planes are displayed, the method further includes: in response to a perspective adjustment operation, updating the shooting direction of the virtual camera; in response to the shooting angle of the virtual camera being different from the preset shooting direction and not parallel to the normal direction of the second editable plane, displaying the first editable plane, the second editable planes, and the third editable planes.

[0103] Optionally, the editable space includes a first editable plane; the editable space further includes a fourth editable plane at a first preset angle to the first editable plane and a fifth editable plane at a second preset angle to the first editable plane; the graphical user interface displays the first editable plane, the fourth editable plane, and the fifth editable plane; the step of determining a target editing plane from a plurality of editable planes includes: in response to a trigger operation on the display area of a second plane among the plurality of editable planes, determining the second plane as the target editing plane.

[0104] Optionally, the graphical user interface displays a picture generated by a preset virtual camera shooting the virtual scene; after determining a target editing plane from a plurality of editable planes, the method further includes: updating the shooting direction of the virtual camera; the shooting direction being parallel to the normal direction of the target editing plane; displaying, in the graphical user interface, a picture generated by the updated virtual camera, and displaying an identifier of the target editing plane in the picture.

[0105] Optionally, the graphical user interface further displays a first control; the editable space includes a first editable plane; the graphical user interface displays a first picture generated by a preset first virtual camera shooting the virtual scene; the first virtual camera is bound to a controlled virtual character; a part of the first editable plane is displayed in the first picture; the method includes: in response to a trigger operation on the first control, shooting the virtual scene through a preset second virtual camera to generate a second picture; the second picture displays the complete first editable plane; and displaying the second picture in the graphical user interface.

[0106] Optionally, the target editing plane includes a plurality of adjacent cells; the step of filling a target material in the target editing plane and / or the related space of the target editing plane in response to a material filling operation includes: in response to a sliding operation on the target editing plane, filling the target material in the cells and / or the related space of the cells passed by the trajectory of the sliding operation.

[0107] Optionally, the above method further includes: in response to a selection operation on a filled cell, displaying a deletion control in a graphical user interface; and in response to a triggering operation on the deletion control, deleting the target material from the cell selected by the selection operation and / or the relevant space of the cell.

[0108] See Figure 7 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100, and the processor 100 executes the machine-executable instructions to implement the above virtual scene editing method.

[0109] Furthermore, Figure 7 The electronic device shown further includes a bus 102 and a communication interface 103. The processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.

[0110] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 7 only a bidirectional arrow is used in [description] to represent it, but it does not mean that there is only one bus or one type of bus.

[0111] The processor 100 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method may be completed by the integrated logic circuit of the hardware in the processor 100 or the instructions in the form of software. The above-mentioned processor 100 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute each method, step, and logic block diagram disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present disclosure may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines its hardware to complete the steps of the method in the foregoing embodiments.

[0112] This embodiment also provides a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned virtual scene editing method.

[0113] A virtual scene editing method, device, and electronic device provided by an embodiment of the present disclosure include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the foregoing method embodiments, for example:

[0114] Display a plurality of editable planes in the editable space; determine a target editing plane from the plurality of editable planes; in response to a material filling operation, fill a target material in the target editing plane and / or the related space of the target editing plane.

[0115] The above method facilitates the user to perform multi-dimensional scene editing, generates a rich scene editing effect, and improves the user experience.

[0116] Optionally, the editable space described above includes a first editable plane; the editable space further includes a second editable plane that forms a preset angle with the first editable plane; the editable space has a plurality of corresponding virtual materials; the virtual materials have a position attribute, and the position attribute is used to: indicate the relative position relationship between the editable plane filled with the virtual material and the first editable plane; the steps of displaying a plurality of editable planes in the editable space include: displaying the first editable plane in the editable space; in response to a selection operation on the first material among the plurality of virtual materials, and the position attribute of the first material indicates that the editable plane filled with the first material forms a preset angle with the first editable plane, display the first editable plane and the second editable plane.

[0117] Optionally, there are a plurality of the second editable planes described above; the steps of determining a target editable plane from the plurality of editable planes include: in response to a selection operation on the first plane among the plurality of second editable planes, determining the first plane as the target editable plane.

[0118] Optionally, there are a plurality of the second editable planes described above; the graphical user interface displays a picture generated by a preset virtual camera shooting a virtual scene; the steps of displaying the first editable plane and the second editable plane include: determining a target second editable plane among the plurality of second editable planes based on the shooting direction of the virtual camera and / or the position of the controlled virtual character in the virtual scene; the controlled virtual character is controlled by the terminal device; display the first editable plane and the target second editable plane.

[0119] Optionally, the virtual materials described above have an application attribute; the application attribute is used to indicate: the building part or furniture item formed by the editable plane filled with the virtual material.

[0120] Optionally, the steps of determining a target editable plane from the plurality of editable planes include: determining the target second editable plane as the target editable plane.

[0121] Optionally, the graphical user interface displays a picture generated by a preset virtual camera shooting a virtual scene; the steps of displaying the first editable plane and the second editable plane include: updating the shooting direction of the virtual camera so that the shooting direction of the virtual camera is parallel to the normal direction of the second editable plane; shooting the editable space with the updated virtual camera to obtain an updated picture; the updated picture displays the first editable plane; display the identifier of the second editable plane in the updated picture.

[0122] Optionally, the editable space further includes a plurality of third editable planes parallel to the first editable plane; there are a plurality of second editable planes; the graphical user interface displays a picture generated by a preset virtual camera photographing the editable space in the virtual scene in a preset photographing direction; after displaying the first editable plane and the second editable planes, the method further includes: in response to a perspective adjustment operation, updating the photographing direction of the virtual camera; in response to the photographing angle of the virtual camera being different from the preset photographing direction and not parallel to the normal direction of the second editable plane, displaying the first editable plane, the second editable planes, and the third editable planes.

[0123] Optionally, the editable space includes a first editable plane; the editable space further includes a fourth editable plane at a first preset angle to the first editable plane and a fifth editable plane at a second preset angle to the first editable plane; the graphical user interface displays the first editable plane, the fourth editable plane, and the fifth editable plane; the step of determining a target editable plane from the plurality of editable planes includes: in response to a trigger operation on the display area of the second plane among the plurality of editable planes, determining the second plane as the target editable plane.

[0124] Optionally, the graphical user interface displays a picture generated by a preset virtual camera photographing the virtual scene; after determining a target editable plane from the plurality of editable planes, the method further includes: updating the photographing direction of the virtual camera; the photographing direction is parallel to the normal direction of the target editable plane; displaying, in the graphical user interface, a picture generated by the updated virtual camera, and displaying an identifier of the target editable plane in the picture.

[0125] Optionally, the graphical user interface further displays a first control; the editable space includes a first editable plane; the graphical user interface displays a first picture generated by a preset first virtual camera photographing the virtual scene; the first virtual camera is bound to a controlled virtual character; the first picture displays a part of the first editable plane; the method includes: in response to a trigger operation on the first control, photographing the virtual scene by a preset second virtual camera to generate a second picture; the second picture displays the complete first editable plane; and displaying the second picture in the graphical user interface.

[0126] Optionally, the target editable plane includes a plurality of adjacent cells; the step of filling a target material in the target editable plane and / or the related space of the target editable plane in response to a material filling operation includes: in response to a sliding operation on the target editable plane, filling the target material in the cells and / or the related space of the cells passed by the trajectory of the sliding operation.

[0127] Optionally, the above method further includes: in response to a selection operation on a filled cell, displaying a deletion control in a graphical user interface; and in response to a triggering operation on the deletion control, deleting the target material from the cell selected by the selection operation and / or the related space of the cell.

[0128] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0129] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly defined and limited, the terms "install", "connect", and "couple" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be a direct connection or an indirect connection through an intermediate medium, and it may be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific situations.

[0130] If the described function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.

[0131] In the description of the present disclosure, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0132] Finally, it should be noted that the above embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting it. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims

1. A method for editing a virtual scene, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a virtual scene; The virtual scene includes a preset editable space; the method includes: Displaying a plurality of editable planes in the editable space; determining a target editing plane from the plurality of editable planes; In response to a material filling operation, a target material is filled in the target editing plane and / or a related space of the target editing plane.

2. The method according to claim 1, characterized in that The editable space includes a first editable plane; the editable space also includes a second editable plane at a preset angle to the first editable plane; the editable space has a plurality of corresponding virtual materials; the virtual material has a position attribute, and the position attribute is used to indicate the relative position relationship between the editable plane filled with the virtual material and the first editable plane; The step of displaying a plurality of editable planes in the editable space comprises: Displaying a first editable plane in the editable space; In response to a selection operation on a first material among a plurality of virtual materials, and a position attribute of the first material indicating that an editable plane filled with the first material is at a preset angle to the first editable plane, the first editable plane and the second editable plane are displayed.

3. The method according to claim 2, characterized in that The virtual material has application attributes; the application attributes are used to indicate: a building part or a furniture item formed by an editable plane filled with the virtual material.

4. The method according to claim 2, wherein the second editable plane comprises a plurality of; The step of determining a target editing plane from the plurality of editable planes comprises: In response to a selection operation on a first plane among the plurality of second editable planes, the first plane is determined as a target editing plane.

5. The method according to claim 2, characterized in that: The second editable planes include a plurality of planes; the graphical user interface displays a picture generated by a preset virtual camera shooting the virtual scene; The step of displaying the first editable plane and the second editable plane includes: Determining a target second editable plane among a plurality of second editable planes based on the shooting direction of the virtual camera and / or the position of the controlled virtual character in the virtual scene; the controlled virtual character is controlled by the terminal device; The first editable plane and the target second editable plane are displayed.

6. The method according to claim 5, characterized in that The step of determining a target editing plane from the plurality of editable planes comprises: The target second editable plane is determined as a target editing plane.

7. The method according to claim 2, characterized in that The graphical user interface displays a picture generated by a preset virtual camera shooting the virtual scene; The step of displaying the first editable plane and the second editable plane includes: Updating the shooting direction of the virtual camera so that the shooting direction of the virtual camera is parallel to the normal direction of the second editable plane; The editable space is photographed by an updated virtual camera to obtain an updated picture; the updated picture displays the first editable plane; The updated screen displays the identifier of the second editable plane.

8. The method according to claim 2, characterized in that: The editable space also includes a plurality of third editable planes parallel to the first editable plane; the second editable plane includes a plurality of planes; the graphical user interface displays a picture generated by a preset virtual camera shooting the editable space in the virtual scene in a preset shooting direction; After displaying the first editable plane and the second editable plane, the method further includes: In response to the viewing angle adjustment operation, updating the shooting direction of the virtual camera; In response to the shooting angle of the virtual camera being different from a preset shooting direction and not parallel to the normal direction of the second editable plane, the first editable plane, the second editable plane and the third editable plane are displayed.

9. The method according to claim 1, characterized in that: The editable space includes a first editable plane, the editable space also includes a fourth editable plane at a first preset angle to the first editable plane and a fifth editable plane at a second preset angle to the first editable plane; the graphical user interface displays the first editable plane, the fourth editable plane and the fifth editable plane; The step of determining a target editing plane from the plurality of editable planes comprises: In response to a trigger operation acting on a display area of ​​a second plane among the plurality of editable planes, the second plane is determined as a target editing plane.

10. The method according to claim 1, characterized in that The graphical user interface displays a picture generated by a preset virtual camera shooting the virtual scene; After determining a target editing plane from the plurality of editable planes, the method further includes: Updating the shooting direction of the virtual camera; the shooting direction is parallel to the normal direction of the target editing plane; The updated picture generated by the virtual camera is displayed on the graphical user interface, and the identifier of the target editing plane is displayed on the picture.

11. The method according to claim 1, characterized in that: The graphical user interface also displays a first control; the editable space includes a first editable plane; the graphical user interface displays a first picture generated by shooting the virtual scene with a preset first virtual camera; The first virtual camera is bound to the controlled virtual character; The first screen displays part of the first editable plane; The method comprises: In response to a trigger operation on the first control, photographing the virtual scene through a preset second virtual camera to generate a second picture; The second screen displays the complete first editable plane; The second screen is displayed on the graphical user interface.

12. The method according to claim 1, characterized in that The target editing plane includes a plurality of adjacent cells; In response to the material filling operation, the step of filling the target material in the target editing plane and / or the related space of the target editing plane comprises: In response to a sliding operation applied to the target editing plane, target materials are filled in cells passed by the track of the sliding operation and / or in the associated spaces of the cells.

13. The method according to claim 12, characterized in that The method further comprises: In response to a selection operation on a filled cell, displaying a delete control in the graphical user interface; In response to a trigger operation on the delete control, the target material is deleted from the cell selected by the selection operation and\or the associated space of the cell.

14. A virtual scene editing device, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a virtual scene; the virtual scene includes a preset editable space; the device includes: A multi-plane display module, used for displaying a plurality of editable planes in the editable space; A target editing plane determining module, used to determine a target editing plane from the multiple editable planes; A material filling module is used to respond to a material filling operation and fill target materials in the target editing plane and / or the related space of the target editing plane.

15. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the virtual scene editing method according to any one of claims 1 to 13.

16. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the virtual scene editing method according to any one of claims 1 to 13.