Region division method, device and equipment for virtual scene

By using a brush to directly paint and mark areas in a virtual scene, the problem of poor intuitiveness in area division in existing technologies is solved, resulting in a better gaming experience and higher interaction rate.

CN115494992BActive Publication Date: 2026-03-27BOOMING TECH (HANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the methods for dividing virtual scenes are not very intuitive, which makes it difficult to divide the scenes and reduces the player's gaming experience in the virtual scene and the human-computer interaction rate of the application.

Method used

By displaying a brush in a virtual scene and responding to the user's movement, areas can be directly painted out. Markers are used to mark the divided areas, and the final division result is generated based on the area distribution map. It supports adjustments to various brush states and scene element types.

Benefits of technology

It improves the intuitiveness and convenience of area division, reduces the difficulty of area division, and enhances the player's gaming experience in virtual scenes and the human-computer interaction rate of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115494992B_ABST
    Figure CN115494992B_ABST
Patent Text Reader

Abstract

The application discloses a region division method, device and equipment of a virtual scene, and belongs to the technical field of computers. The method comprises the following steps: displaying a virtual scene, wherein the virtual scene is a scene for virtual object activities, or a scene obtained after the size of the scene for virtual object activities is adjusted; in response to a triggering operation of a brush mode, displaying a brush in the virtual scene; in response to a first movement operation of the brush in the virtual scene, determining a first region, marking the first region in the virtual scene by using a first mark, and the first region is a region brushed by the brush in the process of the first movement operation; and determining a region division result of the virtual scene based on the first region. The region division method has good intuitiveness, can conveniently divide a region by using the brush, has small difficulty in region division, is favorable for improving the game experience of a player in the virtual scene, and further improves the human-computer interaction rate of an application program providing the virtual scene.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of computer, and particularly relate to a region division method, device and equipment of a virtual scene. BACKGROUND

[0002] With the development of computer technology, there are more and more application programs capable of providing virtual scenes. Before an application program provides a virtual scene, it is often necessary to divide the virtual scene into regions so as to associate different regions with different game logics.

[0003] In the related art, a region division of a virtual scene is implemented according to boundary coordinates set by a planner. Such a region division method is poor in intuitiveness and difficult to divide regions, which can easily reduce the game experience of a player in the virtual scene and in turn reduce the human-computer interaction rate of an application program providing the virtual scene. SUMMARY

[0004] Embodiments of the present application provide a region division method, device and equipment of a virtual scene, which can be used to solve the problems in the related art. The technical solution is as follows.

[0005] In one aspect, the present application provides a region division method of a virtual scene, which comprises:

[0006] displaying a virtual scene, wherein the virtual scene is a scene for virtual object activities or a scene obtained by adjusting the size of the scene for virtual object activities;

[0007] displaying a brush in the virtual scene in response to a triggering operation of a brush mode;

[0008] determining a first region divided by a first movement operation of the brush in the virtual scene and marking the first region in the virtual scene by using a first mark, wherein the first movement operation is used to divide a region by controlling the brush to brush the region, and the first region is a region brushed by the brush in the process of the first movement operation;

[0009] determining a region division result of the virtual scene based on the first region.

[0010] In one possible implementation manner, before the first movement operation of the brush in the virtual scene, the method further comprises:

[0011] displaying a candidate mark;

[0012] binding the brush with the first mark in response to a selection operation of the first mark in the candidate mark.

[0013] In one possible implementation, determining the region division result of the virtual scene based on the first region includes:

[0014] If the first movement operation satisfies the region division termination condition, a region distribution map is generated based on the first region, and the region distribution map is used as the region division result.

[0015] If the first movement operation does not meet the region division termination condition, in response to the second movement operation of the brush in the virtual scene, the divided second region is determined, and the second region is marked in the virtual scene using a second mark. The second mark is different from the first mark. The second region is the region painted by the brush during the second movement operation.

[0016] If the second movement operation satisfies the region division termination condition, a region distribution map is generated based on the first region and the second region, and the region distribution map is used as the region division result.

[0017] In one possible implementation, the first region and the second region overlap, and the step of generating a region distribution map based on the first region and the second region includes:

[0018] The regions in the first region other than the overlapping regions are used as the updated first region;

[0019] The region distribution map is generated based on the updated first region marked with the first marker and the second region marked with the second marker.

[0020] In one possible implementation, determining the region division result of the virtual scene based on the first region includes:

[0021] In response to the adjustment operation of the first region, the adjusted first region is determined;

[0022] Based on the adjusted first region, the region division result of the virtual scene is determined.

[0023] In one possible implementation, determining the first defined region includes:

[0024] The first grid painted by the brush during the first movement operation is determined from the candidate grids of the virtual scene, and the candidate grids are obtained by meshing the virtual scene;

[0025] The first region is determined based on the region where the first grid is located.

[0026] In a possible implementation, the displaying the brush in the virtual scene in response to the triggering of the brush mode comprises:

[0027] In response to the triggering of the brush mode, the method further comprises:

[0028] In response to the selection of a first scene element type in the candidate scene element types, the method further comprises:

[0029] In a possible implementation, the region division result is a region division result matching the first scene element type.

[0030] In a possible implementation, after the displaying the brush in the virtual scene, the method further comprises:

[0031] In response to the adjustment of the state of the brush, the method further comprises:

[0032] In another aspect, a region division apparatus for a virtual scene is provided, and the apparatus comprises:

[0033] The first display module is configured to display a virtual scene, the virtual scene being a scene for virtual object activities or a scene obtained by performing size adjustment on a scene for virtual object activities;

[0034] The second display module is configured to display a brush in the virtual scene in response to the triggering of a brush mode;

[0035] The first determination module is configured to determine a first region divided in response to a first movement of the brush in the virtual scene; wherein the first movement is used to control the brush to brush out the first region, and the first region is a region brushed out by the brush in the process of the first movement;

[0036] The marking module is configured to mark the first region in the virtual scene by using a first mark;

[0037] The second determination module is configured to determine a region division result of the virtual scene based on the first region.

[0038] In a possible implementation, the second display module is further configured to display candidate marks, and bind the brush to the first mark in response to the selection of the first mark in the candidate marks.

[0039] In a possible implementation, the second determining module is configured to: if the first movement operation meets a region division termination condition, generate a region distribution map based on the first region, and take the region distribution map as the region division result; if the first movement operation does not meet the region division termination condition, determine a second region divided in response to a second movement operation of the brush in the virtual scene, mark out the second region in the virtual scene by using a second mark, the second mark being different from the first mark, the second region being a region painted by the brush in a process of the second movement operation, and generate a region distribution map based on the first region and the second region, and take the region distribution map as the region division result if the second movement operation meets the region division termination condition.

[0040] In a possible implementation, the first region and the second region have an overlapping region, and the second determining module is configured to: take a region other than the overlapping region in the first region as an updated first region, and generate the region distribution map based on the updated first region marked by using the first mark and the second region marked by using the second mark.

[0041] In a possible implementation, the second determining module is configured to: determine an adjusted first region in response to an adjustment operation of the first region, and determine the region division result of the virtual scene based on the adjusted first region.

[0042] In a possible implementation, the first determining module is configured to: determine a first grid painted by the brush in a process of the first movement operation in a candidate grid of the virtual scene, the candidate grid being obtained by griding the virtual scene, and determine the first region based on a region in which the first grid is located.

[0043] In a possible implementation, the second display module is configured to: display candidate scene element types in response to a trigger operation of a brush mode, the candidate scene element types being scene element types corresponding to the virtual scene and supporting region division by a brush, each candidate scene element type corresponding to a brush; and display a brush corresponding to a first scene element type in the virtual scene in response to a selection operation of the first scene element type in the candidate scene element types.

[0044] In a possible implementation, the region division result is a region division result matched with the first scene element type.

[0045] In a possible implementation, the apparatus further includes:

[0046] An adjusting module is configured to adjust a state of a brush displayed in the virtual scene in response to a brush state adjusting operation, the state of the brush including at least one of a shape, a color, and a size of the brush.

[0047] In another aspect, a computer device is provided, which includes a processor and a memory, and the memory stores at least one computer program, which is loaded and executed by the processor to enable the computer device to implement the virtual scene area division method described above.

[0048] In another aspect, a computer readable storage medium is also provided, which stores at least one computer program, which is loaded and executed by a processor to enable a computer to implement the virtual scene area division method described above.

[0049] In another aspect, a computer program product is also provided, which includes a computer program or computer instructions, which is loaded and executed by a processor to enable a computer to implement the virtual scene area division method described above.

[0050] The technical solutions provided by the embodiments of the present application at least bring the following beneficial effects:

[0051] The technical solutions provided by the embodiments of the present application provide a brush mode, and on the basis of triggering the brush mode, the divided area can be directly brushed out by using the brush to realize the area division of the virtual scene. The area division method has better intuitiveness, and the area can be conveniently divided by using the brush, and the difficulty of area division is smaller, which is beneficial to improving the game experience of the player in the virtual scene, and further improving the human-computer interaction rate of the application program providing the virtual scene. BRIEF DESCRIPTION OF DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0053] Figure 1 is a schematic diagram of an implementation environment of a virtual environment area division method provided by the embodiments of the present application;

