Virtual scene data processing method and device, electronic equipment and storage medium
By using tag editing controls and interactive mode controls in virtual scenes, the matching relationship between interactive areas and interactive modes is solved, and more efficient human-computer interaction and data editing is achieved.
Patent Information
- Application Number
- CN202411669533.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-18
AI Technical Summary
In the prior art, the data processing efficiency of the interactive area in the virtual scene is low, and there is a lack of effective ways to improve the processing efficiency.
By displaying the label editing controls corresponding to the virtual scene and the interactive area, displaying the labels in response to the editing operation, and configuring the matching relationship between the interactive mode and the interactive area through the interactive mode control, improving data editing efficiency.
It improves the matching efficiency between interactive areas and interactive modes in virtual scenes, reduces operation difficulty, supports tag matching between multiple interactive areas and multiple interactive modes, and improves human-computer interaction efficiency and data accuracy.
Smart Images

Figure CN119633368A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and in particular to a data processing method, device, electronic device and storage medium for a virtual scene. Background Art
[0002] The interactive area in the virtual scene is an area where interactive operations are performed between virtual objects and virtual props, and between virtual objects and other virtual objects (player virtual objects or non-player virtual objects). In the related art, a large number of different interactive areas are configured in the virtual scene, and developers need to manually configure relevant data for each interactive area, which consumes a lot of time and is inefficient.
[0003] In the related technologies, there is currently no good way to improve the processing efficiency of interactive area data in virtual scenes. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, electronic device, computer-readable storage medium and computer program product for a virtual scene, which can improve the data editing efficiency of interactive areas and interactive modes in the virtual scene and improve the efficiency of human-computer interaction.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a method for processing data of a virtual scene, the method comprising:
[0007] Displaying a virtual scene and a label editing control, wherein the virtual scene includes at least one interactive area;
[0008] In response to an editing operation based on the label editing control, displaying at least one label set for the interactive area;
[0009] In response to a first confirmation operation on the at least one tag, displaying an interactive mode control;
[0010] In response to an editing operation based on the interaction mode control, multiple interaction modes set for the at least one interaction area are displayed, and matching results between the at least one interaction area and the multiple interaction modes are displayed, wherein the matching results include at least the interaction modes matched by each of the interaction areas.
[0011] The present application provides a method for processing data of a virtual scene, the method comprising:
[0012] Displaying a virtual scene, wherein the virtual scene includes a virtual object, and the virtual scene is formed based on the data processing method of the virtual scene in the embodiment of the present application;
[0013] In response to the virtual object being in any interactive area in the virtual scene, environmental materials corresponding to the interactive mode of the interactive area are loaded, and the virtual object is controlled to perform an interactive process based on the interactive mode, wherein the environmental materials are used to execute a preconfigured interactive mode.
[0014] The present application provides a data processing device for a virtual scene, including:
[0015] A display module, used for displaying a virtual scene and a label editing control, wherein the virtual scene includes at least one interactive area;
[0016] The display module is used to display at least one label set for the interactive area in response to an editing operation based on the label editing control;
[0017] The display module is configured to display an interactive mode control in response to a first confirmation operation on the at least one tag;
[0018] The display module is used to display multiple interaction modes set for the at least one interaction area in response to an editing operation based on the interaction mode control, and to display matching results between the at least one interaction area and the multiple interaction modes, wherein the matching results include at least the interaction modes matched by each of the interaction areas.
[0019] The present application provides a data processing device for a virtual scene, including:
[0020] A display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual object, and the virtual scene is formed based on the data processing method of the virtual scene of the embodiment of the present application;
[0021] The display module is used to load environmental materials corresponding to the interactive mode of the interactive area in response to the virtual object being in any interactive area in the virtual scene, and control the virtual object to perform an interactive process based on the interactive mode, wherein the environmental materials are used to execute a preconfigured interactive mode.
[0022] An embodiment of the present application provides an electronic device, the electronic device comprising:
[0023] A memory for storing computer executable instructions or computer programs;
[0024] The processor is used to implement the data processing method of the virtual scene provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory.
[0025] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program, which is used to implement the data processing method of the virtual scene provided by the embodiment of the present application when executed by a processor.
[0026] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the data processing method of the virtual scene provided in the embodiment of the present application is implemented.
[0027] The embodiments of the present application have the following beneficial effects:
[0028] By displaying the label editing controls corresponding to the virtual scene and the interactive area of the virtual scene, configuring the labels of the interactive area based on the label editing controls, and configuring the matching relationship between the interactive mode and the interactive area through the interactive mode control, the matching efficiency between the interactive area and the interactive mode in the virtual scene is improved; the label editing control is used to edit the label of the interactive area, which is easy to operate and supports the matching of multiple interactive areas and multiple interactive modes through labels, thereby improving the efficiency of human-computer interaction, thereby improving the operating efficiency and the accuracy of the data configured in the interactive area of the virtual scene. By matching the labels of the interactive area and the interactive mode, users can more easily manage and maintain the virtual scene and ensure the availability of the virtual scene function. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1A It is a schematic diagram of an application mode of the data processing method of a virtual scene provided in an embodiment of the present application;
[0030] Figure 1B It is a schematic diagram of an application mode of the data processing method of a virtual scene provided in an embodiment of the present application;
[0031] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0032] Figure 3A It is a first flow chart of the data processing method of the virtual scene provided in the embodiment of the present application;
[0033] Figure 3B It is a second flow chart of the data processing method of the virtual scene provided in the embodiment of the present application;
[0034] Figure 3C It is a third flow chart of the data processing method of the virtual scene provided in the embodiment of the present application;
[0035] Figure 3D It is a fourth flow chart of the data processing method of the virtual scene provided in the embodiment of the present application;
[0036] Figure 4 It is a fifth flow chart of the data processing method of the virtual scene provided in the embodiment of the present application;
[0037] Figure 5A is a first schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0038] Figure 5B is a second schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0039] Fig. 6A is a third schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0040] Figure 6B is a fourth schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0041] Fig. 7A is a fifth schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0042] Figure 7B is a sixth schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0043] Figure 7C is a seventh schematic diagram of an editing interface of a virtual scene provided in an embodiment of the present application;
[0044] Fig.7D This is the eighth schematic diagram of the editing interface of the virtual scene provided in the embodiment of the present application.
[0045] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0047] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0048] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0049] It should be pointed out that the relevant data collection and processing in this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0050] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0052] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0053] 1) Virtual scene: A scene that is different from the real world and that is output by a device can be used to form a visual perception of the virtual scene with the naked eye or with the assistance of a device, such as a two-dimensional image output by a display screen, or a three-dimensional image output by stereoscopic display technologies such as stereo projection, virtual reality, and augmented reality. In addition, various possible hardware can be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and motion perception.
[0054] 2) Human-computer interaction interface: an interface used to provide human-computer interaction functions and an interface for displaying information flows. For example, graphical user interface (GUI) display, such as augmented reality (AR) interface, virtual reality (VR) interface, voice user interface (VUI), interactive projection interface (using projection technology to display information on a plane), eye movement detection interface (an interface controlled by detecting the user's line of sight), holographic interface (a three-dimensional hologram formed by projecting images through holographic projection technology, and stereoscopic images can be seen without wearing special glasses), multimodal interface (an interface that combines multiple interaction methods, such as touch, vision, hearing, etc.), brain-machine interface (Brain-Machine Interface, BMI) interface, etc.
[0055] 3) Virtual objects: objects that interact in virtual scenes, are controlled by users or robot programs (e.g., robot programs based on artificial intelligence), and can be stationary, move, and perform various behaviors in virtual scenes, such as various characters in games. Virtual objects include player virtual objects and non-player virtual objects. Player virtual objects are virtual objects controlled by users, and non-player virtual objects are virtual objects extended by computer programs.
[0056] 4) A control is a triggerable information displayed in the form of an area, button, icon, link, text, selection box, input box, and tab; the triggering method can be a contact trigger, a contactless trigger, or a command-receiving trigger, etc. In addition, the various controls in the embodiments of the present application can be a single control or a general term for multiple controls.
[0057] 5) Interaction area: The area in the virtual scene where virtual objects and virtual props, and virtual objects and other virtual objects (player virtual objects or non-player virtual objects) perform interactive operations. In the game virtual scene, the interaction area can also be called a slot, which is used to characterize the bearing area of the interactive mode in the game field.
[0058] 6) Interaction mode: the way and method for virtual objects to interact with scene elements in a virtual environment. Interaction modes can be designed according to different application scenarios and purposes. In the virtual scene of the game, the interaction mode can also be called gameplay. The data of the interaction mode is used to control the virtual object to perform the interaction process, which can be the interaction process between virtual objects and virtual objects, and the interaction process between virtual objects and scene elements (for example: virtual props, scene materials of virtual scenes, etc.).
[0059] In related technologies, virtual scenes contain multiple interactive areas and multiple interactions. Developers usually manually set corresponding interactive modes for the interactive areas. However, there are many interactive areas in the virtual scenes, and manual data processing of the interactive areas consumes a lot of time, affecting the efficiency of human-computer interaction.
[0060] The embodiments of the present application provide a data processing method for a virtual scene, a data processing device for a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the data editing efficiency of interactive areas and interactive modes in a virtual scene and improve the efficiency of human-computer interaction.
[0061] The following describes an exemplary application of the electronic device provided in the embodiments of the present application. The electronic device provided in the embodiments of the present application can be implemented as a terminal device, such as a laptop computer, a tablet computer, a desktop computer, a set-top box, a smart TV, a vehicle terminal, a virtual reality (VR) device, an augmented reality (AR) device, and other types of terminals, and can also be implemented as a server. The following describes an exemplary application when the electronic device is implemented as a terminal device or a server.
[0062] In the right Figure 1A Before explaining, we first introduce the game modes involved in the solution implemented in collaboration between the terminal device and the server. The solution implemented in collaboration between the terminal device and the server mainly involves two game modes, namely local game mode and cloud game mode. The local game mode refers to the terminal device and the server jointly running the game processing logic. The operation instructions entered by the player in the terminal device are partially processed by the terminal device running the game logic, and the other part is processed by the server running the game logic. In addition, the game logic processing run by the server is often more complex and requires more computing power. The cloud game mode refers to the game logic processing completely run by the server, and the cloud server renders the game scene data into an audio and video stream, and transmits it to the terminal device for display through the network. The terminal device only needs to have basic streaming media playback capabilities and the ability to obtain the player's operation instructions and send them to the server.
[0063] In one implementation scenario, see Figure 1A , Figure 1A It is a schematic diagram of an application mode of the data processing method for a virtual scene provided in an embodiment of the present application, which is applied to a terminal device 400 and a server 200, and is suitable for an application mode that relies on the computing power of the server 200 to complete virtual scene calculations and output virtual scenes on the terminal device 400.
[0064] Taking the visual perception of a virtual scene as an example, the server 200 calculates display data related to the virtual scene (such as scene data) and sends it to the terminal device 400 through the network 300. The terminal device 400 relies on graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, two-dimensional video frames can be presented on the display screen of a smartphone, or video frames with three-dimensional display effects can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal device 400 can be used, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0065] As an example, a client (such as an online version of a game application) is running on the terminal device 400, and during the operation of the client, a virtual scene including role-playing is output. The virtual scene can be an environment for game characters to interact, such as plains, streets, valleys, etc. for game characters to fight against each other; the first virtual object can be a game character controlled by a user, that is, the first virtual object is controlled by a real user, and will move in the virtual scene in response to the real user's operation of a controller (such as a touch screen, voice-controlled switch, keyboard, mouse, and joystick, etc.). For example, when the real user moves the joystick to the right, the first virtual object will move to the right in the virtual scene, and can also remain still, jump, and control the first virtual object to perform shooting operations, etc.
[0066] For example, the virtual scene can be a game virtual scene, the server 200 can be a server of a game platform, the first user is a developer, the second user is a player, the first user performs editing operations on the virtual scene through the terminal device 400, and the second user controls the virtual object through the terminal device 401 to perform corresponding interactive behaviors in the virtual scene. The following is an explanation in combination with the above examples.
[0067] For example, the server 200 runs a virtual scene and sends data of the current virtual scene to the terminal device 400. The terminal device 400 displays the editing interface 101 of the virtual scene according to the data sent by the server 200. The developer edits the label of the interactive area in the virtual scene through the terminal device 400, and triggers the terminal device 400 to send a matching instruction and the label of the interactive area to the server 200. The server 200 matches the interactive area and the interactive mode in the virtual scene to form a matching result, and feeds the matching result back to the terminal device 400 through the network 300. The developer can view the matching result through the terminal device 400. If the matching result does not meet the requirements, the developer can adjust the matching relationship between the interactive area and the interactive mode.
[0068] For example, when the developer completes editing of the virtual scene, the data of the edited virtual scene can be uploaded to the server 200. The server 200 updates the stored virtual scene data. The server 200 sends the updated scene data of the virtual scene to the terminal device 401. The player can control the virtual object through the terminal device 401 to perform interactive behaviors of corresponding interactive modes in the interactive area of the virtual scene.
[0069] In one implementation scenario, see Figure 1B , Figure 1B It is a schematic diagram of the application mode of the data processing method for the virtual scene provided in the embodiment of the present application, which is suitable for some application modes that completely rely on the graphics processing hardware computing power of the terminal device 400 to complete the relevant data calculation of the virtual scene, such as stand-alone / offline mode games, and the output of the virtual scene is completed through various types of terminal devices 400 such as smart phones, tablet computers and virtual reality / augmented reality devices.
[0070] As an example, types of graphics processing hardware include a central processing unit (CPU) and a graphics processing unit (GPU).
[0071] When forming a visual perception of a virtual scene, the terminal device 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and outputs video frames that can form a visual perception of the virtual scene through the graphics output hardware. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve a three-dimensional display effect are projected on the lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perception effect, the terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0072] As an example, a client (such as a stand-alone game application) is running on the terminal device 400, and during the operation of the client, a virtual scene including role-playing is output. The virtual scene can be an environment for game characters to interact, such as plains, streets, valleys, etc. for game characters to fight against each other; the first virtual object can be a game character controlled by a user, that is, the first virtual object is controlled by a real user, and will move in the virtual scene in response to the real user's operation of a controller (such as a touch screen, voice-controlled switch, keyboard, mouse, and joystick, etc.). For example, when the real user moves the joystick to the right, the first virtual object will move to the right in the virtual scene, and can also remain still, jump, and control the first virtual object to perform shooting operations, etc.
[0073] For example, the virtual scene may be a game virtual scene, the user is a developer, and the user performs editing operations on the virtual scene through the terminal device 400, which is explained below in conjunction with the above example.
[0074] For example, an application for editing a virtual scene is run in the terminal device 400, and the terminal device 400 displays the editing interface 101 of the virtual scene. The developer edits the label of the interactive area in the virtual scene through the terminal device 400, and triggers the terminal device 400 to perform matching processing between the interactive area and the interactive mode to form a matching result. The developer can view the matching result through the terminal device 400. If the matching result does not meet the requirements, the developer can adjust the matching relationship between the interactive area and the interactive mode.
[0075] For example, after the developer completes the editing of the virtual scene and the game application corresponding to the virtual scene is launched on the market, the player can download the game application to the terminal device 401, and the terminal device 401 runs the game application. The player can control the virtual object through the terminal device 401 to perform the corresponding interactive mode of interactive behavior in the interactive area in the virtual scene.
[0076] In some embodiments, the terminal device or server can implement the data processing method of the virtual scene provided in the embodiment of the present application by running a computer program. For example, the computer executable instruction can be a command, a machine instruction or a software instruction at the microprogram level. The computer program can be a native program or a software module in the operating system; it can be a local (Native) application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as a game APP or an instant messaging APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0077] Taking a computer program as an application program as an example, in actual implementation, the terminal device 400 installs and runs an application program that supports a virtual scene. The application program can be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application program, a three-dimensional map program, or a multiplayer survival game. The user uses the terminal device 400 to operate a virtual object in the virtual scene to perform an activity, which includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building a virtual building. Schematically, the virtual object can be a virtual character, such as a simulated character or an anime character.
[0078] The embodiments of the present application can be implemented through database technology. In short, a database can be regarded as an electronic file cabinet where electronic files are stored. Users can add, query, update, delete, etc. data in the files. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application program.
[0079] A database management system (DBMS) is a computer software system designed for managing databases. It generally has basic functions such as storage, retrieval, security, and backup. Database management systems can be classified according to the database model they support, such as relational, XML (Extensible Markup Language); or according to the type of computer they support, such as server clusters, mobile phones; or according to the query language used, such as Structured Query Language (SQL), XQuery; or according to performance focus, such as maximum scale, maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMS can cross categories, for example, supporting multiple query languages at the same time.
[0080] In some embodiments, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers (for example, server 200 may be a server integrated with multiple servers, and server 200 includes a data processing server and a game server, wherein the data processing server is used to execute the data processing method of the virtual scene provided in the embodiment of the present application to form the scene data of the virtual scene, and the game server is used to run the game application based on the scene data of the virtual scene), or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The electronic device may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal device and the server may be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.
[0081] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be Figure 1A or Figure 1B The terminal device 400, Figure 2 The terminal device 400 shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal device 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .
[0082] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0083] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0084] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0085] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0086] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0087] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0088] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0089] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0090] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0091] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The data processing device 455 of the virtual scene stored in the memory 450 is shown, which can be software in the form of programs and plug-ins, including the following software modules: display mode 4551 and data processing module 4552. These modules are logical, so they can be arbitrarily combined or further divided according to the functions implemented. Figure 2For the sake of convenience, all the above modules are shown at once, but it should not be considered that the data processing device 455 in the virtual scene excludes the implementation that can only include the display module 4551. The functions of each module will be explained below.
[0092] The data processing method for the virtual scene provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the electronic device provided in the embodiment of the present application.
[0093] The following describes the data processing method for the virtual scene provided by the embodiment of the present application. As mentioned above, the electronic device that implements the data processing method for the virtual scene provided by the embodiment of the present application may be a terminal device or a server, or a combination of the two. Therefore, the execution subject of each step will not be repeatedly described below.
[0094] It should be noted that the examples of data processing of virtual scenes below are illustrated by taking game virtual scenes as an example. Those skilled in the art, based on their understanding of the following text, can apply the data processing method of virtual scenes provided in the embodiments of the present application to the processing of other types of virtual scenes.
[0095] See also Figure 3A , Figure 3A is a flow chart of a data processing method for a virtual scene provided in an embodiment of the present application, which will be combined with Figure 3A The steps shown are explained. Figure 3A The execution entity of the step is Figure 1A or Figure 1B The terminal device 400.
[0096] In step 301, a virtual scene and a label editing control are displayed.
[0097] Here, the virtual scene includes at least one interactive area.
[0098] For ease of understanding, the data processing method for a virtual scene provided in an embodiment of the present application is illustrated below for application scenarios of the data processing method for a virtual scene provided in an embodiment of the present application. The virtual scene and the label editing control are displayed in the editing interface of the virtual scene, and the label editing control is used to edit the label of the interactive area in the virtual scene. Developers can configure different labels for the interactive area according to the label editing control.
[0099] The interactive area is an area in the virtual scene where interactive operations are performed between virtual objects and virtual props, and between virtual objects and other virtual objects (player virtual objects or non-player virtual objects). When a virtual object enters the interactive area, the data of the interactive mode associated with the interactive area can be used to control the virtual object to perform corresponding interactive behaviors. The interactive mode is the way and method for a virtual object to interact with scene elements in a virtual environment, and the data of the interactive mode is used to control the virtual object to perform corresponding interactive processes. The virtual scene includes at least one interactive area. At the same time, there is a need to configure a variety of different interactive modes in the interactive area of the virtual scene. The interactive mode contains multiple attributes. The attributes corresponding to the interactive mode can be used as the label of the interactive mode. Multiple labels are pre-configured for the interactive area. The labels of the interactive mode and the labels of the interactive area are matched to improve the efficiency of editing the interactive area.
[0100] For example, the label types of the interactive area label include: first-level label, second-level label and third-level label. The first-level label represents the type of the interactive area, the second-level label represents the environmental attribute of the interactive area, and the third-level label represents the exclusion attribute of the interactive area. For example: the content type of the label of the interactive area can be characterized as: area type (also known as slot type, such as: large slot, small slot), location type (such as: center point, subsidiary point), terrain (such as: forest, plain, grassland, etc.), space upper limit (activity range for virtual objects to perform interactive behaviors), height upper limit (activity range for virtual objects to perform interactive behaviors), power (characterizing the team of virtual objects to which the interactive area belongs), atmosphere (the style of environmental materials in the virtual scene). In actual application, developers can set labels according to the actual needs of the virtual scene. Reference Figure 5A The editing interface includes a virtual scene 501A and a label editing control 502A, and the label editing control 502A includes multiple label types.
[0101] In step 302, in response to an editing operation based on a label editing control, at least one label set for an interactive area is displayed.
[0102] For example, the editing operation includes but is not limited to a selection operation and an input operation, and the label set for the interactive area may be preset or manually added.
[0103] In some embodiments, reference Figure 3B , Figure 3B is a second flow chart of the data processing method of the virtual scene provided in the embodiment of the present application. Step 302 can be performed by Figure 3B Step 3021 and step 3022 are implemented as described in detail below.
[0104] In step 3021, in response to a marking operation on the virtual scene, the marked first interactive area is controlled to be in a selected state.
[0105] For example, the marking operation may be a click operation, a slide operation, and a circle selection operation. The selected state may be displayed in a manner different from other unmarked interactive areas. For example, compared to other unmarked interactive areas, the first interactive area is displayed in any of the following ways: the name is displayed as a rough image, the first interactive area is enclosed by a bounding box, the first interactive area is enclosed by a bounding box as a whole, and the first interactive area is displayed in other colors.
[0106] For ease of explanation, the following is described in conjunction with the accompanying drawings. Figure 5B , Figure 5B It is a second schematic diagram of the editing interface of the virtual scene provided in the embodiment of the present application, and multiple interactive areas are displayed in the virtual scene 501B, including areas 1 to 6, area 19, area 20, etc. Among them, area 1 is the selected first interactive area 501B, and the name of the first interactive area 501B is enclosed by a box to distinguish it from other interactive areas.
[0107] In some embodiments, after the marked first interactive area is controlled to be in a selected state, in response to the first interactive area being in a selected state for a preset time, a corresponding detail screen of the first interactive area is displayed. The corresponding detail screen of the first interactive area refers to the actual screen of the first interactive area in the virtual scene, which is explained in conjunction with the accompanying drawings. Figure 5B In the process, multiple interactive areas are displayed on the map, and when the first interactive area is in the selected state for a preset time, the actual picture of the first interactive area in the virtual scene is displayed.
[0108] In step 3022, in response to a triggering operation based on a tag type in a tag editing control, at least one tag of the triggered tag type set for the first interactive area is displayed.
[0109] For example, the trigger operation may be a selection operation and an input operation for a tag type. The tag editing control involves tags of multiple levels, and at least one tag may be a tag edited for the same level type. Step 3022 may be repeated to edit tags of each type.
[0110] In some embodiments, step 3022 may be implemented by:
[0111] In response to a trigger operation based on a tag type in a tag editing control, the triggered target tag type is controlled to be in a selected state; in response to an input operation to the tag editing control, at least one tag of the input target tag type is displayed.
[0112] For example, the triggered target tag type is in a selected state, and the selected state can be displayed in a manner that is different from other untriggered tag types. For example: the name corresponding to the tag type is displayed in bold, the icon corresponding to the tag type is displayed in other colors, and the name corresponding to the tag type is surrounded by a frame. The input operation can be implemented by inputting text via the keyboard of the terminal device, or the input operation can be a voice input operation, and the terminal device converts the voice into corresponding text to form a tag.
[0113] For ease of understanding, the following is explained in conjunction with the accompanying drawings. Figure 5A Each tag type corresponds to a tag adding control one by one. The triggered target tag type is in a selected state, which can be represented by the tag type corresponding icon (the selected tag adding control 503A) being displayed in other colors. In response to the tag adding control 503A being selected, the tag adding control 503A switches to a color different from other tag adding controls, and displays the input method control corresponding to the terminal device. The user can perform input operations through the input method control, and the tag corresponding to the input operation is displayed in the tag editing control.
[0114] The label editing control also includes a delete control. Each displayed label corresponds to a delete control. For example: Figure 5A , the delete control 504A is the delete control corresponding to the label “small slot” in the “required label”. In response to the trigger operation on the delete control 504A, the label “small slot” is hidden, and the data stored according to the label “small slot” is deleted.
[0115] In the embodiment of the present application, by inputting the corresponding tag for each tag type, it can be flexibly adjusted according to the developer's personal or project needs, without being restricted by preset categories, easy to edit and delete, and helpful for personalized management of information.
[0116] In some embodiments, step 3022 may be implemented by:
[0117] In response to a trigger operation based on a tag type in a tag editing control, a preset tag list corresponding to the triggered target tag type is displayed, wherein the preset tag list includes multiple preset tags; in response to a tag selection operation, at least one selected preset tag is used as a tag of the first interactive area.
[0118] For example, the preset tags are pre-set by the developer according to the needs of the application scenario. The tag selection operation can be a click operation, a slide operation (each preset tag passed by the track of the slide operation is selected), and a long press operation. At least one selected preset tag will be displayed in a selected state, and after the selected state is displayed for a preset period of time, the selected preset tag will be displayed in the tag editing control with a delete control, indicating that the selected preset tag has been added as the tag corresponding to the interactive area.
[0119] For ease of explanation, refer to Fig. 6A , Fig. 6A This is a third schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application. In the tag editing control 502A, in response to the required tag being selected, a tag list 601A corresponding to the required tag is displayed. The tag list 601A includes multiple tags such as tag 1, tag 2, tag 3, and tag 4, wherein tag 2 is the selected tag 602A. Tag 2 is displayed in a form different from other tags.
[0120] In an embodiment of the present application, tags are selected through a preset tag list. The preset tags ensure that each developer uses the same classification standard during the development of the same application, which helps to maintain the consistency of information classification and improve the accuracy of editing. Determining tags by selection can improve editing efficiency.
[0121] In some embodiments, batch label editing operations can be performed on interactive areas in a virtual scene. Step 301 can be implemented in the following manner: display a list of area sets in the virtual scene, wherein the area set list includes multiple area sets, and each area set includes multiple interactive areas; display a label editing control for editing the area set.
[0122] For example, the virtual scene includes multiple interactive areas. By managing the interactive areas in a collection, the efficiency of editing the interactive areas can be improved. Figure 6B , Figure 6B 601B is a map of the virtual scene, and a region set list 602B is displayed in an overlay on the previous layer of the map of the virtual scene. The region set can be named as a province. The region combination list 602B includes region sets (for example: Province 1, Province 2, Province 3, and Province 4, etc.)
[0123] In some embodiments, based on a label editing control for editing area sets, step 302 can be implemented in the following ways: in response to a selection operation on any area set in the area set list, controlling the selected area set to be in a selected state; in response to an editing operation based on the label editing control, displaying at least one label edited for the selected area set, wherein at least one label acts on each interactive area in the selected area set.
[0124] For example, the selected state is characterized by being displayed in a manner different from other area sets, for example: displayed in a color different from other area sets, the name of the area set is displayed in bold, and the names of the interactive areas included in the area set are displayed. Figure 6B , Province 2 is a selected area set. Compared with other area sets, Province 2 is displayed by displaying the names of the interactive areas it contains. The labels edited in the label editing control 603B can be applied to all interactive areas in Province 2. After batch editing all interactive areas in Province 2 through the label editing control 603B, adaptive modifications can also be made to each area. Each modification only requires modifying a local label to distinguish the needs of different interactive areas.
[0125] In an embodiment of the present application, a virtual scene may include multiple interactive areas. By displaying an area set list, selecting an area set in the virtual scene, and editing labels for all interactive areas in an area set in batches, editing efficiency is improved, saving the time required for editing, and thereby improving the matching efficiency between interactive areas and interactive modes.
[0126] Continue to refer Figure 3A In step 303, in response to a first confirmation operation on at least one tag, an interactive mode control is displayed.
[0127] For example, the first confirmation operation can be a click operation, a long press operation, or a sliding operation on a blank area in the label editing control (an area where no label or label type is displayed in the label editing control). The interactive mode control is a control for editing the interactive mode, which will be explained in the following steps.
[0128] In step 304, in response to an editing operation based on the interaction mode control, a plurality of interaction modes set for at least one interaction area are displayed.
[0129] For example, the editing operation may include an input operation, a click operation, a slide operation, and a long press operation. The multiple interaction modes set for at least one interaction area refer to the interaction mode to be matched set for at least one interaction area, and the parameters of the interaction mode.
[0130] In some embodiments, step 304 may be implemented by:
[0131] In response to input operations based on interaction mode controls, multiple interaction modes to be matched and parameters of the interaction modes are displayed for at least one interaction area, wherein the parameters of the interaction mode include at least one of the following: the interaction type of the interaction mode, the first preconfigured quantity corresponding to each interaction mode, the floating interval corresponding to each first preconfigured number, and the total number of preconfigured interaction modes.
[0132] For example, the interaction type can be distinguished according to the difficulty level of the interaction mode, the type of specific interaction behavior, and the element that the virtual object interacts with. For example, the interaction type can be distinguished according to the type of monster that the virtual object interacts with, and the interaction types include: advanced BOSS, intermediate BOSS, and elementary BOSS. Or, the interaction type includes difficulty level 1, difficulty level 2, and difficulty level 3.
[0133] The first preconfigured number corresponding to each interaction mode refers to the number of interaction modes to be matched in all interaction areas configured in the virtual scene for an interaction mode. The floating interval corresponding to the first preconfigured number refers to a value range set for the first preset number. Since the matching between the interaction areas and interaction modes in the virtual scene is random, the number of interaction areas matched to the same interaction mode can be within a floating range, that is, a floating interval. The floating interval is represented by a percentage, indicating the size of the floating range downward, upward, or up and down based on the first preset number. For example: if the first preset number is 10, and the floating interval of 20% is a downward float, then the value range of the number corresponding to the floating interval is greater than or equal to 8 and less than or equal to 10.
[0134] The total number of preconfigured interaction modes refers to the total number of interaction modes to be matched for all interaction areas in the same virtual scene. For example, for a virtual scene, 50 interaction modes need to be matched.
[0135] refer to Fig. 7A , Fig. 7A It is the fifth schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application. The interactive mode control 702A is displayed in the virtual scene 701A. The first province, the second province and the third province are the names of different area sets, respectively. The number of interactive modes configured for each area set is 18, and the floating interval is 10%. And, the first pre-configured number of interactive modes for difficulty 1 is 18, and the floating interval is 10%. Assuming that the floating interval is floating up and down, that is, floating around 18 as the center, the number value range corresponding to the floating interval of the interactive mode of difficulty 1 is greater than or equal to 16.2 and less than or equal to 19.8.
[0136] In the embodiment of the present application, a floating interval and a pre-configured total number are set for the delivery quantity of the interactive mode. The floating interval allows the delivery quantity to be adjusted according to the actual situation, which can improve the compatibility of the matching algorithm during the matching process. In actual application, the pre-configured total number and the floating interval can be set according to historical data and analysis results, which helps to optimize the matching effect.
[0137] In some embodiments, reference Figure 3C , Figure 3C is a third flow chart of the data processing method of the virtual scene provided in the embodiment of the present application. Before step 305, execute Figure 3C Steps 306 to 308 are described in detail below.
[0138] In step 306, each interaction mode is traversed according to a preset priority, and the following processing is performed on the traversed interaction mode: the label of the interaction mode is matched with the label of each interaction area.
[0139] For example, the preset priority is pre-set according to the attributes of the interaction mode, or is set according to the needs of the user. In the process of tag matching, the matching is performed according to different tag types, and the matching methods of different tag types are different. The following is a detailed description.
[0140] In some embodiments, the label types of tags include: first-level labels (the required labels above), second-level labels (the optional labels above) and third-level labels (the prohibited labels above), the first-level labels represent the type of the interactive area, the second-level labels represent the environmental attributes of the interactive area, and the third-level labels represent the exclusion attributes of the interactive area.
[0141] Step 306 can be implemented in the following manner: compare the mode label of the interactive mode with the area label of each interactive area; determine that the interactive mode matches the interactive area when the mode label and the area label meet the following conditions: each first-level label in the mode label is the same as each first-level label in the area label, at least one second-level label in the mode label is the same as at least one second-level label in the area label, and each first-level label and second-level label of the mode label are different from the third-level label of the interactive area.
[0142] In the embodiment of the present application, setting the first-level tag improves the commonality between the interactive mode and the interactive area, ensures that each entry meets the most basic classification requirements, and ensures the integrity of information matching. Setting the second-level tag allows additional information to be provided without sacrificing the basic matching accuracy, increasing the flexibility of the matching process. Setting the third-level tag can avoid the existence of mutually exclusive attributes between the interactive mode and the interactive area, and improve the compatibility between the interactive area and the interactive mode.
[0143] In some embodiments, before step 306, the preset priority is determined by at least one of the following methods:
[0144] Method 1: Determine the preset priority according to the difficulty level of each interactive mode, wherein the difficulty level is negatively correlated with the preset priority, or the difficulty level is positively correlated with the preset priority.
[0145] For example, there are three interaction modes, and the difficulty of the interaction modes is from high to low, namely, high-level BOSS, intermediate BOSS, and low-level BOSS. The priority is positively correlated with the difficulty, and the higher the priority, the higher the difficulty. The priority is, in order, the interaction mode of the high-level BOSS, the interaction mode of the intermediate BOSS, and the interaction mode of the low-level BOSS. Assuming that there are three interaction modes to be matched, namely, the interaction mode of the high-level BOSS, the interaction mode of the intermediate BOSS, and the interaction mode of the low-level BOSS, the interaction mode of the high-level BOSS is selected from the currently unmatched interaction modes for matching.
[0146] Method 2: Determine the preset priority according to the number of tags for each interaction mode, where the number of tags is positively correlated with the priority.
[0147] For example, interaction modes with more labels are matched first. When the interaction modes have the same number of labels, they can be matched based on the difficulty levels corresponding to the interaction modes.
[0148] In an embodiment of the present application, the priority of the interaction mode is determined according to the attribute parameters of the interaction mode, and then the interaction mode is matched based on the priority, so that the interaction mode with a higher priority can be matched to the interaction area earlier, thereby increasing the number of interaction modes with a higher priority in the virtual scene.
[0149] In step 307, in response to the first number of interaction areas matched by the interaction mode satisfying the second preconfigured condition, it is determined that the matching of the interaction mode is completed.
[0150] In some embodiments, the second preconfigured condition includes: a first number of interactive areas matched by the interactive mode is within a floating interval of a first preconfigured number; after step 307, the following processing is performed: in response to traversing each interactive mode and there are unmatched interactive areas, the first number of interactive modes that does not reach the preconfigured threshold is taken as the target interactive mode, wherein the preconfigured threshold is the upper limit of the floating interval of the first preconfigured number; each target interactive mode is matched with the unmatched interactive area according to a preset priority.
[0151] For example, in the actual operation of the tag-based matching algorithm, there may be a situation where there are remaining interaction areas that have not been matched. The remaining interaction modes that have not reached the upper limit are selected according to the interaction modes that have been matched in the virtual scene, and the template interaction mode with the highest priority is selected from the remaining interaction modes according to the priority to fill the vacant interaction areas, thereby avoiding the occurrence of vacant interaction areas and improving the matching efficiency and accuracy.
[0152] In step 308 , in response to each interactive area having a matching interactive pattern, the matching interactive patterns of each interactive area are combined into a matching result.
[0153] For example, each interactive area has a matching interactive mode, indicating that the matching process is completed, and each matching interactive mode and interactive area are combined to form a matching result. The matching result can be represented as a table. The matching result can be based on the interactive area to query the interactive mode, or based on the interactive mode to query the interactive area.
[0154] In some embodiments, before step 305, the interaction mode matched by the interaction area can also be determined in the following manner: extract features from the label of each interaction area to obtain a first label feature of each interaction area, and extract features from the label of each interaction mode to obtain a second label feature of each interaction mode; determine the similarity between each first label feature and each second label feature; and for each interaction area, use the interaction mode corresponding to the second label feature with the highest similarity as the interaction mode matched by the interaction area.
[0155] For example, feature extraction and determination of similarity can be achieved through a convolutional neural network model. The convolutional neural network model extracts features from the labels of the interaction areas and the labels of the interaction patterns, respectively, to obtain first label features and second label features represented in vector form, and determines the cosine similarity of the first label features and the second label features. For each interaction area, the interaction pattern corresponding to the second label feature with the highest similarity is used as the interaction pattern matching the interaction area.
[0156] For example, the training data of the convolutional neural network includes multiple sample pairs, each sample pair includes: a label of the sample interaction area, a label of the sample interaction mode; the label of the positive sample pair is 1, and the similarity between the label representing the sample interaction area and the label representing the sample interaction mode is 1; the label of the negative sample pair is 0, and the similarity between the label representing the sample interaction area and the label representing the sample interaction mode is much less than 1. The loss function for training the convolutional network model can be a cross entropy loss.
[0157] In an embodiment of the present application, the interaction mode that matches each interactive area is determined by artificial intelligence, which improves the matching efficiency and saves the computing resources required for matching. During the matching process, the convolutional neural network can be updated based on new data to improve the matching accuracy.
[0158] Continue to refer Figure 3A In step 305, the matching results between at least one interactive area and multiple interactive modes are displayed.
[0159] Here, the matching result includes at least the interaction mode matched by each interaction area, and the interaction mode and the interaction area are matched through at least one tag.
[0160] In some embodiments, step 305 can be implemented in the following manner: in response to a switching operation on an interactive mode control, displaying a matching process of multiple interactive areas and at least one interactive mode, wherein the matching process includes the number of interactive modes to be matched; in response to the number of matched interactive modes reaching a preconfigured total number of interactive modes, displaying the matching results.
[0161] For example, continue to refer to Fig. 7A After the user has confirmed that the corresponding labels of the interactive area and the corresponding parameters of the interactive mode have been set, the Fig. 7A In the switching control 704A, in response to the triggering operation of the switching control 704A, the matching process between multiple interactive areas and multiple interactive modes is started, and the matching process 703A is displayed. In the matching process 703A, information about the interactive areas that have not been matched to the interactive modes can be observed. For example: the interactive area of type "subsidiary point" needs to match the interactive mode (also known as the gameplay type) of "advanced BOSS", and currently no interactive mode is launched. And the interactive area of type "center point" needs to match the interactive mode of "advanced BOSS", and currently 5 interactive modes have been launched.
[0162] In response to the number of matched interaction patterns reaching a preconfigured total number of interaction patterns, referring to Figure 7B , Figure 7B This is a sixth schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application. The matching result 702B can be viewed based on the interactive area to view the corresponding interactive mode (for example: viewing the gameplay information of each province), or based on each interactive mode to view the corresponding interactive area (for example: viewing the gameplay information of each province).
[0163] In some embodiments, step 305 can be implemented in the following manner: display at least one of the following content as a matching result for each interactive area: the name of the interactive mode matched by the interactive area, the difficulty of the virtual object to execute the interactive mode matched by the interactive area, the name of the matched interactive area, the area type of the matched interactive area, and the area identification of the matched interactive area.
[0164] For example, continue to refer to Figure 7B , the gameplay information of each province is viewed based on the interactive area to query the interactive mode list. The table shows: the name of the regional set to which the interactive area belongs (province), the name of the interactive mode matched by the interactive area, the difficulty of the virtual object to execute the interactive mode matched by the interactive area, and the identification (ID) of the interactive area. Similarly, the gameplay information of each province is viewed based on the interactive mode to view the list of interactive areas.
[0165] In some embodiments, after step 305, the following processing is performed: generating interactive data of the interactive area based on the interactive mode, wherein the type of interactive data includes at least one of the following: control data of the interactive mode, environmental material data, model data of non-player characters, and action data of the interactive process of the virtual character.
[0166] For example, the control data of the interactive mode includes: data for controlling the interactive range in the virtual scene, and attribute parameters for controlling the virtual monsters in the virtual scene. Environmental material data refers to the data of environmental materials required for executing the interactive mode in the interactive area. The model data of non-player characters refers to the interactive objects in the interactive process performed by the player virtual object during the interactive process of the interactive mode. The non-player characters can be virtual monsters that are hostile to the player virtual object or non-player characters that assist the player virtual object. The action data of the virtual character's interactive process is used to control the virtual object to perform specific actions.
[0167] For example, a virtual object performs an interactive fishing mode in an interactive area, and the virtual object is controlled to perform corresponding actions through the corresponding action data of fishing, and the virtual environment of the interactive area is configured with environmental materials including a pool and a fishing rod. The model data of the configured non-player characters includes: 3D model data of aquatic animals such as fish, shrimp, and crabs.
[0168] In some embodiments, after step 305, the following processing is performed: in response to a confirmation operation for the matching result, the first environmental material of the second interactive area is displayed, and the second environmental material corresponding to the interactive mode matching the second interactive area is displayed in the second interactive area; wherein the first environmental material and the second environmental material are used for editing operations, and the types of editing operations include deletion, position modification, and texture modification.
[0169] For example, the confirmation operation for the matching result can be implemented in the following ways: click the Save control in the matching result, or display the confirmation option box for the matching result and click the Save control in the confirmation option box. Figure 7B , while displaying the matching result 702B, a confirmation option box 701B is also displayed, and the confirmation option box 701B includes the season version name, cancel option and save option corresponding to the virtual scene data. In response to the trigger operation for the save option, the matching results between the interactive area and the interactive mode are saved. In response to the trigger operation for the cancel option, the matching result is not saved. Alternatively, in response to the trigger operation for the re-matching control (regenerate 704B) in the matching result 702B, steps 306 to 308 are re-executed. Alternatively, in response to the trigger operation for the storage control (save data 705B) in the matching result 702B, the data corresponding to the matching result 702B is stored.
[0170] For example, the second interactive area is an area that satisfies a first preconfiguration condition, and the first preconfiguration condition includes any one of the following:
[0171] Condition 1: The sizes of the first environment material and the second environment material exceed the range of the second interactive area.
[0172] For example, if the size of the first environment material and the second environment material exceeds the range of the second interactive area, it means that the first environment material or the second environment material has an environment material in the second interactive area that does not match the size, and the environment data of the second interactive area is faulty. After the user confirms the matching result, the faulty second interactive area is automatically displayed, and the user does not need to manually check the data. The data that does not meet the requirements is automatically displayed, and the user can edit the data that does not meet the requirements, which improves the editing efficiency and reduces the error rate in the virtual scene.
[0173] Condition 2: The total amount of data of the first environment material and the second environment material exceeds the storage upper limit corresponding to the second interactive area.
[0174] For example, the total amount of data exceeds the storage limit corresponding to the second interactive area, which means that the number of first environment materials and second environment materials is too large, and there may be a problem of data duplication. When the user confirms the matching result, the second interactive area with the fault is automatically displayed. The user does not need to manually check the data, and the data that does not meet the requirements is automatically displayed. The user can edit the data that does not meet the requirements, which improves editing efficiency and reduces the error rate in the virtual scene.
[0175] For example, the types of editing operations include deletion, position modification, and texture modification. The deletion operation is an operation to remove the environment material from the interactive area; the position modification operation is an operation to change the position of the environment material in the virtual scene, which can be achieved by modifying the position coordinates of the environment material, or dragging the environment material from the current position to another position in the virtual scene. The texture modification operation is an operation to modify the texture of the three-dimensional model of the environment material, which can be achieved through the rendering engine.
[0176] Example, reference Figure 7C , Figure 7C 7 is a seventh schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application; the interactive area 701C and the interactive area 702C are respectively a schematic diagram and a preview of the environment material of the same interactive area, and the developer can select the corresponding environment material for editing through the icon in the preview image (for example: building B is the selected environment material 703C). Alternatively, the environment material in the virtual scene is directly selected for editing, so that the artistic expression of the virtual scene matches the interactive mode and the interactive area.
[0177] In some embodiments, after step 305, the following processing is performed: in response to a confirmation operation on the matching result, an area map of the virtual scene is displayed, wherein each location in the area map represents an interactive area; in response to a selection operation on any location, a first environmental material of the interactive area corresponding to the selected location is displayed, and a second environmental material corresponding to the interactive mode matching the interactive area is displayed in the interactive area; in response to a selection operation on any environmental material, the selected environmental material is controlled to be in a selected state, wherein the environmental material in the selected state is used for editing operations, and the types of editing operations include deletion, position modification, and texture modification.
[0178] For example, the types of confirmation and editing operations are described above. Figure 7B In response to the confirmation operation, the matching result is switched to the area map of the virtual scene, referring to Fig.7D , Fig.7D The eighth schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application is shown in FIG. The map 701D of the virtual scene includes multiple areas. In response to a selection operation on one of the multiple areas, the area is displayed in a selected state, for example, the selected area 702D.
[0179] In the embodiment of the present application, by displaying a map of the virtual scene, it is convenient for the user to select an interactive area that needs to be modified from multiple interactive areas, thereby improving the freedom and efficiency of editing the virtual scene.
[0180] In some embodiments, see Figure 3D , Figure 3Dis a fourth flow chart of the data processing method for a virtual scene provided in an embodiment of the present application, which will be combined with Figure 3D The steps shown are explained. Figure 3D The execution entity of the step is Figure 1A or Figure 1B The terminal device 400.
[0181] In step 311, a virtual scene is displayed.
[0182] Here, the virtual scene includes virtual objects. The virtual scene is based on the embodiment of the present application. Figure 3A The data processing method of the virtual scene from step 301 to step 305 is formed.
[0183] In step 312, in response to the virtual object being in any interactive area in the virtual scene, the environment material corresponding to the interactive mode of the interactive area is loaded, and the virtual object is controlled to perform an interactive process based on the interactive mode.
[0184] Here, the environment assets are used to execute preconfigured interaction patterns.
[0185] For example, the environment material corresponding to the interactive mode of the interactive area is loaded, that is, the graphics processor of the terminal device loads the data of the environment material, and displays the screen corresponding to the environment material in the virtual scene. The environment material is used to provide the screen performance required for the interactive mode and the elements that may be used in the interaction, such as: non-player virtual objects that perform the interaction, the required virtual props and the environment scene.
[0186] In the embodiment of the present application, by displaying the label editing control corresponding to the virtual scene and the interactive area of the virtual scene, configuring the label of the interactive area based on the label editing control, and configuring the matching relationship between the interactive mode and the interactive area through the interactive mode control, the matching efficiency between the interactive area and the interactive mode in the virtual scene is improved; the label of the interactive area is edited through the label editing control, the operation difficulty is low, and the matching between multiple interactive areas and multiple interactive modes through labels is supported, which improves the human-computer interaction efficiency, thereby improving the operation efficiency and the accuracy of the data configuring the interactive area of the virtual scene. By matching the label of the interactive area with the interactive mode, the user can more easily manage and maintain the virtual scene, ensuring the availability of the virtual scene function.
[0187] Next, an exemplary application of the data processing method for a virtual scene according to an embodiment of the present application in an actual application scenario will be described.
[0188] In the field of games, interactive mode is the content design that can be experienced in the virtual scene of the game, covering various types such as combat and exploration, which are rich and varied. Interactive mode data includes the environment, non-player characters and rules involved in the interactive mode. During the game development process, in the scene editing mode, the developer selects an area in the virtual scene as the carrier area of the interactive mode content. At the same time, the game also has the need for version updates. Periodic activities or competition stages will be set in the game. Each competition stage has a clear start and end time. In each competition stage, some game content will be reset (or updated), such as: increasing the level limit of virtual objects, equipment attribute values, and adding new interactive areas. In the related technology, the update of the interactive mode of the interactive area is usually manually configured with the corresponding interactive data. This configuration method does not support complex scenes. The maps of related technical products are all based on the top-down map (third-person perspective) for interactive mode generation. The overall map elements are relatively uniform, and the terrain is relatively flat, without complex terrain changes and space design. The content of the random interactive mode is relatively simple, mostly simple combat interactive modes, mainly defeating virtual monsters, the virtual props and scenes involved in the interactive mode are single, and the difficulty of generating the interactive mode is low.
[0189] Regarding the matching relationship between various interactive modes and interactive areas in virtual scenes, interactive modes are generally customized manually based on the scene. The layout and content of the interactive mode are deeply integrated with the scene to ensure the fit between the overall interactive mode and the scene. However, based on the competition stage system, the interactive mode content of each competition stage must be changed. A reasonable interactive mode generation mechanism is needed to achieve rapid generation of the big world interactive mode and ensure the fit between the interactive mode and the interactive area. Manual execution will consume a lot of time and cost, and the efficiency is not high. Manual execution may also cause errors.
[0190] In the embodiment of the present application, in order to solve the above-mentioned problems existing in the related art, some areas are selected from the virtual scene as the interactive area, the expected layout environment of the interactive mode content and the surrounding scene of the interactive area are labeled, and then the interactive mode module is generated on the interactive area based on the matching rules. Through the label matching rules of the interactive mode and the interactive area, it is ensured that the interactive mode can be randomly generated in the interactive area, and conforms to the spatial design of the interactive area and matches the scene atmosphere around the interactive area. It can support the batch generation of a large number of interactive modes with different locations and contents, improve the efficiency of editing virtual scenes, and improve the accuracy of matching between interactive areas and interactive modes in virtual scenes.
[0191] Figure 4 is a fifth flow chart of the data processing method of the virtual scene provided in the embodiment of the present application; Figure 1A The terminal device 400 or Figure 1BThe terminal device 400 is used as the execution subject for explanation.
[0192] In step S401, the label of the interactive area and the parameters of the interactive mode are set through the editing interface.
[0193] For ease of understanding, the editing interface is explained below. The editing interface is used to edit the virtual scene. It is the interface used by developers during the application development phase and is displayed on the terminal device. Figure 5A , Figure 5A 501A and a label editing control 502A. The label editing control 502A includes multiple label types, such as required labels, optional labels, and prohibited labels. Each label type corresponds to at least one label. Figure 5A In the example, the selected tag type is a required tag, and a selected tag adding control 503A of "required tag" is displayed in a manner different from other types. In response to the tag adding control 503A being selected, an input bar or a preset tag list is displayed, and the developer can manually input a tag or select a tag from the preset tags.
[0194] For example, during the label editing process, developers can define labels based on the expected layout environment of the interactive mode and the surrounding environment of the interactive area. For example: set labels based on the spatial environment, terrain features, special needs of the interactive mode, etc. Required labels, optional labels, and prohibited labels are functional types of labels. The content types of labels in the interactive area can be characterized as: area type (also known as slot type), terrain (for example: forest, plain, grassland, etc.), space upper limit (activity range for virtual objects to perform interactive behaviors), height upper limit (activity range for virtual objects to perform interactive behaviors), power (characterizing the team of virtual objects to which the interactive area belongs), atmosphere (style of environmental materials in the virtual scene).
[0195] After configuring the labels of the interactive area, the number of interactive modes to be configured in the virtual scene and the floating range are set. Developers can set the interactive mode parameters expected in this competition stage according to the needs of the actual application scenario, such as the total number of interactive modes to be matched in the virtual scene, the preset matching number of each interactive mode, and the floating range (the ratio between the part below or above the preset number and the preset number, for example, below or above 10%), as the basis for the subsequent generation of interactive modes.
[0196] refer to Fig. 7A , Fig. 7AIt is the fifth schematic diagram of the editing interface of the virtual scene provided in the embodiment of the present application; the editing interface includes a virtual scene 701A and an interactive mode control 702A. In the interactive mode control 702A, the developer can enter the number of interactive modes to be matched in each interactive area set. For example: the total number of interactive modes to be matched in the interactive area set "Province 1" is 18, and the floating interval is 10%. And the interactive mode control 702A is also used to configure the number of different types of interactive modes to be launched, for example: the number of interactive modes of difficulty 1 to be launched is set to 18, and the floating interval is 10%.
[0197] After the user has confirmed that the corresponding labels of the interactive area and the corresponding parameters of the interactive mode have been set, the Fig. 7A In the switching control 704A, in response to the triggering operation of the switching control 704A, the matching process between multiple interactive areas and multiple interactive modes is started, and the matching process 703A is displayed. In the matching process 703A, information about the interactive areas that have not been matched to the interactive modes can be observed. For example: the interactive area of type "subsidiary point" needs to match the interactive mode (also known as the gameplay type) of "advanced BOSS", and currently no interactive mode is launched. And the interactive area of type "center point" needs to match the interactive mode of "advanced BOSS", and currently 5 interactive modes have been launched.
[0198] In step S402, the unmatched interaction mode with the highest priority is selected.
[0199] As an example, the matching relationship between the interactive area and the interactive mode is explained below. According to the priority set for each interactive mode, find the interactive mode with the highest priority among the currently remaining unmatched interactive modes. The priority between each interactive mode can be set according to the difficulty type. For example, there are multiple interactive modes, and the difficulty of the interactive modes is from high to low, namely, high-level BOSS, intermediate BOSS and low-level BOSS. The priority is positively correlated with the difficulty. The higher the priority, the higher the difficulty. The priority is the interactive mode of the high-level BOSS, the interactive mode of the intermediate BOSS and the interactive mode of the low-level BOSS. Assuming that there are three interactive modes to be matched, namely, the interactive mode of the high-level BOSS, the interactive mode of the intermediate BOSS and the interactive mode of the low-level BOSS, the interactive mode of the high-level BOSS is selected from the currently unmatched interactive modes for matching.
[0200] In step S403, the interaction mode and the interaction area are matched according to a matching rule.
[0201] For example, the matching rules in the embodiment of the present application are executed based on tags. Figure 5A, all interactive modes and interactive areas will have three types of tags: required tags, optional tags, and prohibited tags. When matching an interactive mode with an interactive area, a required tag is a tag that must be completely consistent to be considered a successful match, that is, the required tags of the interactive area and the interactive mode must be completely consistent; an optional tag is a selectable tag, that is, if at least one of the optional tags of the interactive area and the interactive mode is the same, the interactive area and the interactive mode will be matched successfully; a prohibited tag means that when one of the required tags or optional tags of an interactive mode or interactive area is a prohibited tag of another object, they cannot match each other. For example, if the prohibited tag of the interactive mode exists in the optional tag of the interactive area, the interactive mode cannot be placed in the interactive area.
[0202] In step S404, it is determined whether the successfully matched interaction mode is within the floating range.
[0203] For ease of understanding, an example is given to illustrate the floating interval. Assuming that the expected number of interactive patterns to be delivered is 10 and the floating interval is 20%, the value corresponding to the floating interval is greater than or equal to 8 and less than or equal to 12. For example, if the interactive pattern has been matched 8-10 times, it can be considered that the interactive pattern has been delivered successfully, and step S404 is judged as yes. On the contrary, if the number of interactive patterns matched is less than 8, the delivery fails, and step S404 is judged as no.
[0204] When the judgment result of step S404 is no, continue to execute step S403.
[0205] When the judgment result of step S404 is yes, step S405 is executed, and when there is a missing number in the interactive mode, the interactive mode is supplemented based on the missing number. After step S405, step S402 is continued.
[0206] For example, the missing quantity means that the number of interactive mode deliveries has not reached the preset number. For example, the estimated number of deliveries of an interactive mode is 10, with a floating range of 20%. Currently, only 8 have been delivered, and the number is within the floating range, but has not reached the preset number.
[0207] When the judgment result of step S404 is yes, step S406 is executed. When all the interaction modes have been matched, the number of interaction modes is adjusted according to the priority.
[0208] For example, adjusting the number of interaction modes according to priority can be achieved in the following way: after all interaction modes have been delivered, since a floating interval is set for each interaction mode, the overall number of interaction modes does not match the preset total number of interaction modes, and it is necessary to match the missing number of interaction modes (selecting the target interaction mode from the interaction modes that are less than the corresponding preset number and matching it with the remaining interaction area; there is a priority between the interaction modes, and the target interaction mode is selected according to the priority) and the remaining interaction area space to ensure that the total number of interaction modes finally delivered in the scene is consistent with the preset total number of interaction modes.
[0209] After step S406, step S407 is executed to generate corresponding interaction mode data for each interaction area according to the matching result.
[0210] For example, when the matching interactive areas of all interactive modes are determined, data of specific interactive mode content is generated for each interactive area, such as the specific interactive mode difficulty, the virtual monsters of the interactive mode, the scene decoration content of the interactive mode, etc. After the data of each interactive area is filled, the data of the virtual scene is formed, which can be used for data update in the competition stage.
[0211] In step S408, the matching result is displayed.
[0212] For example, the matching results include a table of relationships between each interaction area and the matching interaction pattern, see Figure 7B , Figure 7B This is a sixth schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application. The matching result 702B can be viewed based on the interactive area to view the corresponding interactive mode (for example: viewing the gameplay information of each province), or based on each interactive mode to view the corresponding interactive area (for example: viewing the gameplay information of each province).
[0213] In step S409, it is determined whether a confirmation operation for the matching result is received.
[0214] For example, continue to refer to Figure 7B , while displaying the matching result 702B, a confirmation option box 701B is also displayed, and the confirmation option box 701B includes the season version name, a cancel option, and a save option. In response to the trigger operation for the save option, step S409 is judged as yes. When the judgment result of step S409 is yes, step S410 is executed to export and save the data. In response to the trigger operation for the cancel option, step S409 is judged as no. When the judgment result of step S409 is no, step S402 is continued.
[0215] In some embodiments, after step S410, based on the saved matching relationship between the interactive area and the interactive mode, the developer can adjust the performance between the interactive mode and the interactive area according to the matching result, including the matching of the interactive mode and the interactive area orientation, the ground handling of the interactive mode objects, etc., to ensure that the randomly generated interactive mode can well adapt to the terrain environment of the matched interactive area.
[0216] refer to Figure 7C , Figure 7C 7 is a seventh schematic diagram of the editing interface of the virtual scene provided by the embodiment of the present application; the interactive area 701C and the interactive area 702C are respectively a schematic diagram and a preview of the environment material of the same interactive area, and the developer can select the corresponding environment material for editing through the icon in the preview image (for example: building B is the selected environment material 703C). Alternatively, the environment material in the virtual scene is directly selected for editing, so that the artistic expression of the virtual scene matches the interactive mode and the interactive area.
[0217] In the embodiment of the present application, complex interactive modes for complex scenes are randomly generated. In actual application, the interactive mode generation does not need to be limited by the game perspective, scene complexity, and content complexity of the interactive mode. It only needs to reasonably label the interactive mode and the arranged position. By establishing the matching rules required by each game, it can provide an interactive mode that is deeply consistent with the scene and has a strong random effect. The data editing efficiency of the virtual scene is improved and time is saved.
[0218] The following is a description of an exemplary structure of a virtual scene data processing device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the data processing device 455 of the virtual scene in the memory 450 may include:
[0219] Display module 4551 is used to display a virtual scene and a label editing control, wherein the virtual scene includes at least one interactive area; the display module 4551 is used to display at least one label set for the interactive area in response to an editing operation based on the label editing control; the display module 4551 is used to display an interactive mode control in response to a first confirmation operation on the at least one label; the display module 4551 is used to display multiple interactive modes set for the at least one interactive area in response to an editing operation based on the interactive mode control, and display matching results between the at least one interactive area and the multiple interactive modes, wherein the matching results include at least the interactive modes matched by each of the interactive areas.
[0220] In some embodiments, the display module 4551 is used to control the marked first interactive area to be in a selected state in response to a marking operation on the virtual scene; and to display at least one tag of the triggered tag type set for the first interactive area in response to a triggering operation based on the tag type in the tag editing control.
[0221] In some embodiments, the display module 4551 is used to control the triggered target tag type to be in a selected state in response to a trigger operation based on the tag type in the tag editing control; and to display at least one tag of the input target tag type in response to an input operation to the tag editing control.
[0222] In some embodiments, the display module 4551 is used to display a preset tag list corresponding to the triggered target tag type in response to a trigger operation based on the tag type in the tag editing control, wherein the preset tag list includes multiple preset tags; in response to a tag selection operation, at least one selected preset tag is used as a label for the first interactive area.
[0223] In some embodiments, the display module 4551 is used to display a list of area sets in the virtual scene, wherein the area set list includes multiple area sets, each of the area sets includes multiple interactive areas; and display a label editing control for editing the area sets.
[0224] In some embodiments, the display module 4551 is used to control the selected area set to be in a selected state in response to a selection operation on any one of the area sets in the area set list; and to display at least one label edited for the selected area set in response to an editing operation based on the label editing control, wherein the at least one label acts on each of the interactive areas in the selected area set.
[0225] In some embodiments, the display module 4551 is used to display multiple interaction modes to be matched and parameters of the interaction mode set for the at least one interaction area in response to input operations based on the interaction mode control, wherein the parameters of the interaction mode include at least one of the following: the interaction type of the interaction mode, the first preconfigured quantity corresponding to each of the interaction modes, the floating interval corresponding to each of the first preconfigured numbers, and the total number of preconfigured interaction modes.
[0226] In some embodiments, the display module 4551 is used to display the matching process of the multiple interactive areas and the at least one interactive mode in response to a switching operation on the interactive mode control, wherein the matching process includes the number of the interactive modes to be matched; in response to the number of matched interactive modes reaching a preconfigured total number of interactive modes, display the matching result.
[0227] In some embodiments, the display module 4551 is used to display at least one of the following contents as the matching result for each of the interactive areas: the name of the interactive mode matched by the interactive area, the difficulty of the virtual object executing the interactive mode matched by the interactive area, the name of the matched interactive area, the area type of the matched interactive area, and the area identification of the matched interactive area.
[0228] In some embodiments, display module 4551 is used to display the first environment material of the second interaction area and the second environment material corresponding to the interaction mode matching the second interaction area in the second interaction area after displaying the matching result between the at least one interaction area and the multiple interaction modes, in response to a confirmation operation on the matching result; wherein the first environment material and the second environment material are used for editing operations, and the types of editing operations include deletion, position modification and texture modification; the second interaction area is an area that meets a first preconfiguration condition, and the first preconfiguration condition includes any one of the following: the size of the first environment material and the second environment material exceeds the range of the second interaction area; the total data volume of the first environment material and the second environment material exceeds the storage upper limit corresponding to the second interaction area.
[0229] In some embodiments, the display module 4551 is used to display an area map of the virtual scene in response to a confirmation operation on the matching result after displaying the matching result between the at least one interactive area and the multiple interactive modes, wherein each location in the area map represents the interactive area; in response to a selection operation on any location, display a first environmental material of the interactive area corresponding to the selected location, and display a second environmental material corresponding to the interactive mode matching the interactive area in the interactive area; in response to a selection operation on any environmental material, control the selected environmental material to be in a selected state, wherein the environmental material in the selected state is used for editing operations, and the types of editing operations include deletion, position modification, and texture modification.
[0230] In some embodiments, the data processing module 4552 is used to traverse each of the interaction modes according to a preset priority before displaying the matching results between the at least one interaction area and the multiple interaction modes, and perform the following processing on the traversed interaction modes: matching the label of the interaction mode with the label of each of the interaction areas; in response to a first number of interaction areas matched by the interaction pattern satisfying a second preconfigured condition, determining that the matching of the interaction mode is completed; in response to the existence of a matching interaction mode for each of the interaction areas, combining the interaction modes matched by each of the interaction areas into the matching results.
[0231] In some embodiments, the label types of the label include: a primary label, a secondary label and a tertiary label, the primary label represents the type of the interactive area, the second label represents the environmental attribute of the interactive area, and the tertiary label represents the exclusion attribute of the interactive area; the data processing module 4552 is used to compare the mode label of the interactive mode with the area label of each of the interactive areas; when the mode label and the area label meet the following conditions, it is determined that the interactive mode matches the interactive area: each primary label in the mode label is the same as each primary label in the area label, at least one secondary label in the mode label is the same as at least one secondary label in the area label, and each primary label and secondary label of the mode label is different from the tertiary label of the interactive area.
[0232] In some embodiments, the second preconfigured condition includes: a first number of interactive areas matched by the interactive mode is within a floating interval of a first preconfigured number; a data processing module 4552 is used to, in response to the first number of interactive areas matched by the interactive mode satisfying the second preconfigured condition and determining that the matching of the interactive mode is completed, in response to traversing each of the interactive modes and there are unmatched interactive areas, take the interactive mode whose first number does not reach the preconfigured threshold as the target interactive mode, wherein the preconfigured threshold is the upper limit of the floating interval of the first preconfigured number; and match each of the target interactive modes with the unmatched interactive areas according to the preset priority.
[0233] In some embodiments, the data processing module 4552 is used to determine the preset priority by at least any one of the following methods before matching the label of the interaction mode with the label of each of the interaction areas: determining the preset priority according to the difficulty level of each of the interaction modes, wherein the difficulty level is negatively correlated with the priority; determining the preset priority according to the number of labels of each of the interaction modes, wherein the number of labels is positively correlated with the priority.
[0234] In some embodiments, the data processing module 4552 is used to perform feature extraction on the label of each interactive area to obtain a first label feature of each interactive area, and to perform feature extraction on the label of each interactive mode to obtain a second label feature of each interactive mode before displaying the matching result between the at least one interactive area and the multiple interactive modes; determine the similarity between each first label feature and each second label feature; and for each interactive area, use the interactive mode corresponding to the second label feature with the highest similarity as the interactive mode matched by the interactive area.
[0235] In some embodiments, the data processing module 4552 is used to generate interaction data of the interaction area based on the interaction mode after displaying the matching results between the at least one interaction area and the multiple interaction modes, wherein the type of the interaction data includes at least one of the following: control data of the interaction mode, environmental material data, model data of non-player characters, and action data of the interaction process of the virtual character.
[0236] The present application embodiment provides a data processing device for a virtual scene, such as Figure 2 As shown, the software modules in the data processing device 455 of the virtual scene stored in the memory 450 may include: a display module 4551, used to display the virtual scene, wherein the virtual scene includes a virtual object, and the virtual scene is formed based on the data processing method of the virtual scene of the embodiment of the present application; the display module 4551 is used to load the environmental material corresponding to the interactive mode of the interactive area in response to the virtual object being in any interactive area of the virtual scene, and control the virtual object to perform an interactive process based on the interactive mode, wherein the environmental material is used to execute a preconfigured interactive mode.
[0237] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer program or the computer executable instruction from the computer-readable storage medium, and the processor executes the computer program or the computer executable instruction, so that the electronic device executes the data processing method of the virtual scene described in the embodiment of the present application.
[0238] The present application embodiment provides a computer-readable storage medium storing computer executable instructions, wherein the computer executable instructions or computer programs are stored. When the computer executable instructions or computer programs are executed by a processor, the processor will be caused to execute the data processing method of the virtual scene provided by the present application embodiment, for example, Figure 3A The data processing method of the virtual scene is shown.
[0239] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0240] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0241] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0242] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0243] In summary, the embodiment of the present application improves the matching efficiency between the interactive areas and interactive modes in the virtual scene by displaying the label editing controls corresponding to the virtual scene and the interactive areas of the virtual scene, configuring the labels of the interactive areas based on the label editing controls, and configuring the matching relationship between the interactive modes and the interactive areas through the interactive mode controls; the labels of the interactive areas are edited through the label editing controls, and the operation difficulty is low. The matching of multiple interactive areas and multiple interactive modes through labels is supported, and the human-computer interaction efficiency is improved, thereby improving the operation efficiency and the accuracy of the data configuring the interactive areas of the virtual scene. By matching the labels of the interactive areas and the interactive modes, users can more easily manage and maintain the virtual scenes, ensuring the availability of the virtual scene functions.
[0244] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A data processing method for a virtual scene, characterized in that: The method comprises: Displaying a virtual scene and a label editing control, wherein the virtual scene includes at least one interactive area; In response to an editing operation based on the label editing control, displaying at least one label set for the interactive area; In response to a first confirmation operation on the at least one tag, displaying an interactive mode control; In response to an editing operation based on the interaction mode control, multiple interaction modes set for the at least one interaction area are displayed, and matching results between the at least one interaction area and the multiple interaction modes are displayed, wherein the matching results include at least the interaction modes matched by each of the interaction areas.
2. The method according to claim 1, characterized in that: The step of displaying at least one label set for the interactive area in response to an editing operation based on the label editing control comprises: In response to a marking operation on the virtual scene, controlling the marked first interactive area to be in a selected state; In response to a triggering operation based on a tag type in the tag editing control, at least one tag of the triggered tag type set for the first interactive area is displayed.
3. The method according to claim 2, characterized in that The step of displaying at least one tag of the triggered tag type set for the first interactive area in response to a triggering operation based on the tag type in the tag editing control includes: In response to a triggering operation based on a tag type in the tag editing control, controlling the triggered target tag type to be in a selected state; In response to an input operation on the tag editing control, at least one tag of the input target tag type is displayed.
4. The method according to claim 2, characterized in that: The step of displaying at least one tag of the triggered tag type set for the first interactive area in response to a triggering operation based on the tag type in the tag editing control includes: In response to a triggering operation based on a tag type in the tag editing control, displaying a preset tag list corresponding to the triggered target tag type, wherein the preset tag list includes a plurality of preset tags; In response to the tag selection operation, at least one selected preset tag is used as a tag of the first interactive area.
5. The method according to claim 1, characterized in that The virtual scene display and label editing control include: Displaying a list of area sets in the virtual scene, wherein the list of area sets includes a plurality of area sets, and each of the area sets includes a plurality of the interactive areas; A label edit control is displayed for editing the region set.
6. The method according to claim 5, characterized in that The step of displaying at least one label set for the interactive area in response to an editing operation based on the label editing control comprises: In response to a selection operation on any one of the area sets in the area set list, controlling the selected area set to be in a selected state; In response to an editing operation based on the label editing control, at least one label edited for the selected area set is displayed, wherein the at least one label acts on each of the interactive areas in the selected area set.
7. The method according to claim 1, characterized in that The step of displaying a plurality of interaction modes set for the at least one interaction area in response to an editing operation based on the interaction mode control comprises: In response to an input operation based on the interaction mode control, a plurality of interaction modes to be matched and parameters of the interaction modes set for the at least one interaction area are displayed, wherein the parameters of the interaction mode include at least one of the following: The interaction type of the interaction mode, the first preconfigured quantity corresponding to each of the interaction modes, the floating interval corresponding to each of the first preconfigured quantities, and the total number of preconfigured interaction modes.
8. The method according to any one of claims 1 to 7, characterized in that: The displaying of the matching results between the at least one interactive area and the plurality of interactive modes comprises: In response to a switching operation on an interaction mode control, displaying a matching process between the plurality of interaction areas and the at least one interaction mode, wherein the matching process includes the number of the interaction modes to be matched; In response to the number of matched interaction patterns reaching a preconfigured total number of interaction patterns, the matching results are displayed.
9. The method according to any one of claims 1 to 7, characterized in that: The displaying of the matching results between the at least one interactive area and the plurality of interactive modes comprises: For each interactive area, at least one of the following contents is displayed as the matching result: The name of the interaction mode matched by the interaction area, the difficulty of the virtual object to execute the interaction mode matched by the interaction area, the name of the matched interaction area, the area type of the matched interaction area and the area identifier of the matched interaction area.
10. The method according to any one of claims 1 to 7, characterized in that: After displaying the matching results between the at least one interactive area and the plurality of interactive modes, the method further includes: In response to a confirmation operation on the matching result, displaying the first environment material of the second interactive area, and displaying the second environment material corresponding to the interactive mode matching the second interactive area in the second interactive area; The first environment material and the second environment material are used for editing operations, the types of editing operations include deletion, position modification, and texture modification, and the second interactive area is an area that meets a first preconfiguration condition, and the first preconfiguration condition includes any one of the following: The sizes of the first environment material and the second environment material exceed the range of the second interactive area; The total data volume of the first environment material and the second environment material exceeds the storage upper limit corresponding to the second interactive area.
11. The method according to any one of claims 1 to 7, characterized in that: After displaying the matching results between the at least one interactive area and the plurality of interactive modes, the method further includes: In response to a confirmation operation on the matching result, displaying an area map of the virtual scene, wherein each location in the area map represents the interactive area; In response to a selection operation for any location, a first environment material of an interactive area corresponding to the selected location is displayed, and a second environment material corresponding to an interactive mode matching the interactive area is displayed in the interactive area; In response to a selection operation on any environment material, the selected environment material is controlled to be in a selection state, wherein the environment material in the selected state is used for editing operations, and the types of the editing operations include deletion, position modification, and texture modification.
12. The method according to any one of claims 1 to 7, characterized in that: Before displaying the matching result between the at least one interactive area and the plurality of interactive modes, the method further includes: Each interaction mode is traversed according to a preset priority, and the following processing is performed for the traversed interaction mode: Matching the label of the interaction mode with the label of each of the interaction areas; In response to a first number of interaction areas matched to the interaction mode satisfying a second preconfigured condition, determining that matching for the interaction mode is completed; In response to the existence of a matching interaction pattern in each of the interaction areas, the interaction patterns matching each of the interaction areas are combined into the matching result.
13. The method according to claim 12, characterized in that The tag types of the tag include: a primary tag, a secondary tag and a tertiary tag, the primary tag represents the type of the interactive area, the secondary tag represents the environmental attribute of the interactive area, and the tertiary tag represents the exclusion attribute of the interactive area; The matching of the label of the interaction mode with the label of each interaction area includes: comparing the mode label of the interactive mode with the region label of each of the interactive regions; When the mode tag and the area tag meet the following conditions, it is determined that the interaction mode matches the interaction area: Each first-level tag in the mode tag is the same as each first-level tag in the area tag, at least one second-level tag in the mode tag is the same as at least one second-level tag in the area tag, and each first-level tag and second-level tag of the mode tag is different from the third-level tag of the interactive area.
14. The method according to claim 12, characterized in that The second preconfigured condition includes: the first number of interactive areas matched by the interactive mode is within a floating range of the first preconfigured number; After determining that the matching of the interaction mode is completed in response to the first number of interaction areas matched by the interaction mode satisfying the second preconfigured condition, the method further includes: In response to traversing each of the interaction modes and there being unmatched interaction areas, taking the first number of interaction modes that do not reach a preconfigured threshold as a target interaction mode, wherein the preconfigured threshold is an upper limit of a floating interval of the first preconfigured number; Each of the target interaction modes is matched with an unmatched interaction area according to the preset priority.
15. The method according to claim 12, characterized in that Before matching the label of the interaction mode with the label of each interaction area, the method further includes: The preset priority is determined by at least one of the following methods: Determining the preset priority according to the difficulty level of each of the interaction modes, wherein the difficulty level is negatively correlated with the preset priority, or the difficulty level is positively correlated with the preset priority; The preset priority is determined according to the number of tags of each of the interactive modes, wherein the number of tags is positively correlated with the priority.
16. The method according to any one of claims 1 to 7, characterized in that: Before displaying the matching result between the at least one interactive area and the plurality of interactive modes, the method further includes: Performing feature extraction on the label of each interactive area to obtain a first label feature of each interactive area, and performing feature extraction on the label of each interactive mode to obtain a second label feature of each interactive mode; Determine the similarity between each of the first label features and each of the second label features; For each of the interactive areas, the interactive mode corresponding to the second label feature with the highest similarity is used as the interactive mode matched by the interactive area.
17. The method according to any one of claims 1 to 7, characterized in that: After displaying the matching results between the at least one interactive area and the plurality of interactive modes, the method further includes: Generate interactive data of the interactive area based on the interactive mode, wherein the type of the interactive data includes at least one of the following: control data of the interactive mode, environmental material data, model data of non-player characters, and action data of the interactive process of the virtual character.
18. A method for processing data of a virtual scene, characterized in that: The method comprises: Displaying a virtual scene, wherein the virtual scene includes a virtual object, and the virtual scene is formed based on the data processing method for the virtual scene according to any one of claims 1 to 17; In response to the virtual object being in any interactive area in the virtual scene, environmental materials corresponding to the interactive mode of the interactive area are loaded, and the virtual object is controlled to perform an interactive process based on the interactive mode, wherein the environmental materials are used to execute a preconfigured interactive mode.
19. A data processing device for a virtual scene, characterized in that: The device comprises: A display module, used for displaying a virtual scene and a label editing control, wherein the virtual scene includes at least one interactive area; The display module is used to display at least one label set for the interactive area in response to an editing operation based on the label editing control; The display module is configured to display an interactive mode control in response to a first confirmation operation on the at least one tag; The display module is used to display multiple interaction modes set for the at least one interaction area in response to an editing operation based on the interaction mode control, and to display matching results between the at least one interaction area and the multiple interaction modes, wherein the matching results include at least the interaction modes matched by each of the interaction areas.
20. A data processing device for a virtual scene, characterized in that: The device comprises: A display module, configured to display a virtual scene, wherein the virtual scene includes a virtual object, and the virtual scene is formed based on the data processing method for the virtual scene according to any one of claims 1 to 17; The display module is used to load environmental materials corresponding to the interactive mode of the interactive area in response to the virtual object being in any interactive area in the virtual scene, and control the virtual object to perform an interactive process based on the interactive mode, wherein the environmental materials are used to execute a preconfigured interactive mode.
21. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions or computer programs; The processor is used to implement the data processing method of the virtual scene described in any one of claims 1 to 18 when executing the computer executable instructions or computer programs stored in the memory.
22. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer programs are executed by a processor, the data processing method for the virtual scene described in any one of claims 1 to 18 is implemented.
23. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the data processing method for the virtual scene described in any one of claims 1 to 18 is implemented.