Method and apparatus for processing virtual object, and device, storage medium and program product
By displaying recommended objects corresponding to the target virtual objects in the virtual construction interface of the construction game, the problem of inefficiency of users when replacing or adding objects is solved, and more efficient operation and construction efficiency is achieved.
Patent Information
- Application Number
- PCT/CN2024/103389
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-01
- Filing Date
- 2024-07-03
- Publication Date
- 2025-03-06
AI Technical Summary
In construction games, when users replace objects in virtual construction objects, they need to filter them step by step, resulting in low browsing, searching and screening efficiency and low replacement efficiency.
By responding to the triggering operation of the target virtual object in the construction interface of the virtual scene, the corresponding recommended virtual objects are displayed, and the user allows the user to directly select and place these recommended objects to replace or add virtual objects.
Simplify the operation steps, shorten the operation paths for virtual object replacement or newly placed, improve operation efficiency, and improve construction efficiency through highly targeted recommendations of virtual objects.
Smart Images

Figure CN2024103389_06032025_PF_FP_ABST
Abstract
Description
Virtual object processing method, device, equipment, storage medium and program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The embodiments of this application are based on and claim the priority of Chinese patent application with application number 202311138477.1 and application date September 1, 2023. The entire contents of the Chinese patent application are hereby introduced into the embodiments of this application as a reference. Technical Field
[0003] The present application relates to human-computer interaction technology, and in particular to a method, apparatus, device, storage medium, and program product for processing virtual objects. Background Art
[0004] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and acquiring information. In particular, display technology for virtual scenes can achieve diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs. It has various typical application scenarios. For example, in the virtual scene of construction games, it can simulate the actual construction process of virtual buildings or virtual homes.
[0005] When the target account (player) controls the virtual character to build a virtual building in a virtual scene, if it is necessary to replace the virtual object in the virtual building currently being built, it is usually necessary to first select the virtual object to be replaced, and use the "retract" or "delete" button to store the virtual object to be replaced into the warehouse, and then select the new virtual object to be placed from the warehouse, and use the "place" button to place the new virtual object in the virtual building to replace the virtual object to be replaced.
[0006] However, in actual applications, the object list in the construction interface of construction games is huge in number and variety. If users want to find a specific new virtual object, they need to filter it level by level, such as first finding the first and second level tabs corresponding to the new virtual object, and then selecting the new virtual object they want to rearrange in the tabs. There are problems with low browsing, searching and filtering efficiency, resulting in low efficiency in replacing virtual objects.
[0007] Summary of the Invention
[0008] Embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing virtual objects, which can improve the construction efficiency of virtual buildings.
[0009] The technical solution of the embodiment of the present application is implemented as follows:
[0010] The present invention provides a method for processing a virtual object, including:
[0011] Displaying a virtual construction in a construction interface of a virtual scene, wherein the virtual construction includes at least one virtual object;
[0012] In response to a trigger operation on a target virtual object, displaying at least one recommended virtual object, wherein the recommended virtual object corresponds to a recommendation tag of the target virtual object;
[0013] In response to a selection operation on a target recommended object, the target recommended object is placed in the virtual building.
[0014] An embodiment of the present application provides a device for processing a virtual object, including:
[0015] A first display module is configured to display a virtual construction in a construction interface of a virtual scene, wherein the virtual construction includes at least one virtual object;
[0016] a second display module configured to display at least one recommended virtual object in response to a triggering operation on a target virtual object, wherein the recommended virtual object corresponds to a recommendation tag of the target virtual object;
[0017] The object placement module is configured to place the target recommended object in the virtual building in response to a selection operation on the target recommended object.
[0018] An embodiment of the present application provides an electronic device, including:
[0019] a memory for storing computer-executable instructions or computer programs;
[0020] The processor is configured to implement the method for processing virtual objects provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0021] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for implementing a method for processing a virtual object provided in an embodiment of the present application when executed by a processor.
[0022] 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 virtual object processing method provided in the embodiment of the present application is implemented.
[0023] The embodiments of the present application have the following beneficial effects:
[0024] According to an embodiment of the present application, when a player wants to replace or reposition a virtual object in a virtual building during the construction process, if a target virtual object in the virtual building is triggered, one or more recommended virtual objects are displayed for selection in the construction interface. The player can select the target recommended object from the list and place it in the virtual building to replace the target virtual object in the virtual building, or to create a new target recommended object in the virtual building. In this way, the player can conveniently select the desired target recommended object from the recommended virtual objects without having to filter through them step by step. Compared with the prior art, the operation path for replacing or re-placing virtual objects is greatly shortened, the operation steps are simplified, and the operation efficiency is improved. At the same time, because the recommended virtual objects correspond to the recommended tags of the target virtual objects, that is, the recommended virtual objects are recommended based on the recommended tags of the target virtual objects, the pertinence and accuracy of the virtual object recommendations can be improved, making it easier for the player to select a satisfactory target recommended object from the list to build the virtual building, thereby improving the construction efficiency of the virtual building. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a schematic diagram of the architecture of a virtual object processing system 100 provided in an embodiment of the present application;
[0026] FIG2 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application;
[0027] FIG3 is a flow chart of a method for processing virtual objects for object recognition according to an embodiment of the present application;
[0028] FIG4 is a schematic diagram showing a display of recommended virtual objects provided in an embodiment of the present application;
[0029] FIG5 is a schematic diagram of the placement of virtual objects provided in an embodiment of the present application;
[0030] FIG6 is a schematic diagram of the placement of virtual objects provided in an embodiment of the present application;
[0031] FIG7 is a schematic diagram showing details of a virtual object provided in an embodiment of the present application;
[0032] FIG8 is a schematic diagram of the configuration of virtual objects provided in an embodiment of the present application;
[0033] FIG9 is a flow chart of a method for processing virtual objects according to an embodiment of the present application;
[0034] FIG10 is a flow chart of a method for identifying a virtual object according to an embodiment of the present application;
[0035] 11A-11B are schematic diagrams showing triggering modes provided in an embodiment of the present application;
[0036] 12A-12B are schematic diagrams of virtual object recognition provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0038] It is understandable that in the embodiments of the present application, when data related to user information (such as user trigger operations, recommended tags or user configuration data, etc.) is involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.
[0039] In the following description, reference is made to “some embodiments”, which describes 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.
[0040] In the following description, the terms "first\second..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second..." 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.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0042] Before further explaining 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.
[0043] 1) Client: An application running in a terminal to provide various services, such as a video player client, a game client, etc.
[0044] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be real-time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0045] 3) A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiments of the present application do not limit the dimensions of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.
[0046] 4) Virtual structures: These are structures constructed by players in a virtual scene. These include architectural structures like houses, walls, and gardens, as well as transportation structures like bridges, roads, ships, and airplanes. Of course, other types of structures are also possible. Virtual structures can have their own shape and volume within the virtual scene, occupying a portion of the space within the virtual scene. Players can construct or build virtual structures using individual virtual objects or virtual components. In other words, each virtual structure can include multiple virtual objects or virtual components.
[0047] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing virtual objects, which can improve the construction efficiency of virtual buildings. The following describes exemplary applications of the electronic devices provided by the embodiments of the present application. The electronic devices provided by the embodiments of the present application can be implemented as various types of user terminals such as laptops, tablet computers, desktop computers, set-top boxes, mobile devices (for example, mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers. The following describes exemplary applications when the device is implemented as a terminal.
[0048] Refer to Figure 1, which is a schematic diagram of the architecture of a virtual object processing system 100 provided in an embodiment of the present application. To support an exemplary application, terminals (terminal 400-1 and terminal 400-2 are shown as examples) are connected to a server 200 via a network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0049] In some embodiments, a client is provided on the terminal, such as a video playback client, an instant messaging client, a game client, a live broadcast client, etc. The server 200 is a background server corresponding to the client, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be 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, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0050] In actual applications, the terminal displays a virtual building in a construction interface of a virtual scene, wherein the virtual building includes at least one virtual object; in response to a trigger operation on a target virtual object, a recommendation request is generated and sent to the server 200; based on the recommendation request, the server 200 obtains at least one recommended virtual object corresponding to the recommendation tag of the target virtual object, and returns the obtained at least one recommended virtual object to the terminal; the terminal displays the at least one recommended virtual object; and in response to a selection operation on the target recommended object, the target recommended object is placed in the virtual building.
[0051] Referring to Figure 2, Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application. Taking the electronic device 500 as the terminal in Figure 1 as an example, the electronic device 500 shown in Figure 2 includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 540 in Figure 2.
[0052] The processor 510 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.
[0053] The memory 550 includes a volatile memory or a non-volatile memory, or may 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 550 described in the embodiments of the present application is intended to include any suitable type of memory. The memory 550 may optionally include one or more storage devices physically remote from the processor 510.
[0054] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0055] The operating system 551 includes 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., which are used to implement various basic businesses and process hardware-based tasks; the network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520. Exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.
[0056] In some embodiments, the virtual object processing device provided in the embodiments of the present application can be implemented in software. The virtual object processing device provided in the embodiments of the present application can be provided as various software embodiments, including various forms such as applications, software, software modules, scripts, or code. Figure 2 shows a virtual object processing device 555 stored in memory 550. This can be software in the form of a program or plug-in, and includes a series of modules, including a first display module 5551, a second display module 5552, and an object placement module 5553. These modules are logical and can be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.
[0057] In other embodiments, the apparatus provided in the embodiments of the present application may be implemented in hardware. As an example, the apparatus provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the virtual object processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0058] In some embodiments, the terminal or server can implement the method for processing virtual objects provided by the embodiments of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a live broadcast 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.
[0059] As previously mentioned, the virtual object processing method provided in the embodiments of the present application can be implemented by various types of electronic devices. For example, it can be executed independently by either the terminal or server 200 in Figure 1 , or it can be executed collaboratively by the terminal and server 200 in Figure 1 . Next, the virtual object processing method provided in the embodiments of the present application, executed independently by the terminal in Figure 1 , will be described as an example. Referring to Figure 3 , which is a schematic flow chart of the object recognition virtual object processing method provided in the embodiments of the present application, the steps illustrated in Figure 3 will be described.
[0060] Step 101: The terminal displays a virtual building in a construction interface of a virtual scene, wherein the virtual building includes at least one virtual object.
[0061] In actual applications, a client that supports virtual scenes is installed on the terminal (for example, when the virtual scene is a game, the corresponding client can be a construction game APP). When the user opens the client installed on the terminal and the terminal runs the client, a construction interface for the target account (that is, the account corresponding to the current terminal) to build in the virtual scene can be displayed in the client, and a virtual building can be displayed in the construction interface. The virtual building includes at least one virtual object. For example, taking the virtual building as a house, the virtual objects can be windows, doors, walls, roofs, floors, furniture in the house (such as tables, chairs, table lamps, beds, sofas, etc.), and other components. These virtual objects are used to build the virtual building of the house and are part of the virtual building.
[0062] Step 102 : In response to a triggering operation on a target virtual object, display at least one recommended virtual object, wherein the recommended virtual object corresponds to a recommended tag of the target virtual object.
[0063] In actual applications, when a player needs to replace or edit a virtual object in a virtual building, or needs to place a new virtual object, this can be achieved by triggering the existing virtual objects in the virtual building. For example, when the player triggers the target virtual object, the terminal responds to the triggering operation and displays at least one recommended virtual object corresponding to the recommended tag of the target virtual object, for the player to select the required recommended virtual object from them and place the selected recommended virtual object in the virtual building.
[0064] Among them, the recommended tag is used to identify the part or style to which the recommended virtual object belongs, that is, the part or style corresponding to at least one recommended virtual object displayed corresponds to the part or style indicated by the recommended tag of the target virtual object, that is, the recommended virtual object is recommended based on the recommended tag of the target virtual object. This can improve the pertinence and accuracy of virtual object recommendations, making it easier for players to select satisfactory target recommended objects to build virtual buildings, thereby improving the construction efficiency of virtual buildings.
[0065] In some embodiments, before displaying at least one recommended virtual object, the terminal may receive a trigger operation for a target virtual object in the following manner: in response to a trigger operation for a target area in a virtual building, performing object recognition processing on the object projection carried by the target area to obtain a first recognition result; when the first recognition result indicates that the object projection carried by the target area is a projection of a virtual object, using the virtual object corresponding to the object projection as the target virtual object; when the first recognition result indicates that the object projection carried by the target area is a projection of multiple virtual objects, identifying the integrity of the projections of the multiple virtual objects in the target area to obtain a second recognition result, and determining the target virtual object based on the second recognition result; and using the trigger operation for the target area as the trigger operation for the target virtual object.
[0066] The trigger operation may be a single-click operation, a long-press operation, a circle operation, or other forms of operation. Of course, other forms of operation are also possible. The embodiments of the present application do not limit the form of the trigger operation. Taking the player triggering the above-mentioned trigger operation with a finger as an example, the target area is the contact area of the player's finger on the virtual building when the player triggers the above-mentioned trigger operation on the virtual building (for example, if the trigger operation is a long-press operation, the target area is the long-press area of the finger) or the circled area (for example, if the trigger operation is a circle operation, the target area is the circled area of the finger).
[0067] When the terminal receives a trigger operation from the player on the target area, it performs object recognition processing on the object projection carried by the target area to determine the corresponding virtual object in the target area based on a first recognition result obtained by recognition. That is, the first recognition result is used to indicate whether the object projection carried by the target area is a projection of a virtual object. For example, when the first recognition result indicates that the object projection carried by the target area is a projection of a virtual object (that is, the object projection is a projection of a virtual object in the target area), it can be determined that the virtual object in the target area is the virtual object corresponding to the projection, and the virtual object is used as the target virtual object. When the first recognition result indicates that the object projection carried by the target area is the projection of multiple (two or more) virtual objects, the integrity of the projections of the multiple virtual objects in the target area is further identified, and the target virtual object is determined based on a second recognition result obtained by recognition. That is, when the first recognition result indicates that the object projection carried by the target area is the projection of multiple virtual objects, the second recognition result is used to indicate whether the projections of the multiple virtual objects in the target area are complete. After the target virtual object is determined, the triggering operation on the target area in the virtual building can also be considered as a triggering operation on the target virtual object in the virtual building.
[0068] In some embodiments, the terminal may determine the target virtual object based on the second recognition result in the following manner: when the second recognition result indicates that the projections of multiple virtual objects in the target area are incomplete, obtain the projection area of each virtual object in the target area, and use the virtual object with the largest projection area as the target virtual object; when the second recognition result indicates that the projections of a first number of virtual objects among the multiple virtual objects are complete and the projections of a second number of virtual objects are incomplete, determine the target virtual object based on the first number of virtual objects.
[0069] Here, when the second recognition result indicates that the projections of multiple virtual objects in the target area are all incomplete, the target virtual object is determined based on the size of the projection area of each virtual object in the target area. For example, when the first recognition result indicates that three virtual objects, namely virtual object 1, virtual object 2, and virtual object 3, have projections in the target area, the completeness of the projections of virtual object 1, virtual object 2, and virtual object 3 in the target area is further identified. When the second recognition result indicates that the projections of virtual object 1, virtual object 2, and virtual object 3 in the target area are all incomplete, the projection areas of virtual object 1, virtual object 2, and virtual object 3 in the target area are further obtained, and the virtual object with the largest projection area is selected as the target virtual object. For example, if the projection area of virtual object 1 is larger than the projection area of virtual object 2, and the projection area of virtual object 2 is larger than the projection area of virtual object 3, virtual object 1 can be used as the target virtual object.
[0070] When the second recognition result indicates that multiple virtual objects corresponding to the object projection in the target area (i.e., virtual objects with projections in the target area) are all completely projected in the target area, or some virtual objects (such as the first number of virtual objects) are completely projected and some virtual objects (such as the second number of virtual objects) are incompletely projected, the target virtual object is further determined based on the virtual objects with complete projections.
[0071] In some embodiments, the terminal may determine the target virtual object based on a first number of virtual objects in the following manner: when the first number is 1, the projected complete virtual object is used as the target virtual object; when the second number is greater than 1, the distance between each virtual object in the first number of virtual objects and the camera is obtained, and the virtual object with the smallest distance is used as the target virtual object.
[0072] Here, when the second recognition result indicates that multiple virtual objects corresponding to the object projection in the target area are all completely projected in the target area, or that some virtual objects are completely projected, a target virtual object is further determined based on the virtual objects with complete projections. When there is one virtual object with complete projections, the virtual object with complete projections can be used as the target virtual object. When there are multiple virtual objects with complete projections (greater than or equal to two), the distance between each virtual object with complete projections and a camera (referring to a camera used to obtain the current construction interface in the virtual scene) is further obtained. For example, when the complete virtual objects include virtual object 1, virtual object 2, and virtual object 3, the distances between virtual object 1, virtual object 2, and virtual object 3 and the camera are respectively obtained, and the virtual object with the smallest distance is used as the target virtual object. For example, if the distance between virtual object 1 and the camera is smaller than the distance between virtual object 2 and the camera, and the distance between virtual object 2 and the camera is smaller than the distance between virtual object 3 and the camera, virtual object 1 is used as the target virtual object.
[0073] After determining the target virtual object corresponding to the target area, the trigger operation on the target area can be considered as a trigger operation on the target virtual object. In response to the trigger operation, the terminal can display at least one recommended virtual object corresponding to the recommended tag of the target virtual object for the player to select.
[0074] In some embodiments, the terminal may display at least one recommended virtual object in the following manner: displaying at least one selectable recommended tag; and in response to a tag selection operation, displaying at least one recommended virtual object corresponding to the selected recommended tag.
[0075] Here, the terminal responds to the trigger operation for the target virtual object and displays one or more (two or more) recommended tags for selection, such as recommending similar parts or recommending similar styles. After the player selects a recommended tag, the terminal responds to the selection operation and displays the recommended virtual object corresponding to the selected recommended tag for the player to choose and use.
[0076] In some embodiments, the terminal may display at least one recommended virtual object corresponding to the selected recommendation tag in the following manner: when the selected recommendation tag indicates a recommendation for a virtual object corresponding to the part to which the target virtual object belongs, display at least one recommended virtual object corresponding to the part; when the selected recommendation tag indicates a recommendation for a virtual object corresponding to the construction style of the target virtual object, display at least one recommended virtual object corresponding to the target style.
[0077] Here, when the selected recommendation tag indicates the recommendation of a virtual object corresponding to the part to which the target virtual object belongs, at least one recommended virtual object corresponding to the part is displayed. For example, when the part to which the target virtual object belongs is a window, multiple windows for selection are displayed as recommended virtual objects. For another example, when the part to which the target virtual object belongs is a roof, multiple roofs for selection are displayed as recommended virtual objects. When the selected recommendation tag indicates the recommendation of a virtual object corresponding to the construction style of the target virtual object, the recommended virtual object corresponding to the target style is displayed, wherein the target style includes the construction style corresponding to the target virtual object or at least one of the associated styles associated with the construction style corresponding to the target virtual object. For example, the construction style of the target virtual object is pastoral style, and the associated styles associated with the pastoral style can be fresh style, simple style, etc., then the target style can be at least one of the pastoral style, fresh style, and simple style, and the recommended virtual object corresponding to at least one of the pastoral style, fresh style, and simple style can be displayed.
[0078] Referring to FIG4 , FIG4 is a schematic diagram of displaying recommended virtual objects provided by an embodiment of the present application. In response to the triggering operation for the target virtual object 401 in (1) (the part to which the target virtual object belongs is a window), the terminal displays two optional recommendation tags in (2), including a part tag (such as searching for similar parts) 402 and a style tag (such as searching for similar styles) 403. The part tag 402 is used to indicate searching for or recommending a recommended virtual object corresponding to the part (i.e., the window) to which the target virtual object 401 belongs, and the style tag 403. The grid label 403 is used to indicate the search or recommendation of recommended virtual objects corresponding to the construction style of the target virtual object (such as pastoral style). When the player selects the part label 402, the terminal responds to the selection operation and displays the recommended virtual object 404 corresponding to the "window" part in (3); when the player selects the style label 403, the terminal responds to the selection operation and displays the recommended virtual objects 405 (such as roofs, walls, chairs, etc.) corresponding to the construction style of "palace style" that is the same as or similar to the European style in (4).
[0079] In the above manner, the recommended virtual objects are recommended based on the recommended tags of the target virtual objects. This can improve the pertinence and accuracy of the virtual object recommendations, making it easier for players to select satisfactory target recommended objects to build virtual buildings, thereby improving the construction efficiency of virtual buildings.
[0080] In some embodiments, the terminal may display at least one recommended virtual object corresponding to the target style in the following manner: when there are multiple types of target styles, determine the correlation between each type of target style and the construction style; and display at least one recommended virtual object corresponding to the target style in descending order of correlation.
[0081] Here, when there are multiple target styles, the correlation between the target style and the construction style corresponding to the target virtual object can be determined. Generally, the closer the target style is to the construction style corresponding to the target virtual object, the stronger the correlation between the two. Assuming that the construction style corresponding to the target virtual object is pastoral style, and the target styles include pastoral style, fresh style, and simple style, when the target style is pastoral style, the correlation between it and the construction style corresponding to the target virtual object is 100 (assuming the highest correlation is 100), then when the target style is fresh style, the correlation between it and the construction style corresponding to the target virtual object is 90, then When the target style is minimalist, and the correlation between it and the construction style corresponding to the target virtual object is 80, at least one recommended virtual object corresponding to the corresponding target style is displayed in descending order of correlation, that is, the recommended virtual object corresponding to "rural style" is displayed before the recommended virtual object corresponding to "fresh style", and the recommended virtual object corresponding to "fresh style" is displayed before the recommended virtual object corresponding to "minimalist style"; in this way, it is convenient for players to quickly select the recommended virtual object that is closest to the style of the target virtual object, thereby improving the efficiency of selecting virtual objects, and thus helping to improve the efficiency of building virtual buildings.
[0082] In some embodiments, before displaying at least one recommended virtual object, the terminal may determine a recommended tag for each virtual object in the virtual building in the following manner: displaying an object configuration interface for the virtual building, and displaying a location setting control, a style setting control, and a style association control in the object configuration interface; in response to a location setting operation triggered by the location setting control, setting the location to which at least one virtual object in the virtual building belongs; in response to a style setting operation triggered by the style setting control, setting the construction style corresponding to the virtual building or at least one virtual object in the virtual building; in response to a style association operation triggered by the style association control, setting the association between different construction styles to obtain an associated style corresponding to the architectural style; and determining a recommended tag for the virtual object based on at least one of the set location, construction style, and associated style.
[0083] In actual applications, developers of virtual scenes can pre-set the parts (or types), construction styles, associated styles, etc. of the virtual objects that make up the virtual buildings. For example, when setting the target virtual object, the part to which the target virtual object belongs can be set through the part setting control, the construction style corresponding to the target virtual object can be set through the style setting control, and the associated styles associated with the construction style of the target virtual object can be set through the style association control. For example, the correlation between the construction style of the target virtual object and other construction styles can be set. Generally, the greater the correlation, the more similar the construction styles are. For example, the construction style corresponding to the target virtual object is pastoral style, and other construction styles include fresh style and retro style. The correlation between pastoral style and fresh style can be set to 90, and the correlation between pastoral style and retro style can be set to 20. Other construction styles whose correlation exceeds the correlation threshold (which can be set according to actual needs, such as 80) can be used as the associated styles of the construction style of the target virtual object, such as setting fresh style as the associated style of pastoral style, while retro style does not belong to the associated style of pastoral style.
[0084] After setting the location, construction style, and associated style of the target virtual object, a recommendation tag for the target virtual object can be set based on at least one of the location, construction style, and associated style. For example, the recommendation tag may include a location tag and a style tag. When the player selects a location tag (indicating recommendation of a virtual object corresponding to the location of the target virtual object), at least one recommended virtual object corresponding to the location of the target virtual object is displayed; when the player selects a style tag (indicating recommendation of a virtual object corresponding to the construction style of the target virtual object), at least one recommended virtual object corresponding to the construction style or associated style of the target virtual object is displayed.
[0085] In some embodiments, the terminal may display at least one recommended virtual object in the following manner: when the number of recommended virtual objects is at least two, a first display style is used to display a first number of the at least two recommended virtual objects, and a second display style is used to display a second number of the recommended virtual objects; wherein the first display style is different from the second display style, the first display style is used to indicate that the first number of recommended virtual objects are in a selectable state, and the second display style is used to indicate that the second number of recommended virtual objects are in a non-selectable state.
[0086] Here, when there are multiple recommended virtual objects, different display styles (such as different display orders, different display colors, different display brightness, different display fonts, etc.) can be used to display each recommended virtual object based on its status (such as whether it is selectable or locked). For example, when there are multiple recommended virtual objects, recommended virtual objects that are in a selectable state (i.e., the recommended virtual objects are in an unlocked state and can be selected and placed in the virtual building) are highlighted (i.e., the first display style), while recommended virtual objects that are in an unselectable state (i.e., the recommended virtual objects are in a locked state and cannot be selected and placed in the virtual building until they are unlocked) are grayscaled (i.e., the second display style). In this way, recommended virtual objects in different states are distinguished, making it easier for players to select selectable recommended virtual objects to place in the virtual building, which is beneficial for improving the efficiency of virtual object screening and virtual building construction.
[0087] In some embodiments, the terminal may display at least one recommended virtual object in the following manner: when the number of recommended virtual objects is at least two, obtaining an influencing parameter for influencing the selection priority of each recommended virtual object; wherein the influencing parameter includes at least one of the following: the location to which the recommended virtual object belongs, and the correlation between the recommended virtual object and the construction style corresponding to the target virtual object; based on the influencing parameter, determining the selection priority of each recommended virtual object, and displaying each recommended virtual object in a display manner corresponding to the selection priority.
[0088] Here, when there are multiple recommended virtual objects, the selection priorities corresponding to different recommended virtual objects may be different. According to the selection priorities corresponding to the recommended virtual objects, each recommended virtual object may be displayed in a corresponding display style, such as highlighting the recommended virtual objects with higher selection priorities. For example, if there are three recommended virtual objects to choose from, namely recommended virtual object 1, recommended virtual object 2, and recommended virtual object 3, the selection priorities corresponding to these three recommended virtual objects decrease in sequence. Recommended virtual object 1 may be displayed in red font, recommended virtual object 2 in yellow font, and recommended virtual object 3 in gray font, so that users can select the required recommended virtual objects, which is beneficial to improving the screening efficiency of virtual objects and the construction efficiency of virtual buildings.
[0089] When determining the selection priority corresponding to each recommended virtual object, the selection priority of the recommended virtual object can be determined based on whether the location to which the recommended virtual object belongs is consistent with the location to which the target virtual object belongs, or based on the correlation between the construction styles corresponding to the recommended virtual object and the target virtual object. Generally, the more consistent the location of the recommended virtual object is with the location of the target virtual object (for example, the location features of the recommended virtual object and the target virtual object can be extracted and the similarity between the location features can be calculated. The similarity value can be used to determine whether the recommended virtual object and the target virtual object are located in the same location. The greater the similarity, the greater the likelihood that the recommended virtual object and the target virtual object are located in the same location). The higher the correlation between the construction styles of the recommended virtual object and the target virtual object (wherein the correlation can be obtained by extracting the style features of the construction styles of the virtual object and the target virtual object and calculating the similarity between the style features, and the similarity value can be used to represent the correlation. The similarity value and the correlation are positively correlated, i.e., the greater the similarity value, the greater the correlation). After obtaining the influencing parameters for each recommended virtual object, the neural network model trained with the influencing parameters can be used for prediction processing to obtain the selection priority of the recommended virtual object, which can make the prediction more accurate.
[0090] Before applying the neural network model, it is necessary to train the initial neural network model, and then put the trained neural network model into application to achieve the combination of influencing parameters and predict the selection priority of recommended virtual objects through artificial intelligence technology. Among them, the neural network model is trained by recommending virtual object samples, the influencing parameters corresponding to the recommended virtual object samples, and the selection priority annotated by the recommended virtual object samples. For example, based on the recommended virtual object samples, the parts to which the recommended virtual object samples belong, and the selection priority annotated by the recommended virtual object samples, the initial neural network model is called for prediction processing to obtain the predicted selection priority. After determining the value of the loss function of the neural network model through the predicted selection priority and the annotated selection priority, it can be determined whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the neural network model is determined based on the loss function, and the error signal is back-propagated in the neural network model, and the model parameters of each layer are updated during the propagation process.
[0091] Among them, the embodiments of the present application do not limit the model structure of the neural network model. For example, the neural network model can be a convolutional neural network, a deep neural network, etc.; nor are they limited to the form of the loss function. For example, it can be a cross entropy loss function, an L2 loss function, etc.
[0092] Here, back propagation is explained. The training sample data is input into the input layer of the neural network model, passes through the hidden layer, and finally reaches the output layer and outputs the result. This is the forward propagation process of the neural network model. Since there is an error between the output result of the neural network model and the actual result, the error between the output result and the actual value is calculated, and the error is backpropagated from the output layer to the hidden layer until it propagates to the input layer. In the back propagation process, the value of the model parameter is adjusted according to the error, that is, the loss function is constructed according to the error between the output result and the actual value, and the partial derivative of the loss function with respect to the model parameters is calculated layer by layer to generate the gradient of the loss function with respect to the model parameters of each layer. Since the direction of the gradient indicates the direction of error expansion, the gradient of the model parameter is inverted and summed with the original parameters of the model of each layer. The summed result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters. The above process is continuously iterated until convergence.
[0093] In actual application, when a player selects a style tag corresponding to a target virtual object, the terminal responds to the selection operation and displays recommended virtual objects corresponding to the target style. If there are multiple types of target styles, the correlation between each type of target style and the construction style of the target virtual object is determined, and the recommended virtual objects corresponding to the target style are displayed in order from high to low correlation. If there are multiple recommended virtual objects for a certain target style, the selection priority of these multiple recommended virtual objects can be further determined from other dimensions, and the corresponding recommended virtual objects can be displayed in a display order corresponding to each selection priority. For example, the corresponding selection priority can be determined according to the similarity between the part to which each recommended virtual object belongs and the part to which the target virtual object belongs. For example, the greater the similarity, the greater the corresponding selection priority, and the greater the selection priority, the higher the display order of the corresponding recommended virtual object.
[0094] For example, if the target virtual object belongs to a "window" and the corresponding construction style is "pastoral style", when the player selects the style label of the target virtual object, the terminal responds to the selection operation and determines that the target style includes pastoral style, fresh style, and simple style. Since the correlation between pastoral style and pastoral style is greater than the correlation between pastoral style and simple style, and the correlation between pastoral style and fresh style is greater than the correlation between pastoral style and simple style, that is, the selection priority of the recommended virtual controls corresponding to pastoral style, fresh style, and simple style decreases in sequence, the selection priority is determined by the correlation first. The recommended virtual objects corresponding to the pastoral style, fresh style, and simple style are displayed in order from high to low (i.e., the selection priority is from high to low), that is, the recommended virtual objects corresponding to the "pastoral style" are displayed before the recommended virtual objects corresponding to the "fresh style", and the recommended virtual objects corresponding to the "fresh style" are displayed before the recommended virtual objects corresponding to the "simple style"; when there are multiple recommended virtual objects corresponding to each target style, taking the recommended virtual objects corresponding to the "pastoral style" as an example, including recommended virtual objects 1, recommended virtual objects 2, and recommended virtual objects 3, if the recommended virtual objects For example, if item 1 corresponds to a bed, item 2 corresponds to a curtain, and item 3 corresponds to a window, and both item 3 and the target item are "window," recommended virtual item 3 has the highest selection priority. The item 2 (curtain) has a direct association with the item 1 (window) (curtains can be installed on windows), while the item 1 (bed) has a direct association with the item 1 (window), so recommended virtual item 2 has a higher selection priority than recommended virtual item 1. Therefore, when displaying recommended virtual objects corresponding to "Pastoral Style," recommended virtual item 3, which matches the item 1 (window) of the target item, is displayed first. That is, recommended virtual item 3 (window), recommended virtual item 2 (curtain), and recommended virtual item 1 (bed) are displayed in that order. This allows players to quickly select the recommended virtual object that is closest in style and location to the target virtual object, improving the efficiency of virtual object selection and virtual building construction.
[0095] It is understandable that in actual applications, when a player selects a part label corresponding to a target virtual object, the terminal responds to the selection operation and displays recommended virtual objects corresponding to the part to which the target virtual object belongs. If there are multiple recommended virtual objects, the selection priority of each recommended virtual object can be determined, and each recommended virtual object can be displayed in a display method corresponding to the selection priority. For example, the correlation between the construction style corresponding to each recommended virtual object and the construction style of the target virtual object can be further obtained (the greater the correlation, the greater the corresponding selection priority), and each recommended virtual object can be displayed in order from high to low correlation.
[0096] For example, if the target virtual object belongs to a "window" and the corresponding construction style is "pastoral style", when the player selects the part label of the target virtual object, the terminal responds to the selection operation and determines multiple recommended virtual objects for selection, such as window 1, window 2 and window 3. When determining the display order, the construction style corresponding to each recommended virtual object can be further obtained, such as the construction style corresponding to window 1 is "fresh style", the construction style corresponding to window 2 is "pastoral style", and the construction style corresponding to window 3 is "simple style", and the correlation between the construction style corresponding to each recommended virtual object and the construction style of the target virtual object is determined, and the corresponding recommended virtual objects are displayed in descending order of correlation. For recommended virtual objects, for example, the correlation between the construction style corresponding to window 2 and the construction style of the target virtual object is greater than the correlation between the construction style corresponding to window 1 and the construction style of the target virtual object, and the correlation between the construction style corresponding to window 1 and the construction style of the target virtual object is greater than the correlation between the construction style corresponding to window 3 and the construction style of the target virtual object, that is, the selection priority of window 2, window 1 and window 3 decreases in sequence, and window 2, window 1 and window 3 are displayed in sequence; in this way, it is convenient for players to quickly select the recommended virtual object that is closest to the part and style of the target virtual object, which is conducive to improving the screening efficiency of virtual objects and the construction efficiency of virtual buildings.
[0097] Step 103 : In response to a selection operation on the target recommended object, place the target recommended object in the virtual building.
[0098] In actual applications, when a player selects a target recommended object from at least one recommended virtual object, the terminal can directly place the target recommended object in the virtual building in response to the selection operation. For example, when the player selects a part label corresponding to the target virtual object, the recommended virtual object is a virtual object corresponding to the same component as the component to which the target virtual object belongs. In this case, the target virtual object in the virtual building can be directly replaced with the selected target recommended object.
[0099] For another example, when the player selects a style tag corresponding to a target virtual object, the recommended virtual object is a virtual object corresponding to a target style that is the same or similar to the construction style corresponding to the target virtual object, and the recommended virtual object may be the same as or different from the part to which the target virtual object belongs. When the target recommended object selected by the player is a virtual object corresponding to the same part as the part to which the target virtual object belongs, the target virtual object in the virtual building can be directly replaced with the selected target recommended object. When the target recommended object selected by the player is a virtual object corresponding to a part different from the part to which the target virtual object belongs, the target recommended object can be directly placed at the target position in the virtual building, where the target position is the position of the part to which the target recommended object belongs in the virtual building.
[0100] It can be understood that if a virtual object (i.e., the original virtual object) already exists at the target position before the target recommended object is placed at the target position, then placing the target recommended object at the target position in the virtual building means replacing the original virtual object at the target position with the target recommended object; if no virtual object exists at the target position before the target recommended object is placed at the target position, then placing the target recommended object at the target position in the virtual building means placing a new target recommended object at the target position in the virtual building.
[0101] In some embodiments, the terminal may also place the target recommended object in the virtual building in response to a selection operation on the target recommended object in the following manner: in response to the selection operation on the target recommended object, display a replacement control and a placement control corresponding to the target recommended object; when a trigger operation on the replacement control is received, place the target recommended object in the virtual building to replace the original virtual object in the virtual building; when a trigger operation on the placement control is received, place the target recommended object at the target position in the virtual building to create a new target recommended object at the target position.
[0102] 5, which is a schematic diagram of placing virtual objects provided by an embodiment of the present application. When a player selects a target recommended object 501 from at least one recommended virtual object, the terminal, in response to the selection operation, may display a replacement control 502 and a placement control 503 corresponding to the target recommended object. The replacement control 502 is used to replace the original virtual object in the virtual building with the target recommended object 501, and the placement control 503 is used to place the target recommended object 501 in the virtual building. At the same time, a placement prompt 504 may also be displayed (if the player confirms the selection of this object, the original object will be replaced). Replace? Or, Confirm to select this object for new placement?); based on the placement prompt information 504, when the player triggers the replace control, the terminal responds to the trigger operation and places the target recommended object in the virtual building to replace the original virtual object in the virtual building; when the player triggers the place control, the terminal responds to the trigger operation and places the target recommended object at the target position in the virtual building to create (i.e., newly place) the target recommended object at the target position, wherein the target position is in a placeable state, i.e., no other virtual object has been placed at the target position.
[0103] In some embodiments, the terminal may place the target recommended object in the virtual building to replace the original virtual object in the virtual building in the following manner: when the target recommended object and the target virtual object belong to the same part, the target recommended object is placed at the position of the target virtual object in the virtual building to replace the target virtual object; when the target recommended object and the target virtual object do not belong to the same part, the target recommended object is placed at the position of other virtual objects in the virtual building to replace the other virtual objects, wherein the target recommended object and the other virtual objects belong to the same part.
[0104] In actual applications, when the target virtual object triggered by the user matches the location of the selected target recommended object, the target recommended object can be directly placed at the location of the target virtual object in the virtual building to replace the target virtual object. For example, when a player triggers a target virtual object (such as Window 0) in the virtual building, the terminal responds to the triggering operation and displays at least one recommended virtual object for selection, such as Window 1, Window 2, and Window 3. When the player selects the target recommended object (such as Window 3), the terminal responds to the triggering operation and determines whether the target recommended object (i.e., Window 3) matches the location of the target virtual object. If it is determined that the target recommended object (i.e., Window 3) matches the location of the target virtual object (i.e., Window 0) in the virtual building, it is directly replaced with the target recommended object (i.e., Window 3). In this way, during the construction process of the virtual building, the rapid replacement of virtual objects is achieved, the replacement efficiency of virtual objects is improved, and the construction efficiency of the virtual building is further improved.
[0105] In some embodiments, the terminal may place the target recommended object at the location of the target virtual object in the virtual building to replace the target virtual object in the following manner: when there are other virtual objects in the virtual building that are consistent with the component to which the target virtual object belongs, the target recommended object is placed at the location of the target virtual object and the other virtual objects in the virtual building to replace the target virtual object and the other virtual objects.
[0106] In actual applications, when there are other virtual objects in the virtual building that are in the same position as the target virtual object, the target recommended object can be placed in the position of multiple virtual objects in the same position in the virtual building (such as the target virtual object and other virtual objects in the same position) with one click, thereby realizing one-click replacement of multiple virtual objects in the same position. For example, when the player triggers the target virtual object in the virtual building (the position it belongs to is a window), the terminal responds to the trigger operation and displays at least one recommended virtual object for selection, such as window 1, window 2 and window 3. When the player selects the target recommended object (such as window 3), the terminal responds to the trigger operation and determines whether the target recommended object (i.e., window 3) is in the same position as the target virtual object. When When it is determined that the target recommended object (i.e., window 3) and the target virtual object belong to the same part (i.e., the parts to which both belong are windows), it is further determined whether there are other virtual objects in the virtual building that belong to the same part as the target virtual object (i.e., it is determined whether there are other windows in the virtual building). When it is determined that there are other virtual objects in the virtual building that belong to the same part as the target virtual object (i.e., there are other windows), such as virtual object 1 and virtual object 2, the target virtual object, virtual object 1, and virtual object 2 in the virtual building are replaced with the target recommended object (i.e., window 3) with one click. In this way, multiple virtual objects can be quickly replaced at one time, which improves the replacement efficiency of virtual objects and is conducive to improving the construction efficiency of virtual buildings.
[0107] In actual applications, when the target virtual object triggered by the user is inconsistent with the part to which the selected target recommended object belongs, the target recommended object can be placed at the location of other virtual objects in the virtual building that are consistent with the part to which the target recommended object belongs, so as to replace the other virtual objects that are consistent with the part to which the target recommended object belongs. When there are multiple other virtual objects that are consistent with the part to which the target recommended object belongs, multiple other virtual objects in the virtual building that are consistent with the part to which the target recommended object belongs can be replaced with the target recommended object with one click.
[0108] For example, when a player triggers a target virtual object (such as a window) in a virtual building, the terminal responds to the trigger operation and displays at least one recommended virtual object for selection, such as table lamp 1, chair 1, and chair 2. In this case, the recommended virtual object can be a virtual object corresponding to an associated style associated with the construction style of the target virtual object. When the user selects the target recommended object (such as table lamp 1), the terminal responds to the trigger operation and determines whether the target recommended object (i.e., table lamp 1) and the target virtual object (such as window) belong to the same part. When it is determined that the target recommended object (i.e., table lamp 1) and the target virtual object (such as window) belong to the same part (i.e., the part to which the selected target recommended object belongs is the table lamp, and the part to which the target virtual object belongs is the window), The terminal determines whether a desk lamp has been placed in the virtual building. When it is determined that a desk lamp has been placed in the virtual building, the placed desk lamp is replaced with the target recommended object (i.e., desk lamp 1). When there are multiple desk lamps placed in the virtual building, the multiple placed desk lamps can be replaced with the target recommended object (i.e., desk lamp 1) with one click. In this way, during the construction process of the virtual building, by triggering the target virtual object, other virtual objects different from the target virtual object are replaced, breaking through the space and object limitations, and realizing cross-object replacement, thereby fully expanding the replacement range of virtual objects in the virtual building, and at the same time realizing rapid replacement of virtual objects, improving the replacement efficiency of virtual objects, and thus helping to improve the construction efficiency of the virtual building.
[0109] In some embodiments, the terminal may place the target recommended object at the target position in the virtual building in the following manner: in response to a drag operation on the target recommended object, controlling the target recommended object to move in the virtual building, and displaying the position of the target recommended object in a first style during the movement of the target recommended object; when the target recommended object moves to the target position and the display style of the target position is a second style, in response to a release instruction for the drag operation, placing the target recommended object at the target position; wherein the first style is different from the second style, the first style is used to indicate that the position of the target recommended object is in a non-placeable state, and the second style is used to indicate that the target position is in a placeable state.
[0110] In actual application, after selecting the target recommended object and selecting the placement control, the player can drag the target virtual object to move it in the construction interface or the virtual building, and during the movement of the target recommended object, the target recommended object's location is displayed in real time using a target style (i.e., real-time moving location) to indicate the placement status of the target recommended object's location (i.e., whether the target recommended object can be placed at the current location, including a placeable state and a non-placeable state), or, when the target recommended object moves to the location of the target part in the virtual building, the target part's location is displayed using a target style (e.g., a target part's border is displayed using a target style) to indicate the placement status of the target part's location (i.e., whether the target recommended object can be placed at the current location). If the target recommended object cannot be placed at the target part location (i.e., the target part location is in a non-placeable state), the border of the target part may be displayed in a first style, such as a red border. If the target recommended object can be placed at the target part location (i.e., the target part location is in a placeable state), the border of the target part may be displayed in a second style, such as a green border. When the target recommended object moves to the target position in the placeable state, a release instruction for the target recommended object may be triggered (e.g., the player releases the drag operation for the target recommended object), and the terminal places the target recommended object at the target position in response to the release instruction.
[0111] Refer to Figure 6, which is a schematic diagram of the placement of virtual objects provided by an embodiment of the present application. In the application scenario where the player chooses to place the control (i.e., placing a new virtual object in the virtual building rather than replacing the original virtual object), when the target recommended object moves to the position of part 1 (such as window 1), if the position of part 1 is in a non-placeable state (such as other virtual objects have been placed at the position of part 1), the border of part 1 can be displayed in a first style (such as a red border) to indicate that the target recommended object cannot be placed at the position of part 1. When the target recommended object moves to the position of part 2 (such as window 2), if the position of part 2 is in a placeable state (such as no other virtual objects are placed at the position of part 2), the border of part 2 can be displayed in a second style (such as a green border) to indicate that the target recommended object can be placed at the position of part 2. In this case, if the player releases the drag operation on the target recommended object 1101, or clicks the save button, the terminal receives the release instruction and can place the target recommended object 1101 at the position of part 2.
[0112] Through the above method, as the target recommended object is dragged, the display style of the current moving position of the target recommended object is changed to indicate where the target recommended object can be placed, thereby guiding the placement of the target recommended object, improving the accuracy and specificity of the placement of virtual objects, and thus helping to improve the construction efficiency of virtual buildings.
[0113] In some embodiments, the terminal may place the target recommended object at the target position in the virtual building in the following manner: displaying guidance indication information corresponding to the target position in the virtual building, wherein the guidance prompt information is used to guide the target recommended object to be dragged to the target position in a placeable state; in response to a drag operation on the target recommended object triggered based on the guidance indication information, controlling the target recommended object to move toward the target position; when the target recommended object moves to the target position, in response to a release instruction for the drag operation, placing the target recommended object at the target position.
[0114] In actual applications, during the movement of the target recommended object, corresponding guidance instruction information can be displayed at the target position in a placeable state to guide the target recommended object to be dragged to the target position. The guidance instruction information can be displayed in the form of text description, such as the guidance instruction information can be described as: "You can place the virtual object of your choice here", and the target position can also be displayed in a target display style (such as highlight display, target color display, etc.) to highlight that the target position is in a placeable state to distinguish it from other positions that are not placeable, and the target position displayed in the target display style is used as the guidance instruction information. In this case, the player can drag the target recommended object to the target position under the guidance of the guidance instruction information and then release the dragging operation on the target recommended object. After receiving the release instruction, the terminal can place the target recommended object at the target position.
[0115] It should be noted that when there are multiple target locations that can be placed, guidance information for multiple target locations can be displayed at the same time. Different display styles can be used to display the guidance information corresponding to each target location according to the different placement priorities of each target location, and the guidance information corresponding to the target location with the highest placement priority can be highlighted, so that the target recommended object can be dragged and placed in the target location with the highest placement priority in a targeted manner.
[0116] Through the above method, players can quickly drag the target recommended object to the target position indicated by the guidance information displayed in the virtual building to place the target recommended object at the target position. While improving the efficiency of placing virtual objects, it also improves the accuracy and specificity of the placement of virtual objects, which is conducive to improving the construction efficiency of virtual buildings.
[0117] In some embodiments, after the terminal places the target recommended object in the virtual building, it can also display a configuration details page of the virtual building in response to a configuration viewing operation for the virtual building; on the configuration details page, a selection mark and a withdrawal control for the target recommended object are displayed; wherein the withdrawal control is used to withdraw the target recommended object placed in the virtual building.
[0118] 7 is a schematic diagram of the details of a virtual object provided by an embodiment of the present application. After placing a target recommended object in a virtual building, a player can trigger a configuration viewing operation for the virtual building by triggering a configuration viewing control (such as a search control or a filter control). In response to the configuration viewing operation, the terminal displays a configuration details page for the virtual building. The configuration details page displays all part categories and style categories configured by the system, as well as selection indicators corresponding to the target recommended object already placed in the virtual building. For example, if the part corresponding to the target recommended object is a window and the style is a pastoral style, selection indicators are displayed for the window part category and the pastoral style category, respectively. In addition, the configuration details page may also display a recall control, which can be used to recall or delete a virtual object already placed in the virtual building. For example, recalling or deleting a placed target recommended object restores the virtual building to its state before the target recommended object was placed. In this way, the player can recall or delete the placed virtual object according to actual needs and replace other virtual objects, thereby improving the flexibility of virtual object placement.
[0119] Through the above method, when a player wants to replace or re-place a virtual object in a virtual building during the construction process of the virtual building, if the target virtual object in the virtual building is triggered, one or more recommended virtual objects for selection will be displayed in the construction interface, and the player can select the target recommended object from them to place the target recommended object in the virtual building to replace the target virtual object in the virtual building, or to create a new target recommended object in the virtual building. In this way, the player can conveniently select the required target recommended object from the recommended virtual objects without having to filter level by level. Compared with the existing technology, the operation path for replacing or newly placing virtual objects is greatly shortened, the operation steps are simplified, and the operation efficiency is improved. At the same time, because the recommended virtual objects correspond to the recommended tags of the target virtual objects, that is, the recommended virtual objects are recommended based on the recommended tags of the target virtual objects, the pertinence and accuracy of the virtual object recommendations can be improved, making it easier for the player to select a satisfactory target recommended object from them to build the virtual building, thereby improving the construction efficiency of the virtual building.
[0120] The following describes an exemplary application of an embodiment of the present application in a practical application scenario. Taking a construction game as an example, before a player constructs a virtual building in the construction game, the developer of the construction game can configure the part tags (or object types) and style tags of the virtual objects involved in the virtual building. See FIG8 , which is a schematic diagram of the configuration of virtual objects provided by an embodiment of the present application. The object list displays multiple configured virtual objects, each of which is configured with a corresponding object type (i.e., part tag) and style tag. Furthermore, the developer can configure association data (e.g., correlation) between the various style tags. Generally, the more similar two different style tags are, the greater the correlation between them. For example, the correlation between fresh and pastoral styles is 90, and the correlation between retro and pastoral styles is 20. The developer can save the configuration data to a backend server and can update the configuration data of all virtual objects stored in the backend server in real time according to actual needs, such as the part tags, style tags, and the correlation between different style tags.
[0121] Next, the method for processing virtual objects provided by the embodiment of the present application will be described. Referring to FIG. 9 , FIG. 9 is a flow chart of the method for processing virtual objects provided by the embodiment of the present application. The method includes:
[0122] Step 201: The terminal displays a virtual building in a construction interface of a virtual scene, wherein the virtual building includes at least one virtual object.
[0123] Taking a virtual building as an example, virtual objects can be parts or components such as windows, doors, walls, roofs, floors, and furniture in the house (such as tables, chairs, desk lamps, beds, sofas, etc.). These virtual objects are used to build the virtual building of the house and are part of the virtual building.
[0124] Step 202: In response to a triggering operation on a target virtual object in a virtual building, display at least two recommended tags for selection.
[0125] In actual application, the player actually performs a trigger operation on the target area in the virtual building. In response to the trigger operation, the terminal identifies the virtual object in the target area and uses the identified virtual object as the target virtual object, thereby treating the trigger operation on the target area as the trigger operation on the target virtual object.
[0126] Referring to FIG. 10 , FIG. 10 is a flow chart of a method for identifying a virtual object provided in an embodiment of the present application. The method includes:
[0127] Step 301: In response to a triggering operation on a target area in a virtual building, perform object recognition processing on the object projection carried by the target area to obtain a first recognition result.
[0128] Among them, the trigger operation can be a single-click operation, a long-press operation, a circle operation, etc., and of course it can also be other triggering methods. The embodiment of the present application does not limit the triggering operation method. Referring to Figures 11A-11B, Figures 11A-11B are display diagrams of the triggering method provided by the embodiment of the present application. Taking the player triggering the target area by a finger as an example to trigger the above-mentioned trigger operation, in Figure 11A, the terminal judges the triggering time of the player's finger for the target area, and regards the triggering operation whose triggering time exceeds the target time (such as 1 second) as a long-pressing operation; in Figure 11B, the terminal identifies the circle operation and the circled area corresponding to the circle operation by continuously drawing a trajectory by the player's finger. When the trajectory is not closed, the system automatically links the starting point and end point of the player's gesture, and uses the linked closed area as the circled area corresponding to the circle operation, as shown in (1); when the trajectory has a closed area, the system uses the closed area generated by the first intersection point in the trajectory as the circled area corresponding to the circle operation, as shown in (2).
[0129] It can be seen that the target area is the contact area of the player's finger on the virtual building when the player triggers the above-mentioned trigger operation on the virtual building (such as when the trigger operation is a long press operation, the target area is the long press area of the finger) or the circled area (such as when the trigger operation is a circle operation, the target area is the circled area of the finger).
[0130] Step 302: Determine whether the object projection is a projection of a virtual object.
[0131] Here, whether the object projection is a projection of a virtual object is determined according to the first recognition result. When the first recognition result indicates that the object projection carried by the target area is a projection of a virtual object, step 303 is executed; otherwise, step 304 is executed.
[0132] Step 303: Using the virtual object corresponding to the object projection as the target virtual object.
[0133] Step 304: Identify the completeness of the projections of the multiple virtual objects in the target area.
[0134] Here, when the first recognition result indicates that the projection of the object carried by the target area is projections of multiple virtual objects, the integrity of the projections of the multiple virtual objects in the target area is recognized to obtain a second recognition result.
[0135] Step 305: Determine whether the projections of the multiple virtual objects in the target area are all incomplete.
[0136] Here, based on the second recognition result, it is determined whether the projections of the multiple virtual objects in the target area are all incomplete. When the second recognition result indicates that the projections of the multiple virtual objects in the target area are all incomplete, step 306 is executed; when the second recognition result indicates that the projections of a first number of virtual objects among the multiple virtual objects are complete and the projections of a second number of virtual objects are incomplete, step 307 is executed.
[0137] Step 306 : Obtain the projection area of each virtual object in the target area, and use the virtual object with the largest projection area as the target virtual object.
[0138] Step 307: Determine whether the first number is greater than 1.
[0139] Here, the first number is a positive integer. When the first number is equal to 1, step 308 is executed; when the first number is greater than 1, step 309 is executed.
[0140] Step 308: Use the projected complete virtual object as the target virtual object.
[0141] Step 309 : Obtain the distance between each virtual object in the first number of virtual objects and the camera, and use the virtual object with the smallest distance as the target virtual object.
[0142] Refer to Figures 12A-12B, which are schematic diagrams of the recognition of virtual objects provided in an embodiment of the present application. In Figure 12A, taking the trigger operation as a long press operation as an example, the independent area of virtual object A is area a, the independent area of virtual object B is area c, and the overlapping area of virtual object A and virtual object B is area b. When the player's finger long presses area a, the system recognizes that the target virtual object is virtual object A; when the player's finger long presses area c, the system recognizes that the target virtual object is virtual object B; when the player's finger long presses area b, the system recognizes the front and back relationship of virtual object A and virtual object B relative to the player (i.e., the camera), and uses the virtual object closer to the player as the target virtual object, or, the system recognizes the size of the triggering area corresponding to the player triggering virtual object A and virtual object B in area b, and uses the virtual object with a larger triggering area as the target virtual object.
[0143] In Figure 12B, taking the trigger operation of circling as an example, the system determines the target virtual object based on the projection size of the virtual object contained in the circled area (i.e., the target area) under the viewing angle (excluding the occluded part), where area a only contains the projection of virtual object A, area b contains the projection of part of virtual object A and part of virtual object B, area c contains the projection of all virtual object B and part of virtual object A, and area d contains the projection of all virtual object A and all virtual object B. When the player's finger circles area a, since area a only contains the projection of virtual object A, the system identifies the target virtual object as virtual object A; when the player's finger circles area b, since area a only contains the projection of virtual object A, the system identifies the target virtual object as virtual object A; Area b contains the projections of part of virtual object A and part of virtual object B. The system identifies the projection size of the exposed parts of virtual object A and virtual object B in area b at this viewing angle (excluding the blocked parts), and finally takes the virtual object with the larger projection area as the target virtual object; when the player's finger circles area c, since area c contains the projections of all virtual object B and part of virtual object A, the system identifies the target virtual object as the virtual object B with the complete projection; when the player's finger circles area d, since area d contains the projections of all virtual object A and all virtual object B, the system finally identifies the virtual object closer to the player from virtual object A and virtual object B as the target virtual object.
[0144] Through the above steps, the virtual object in the target area is identified, and the identified virtual object is used as the target virtual object, and then the trigger operation for the target area is used as the trigger operation for the target virtual object.
[0145] Step 203: In response to the tag selection operation, display at least one recommended virtual object corresponding to the selected recommended tag.
[0146] Among them, the recommendation tag is used to indicate the recommended dimension for the target virtual object. For example, the recommendation tag can be recommended similar parts, recommended similar styles, etc., among which recommended similar parts is used to indicate the recommendation of virtual objects corresponding to the parts to which the target virtual object belongs, and recommended similar styles is used to indicate the recommendation of virtual objects corresponding to the construction style of the target virtual object.
[0147] After the player selects a recommended tag, the terminal responds to the selection operation and displays the recommended virtual objects corresponding to the selected recommended tag for the player to select and use. For example, when the selected recommendation tag indicates the recommendation of a virtual object corresponding to the part to which the target virtual object belongs, at least one recommended virtual object corresponding to the part is displayed. For example, when the part to which the target virtual object belongs is a window, multiple windows for selection are displayed as recommended virtual objects. For another example, when the part to which the target virtual object belongs is a roof, multiple roofs for selection are displayed as recommended virtual objects. When the selected recommendation tag indicates the recommendation of a virtual object corresponding to the construction style of the target virtual object, the recommended virtual object corresponding to the target style is displayed, wherein the target style includes at least one of the construction style corresponding to the target virtual object or the associated styles associated with the construction style corresponding to the target virtual object. For example, the construction style of the target virtual object is pastoral style, and the associated styles associated with the pastoral style may be fresh style, simple style, etc., then the target styles include: pastoral style, fresh style, simple style, and the recommended virtual objects corresponding to the corresponding styles can be displayed in order of correlation from high to low.
[0148] Step 204: In response to a selection operation on the target recommended object, display a replacement control and a placement control corresponding to the target recommended object.
[0149] Among them, the replacement control is used to replace the original virtual object in the virtual building with the target recommended object, and the placement control is used to place the target recommended object in a new virtual building. At the same time, placement prompt information can also be displayed (such as confirming to select this object to replace the original object? Or, confirming to select this object for new placement?) to prompt the player to choose the placement method of the target recommended object, such as whether to replace the original virtual object in the virtual building or to create a new target recommended object in the virtual building.
[0150] Step 205: When a trigger operation for the replacement control is received, the target recommended object is placed in the virtual building to replace the original virtual object in the virtual building.
[0151] Here, when the target virtual object triggered by the user is consistent with the location of the selected target recommended object, the target recommended object can be directly placed at the location of the target virtual object in the virtual building to replace the target virtual object; in this way, the virtual object can be quickly replaced, the replacement efficiency of the virtual object is improved, and the construction efficiency of the virtual building is further improved.
[0152] When the target recommended object and the target virtual object are not in the same position, the target recommended object can be placed at the position of other virtual objects in the virtual building to replace the other virtual objects, wherein the target recommended object and the other virtual objects are in the same position, that is, the target recommended object is placed at the position of other virtual objects in the virtual building that is in the same position as the target recommended object to replace the other virtual objects in the same position as the target recommended object; in this way, during the construction process of the virtual building, by triggering the target virtual object, the replacement of other virtual objects different from the target virtual object is achieved, breaking through the space and object limitations, achieving cross-object replacement, and thereby fully expanding the replacement range of virtual objects in the virtual building, while also achieving rapid replacement of virtual objects, improving the replacement efficiency of virtual objects, and thus helping to improve the construction efficiency of the virtual building.
[0153] Step 206 : When a trigger operation for the placement control is received, the target recommended object is placed at a target position in the virtual building to create a new target recommended object at the target position.
[0154] In actual applications, after selecting the target recommended object and selecting the placement control, the player can drag the target virtual object to move it in the construction interface or in the virtual building. When the target recommended object moves to the target part position in the virtual building, the target part position can be displayed in a target style (such as displaying the target part border in a target style) to indicate the placement status of the target part position (i.e., whether the target recommended object can be placed at the target part position). If the target recommended object cannot be placed at the target part position (i.e., the target part position is in a non-placeable state, such as other virtual objects have been placed), , the border of the target part can be displayed in a first style, such as a red border. If the target recommended object can be placed at the location of the target part (that is, the location of the target part is in a placeable state, such as no other virtual objects are placed), the border of the target part can be displayed in a second style, such as a green border. When the target recommended object moves to the target position in a placeable state, a release instruction for the target recommended object can be triggered (such as the player releases the drag operation for the target recommended object). In response to the release instruction, the terminal places the target recommended object at the target position to create (that is, newly place) the target recommended object at the target position.
[0155] Through the above method, as the target recommended object is dragged, the display style of the current moving position of the target recommended object is changed to indicate where the target recommended object can be placed, thereby guiding the placement of the target recommended object and improving the accuracy and pertinence of the placement of the virtual object.
[0156] So far, the method for processing virtual objects provided by the embodiment of the present application has been described in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. The following will continue to describe the processing solution for virtual objects implemented by the various modules in the virtual object processing device 555 provided by the embodiment of the present application.
[0157] The first display module 5551 is configured to display a virtual building in a construction interface of a virtual scene, wherein the virtual building includes at least one virtual object; the second display module 5552 is configured to display at least one recommended virtual object in response to a trigger operation on a target virtual object, wherein the recommended virtual object corresponds to a recommended label of the target virtual object; and the object placement module 5553 is configured to place the target recommended object in the virtual building in response to a selection operation on the target recommended object.
[0158] In some embodiments, the second display module is further configured to display at least one recommended tag for selection; and in response to a tag selection operation, display at least one recommended virtual object corresponding to the selected recommended tag.
[0159] In some embodiments, the second display module is further configured to, when the selected recommendation tag indicates a recommendation for a virtual object corresponding to the part to which the target virtual object belongs, display at least one recommended virtual object corresponding to the part; and when the selected recommendation tag indicates a recommendation for a virtual object corresponding to the construction style of the target virtual object, display at least one recommended virtual object corresponding to the target style, wherein the target style includes the construction style or at least one of the associated styles associated with the construction style.
[0160] In some embodiments, the second display module is further configured to, when there are multiple types of the target styles, determine the correlation between each type of the target style and the construction style; and display at least one recommended virtual object corresponding to the corresponding target style in descending order of the correlation.
[0161] In some embodiments, the second display module is further configured to, when the number of the recommended virtual objects is at least two, display a first number of the at least two recommended virtual objects in a first display style, and display a second number of the recommended virtual objects in a second display style; wherein the first display style is different from the second display style, the first display style is used to indicate that the first number of recommended virtual objects are in a selectable state, and the second display style is used to indicate that the second number of recommended virtual objects are in a non-selectable state.
[0162] In some embodiments, the second display module is further configured to, when the number of the recommended virtual objects is at least two, obtain an influencing parameter for influencing the selection priority of each of the recommended virtual objects; wherein the influencing parameter includes at least one of the following: the location to which the recommended virtual object belongs, and the correlation between the recommended virtual object and the construction style corresponding to the target virtual object; based on the influencing parameter, determine the selection priority of each of the recommended virtual objects, and display each of the recommended virtual objects in a display manner corresponding to the selection priority.
[0163] In some embodiments, the object placement module is further configured to, in response to a selection operation on a target recommended object, display a replacement control and a placement control corresponding to the target recommended object; when a trigger operation on the replacement control is received, place the target recommended object in the virtual building to replace the original virtual object in the virtual building; when a trigger operation on the placement control is received, place the target recommended object at a target position in the virtual building to create a new target recommended object at the target position.
[0164] In some embodiments, the object placement module is further configured to, when the target recommended object and the target virtual object belong to the same part, place the target recommended object at the position of the target virtual object in the virtual building to replace the target virtual object; when the target recommended object and the target virtual object belong to different parts, place the target recommended object at the position of other virtual objects in the virtual building to replace the other virtual objects, wherein the target recommended object and the other virtual objects belong to the same part.
[0165] In some embodiments, the object placement module is further configured to, when there are other virtual objects in the virtual building that are consistent with the component to which the target virtual object belongs, place the target recommended object at the location of the target virtual object and the other virtual objects in the virtual building to replace the target virtual object and the other virtual objects.
[0166] In some embodiments, the object placement module is further configured to control the target recommended object to move in the virtual building in response to a drag operation on the target recommended object, and to display the location of the target recommended object in a first style during the movement of the target recommended object; when the target recommended object moves to the target position and the display style of the target position is a second style, the target recommended object is placed at the target position in response to a release instruction for the drag operation; wherein the first style is different from the second style, the first style is used to indicate that the location of the target recommended object is in an unplaceable state, and the second style is used to indicate that the target position is in a placeable state.
[0167] In some embodiments, the object placement module is further configured to display guidance instruction information corresponding to the target position in the virtual building, wherein the guidance prompt information is used to guide the dragging of the target recommended object to the target position in a placeable state; in response to the dragging operation of the target recommended object triggered based on the guidance instruction information, the target recommended object is controlled to move toward the target position; when the target recommended object moves to the target position, the target recommended object is placed at the target position in response to a release instruction for the dragging operation.
[0168] In some embodiments, after the target recommended object is placed in the virtual building, the device further includes: a details viewing module configured to display a configuration details page of the virtual building in response to a configuration viewing operation for the virtual building; on the configuration details page, a selection mark and a withdrawal control for the target recommended object are displayed; wherein the withdrawal control is used to withdraw the target recommended object placed in the virtual building.
[0169] In some embodiments, before displaying at least one recommended virtual object, the device further includes: an object recognition module configured to, in response to a trigger operation on a target area in the virtual building, perform object recognition processing on the object projection carried by the target area to obtain a first recognition result; when the first recognition result indicates that the object projection carried by the target area is a projection of a virtual object, use the virtual object corresponding to the object projection as a target virtual object; when the first recognition result indicates that the object projection carried by the target area is a projection of multiple virtual objects, identify the integrity of the projections of the multiple virtual objects in the target area to obtain a second recognition result, and determine the target virtual object based on the second recognition result; and use the trigger operation on the target area as a trigger operation on the target virtual object.
[0170] In some embodiments, the object recognition module is further configured to, when the second recognition result indicates that the projections of the multiple virtual objects in the target area are all incomplete, obtain the projection area of each of the virtual objects in the target area and use the virtual object with the largest projection area as the target virtual object; when the second recognition result indicates that the projections of a first number of virtual objects among the multiple virtual objects are complete and the projections of a second number of virtual objects are incomplete, determine the target virtual object based on the first number of virtual objects.
[0171] In some embodiments, the object recognition module is further configured to, when the first number is 1, use the projected complete virtual object as the target virtual object; when the second number is greater than 1, obtain the distance between each virtual object in the first number of virtual objects and the camera, and use the virtual object with the smallest distance as the target virtual object, wherein the camera is used to obtain the construction interface.
[0172] In some embodiments, before displaying at least one recommended virtual object, the apparatus further comprises: a construction configuration module configured to display an object configuration interface for the virtual building, and to display a location setting control, a style setting control, and a style association control in the object configuration interface; in response to a location setting operation triggered by the location setting control, setting the location to which at least one virtual object in the virtual building belongs; in response to a style setting operation triggered by the style setting control, setting the construction style corresponding to the virtual building or at least one virtual object in the virtual building; in response to a style association operation triggered by the style association control, setting the degree of association between different construction styles to obtain an associated style corresponding to the architectural style; and determining a recommended tag for the virtual object based on at least one of the location, construction style, and associated style.
[0173] The present invention provides a computer program product comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the virtual object processing method described in the present invention.
[0174] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the virtual object processing method provided by the embodiment of the present application, for example, the virtual object processing method shown in Figure 3.
[0175] 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 various devices including one or any combination of the above memories.
[0176] 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.
[0177] 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 that stores 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 coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0178] By way of 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 across multiple sites and interconnected by a communication network.
[0179] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A method for processing a virtual object, the method being executed by an electronic device, the method comprising: Displaying a virtual construction in a construction interface of a virtual scene, wherein the virtual construction includes at least one virtual object; In response to a trigger operation on a target virtual object, displaying at least one recommended virtual object, wherein the recommended virtual object corresponds to a recommended tag of the target virtual object; In response to a selection operation on a target recommended object, the target recommended object is placed in the virtual building.
2. The method of claim 1, wherein: The displaying of at least one recommended virtual object comprises: displaying at least one recommended tag for selection; In response to the tag selection operation, at least one recommended virtual object corresponding to the selected recommended tag is displayed.
3. The method of claim 2, wherein: The displaying of at least one recommended virtual object corresponding to the selected recommended tag includes: When the selected recommendation tag indicates recommendation of a virtual object corresponding to the part to which the target virtual object belongs, displaying at least one recommended virtual object corresponding to the part; When the selected recommendation tag indicates that a virtual object corresponding to the construction style of the target virtual object is recommended, at least one recommended virtual object corresponding to the target style is displayed, wherein the target style includes at least one of the construction style or an associated style associated with the construction style.
4. The method of claim 3, wherein: The displaying of at least one recommended virtual object corresponding to the target style includes: When there are multiple types of the target style, determining the correlation between each type of the target style and the construction style; At least one recommended virtual object corresponding to the target style is displayed in sequence according to the order of the association degree from high to low.
5. The method according to any one of claims 1 to 4, wherein: The displaying of at least one recommended virtual object comprises: When the number of the recommended virtual objects is at least two, displaying a first number of the recommended virtual objects among the at least two recommended virtual objects in a first display style, and displaying a second number of the recommended virtual objects in a second display style; The first display style is different from the second display style, the first display style is used to indicate that the first number of recommended virtual objects are in a selectable state, and the second display style is used to indicate that the second number of recommended virtual objects are in a non-selectable state.
6. The method according to any one of claims 1 to 5, wherein: The displaying of at least one recommended virtual object comprises: When the number of the recommended virtual objects is at least two, obtaining an influencing parameter for influencing a selection priority of each of the recommended virtual objects; The influencing parameter includes at least one of the following: the location to which the recommended virtual object belongs, and the correlation between the recommended virtual object and the construction style corresponding to the target virtual object; Based on the influencing parameter, a selection priority of each of the recommended virtual objects is determined, and each of the recommended virtual objects is displayed in a display manner corresponding to the selection priority.
7. The method according to any one of claims 1 to 6, wherein: In response to a selection operation on a target recommended object, placing the target recommended object in the virtual building comprises: In response to a selection operation on a target recommended object, displaying a replacement control and a placement control corresponding to the target recommended object; When a trigger operation for the replacement control is received, placing the target recommended object in the virtual building to replace the original virtual object in the virtual building; When a trigger operation for the placement control is received, the target recommended object is placed at a target position in the virtual building to create the target recommended object at the target position.
8. The method of claim 7, wherein: Placing the target recommended object in the virtual building to replace the original virtual object in the virtual building includes: When the target recommended object and the target virtual object belong to the same part, place the target recommended object replacing the target virtual object at the location of the target virtual object in the virtual building; When the target recommended object and the target virtual object belong to different parts, the target recommended object is placed at the location of other virtual objects in the virtual building to replace the other virtual objects, wherein the target recommended object and the other virtual objects belong to the same part.
9. The method of claim 8, wherein: Placing the target recommended object at the location of the target virtual object in the virtual building to replace the target virtual object includes: When there are other virtual objects in the virtual building that are consistent with the component to which the target virtual object belongs, the target recommended object is placed at the location of the target virtual object and the other virtual objects in the virtual building to replace the target virtual object and the other virtual objects.
10. The method of claim 7, wherein: Placing the target recommended object at a target position in the virtual building comprises: In response to a drag operation on the target recommended object, controlling the target recommended object to move in the virtual building, and displaying the location of the target recommended object in a first style during the movement of the target recommended object; When the target recommended object moves to a target position and the display style of the target position is a second style, in response to a release instruction for the drag operation, placing the target recommended object at the target position; The first style is different from the second style, the first style is used to indicate that the location of the target recommended object is in a state where it cannot be placed, and the second style is used to indicate that the target location is in a state where it can be placed.
11. The method of claim 7, wherein: Placing the target recommended object at a target position in the virtual building comprises: Displaying guidance instruction information corresponding to the target position in the virtual building, wherein the guidance prompt information is used to guide the target recommended object to be dragged to the target position in a placeable state; In response to a drag operation on the target recommended object triggered based on the guidance indication information, controlling the target recommended object to move toward the target position; When the target recommended object moves to the target position, in response to a release instruction for the drag operation, the target recommended object is placed at the target position.
12. The method according to any one of claims 1 to 11, wherein: After placing the target recommended object in the virtual building, the method further includes: In response to a configuration viewing operation on the virtual building, displaying a configuration detail page of the virtual building; In the configuration details page, a selection mark and a withdrawal control for the target recommended object are displayed; The withdraw control is used to withdraw the target recommended object placed in the virtual building.
13. The method according to any one of claims 1 to 12, wherein: Before displaying at least one recommended virtual object, the method further includes: In response to a trigger operation on a target area in the virtual building, performing object recognition processing on an object projection carried by the target area to obtain a first recognition result; When the first recognition result indicates that the projection of the object carried by the target area is a projection of a virtual object, taking the virtual object corresponding to the projection of the object as the target virtual object; When the first recognition result indicates that the projection of the object carried by the target area is a projection of multiple virtual objects, identifying the integrity of the projections of the multiple virtual objects in the target area to obtain a second recognition result, and determining the target virtual object based on the second recognition result; The trigger operation on the target area is used as a trigger operation on the target virtual object.
14. The method of claim 13, wherein: The determining the target virtual object based on the second recognition result includes: When the second recognition result indicates that the projections of the multiple virtual objects in the target area are all incomplete, obtaining the projection area of each virtual object in the target area, and taking the virtual object with the largest projection area as the target virtual object; When the second recognition result indicates that the projections of the first number of virtual objects in the plurality of virtual objects are complete, the projections of the second number of virtual objects in the plurality of virtual objects are complete, When the projection of the first number of virtual objects is incomplete, a target virtual object is determined based on the first number of virtual objects.
15. The method of claim 13, wherein: The determining the target virtual object based on the first number of virtual objects includes: When the first number is 1, the complete virtual object is projected as the target virtual object; When the second number is greater than 1, the distance between each virtual object in the first number of virtual objects and the camera is obtained, and the virtual object with the smallest distance is used as the target virtual object, wherein the camera is used to obtain the construction interface.
16. The method according to any one of claims 1 to 15, wherein: Before displaying at least one recommended virtual object, the method further includes: Displaying an object configuration interface of the virtual building, and displaying a part setting control, a style setting control, and a style association control in the object configuration interface; In response to a location setting operation triggered by the location setting control, setting a location to which at least one virtual object in the virtual building belongs; In response to a style setting operation triggered by the style setting control, setting a construction style corresponding to the virtual building or at least one virtual object in the virtual building; In response to the style association operation triggered by the style association control, the association degree between different building styles is set to obtain the associated style corresponding to the building style; Based on at least one of the location, the construction style, and the associated style, a recommended tag for the virtual object is determined.
17. A virtual object processing device, the device comprising: A first display module, configured to display a virtual construction in a construction interface of a virtual scene, wherein the virtual construction includes at least one virtual object; a second display module, configured to display at least one recommended virtual object in response to a trigger operation on a target virtual object, wherein the recommended virtual object corresponds to a recommended tag of the target virtual object; The object placement module is configured to place the target recommended object in the virtual building in response to a selection operation on the target recommended object.
18. An electronic device comprising: A memory for storing computer executable instructions or computer programs; A processor, configured to implement the method for processing a virtual object according to any one of claims 1 to 16 when executing the computer executable instructions or computer program stored in the memory.
19. A computer-readable storage medium storing computer-executable instructions or a computer program, wherein when the computer-executable instructions or the computer program are executed by a processor, the method for processing a virtual object according to any one of claims 1 to 16 is implemented.
20. A computer program product, comprising a computer program or a computer executable instruction, wherein when the computer program or the computer executable instruction is executed by a processor, the method for processing a virtual object according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Interaction function implementation method, device and equipment and storage medium
CN111589151A
Interactive processing method and device in virtual scene, electronic equipment and storage medium
CN111921203A
Motion processing method and device in virtual scene, equipment and storage medium
CN114425159A
Virtual object processing method and device, equipment, storage medium and program product
CN117160037A