[0054] Figure 2 is a flowchart of a virtual environment area division method provided by the embodiments of the present application;

[0055] Figure 3is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0056] Figure 4 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0057] Figure 5 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0058] Figure 6 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0059] Figure 7 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0060] Figure 8 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0061] Figure 9 is a schematic diagram of a virtual scene provided by an embodiment of the present application.

[0062] Figure 10 is a schematic diagram of a scene element type adjustment control provided by an embodiment of the present application.

[0063] Figure 11 is a schematic diagram of an initial mark adjustment interface provided by an embodiment of the present application.

[0064] Figure 12 is a schematic diagram of a region division situation and a region distribution diagram in a virtual scene provided by an embodiment of the present application.

[0065] Figure 13 is a schematic diagram of a region division situation and a region distribution diagram in a virtual scene provided by an embodiment of the present application.

[0066] Figure 14 is a schematic diagram of a region division device in a virtual scene provided by an embodiment of the present application.

[0067] Figure 15 is a schematic diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0068] To make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0069] The terms involved in the present application are explained.

[0070] Level: the scene in which a player plays a game is generally called a level, which is used to distinguish different progress stages in the game process.

[0071] Level editor: a tool for editing a level (i.e., a virtual scene), a complete level editor generally includes functions such as scene (buildings, stones, trees, grass, light sources, etc.) placement, terrain (mountains, rivers, basins, etc.) editing, gameplay design, etc. The brush mode mentioned in the embodiments of the present application belongs to the system module related to gameplay design. In some embodiments, gameplay design can also be referred to as game logic.

[0072] Brush: one of the editing tools in image editing software, which can simulate various brushstrokes to achieve special drawing effects such as brush, watercolor pen, and wax crayon. Imagine the top view of the level as an image work, then the action of moving the brush is equivalent to painting on the image. The embodiments of the present application consider using a brush to implement the range (i.e., area) editing behavior in the level editor, so as to improve the intuitiveness and convenience of area division.

[0073] PNG: Portable Network Graphics, a bitmap format using lossless compression algorithm.

[0074] Virtual scene: a scene for virtual objects to act in or a scene obtained by adjusting the size of a scene for virtual objects to act in. The virtual scene can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. The virtual scene can be a simulated scene of the real world, a semi-simulated and semi-fictional scene, or a purely fictional scene. The scene for virtual objects to act in can be a scene provided by a game.

[0075] Virtual object: an active object in a scene provided by a game. The virtual object can be a virtual character, a virtual animal, an animation character, etc. The user can control the virtual object by means of an external device or by clicking the touch display screen. Each virtual object has its own shape and volume in the scene provided by the game, and occupies a part of the space in the scene. Illustratively, when the scene provided by the game is a three-dimensional scene, the virtual object can be a three-dimensional model created based on animation skeleton technology.

[0076] It should be noted that the terms "first", "second", etc. in the present application are used to distinguish similar objects, and do not necessarily mean a specific order or 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 those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present application. Rather, they are only examples of devices and methods consistent with some aspects of the present application.

[0077] Figure 1A schematic diagram of an implementation environment of a region division method of a virtual scene provided by an embodiment of the present application is shown. The implementation environment can include a computer device 11.

[0078] The computer device 11 is installed with an editing tool of a virtual scene, by which the region division of the virtual scene can be realized. In an exemplary embodiment, after the region division of the virtual scene, the computer device 11 can save the region division result into a database, so as to subsequently associate the divided different regions with different game logics according to the region division result, and then run different game logics when a player is in different regions in the virtual scene, enriching the game experience.

[0079] Exemplarily, the virtual scene is a running scene of a game, and the region division work of the virtual scene is usually realized in the process of game development, and the computer device 11 can refer to a game development device.

[0080] Exemplarily, the computer device 11 can be any kind of electronic product that can interact with a user through one or more ways such as a keyboard, a touchpad, a touch screen, a remote controller, voice interaction or a handwriting device, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart television, a smart sound box, a vehicle-mounted terminal, etc.

[0081] Those skilled in the art should understand that the above computer device 11 is only an example, and other existing or future computer devices can also be applicable to the present application and should be included in the protection scope of the present application, and are hereby included by reference.

[0082] An embodiment of the present application provides a region division method of a virtual scene, which can be applied to the implementation environment shown in the above Figure 1 Exemplarily, the computer device 11 is taken as an example. As shown in the above Figure 2 The region division method of the virtual scene provided by an embodiment of the present application can include the following steps 201 to 204.

[0083] In step 201, a virtual scene is displayed, which is a scene for virtual object activities, or a scene obtained by adjusting the size of the scene for virtual object activities.

[0084] The region division method of the virtual scene provided in the embodiments of the present application can be applied in the game development stage, and is used for dividing the virtual scene required by the game into regions, so as to associate different regions with different game logics in the actual running process of the game, and enrich the game experience.

[0085] The type of the game corresponding to the virtual scene is not limited in the embodiments of the present application. For example, the type of the game includes, but is not limited to, a shooting game, a MOBA (Multiplayer Online Battle Arena) game, a multiplayer gun battle survival game, a SLG (Simulation Game) game, an MMORPG (Massive Multiplayer Online Role-Playing Game), and the like.

[0086] In the embodiments of the present application, the virtual scene is a scene for virtual object activities, or a scene obtained by adjusting the size of the scene for virtual object activities. That is, displaying the virtual scene can refer to displaying the scene for virtual object activities itself, or displaying the scene obtained by adjusting the size of the scene for virtual object activities. The embodiments of the present application do not limit this. The scene for virtual object activities refers to a scene provided (or displayed) by an application (for example, a game) when running on a terminal. A user can control a virtual object to perform activities such as jumping, running, throwing, shooting, and the like in the scene.

[0087] Adjusting the size of the scene for virtual object activities can refer to reducing the size of the scene for virtual object activities, or can refer to enlarging the size of the scene for virtual object activities. The embodiments of the present application do not limit this. In some embodiments, the scene obtained by reducing the size of the scene for virtual object activities can also be referred to as a thumbnail of the scene for virtual object activities. The scene obtained by enlarging the size of the scene for virtual object activities can also be referred to as an enlarged view of the scene for virtual object activities.

[0088] For example, when the virtual scene is the scene for virtual object activities, the region division can be directly performed in the original scene for virtual object activities, which is more intuitive and helps to improve the reliability of the region division. When the virtual scene is the scene obtained by reducing the size of the scene for virtual object activities, the resources required for displaying the virtual scene can be saved, and the efficiency of displaying the virtual scene can be improved. When the virtual scene is the scene obtained by enlarging the size of the scene for virtual object activities, the details in the scene can be displayed more clearly, and the intuitiveness and reliability of the region division are further improved.

[0089] The virtual scene can be preset by a developer of the game and stored in a database, and the computer device can load resources of the virtual scene from the database and then display the virtual scene. The virtual scene can refer to a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, and the like. In some embodiments, the virtual scene can also be referred to as a virtual environment, a game world scene, or a game big world scene, and the like.

[0090] In an example embodiment, the process of displaying the virtual scene can include: in response to a starting operation of the virtual scene editor, displaying a scene selection entry; and in response to a selection operation of the virtual scene triggered based on the scene selection entry, loading and displaying the virtual scene. The virtual scene is the virtual scene that needs to be divided into regions. The virtual scene editor is a tool for editing the virtual scene, which can be designed by the developer of the game or by other personnel. In some embodiments, a virtual scene can be regarded as a level, and the virtual scene editor can also be referred to as a level editor.

[0091] For example, the scene selection entry can be in the form of a button or an icon, which is not limited in the embodiments of the present application. For example, the process of triggering the selection operation of the virtual scene based on the scene selection entry can include: in response to a triggering operation of the scene selection entry, displaying identification information of candidate virtual scenes; and in response to a selection operation of any identification information, obtaining a selection operation of a virtual scene identified by the any identification information. The candidate virtual scene can refer to a virtual scene to be divided into regions, which can be flexibly adjusted according to actual conditions. The identification information of any candidate virtual scene is used to identify the any candidate virtual scene, for example, the identification information of any candidate virtual scene is a storage address of the any candidate virtual scene or a name of the any candidate virtual scene, and the like.

[0092] For example, the process of triggering the selection operation of the virtual scene based on the scene selection entry can also include: in response to a triggering operation of the scene selection entry, displaying a storage path selection page, and a plurality of storage paths are displayed on the storage path selection page, different storage paths correspond to different virtual scenes; and in response to a selection operation of any storage path in the storage path selection page, obtaining a selection operation of a virtual scene corresponding to the any storage path.

[0093] In step 202, in response to a triggering operation of the brush mode, a brush is displayed in the virtual scene.

[0094] After the virtual scene is loaded and displayed, selectable modes can be displayed in the virtual scene editor, and different modes support different operations. In the selectable modes, the brush mode is included. In the embodiments of the present application, under the triggering operation of the brush mode, the regions of the virtual scene can be divided by using the brush.

[0095] In an example embodiment, the manner of obtaining the trigger operation of the brush mode comprises: displaying candidate modes, and obtaining the trigger operation of the brush mode in the candidate modes. The candidate modes can be set according to experience, or can be flexibly adjusted according to the type of the virtual scene editor, and the embodiments of the present application do not limit this. Illustratively, the manner of displaying the candidate modes can be to directly display each candidate mode in the virtual scene editor. Illustratively, the manner of displaying the candidate modes can also be to display a mode selection menu, the mode selection menu including a plurality of options, each option corresponding to a part of the candidate modes; in response to the trigger operation of any option in the mode selection menu, the candidate mode corresponding to the option is displayed. Illustratively, each option in the mode selection menu can be displayed by using a name or a pattern. When the candidate modes are displayed, at least one of the name and the pattern of the candidate modes can be displayed.

[0096] For example, the interface for obtaining the trigger operation of the brush mode can be as shown in Figure 3 . In Figure 3 , the mode selection menu 301 is displayed, and five options are displayed by using different patterns in the mode selection menu 301, the brush mode being in the candidate mode corresponding to the first option. When the trigger operation of the first option is obtained, a plurality of candidate modes corresponding to the first option are displayed, and the mode with the name “play design brush” in the plurality of candidate modes is the brush mode involved in the embodiments of the present application. When the user moves the mouse to the area where the “play design brush” is located, the prompt text “edit the play design in the scene” is displayed. The prompt text is used to prompt the user that the area division of the virtual scene can be performed in this mode, so as to associate the divided area with the play design, and realize the editing of the play design. When the user clicks the area where the “play design brush” is located by using the mouse, the trigger operation of the brush mode is obtained.

[0097] After the trigger operation of the brush mode is obtained, it is indicated that the area division of the virtual scene needs to be completed by using the brush, and at this time, the brush is displayed in the virtual scene. In an example embodiment, displaying the brush in the virtual scene can mean directly displaying the brush in the virtual scene in a default state. The default state can be pre-set by the designer of the virtual scene editor, for example, the default state means a circle with a radius of 20 centimeters, and for another example, the default state means a circle with a radius of 20 centimeters and a black color.

[0098] In an example embodiment, before the brush is displayed in the virtual scene, a brush state setting page can also be displayed, and the brush is displayed in the virtual scene based on the state set in the brush state setting page. The brush state setting page is used to set the display state of the brush, and the display state of the brush includes but is not limited to the shape, size and color of the brush.

[0099] In an example embodiment, after displaying the brush in the virtual scene, further comprising: adjusting the state of the displayed brush in the virtual scene in response to a brush state adjustment operation, the state of the brush comprising at least one of a shape, a color, and a size of the brush. That is, after displaying the brush, the state of the displayed brush can be adjusted, and the state that can be adjusted includes, but is not limited to, at least one of the shape, the color, and the size.

[0100] In an example embodiment, the brush state adjustment entry is provided in the virtual scene editor, and in response to a triggering operation of the brush state adjustment entry, a brush state adjustment page can be displayed, in which the current state of the brush is displayed, and at least one of the current state is editable; in response to an editing operation of the editable state and in response to a confirmation operation, the brush state adjustment operation is obtained. The brush state adjustment operation is used to indicate how to adjust the state of the brush displayed in the virtual scene, and according to the brush state adjustment operation, the state of the brush displayed in the virtual scene can be adjusted.

[0101] For example, taking the brush state adjustment operation as an operation of adjusting the size of the brush and the shape of the brush as a circle as an example, before the brush state adjustment operation is obtained, the brush displayed in the virtual scene can be as shown in 401 of FIG. 4A, or as shown in 501 of FIG. 5A. If the obtained brush state adjustment operation is used to reduce the size of the brush, the brush displayed in the virtual scene can be as shown in 601 of FIG. 6A, or as shown in 701 of FIG. 7A. If the obtained brush adjustment operation is used to enlarge the size of the brush, the brush displayed in the virtual scene can be as shown in 801 of FIG. 8A, or as shown in 901 of FIG. 9A. By adjusting the size of the brush, the effect of adjusting the degree of refinement of the region division can be achieved, and the smaller the size of the brush, the higher the degree of refinement of the region division. Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 By adjusting the size of the brush, the effect of adjusting the degree of refinement of the region division can be achieved, and the smaller the size of the brush, the higher the degree of refinement of the region division.

[0102] In an example embodiment, in response to the triggering operation of the brush mode, the process of displaying the brush in the virtual scene comprises: in response to the triggering operation of the brush mode, displaying a candidate scene element type; in response to a selection operation of a first scene element type in the candidate scene element type, displaying a brush corresponding to the first scene element type in the virtual scene. That is, the brush displayed in the virtual scene is the brush corresponding to the first scene element type selected from the candidate scene element type.

[0103] ​​​​​​The candidate scene element type is a scene element type corresponding to a virtual scene that supports region division by a brush. The scene element type refers to a type of scene element in the virtual scene, and the scene element type supporting region division by a brush refers to the ability to divide a region in which a scene element corresponding to the scene element type is located by using a brush. The candidate scene element type is set according to the actual situation of the virtual scene or is flexibly adjusted according to requirements, and embodiments of the present application do not limit this. Illustratively, the candidate scene element type can include a road type, a city type, a jungle type, and the like. In some embodiments, the scene element type can also be referred to as a mask type.

[0104] In an example embodiment, the manner of displaying the candidate scene element type includes: displaying an initial scene element type and a scene element type adjustment control; in response to a triggering operation of the scene element type adjustment control, adjusting the initial scene element type according to an adjustment manner indicated by the scene element type adjustment control; and displaying the candidate scene element type obtained after the adjustment. The scene element type adjustment control is used to trigger the adjustment of the initial scene element type, and the initial scene element type is a default displayed selectable scene element type.

[0105] Illustratively, the scene element type adjustment control includes but is not limited to a scene element type addition control, a scene element type copy control, and a scene element type deletion control. Each adjustment control is used to indicate an adjustment manner, for example, the scene element type addition control indicates an adjustment manner of adding one or more scene element types in the initial scene element type; the scene element type copy control indicates an adjustment manner of copying other scene element types into the initial scene element type; and the scene element type deletion control indicates an adjustment manner of deleting one or more scene element types in the initial scene element type.

[0106] For example, the scene element type adjustment control is as shown in FIG. 8, in which the scene element type adjustment control includes a scene element type addition control of the word “add type” and its icon identifier, a scene element type copy control of the word “copy type” and its icon identifier, and a scene element type deletion control of the word “delete type” and its icon identifier. Figure 10 Figure 10 For example, the scene element type adjustment control is as shown in FIG. 8, in which the scene element type adjustment control includes a scene element type addition control of the word “add type” and its icon identifier, a scene element type copy control of the word “copy type” and its icon identifier, and a scene element type deletion control of the word “delete type” and its icon identifier.

[0107] ​After displaying the candidate scene element types, a scene element type can be selected as the target scene element type for subsequent region division. The selected candidate scene element type is referred to as the first scene element type. Each candidate scene element type corresponds to a brush. When the first scene element type is selected, the brush displayed in the virtual scene is the brush used for region division based on the first scene element type, that is, the brush corresponding to the first scene element type. The brushes corresponding to different scene element types can be the same or different, and this application embodiment does not limit this.

[0108] Of course, in some embodiments, the division of the virtual scene area can refer to the division of the area for all scene element types. In this case, there is no need to select the scene element type. The brush displayed in the virtual scene is a brush that is common to all scene element types. That is, all scene element types correspond to the same brush.

[0109] In step 203, in response to the first movement operation of the brush in the virtual scene, the first region is determined and marked in the virtual scene using the first marker; wherein, the first movement operation is used to control the brush to paint out the divided region, and the first region is the region painted out by the brush during the first movement operation.

[0110] The first movement operation of the brush in the virtual scene can refer to any operation of the brush in the virtual scene, and this embodiment of the application does not limit this. For example, the first movement operation can refer to a movement operation along a straight line or a movement operation along an irregular curve. Exemplarily, the first movement operation can be a continuous operation or multiple discontinuous operations. Exemplarily, the first movement operation can refer to the operation of the user controlling the brush to move using one or more devices such as a keyboard, touchpad, touch screen, remote control, and mouse. The first movement operation is flexibly set by the user according to their needs.

[0111] The first movement operation involves controlling the brush to paint out a defined area. In other words, the purpose of this first movement operation is to directly paint out the area to be divided. After acquiring the first movement operation, the area painted by the brush during this operation is determined and designated as the first region in the virtual scene. Thus, the first region has been successfully divided in the virtual scene.

[0112] In the embodiments of the present application, the first region is the region directly brushed by the brush itself, instead of a region further determined according to the brushed region (for example, a region surrounded by the brushed region, a region located at a certain orientation of the brushed region, etc.), that is, the region brushed by the brush is the divided region, which is intuitive and convenient. In addition, since the brush has high flexibility in operation, the flexibility of dividing the first region is improved, the difficulty of region division is reduced, the game experience of the player in the virtual scene is improved, and the human-computer interaction rate of the application program providing the virtual scene is improved.

[0113] In the example embodiments, the implementation process of determining the first divided region includes: determining a first grid brushed by the brush in the process of the first movement operation in the candidate grid of the virtual scene, and determining the first region based on the region where the first grid is located; wherein the candidate grid is obtained by meshing the virtual scene.

[0114] Before determining the region division result of the virtual scene, the virtual scene can be meshed to obtain the candidate grid in the virtual scene. The sizes of different candidate grids in the virtual scene can be the same or different. Taking the same size of different candidate grids as an example, the size of each candidate grid can be set according to experience or flexibly adjusted according to the actual situation of the virtual scene, which is not limited in the embodiments of the present application. For example, taking the unit length of the virtual scene as 1 meter as an example, one candidate grid can be a 4m*4m square grid, or a 2m*2m square grid, or a 4m*2m rectangular grid, etc. For example, each candidate grid can be called a pgrid (p-grid).

[0115] The embodiments of the present application do not limit the implementation manner of determining the first grid brushed by the brush in the process of the first movement operation in the candidate grid. For example, if the brush brushes the entire region of one candidate grid in the process of the first movement operation, the one candidate grid is taken as a first grid. For example, if the brush brushes part of the region of one candidate grid in the process of the first movement operation, the one candidate grid is taken as a first grid. For example, if the proportion of the region of one candidate grid brushed by the brush in the process of the first movement operation is not less than a proportion threshold, the one candidate grid is taken as a first grid. The proportion of the region of one candidate grid brushed by the brush in the process of the first movement operation refers to the ratio of the size of the region of the one candidate grid brushed by the brush in the process of the first movement operation to the size of the entire region of the candidate grid. The proportion threshold can be set according to experience.

[0116] After the first mesh is determined, a first region is determined based on a region in which the first mesh is located. Illustratively, the region in which the first mesh is located can be directly taken as the first region. Illustratively, a region in which the first mesh is located and that satisfies a reference condition can also be taken as the first region. The reference condition is set according to experience, for example, for the case where the brush is a brush corresponding to the first scene element type, the region satisfying the reference condition can refer to a region in which a scene element of the first scene element type is located. For another example, the region satisfying the reference condition can also refer to a region in which the virtual object is allowed to move, and the like. Illustratively, the first region can include one connected region, or can include multiple unconnected regions.

[0117] Of course, in some embodiments, the virtual scene can also not be meshed, and the region in which the pixels brushed by the brush in the process of the first moving operation are located can be directly taken as the first region.

[0118] The first region is marked in the virtual scene by using the first mark, so as to intuitively present the division result of the first region by using the first mark. Illustratively, the operation of marking the first region can be performed in real time in the process of dividing the first region, that is, each time a part of the first region is divided, the part of the first region is marked in the virtual scene by using the first mark, until the complete first region is marked. Illustratively, the complete first region can also be marked in the virtual scene by using the first mark after the complete first region is divided.

[0119] The first mark can refer to a mark bound to the brush corresponding to the first moving operation, and the first mark can be a pre-set fixed mark, or can be a mark selected from candidate marks before the first region is divided. Illustratively, the type of the first mark can refer to a letter, a number, a color, and the like, and embodiments of the present application do not limit this. After the first region is marked in the virtual scene by using the first mark, the size of the range of the first mark in the virtual scene can be directly observed.

[0120] Illustratively, taking the first mark as an example, before the brush is controlled to perform the first moving operation, the method further includes: displaying candidate marks; and in response to a selection operation of the first mark in the candidate marks, binding the brush to the first mark.

[0121] The candidate marker is a selectable marker, and the type of the candidate marker is not limited in the embodiments of the present application. For example, the type of the candidate marker can be color, number, letter, or the like. The specific type of the candidate marker can be set according to experience or adjusted flexibly according to the application scenario. For example, when the type of the candidate marker is color, the candidate marker can include red, yellow, blue, black, gray, and the like; when the type of the candidate marker is number, the candidate marker can include 1, 2, 3, 4, 5, and the like; and when the type of the candidate marker is letter, the candidate marker can include a, b, c, d, e, and the like.

[0122] For example, the process of displaying the candidate marker includes: displaying an initial marker and a marker adjustment control; in response to a triggering operation of the marker adjustment control, adjusting the initial marker according to an adjustment mode indicated by the marker adjustment control; and displaying the candidate marker obtained after the adjustment. The marker adjustment control is used to trigger the adjustment of the initial marker, and the initial marker is a selectable marker displayed by default.

[0123] For example, the marker adjustment control includes, but is not limited to, a marker increase control and an adjustment sub-control corresponding to the initial marker. For example, each initial marker corresponds to the same adjustment sub-control, and the adjustment sub-control corresponding to any initial marker can be triggered to be displayed through a target operation of the any initial marker. For example, the target operation of any initial marker can be a right-click operation of a mouse on the any initial marker, a double-click operation of the mouse on the any initial marker, or a single-click operation of the mouse on the any initial marker.

[0124] The adjustment sub-control corresponding to any initial marker is used to adjust the any initial marker. For example, the adjustment sub-control corresponding to any initial marker includes, but is not limited to, a replacement control and a removal control. For example, the adjustment sub-control corresponding to any initial marker can be displayed in the same menu as other controls corresponding to the any initial marker. For example, the other controls corresponding to the any initial marker can include a copy name control and a copy color control.

[0125] It should be noted that the above description is only an example in which each initial marker corresponds to the same adjustment sub-control, and the embodiments of the present application are not limited thereto. In some embodiments, different initial markers can correspond to different adjustment sub-controls.

[0126] For example, the adjustment interface of the initial marker can be as shown in Figure 11 For example, the adjustment interface of the initial marker can be as shown in Figure 11In the interface shown, the type of the label is color, and six different color blocks representing six different initial labels are displayed in the interface, and a label adding control labeled with the text "Increase color" is also displayed in the interface. The initial label represented by the first block in the second row corresponds to a menu that displays a replace control labeled with the text "Replace with", a remove control labeled with the text "Remove color from the scene", a copy name control labeled with the text "Copy label name", and a copy color control labeled with the text "Copy color". In addition, in the interface shown, the text "City" is also displayed, which is used to indicate that the current label is a label bound to a brush corresponding to the scene element type "City". Figure 11 In the interface shown, the text "City" is also displayed, which is used to indicate that the current label is a label bound to a brush corresponding to the scene element type "City".

[0127] The first label is any one of the candidate labels. After obtaining the selection operation of the first label in the candidate labels, the brush displayed in the virtual scene is bound to the first label, so as to mark the first region divided based on the brush by using the first label. For example, the result of marking the first region by using the first label can be as shown in 402 in FIG. 4. Figure 4 Figure 4 402 in FIG. 4 is the region itself directly brushed by the brush.

[0128] In step 204, the region division result of the virtual scene is determined based on the first region.

[0129] The region division result of the virtual scene is used to indicate the region division situation of the virtual scene, for example, how many regions are divided in the virtual scene, the position and size of each region, and the label used to mark each region. The representation manner of the region division result is not limited in the embodiments of the present application. For example, the region division result can be represented by a region distribution diagram, which can be a diagram with the same size as the virtual scene, or a diagram smaller than the virtual scene, for example, a diagram obtained by reducing a candidate grid in the virtual scene to one pixel. In any case, the region distribution diagram can indicate the region division situation of the virtual scene. For example, taking a candidate grid with a size of 4m*4m as an example, the region distribution diagram obtained by reducing a candidate grid in the virtual scene to one pixel has a size ratio of 1:16 with respect to the virtual scene. Of course, in some embodiments, the region division result can also be represented in the form of an array or a table, which is not limited in the embodiments of the present application.

[0130] In a possible implementation manner, the process of determining the region division result of the virtual scene based on the first region includes: judging whether the first movement operation satisfies a region division termination condition; and if the first movement operation satisfies the region division termination condition, generating a region distribution diagram based on the first region, and taking the region distribution diagram as the region division result. ​

[0131] The first movement operation satisfying the region division termination condition indicates that the region division process of the virtual scene ends, that is, only the first region is divided in the virtual scene, and at this time, a region distribution map is generated based on the position of the first region in the virtual scene, and the region distribution map is taken as the region division result.

[0132] In an example embodiment, the manner of generating the region distribution map based on the first region can be that other information in the virtual scene except the first region marked by the first mark is hidden to obtain the region distribution map. In an example embodiment, the manner of generating the region distribution map based on the first region can also be that other information in the virtual scene except the first region marked by the first mark is hidden, the hidden map is reduced according to the size of the candidate grid, and the reduced map is taken as the region distribution map. Reducing the hidden map according to the size of the candidate grid means that each candidate grid in the hidden map is reduced to a pixel.

[0133] In an example embodiment, the manner of generating the region distribution map based on the first region can also be that other regions except the first region are marked by default marks, and a map showing the other regions marked by the default marks and the first region marked by the first mark or a reduced map is taken as the region distribution map. The default mark is different from the mark used to mark the region divided by the brush, so as to distinguish.

[0134] The first movement operation satisfying the region division termination condition is set according to experience or is flexibly adjusted according to application scenarios, and embodiments of the present application do not limit this. Illustratively, the first movement operation satisfying the region division termination condition can mean that a trigger operation of a region division end control is detected after the first movement operation. Illustratively, the first movement operation satisfying the region division termination condition can also mean that no other brush movement operation is detected within a reference time period after the first movement operation is executed. The reference time period is set according to experience, for example, the reference time period is 5 minutes. Illustratively, the first movement operation satisfying the region division termination condition can also mean that the currently divided region occupies all the regions of the virtual scene. Illustratively, the first movement operation satisfying the region division termination condition can also mean that a trigger operation of a save control is detected after the first movement operation, and the save control is used to save the region division result based on the currently divided region.

[0135] In the example embodiment, the first movement operation can also not satisfy the region division termination condition, in which case, in response to a second movement operation of the brush in the virtual scene, a second region is determined and marked in the virtual scene using a second mark. The second mark is different from the first mark, and the second region is a region painted by the brush during the second movement operation.

[0136] When the first movement operation does not satisfy the region division termination condition, it indicates that the user will continue to divide other regions by the brush, that is, will control the brush to generate other movement operations in the virtual scene. For ease of distinction, the movement operation generated after the first movement operation is referred to as a second movement operation, and the second movement operation is an operation of controlling the brush to paint another divided region. After the second movement operation is obtained, a region (i.e., a second region) painted by the brush during the second movement operation is marked in the virtual scene using a second mark. The implementation principle of marking the second region is the same as that of marking the first region, which will not be described again here. The second mark used to mark the second region is different from the first mark used to mark the first region. Different marks are used to mark different regions in the virtual scene, which can be used to intuitively distinguish different regions.

[0137] For example, the second region can have no overlapping region with the first region, or can have an overlapping region with the first region. The present embodiment does not limit this.

[0138] After the second region is marked, it is determined whether the second movement operation satisfies the region division termination condition. If the second movement operation satisfies the region division termination condition, a region distribution map is generated based on the first region and the second region, and the region distribution map is taken as a region division result. If the second movement operation does not satisfy the region division termination condition, a third movement operation of the brush in the virtual scene is continued to be obtained, and a third region painted by the brush during the third movement operation is marked in the virtual scene using a third mark. This is repeated until the latest movement operation satisfies the region division termination condition. The third mark is different from the first mark and the second mark. For example, the second region can be as shown in 403 in FIG. 4, and the third region can be as shown in 404 in FIG. 4. Figure 4 Figure 4 Figure 4 402, 403 and 404 in FIG. 4 are regions painted by the brush during different movement operations, and different regions are marked using different marks (e.g., different colors) for ease of distinction.

[0139] ​​It should be noted that the region divided when the region division termination condition is met can occupy the entire region of the virtual scene, or can occupy part of the region of the virtual scene. That is, there can be a region that is not brushed by the brush, and this part of the region that is not brushed by the brush can be considered as a region that does not need to be concerned in the region division process, that is, a region that does not need to be associated with the game logic.

[0140] Exemplarily, for the case that the second region and the first region do not have an overlapping region, the manner of generating the region distribution map based on the first region and the second region can be: hiding other information in the virtual scene except the first region marked by the first mark and the second region marked by the second mark, to obtain the region distribution map. Exemplarily, for the case that the second region and the first region do not have an overlapping region, the manner of generating the region distribution map based on the first region and the second region can also be: hiding other information in the virtual scene except the first region marked by the first mark and the second region marked by the second mark, reducing the obtained map after hiding according to the size of the candidate grid, and taking the reduced map as the region distribution map. Reducing the obtained map after hiding according to the size of the candidate grid means that each candidate grid in the obtained map after hiding is reduced to a pixel.

[0141] In an exemplary embodiment, for the case that the second region and the first region do not have an overlapping region, the manner of generating the region distribution map based on the first region and the second region can also be: marking other regions except the first region and the second region with a default mark, and taking the map or the reduced map that presents the other regions marked with the default mark, the first region marked with the first mark, and the second region marked with the second mark as the region distribution map.

[0142] Exemplarily, for the case that the second region and the first region have an overlapping region, the manner of generating the region distribution map based on the first region and the second region can be: taking the region in the first region except the overlapping region as an updated first region, and generating the region distribution map based on the updated first region marked with the first mark and the second region marked with the second mark.

[0143] Exemplarily, other information in the virtual scene except the updated first region marked by the first mark and the second region marked by the second mark is hidden to obtain a region distribution map. Exemplarily, other information in the virtual scene except the updated first region marked by the first mark and the second region marked by the second mark is hidden, and the hidden map is reduced according to the size of the candidate grid, and the reduced map is taken as the region distribution map. Exemplarily, other regions except the updated first region and the second region are marked by a default mark, and the map or the reduced map presented with the other regions marked by the default mark, the updated first region marked by the first mark, and the second region marked by the second mark is taken as the region distribution map.

[0144] In an exemplary embodiment, based on the first region, the manner of determining the region division result of the virtual scene can also be that: in response to an adjustment operation of the first region, an adjusted first region is determined, and based on the adjusted first region, the region division result of the virtual scene is determined. After marking the first region, an adjustment option can be provided to allow the user to adjust the first region divided by the brush, and this manner can reduce the deviation between the region divided by the brush and the actual intended divided region, and improve the reliability of the region division result.

[0145] In an exemplary embodiment, for the case that the brush is a brush corresponding to the first scene element type, the determined region division result refers to a region division result matching the first scene element type. After obtaining the region division result matching the first scene element type, region division results matching other scene element types can also be obtained according to the same principle, so as to create different region division results corresponding to different types of scene elements.

[0146] In an exemplary embodiment, after obtaining the region division result, the region division result can be stored in a game directory for game play calling. Exemplarily, for the case that the form of the region division result is a region distribution map, the region distribution map can be stored in the game directory in the form of a picture. For example, the form of the picture can be PNG form.

[0147] Exemplarily, using the region distribution map to represent the region division result can achieve a what-you-see-is-what-you-get effect. Exemplarily, the region division situation in the virtual scene and the region distribution map saved in PNG form can be respectively as shown in (1) and (2) of Figure 12 , or can be respectively as shown in (1) and (2) of Figure 13 . In (2) of Figure 13 , the black region refers to a region not divided by the brush, which can be considered as a pgrid without mask.

[0148] Exemplarily, when the same virtual scene is loaded again, the virtual scene editor can load the last editing result at initialization, so that the subsequent virtual scene editing work can be continued smoothly and quickly.

[0149] In an exemplary embodiment, after determining the region division result of the virtual scene, the method further includes: determining an association relationship between the regions and game logics based on the region division result; and determining the game logics to be executed based on the association relationship and the regions involved in the game. In a game, a large world scene often needs to be arranged with various elements (such as monsters and treasure chests to be refreshed in a certain region) or set with various change mechanisms (such as moving to a certain region to switch background music, the main character becoming attackable, etc.), which can be referred to as game logics. Associating these game logics with the regions divided in the virtual scene can enable different game logics to be run in different regions, thereby enriching the game experience.

[0150] Exemplarily, since a game is usually based on a scene for virtual object activities, when determining the game logics to be executed based on the association relationship and the regions involved in the game, if the virtual scene of the divided region is the scene for virtual object activities itself, no region conversion is needed, and the corresponding game logics can be found in the association relationship according to the regions involved in the game, and the found game logics are taken as the game logics to be executed. If the virtual scene of the divided region is a scene obtained by size adjustment on the scene for virtual object activities, the regions involved in the game need to be converted into regions in the virtual scene according to the size adjustment mode, and then the corresponding game logics can be found in the association relationship according to the converted regions, and the found game logics are taken as the game logics to be executed.

[0151] The method provided by the embodiments of the present application converts the complex data editing logic into virtual scene intuitive editing logic, so that the work result is clear and understandable; and abstracts the virtual scene editing function as a brush function in the virtual scene editor, thereby realizing the function of real-time editing of the region distribution map. The method can more intuitively and conveniently divide the virtual scene into regions, thereby improving the efficiency and accuracy of the region division work.

[0152] The region division method of the virtual scene provided by the embodiments of the present application provides a brush mode, and based on triggering the brush mode, the divided regions can be directly brushed out by using the brush, so as to realize the region division of the virtual scene. The region division method has better intuitiveness, can conveniently divide the regions by using the brush, has smaller difficulty in region division, is beneficial to improving the game experience of the player in the virtual scene, and further improves the human-computer interaction rate of the application program providing the virtual scene.

[0153] Reference is made to Figure 14The embodiment of the present application provides a region division device of a virtual scene, the device comprises:

[0154] The first display module 1401 is used for displaying a virtual scene, the virtual scene is a scene for virtual object activity or a scene obtained after size adjustment of the scene for virtual object activity;

[0155] The second display module 1402 is used for displaying a brush in the virtual scene in response to a trigger operation of the brush mode;

[0156] The first determination module 1403 is used for determining a first region divided in response to a first movement operation of the brush in the virtual scene; wherein the first movement operation is used for brushing out the divided region by controlling the brush, and the first region is a region brushed out by the brush in the process of the first movement operation;

[0157] The marking module 1404 is used for marking the first region in the virtual scene by using a first mark;

[0158] The second determination module 1405 is used for determining a region division result of the virtual scene based on the first region.

[0159] In a possible implementation manner, the second display module 1402 is further used for displaying a candidate mark; and the brush is bound to the first mark in response to a selection operation of the first mark in the candidate mark.

[0160] In a possible implementation manner, the second determination module 1405 is used for generating a region distribution map based on the first region if the first movement operation meets a region division termination condition, and taking the region distribution map as the region division result; if the first movement operation does not meet the region division termination condition, determining a second region divided in response to a second movement operation of the brush in the virtual scene, marking the second region in the virtual scene by using a second mark, the second mark being different from the first mark, the second region being a region brushed out by the brush in the process of the second movement operation; and if the second movement operation meets the region division termination condition, generating the region distribution map based on the first region and the second region, and taking the region distribution map as the region division result.

[0161] In a possible implementation manner, the first region and the second region have an overlapping region, and the second determination module 1405 is used for taking other regions in the first region except the overlapping region as an updated first region; and generating the region distribution map based on the updated first region marked by using the first mark and the second region marked by using the second mark.

[0162] In a possible implementation manner, the second determination module 1405 is used for determining an adjusted first region in response to an adjustment operation of the first region; and determining the region division result of the virtual scene based on the adjusted first region.

[0163] In a possible implementation, the first determining module 1403 is configured to determine, in the candidate mesh of the virtual scene, a first mesh that is painted by the brush in the process of the first moving operation, the candidate mesh being obtained by meshing the virtual scene; and determine the first region based on a region in which the first mesh is located.

[0164] In a possible implementation, the second displaying module 1402 is configured to, in response to a triggering operation of the brush mode, display candidate scene element types, the candidate scene element types being scene element types corresponding to the virtual scene and supporting division of regions by the brush, each of the candidate scene element types corresponding to a brush; and in response to a selection operation of a first scene element type in the candidate scene element types, display a brush corresponding to the first scene element type in the virtual scene.

[0165] In a possible implementation, the region division result is a region division result that matches the first scene element type.

[0166] In a possible implementation, the apparatus further includes:

[0167] The adjusting module is configured to, in response to a brush state adjusting operation, adjust a state of the brush displayed in the virtual scene, the state of the brush including at least one of a shape, a color, and a size of the brush.

[0168] The virtual scene region division apparatus provided by the embodiments of the present application provides a brush mode, and on the basis that the brush mode is triggered, a divided region can be directly painted by using a brush, so as to realize region division of the virtual scene. The region division method is better in intuitiveness, and the region can be conveniently divided by using the brush, so that the difficulty of region division is smaller, and the game experience of a player in the virtual scene is improved, and the human-computer interaction rate of an application program providing the virtual scene is improved.

[0169] It should be noted that the apparatus provided by the above-described embodiments is only used as an example for dividing the above-described function modules, and in actual application, the above-described functions can be completed by different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the above-described functions. In addition, the apparatus and method embodiments provided by the above-described embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be described here.

[0170] Figure 15is a structural schematic diagram of a computer device provided by an embodiment of the present application. The computer device can be a terminal, which can be, for example, a PC, a mobile phone, a smartphone, a PDA, a wearable device, a PPC, a tablet computer, a smart car machine, a smart television, a smart speaker, a vehicle-mounted terminal. The terminal can also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, and other names.

[0171] Generally, the terminal includes a processor 1501 and a memory 1502.

[0172] The processor 1501 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 can be implemented in the form of at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1501 can also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by a display screen. In some embodiments, the processor 1501 can further include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.

[0173] The memory 1502 can include one or more computer-readable storage media, which can be non-transitory. The memory 1502 can also include a high-speed random access memory and a non-volatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction for being executed by the processor 1501 to enable the terminal to implement the region division method of the virtual scene provided by the method embodiment of the present application.

[0174] In some embodiments, the terminal can further optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1503 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, a positioning assembly 1508 and a power supply 1509.

[0175] The peripheral device interface 1503 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502 and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502 and the peripheral device interface 1503 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.

[0176] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1504 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area networks and / or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1504 can also include NFC (Near Field Communication) related circuitry, which is not limited in the present application.

[0177] The display screen 1505 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 is further configured to capture touch signals on or above the surface of the display screen 1505. The touch signals can be input to the processor 1501 as control signals for processing. In this case, the display screen 1505 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1505 can be one, disposed on the front panel of the terminal; in other embodiments, the display screen 1505 can be at least two, respectively disposed on different surfaces of the terminal or in a folding design; in other embodiments, the display screen 1505 can be a flexible display screen, disposed on a curved surface or a folding surface of the terminal. Even, the display screen 1505 can also be disposed in an irregular shape, i.e., a special-shaped screen. The display screen 1505 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0178] The camera assembly 1506 is configured to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, the rear camera is at least two, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blur function by fusing the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1506 can further include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0179] The audio circuit 1507 can include a microphone and a speaker. The microphone is used to collect sound waves of a user and an environment, and convert the sound waves into an electrical signal input to the processor 1501 for processing, or input to the radio frequency circuit 1504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert an electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can the electrical signal be converted into a sound wave audible to humans, but also can be converted into a sound wave inaudible to humans for ranging purposes. In some embodiments, the audio circuit 1507 can also include a headphone jack.

[0180] The positioning component 1508 is used to position the current geographic position of the terminal to realize navigation or LBS (Location Based Service, Location Based Service).

[0181] The power supply 1509 is used to supply power to various components in the terminal. The power supply 1509 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1509 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0182] In some embodiments, the terminal also includes one or more sensors 1510. The one or more sensors 1510 include but are not limited to: an acceleration sensor 1511, a gyroscope sensor 1512, a pressure sensor 1513, a fingerprint sensor 1514, an optical sensor 1515 and a proximity sensor 1516.

[0183] The acceleration sensor 1511 can detect the acceleration in three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 1511 can be used to detect the components of gravitational acceleration in three coordinate axes. The processor 1501 can control the display screen 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 can also be used for game or user motion data collection.

[0184] The gyroscope sensor 1512 can detect the body direction and rotation angle of the terminal, and the gyroscope sensor 1512 can collect 3D actions of the user on the terminal in cooperation with the acceleration sensor 1511. According to the data collected by the gyroscope sensor 1512, the processor 1501 can realize the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.

[0185] The pressure sensor 1513 can be arranged on the side frame of the terminal and / or the lower layer of the display screen 1505. When the pressure sensor 1513 is arranged on the side frame of the terminal, the user's holding signal on the terminal can be detected, and the left and right hand recognition or shortcut operation can be performed by the processor 1501 according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is arranged on the lower layer of the display screen 1505, the operable control on the UI interface can be controlled by the processor 1501 according to the pressure operation of the user on the display screen 1505. The operable control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0186] The fingerprint sensor 1514 is used to collect the fingerprint of the user, and the identity of the user is recognized by the processor 1501 according to the fingerprint collected by the fingerprint sensor 1514, or by the fingerprint sensor 1514 according to the collected fingerprint. When the identity of the user is recognized as a trusted identity, the user is authorized by the processor 1501 to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, payment, and changing settings. The fingerprint sensor 1514 can be arranged on the front, back or side of the terminal. When the terminal is provided with a physical button or a manufacturer's logo (trademark), the fingerprint sensor 1514 can be integrated with the physical button or the manufacturer's logo.

[0187] The optical sensor 1515 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the display screen 1505 according to the ambient light intensity collected by the optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the display screen 1505 is decreased. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1515.

[0188] The proximity sensor 1516, also referred to as a distance sensor, is usually arranged on the front panel of the terminal. The proximity sensor 1516 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front of the terminal gradually decreases, the display screen 1505 is switched from the bright screen state to the screen-off state under the control of the processor 1501; when the proximity sensor 1516 detects that the distance between the user and the front of the terminal gradually increases, the display screen 1505 is switched from the screen-off state to the bright screen state under the control of the processor 1501.

[0189] Those skilled in the art can understand that the structure shown in the foregoing embodiments does not constitute a limitation on the terminal, and the terminal can include more or fewer components than those shown in the drawings, or combine certain components, or adopt a different component arrangement. Figure 15

[0190] In an example embodiment, a computer device is also provided, which includes a processor and a memory having at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to enable the computer device to implement any of the above-mentioned region division methods for a virtual scene.

[0191] In an example embodiment, a computer readable storage medium is also provided, which has at least one computer program stored therein. The at least one computer program is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-mentioned region division methods for a virtual scene.

[0192] In a possible implementation manner, the above-mentioned computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0193] In an example embodiment, a computer program product is also provided, which includes a computer program or computer instructions loaded and executed by a processor to enable a computer to implement any of the above-mentioned region division methods for a virtual scene.

[0194] ​It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the brush mode triggering operation, the brush moving operation in the virtual scene and the like involved in the present application are acquired under full authorization.

[0195] It should be understood that "multiple" referred to herein means two or more. "And / or", which describes the association relationship of associated objects, indicates that there can be three relationships, for example, A and / or B can represent the three cases of A existing alone, A and B existing together, and B existing alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship.

[0196] The above only describes exemplary embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for region division of a virtual scene, characterized in that, The method comprises: displaying a virtual scene, the virtual scene being a scene for virtual object activities or a scene obtained by resizing a scene for virtual object activities; in response to a triggering operation of a brush mode, displaying candidate scene element types, the candidate scene element types being scene element types corresponding to the virtual scene and supporting division of regions by a brush, each candidate scene element type corresponding to a brush; in response to a selection operation of a first scene element type in the candidate scene element types, displaying a brush corresponding to the first scene element type in the virtual scene; in response to a first movement operation of the brush in the virtual scene, determining a first divided region, and marking the first divided region in the virtual scene by using a first mark; the first movement operation is used to control the brush to brush out a divided region, the first region being a region brushed out by the brush in the process of the first movement operation, and the first region including one connected region or multiple unconnected regions; if the first movement operation meets a region division termination condition, generating a region distribution map based on the first region, taking the region distribution map as a region division result of the virtual scene, hiding other information in the virtual scene except the first region marked by the first mark, or marking other regions except the first region by using a default mark; the first movement operation meeting the region division termination condition indicates that a region division process of the virtual scene ends.

2. The method of claim 1, wherein, Before the response to the first movement operation of the brush in the virtual scene, the method further comprises: displaying candidate marks; in response to a selection operation of the first mark in the candidate marks, binding the brush to the first mark.

3. The method of claim 1, wherein, The method further comprises: if the first movement operation does not meet the region division termination condition, in response to a second movement operation of the brush in the virtual scene, determining a second divided region, marking the second divided region in the virtual scene by using a second mark, the second mark being different from the first mark, and the second region being a region brushed out by the brush in the process of the second movement operation; if the second movement operation meets the region division termination condition, generating a region distribution map based on the first region and the second region, and taking the region distribution map as the region division result.

4. The method of claim 3, wherein, The first region and the second region have an overlapping region, and the generating of the region distribution map based on the first region and the second region comprises: taking a region in the first region except the overlapping region as an updated first region; generating the region distribution map based on the updated first region marked by the first mark and the second region marked by the second mark.

5. The method of claim 1, wherein, The determining of the region division result of the virtual scene based on the first region comprises: in response to an adjustment operation of the first region, determining an adjusted first region; determining the region division result of the virtual scene based on the adjusted first region.

6. The method of claim 5, wherein, The region division result is a region division result matching the first scene element type.

7. The method according to any of claims 1 to 6, characterized in that After the brush is displayed in the virtual scene, the method further includes: In response to a brush state adjustment operation, adjusting a state of the brush displayed in the virtual scene, the state of the brush including at least one of a shape, a color, and a size of the brush.

8. An apparatus for region division of a virtual scene, characterized by comprising: The apparatus includes: A first display module configured to display a virtual scene, the virtual scene being a scene for virtual object activities or a scene obtained by resizing a scene for virtual object activities; A second display module configured to, in response to a trigger operation of a brush mode, display candidate scene element types, the candidate scene element types being scene element types corresponding to the virtual scene and supporting region division by a brush, each candidate scene element type corresponding to a brush; and in response to a selection operation of a first scene element type in the candidate scene element types, display a brush corresponding to the first scene element type in the virtual scene. A first determination module configured to, in response to a first movement operation of the brush in the virtual scene, determine a first divided region, wherein the first movement operation is used to control the brush to draw the first divided region, the first divided region being a region drawn by the brush during the first movement operation, and the first divided region including one connected region or multiple unconnected regions. A marking module configured to mark the first divided region in the virtual scene by using a first mark. A second determination module configured to, if the first movement operation satisfies a region division termination condition, generate a region distribution map based on the first divided region, use the region distribution map as a region division result of the virtual scene, hide other information in the virtual scene except the first divided region marked by the first mark, or mark other regions except the first divided region by using a default mark, and indicate that a region division process of the virtual scene ends.

9. A computer device, comprising: The computer device includes a processor and a memory, and the memory stores at least one computer program, which is loaded and executed by the processor to enable the computer device to implement the region division method of the virtual scene according to any one of claims 1 to 7. The computer device includes a processor and a memory, and the memory stores at least one computer program, which is loaded and executed by the processor to enable the computer device to implement the region division method of the virtual scene according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for dividing boundaries of game space area and motion sensing game system

    CN103768789A

  • Image editing method and device for virtual scene

    CN110827303A