WO2024021781A1 - 虚拟对象的交互方法、装置、计算机设备及存储介质 - Google Patents
虚拟对象的交互方法、装置、计算机设备及存储介质 Download PDFInfo
- Publication number
- WO2024021781A1 WO2024021781A1 PCT/CN2023/094589 CN2023094589W WO2024021781A1 WO 2024021781 A1 WO2024021781 A1 WO 2024021781A1 CN 2023094589 W CN2023094589 W CN 2023094589W WO 2024021781 A1 WO2024021781 A1 WO 2024021781A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target
- area
- virtual
- virtual object
- game
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 91
- 230000003993 interaction Effects 0.000 title claims abstract description 69
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 238000000746 purification Methods 0.000 claims description 107
- 230000000694 effects Effects 0.000 claims description 47
- 238000004590 computer program Methods 0.000 claims description 29
- 238000009877 rendering Methods 0.000 claims description 27
- 238000011109 contamination Methods 0.000 claims description 20
- 230000008859 change Effects 0.000 claims description 15
- 230000036541 health Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 20
- 238000006243 chemical reaction Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000005202 decontamination Methods 0.000 description 5
- 230000003588 decontaminative effect Effects 0.000 description 5
- 230000007423 decrease Effects 0.000 description 5
- 230000007123 defense Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004880 explosion Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000001788 irregular Effects 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000010926 purge Methods 0.000 description 2
- 230000007480 spreading Effects 0.000 description 2
- 238000003892 spreading Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000009193 crawling Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 125000001475 halogen functional group Chemical group 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000003595 mist Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/537—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
- A63F13/5372—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/837—Shooting of targets
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/303—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
- A63F2300/306—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for displaying a marker associated to an object or location in the game field
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8076—Shooting
Definitions
- the present application relates to the field of computer technology, and in particular to a virtual object interaction method, device, computer equipment and storage medium.
- Embodiments of the present application provide a virtual object interaction method, device, computer equipment and storage medium to enrich the content of virtual games, increase the interaction methods between virtual objects and objects in the virtual games, and improve the efficiency of human-computer interaction.
- the technical solutions are as follows:
- a virtual object interaction method is provided, the method is executed by a computer device, and the method includes:
- the virtual scene includes a plurality of polluted areas, and the polluted areas include pollution sources;
- the regional influence value is used to represent the degree of contamination of the location of the virtual object by the target pollution source
- the target pollution area is displayed as a target purification area, and the target purification area is used to reduce the regional impact of the currently existing pollution sources on the target purification area. value.
- a virtual object interaction device includes:
- a display module used to display a virtual scene the virtual scene includes multiple polluted areas, and the polluted areas include pollution sources;
- the display module is also configured to display the virtual object based on the distance between the virtual object and the target pollution source in the target pollution area during the movement of the virtual object in the target pollution area.
- the regional influence value of the location of the virtual object, the regional influence value is used to represent the degree of pollution of the location of the virtual object by the target pollution source;
- the display module is also configured to display a target object when the distance between the virtual object and the target pollution source is not greater than a distance threshold, and the target object is converted from the target pollution source;
- an area display module configured to display the target pollution area as a target purification area when the virtual object defeats the target object, and the target purification area is used to reduce the impact of currently existing pollution sources on the target purification area.
- the regional impact value caused within.
- a computer device includes a processor and a memory.
- the memory is used to store at least one computer program.
- the at least one computer program is loaded and executed by the processor to implement the present application. Interaction methods of virtual objects in embodiments.
- a non-volatile computer-readable storage medium is provided, the non-volatile computer-readable storage medium At least one computer program is stored in the content, and the at least one computer program is loaded and executed by the processor to implement the virtual object interaction method in the embodiment of the present application.
- a computer program product including a computer program that, when executed by a processor, implements the virtual object interaction method provided in the embodiment of the present application.
- the computer program includes computer instructions.
- the computer instructions are loaded and executed by a processor, so that the computer implements the above-mentioned interaction method for virtual objects.
- Embodiments of the present application provide an interaction solution for virtual objects.
- the regional influence value of the location of the virtual object is displayed.
- the regional impact value can reflect the degree of pollution of the target pollution source at the location of the virtual object. Since different locations are polluted by the target pollution source at different levels, the virtual object can obtain guidance and quickly find the target pollution source.
- the virtual object can interact with the target object by converting the target pollution source into the target object.
- the target contaminated area is displayed as the target purified area. Since the target purification area can reduce the regional impact of the current pollution sources on the target purification area, it can reduce the degree of pollution at the location of the virtual object, enrich the content of the virtual game, and increase the number of virtual objects and virtual pairs.
- the interaction mode of objects in the game improves the efficiency of human-computer interaction.
- Figure 1 is a schematic diagram of the implementation environment of a virtual object interaction method provided according to an embodiment of the present application
- Figure 2 is a flow chart of a virtual object interaction method provided according to an embodiment of the present application.
- Figure 3 is a flow chart of another virtual object interaction method provided according to an embodiment of the present application.
- Figure 4 is a schematic diagram of a reference area provided according to an embodiment of the present application.
- Figure 5 is a schematic diagram of a regional impact value provided according to an embodiment of the present application.
- Figure 6 is a schematic diagram of the conversion between a target pollution source and a target object provided according to an embodiment of the present application
- Figure 7 is a conversion flow chart between a target pollution source and a target object provided according to an embodiment of the present application.
- Figure 8 is a schematic diagram of first prompt information provided according to an embodiment of the present application.
- Figure 9 is a schematic diagram of removing a target object according to an embodiment of the present application.
- Figure 10 is a flow chart showing a target purification area provided according to an embodiment of the present application.
- Figure 11 is a schematic structural diagram of a virtual object interaction device provided according to an embodiment of the present application.
- Figure 12 is a schematic structural diagram of another virtual object interaction device provided according to an embodiment of the present application.
- Figure 13 is a structural block diagram of a terminal provided according to an embodiment of the present application.
- the information including but not limited to user equipment information, user personal information, etc.
- data including but not limited to data used for analysis, stored data, displayed data, etc.
- signals involved in this application All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
- the regional influence values of the virtual objects involved in this application are all obtained with full authorization.
- Virtual scene refers to the virtual scene displayed (or provided) when the application runs on the terminal.
- the virtual scene can be a simulation environment of the real world, a semi-simulation and semi-fictional virtual scene, or a purely fictitious virtual scene.
- the virtual scene may be a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene.
- the virtual scene can include the sky, land, ocean, etc.
- the land can include environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene.
- Virtual object refers to a movable object in the virtual world.
- the movable object may be at least one of a virtual character, a virtual animal, and an animation character.
- the virtual objects are three-dimensional models. Each virtual object has its own shape and volume in the three-dimensional virtual world and occupies a part of the space in the three-dimensional virtual world.
- the virtual object is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual object achieves different external images by wearing different skins.
- the virtual object can be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
- the virtual lens in the virtual scene is at a certain distance behind the virtual object.
- the virtual object and all combat elements in a certain surrounding environment can be seen in the screen.
- Open world refers to the virtual scene in the game that is completely free and open. Virtual objects can move freely in any direction and explore, and the distance between the boundaries in each direction is very large.
- the virtual object interaction method provided by the embodiment of the present application can be executed by a computer device.
- the computer device is a terminal or server. Taking a computer device as a terminal as an example, the following will introduce the implementation environment of the virtual object interaction method provided by the embodiment of the present application.
- Figure 1 is a schematic diagram of the implementation environment of the virtual object interaction method provided by the embodiment of the present application. Referring to Figure 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be connected directly or indirectly through wired or wireless communication methods, which is not limited in this application.
- the terminal 101 is a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc., but is not limited thereto.
- the terminal 101 is installed with an application supporting virtual scenes.
- the application can be a first-person shooting game (FPS), a third-person shooting game, a multiplayer online battle arena game (MOBA), a virtual reality application, a three-dimensional map program, or more Any one of the gunfight survival games.
- the terminal 101 can not only display the virtual scene of the virtual game, the terminal 101 can also operate virtual objects located in the virtual scene to perform activities, which activities include but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, At least one of driving, picking up, and throwing.
- the virtual object is a virtual character, such as a simulation character or an animation character.
- the number of the above terminals may be more or less. For example, there may be only one terminal, or there may be dozens, hundreds, or more terminals. The embodiments of this application do not limit the number of terminals and device types.
- the server 102 is an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, and networks. Services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
- the server 102 is used to provide background services for applications that support virtual scenes.
- the server 102 takes on the main computing work, and the terminal 101 takes on the secondary computing work; or the server 102 takes on the secondary computing work, and the terminal 101 takes on the main computing work; or, the server 102 and the terminal 101 adopt Distributed computing architecture for collaborative computing.
- virtual objects can be controlled through the terminal to freely explore the virtual scenes of this type of game, thereby completing the game goals of the virtual game. Due to the high degree of freedom of the virtual scene, the virtual object may quickly find and complete the game goal, resulting in the virtual game time being too short, or the game goal cannot be found for a long time, and the virtual object acts blindly in the virtual scene , causing the virtual game to take too long. It can be seen that due to the single gameplay of the above-mentioned games, the virtual game will end prematurely. ends, or it is delayed and the human-computer interaction efficiency is low.
- FIG. 2 is a flow chart of a virtual object interaction method provided according to an embodiment of the present application. Referring to FIG. 2 , in the embodiment of the present application, the execution of the method by a terminal is used as an example for explanation.
- the interaction method of this virtual object includes the following steps:
- the terminal displays a virtual scene, the virtual scene includes multiple polluted areas, and the polluted areas include pollution sources.
- the virtual scene is a three-dimensional space
- the multiple pollution areas included in the virtual scene are three-dimensional space areas.
- the shape of the contaminated area described in the embodiments of this application is the shape of the projection of the three-dimensional space area on the ground.
- the shape of the contaminated area may be circular, square, polygonal or irregular, which is not limited in the embodiments of the present application.
- the multiple contaminated areas may or may not have overlapping portions. The embodiments of the present application do not limit the locations of the multiple contaminated areas in the virtual scene.
- Within each contaminated area there is a source of pollution.
- the diffusion range of the pollution caused by the pollution source is the pollution area where the pollution source is located.
- the terminal displays the regional influence value of the location of the virtual object based on the distance between the virtual object and the target pollution source in the target pollution area.
- the regional influence value Used to indicate the degree of pollution where the virtual object is located from the target pollution source.
- the virtual object is a virtual object controlled by a terminal.
- the terminal can control the free activities of virtual objects in the virtual scene, such as controlling the virtual objects to enter target contaminated areas among multiple contaminated areas.
- the target pollution source in the target pollution area will have an impact on the virtual object.
- the terminal reflects the impact of the target pollution source on the virtual object by displaying the regional impact value of the location of the virtual object.
- the impact size is equal to the degree of contamination of the location of the virtual object by the target pollution source, that is, the regional impact value of the location of the virtual object is used to represent the degree of contamination of the location of the virtual object by the target pollution source.
- the degree of pollution of the location of the virtual object by the target pollution source is quantified by the regional impact value of the location of the virtual object.
- the target pollution source can be located anywhere in the target pollution area.
- the regional influence value displayed on the terminal will also change.
- the terminal displays the target object, which is converted from the target pollution source.
- the terminal while the virtual object is moving within the target pollution area, the terminal can not only display the area influence value, but also display the target object, which is converted from the target pollution source.
- the embodiments of the present application do not limit the timing of converting the target pollution source to obtain the target object. For example, as the virtual object gradually approaches the target pollution source, the distance between the virtual object and the target pollution source becomes smaller and smaller. When the distance between the virtual object and the target pollution source does not exceed the distance threshold, the target pollution source can be converted into the target object.
- the target object is an NPC (Non-Player Character) in the virtual scene.
- the virtual objects that the terminal can control can interact with target objects in the target contaminated area.
- the terminal displays the target pollution area as the target purification area.
- the target purification area is used to reduce the regional impact value caused by the current pollution source on the target purification area.
- the contaminated area and the objects in the contaminated area have a coexistence relationship.
- the target object in the target contaminated area is defeated by a virtual object, the target object is removed.
- the terminal no longer displays the target contaminated area, but displays the source area where the target contaminated area is located as the target purified area, that is, the virtual object is no longer affected by the target contaminated area.
- the location of the virtual object is located within the target purification area, the degree of pollution suffered by the location of the virtual object is reduced, that is, the regional influence value of the location of the virtual object is reduced.
- the purification area is a three-dimensional space area
- the shape of the purification area is the shape of the projection of the three-dimensional space area on the ground.
- the shape of the purification area may be circular, square, polygonal or irregular, which is not limited in the embodiments of the present application.
- Embodiments of the present application provide an interaction solution for virtual objects.
- the regional influence value of the location of the virtual object is displayed. This area affects
- the noise value can reflect the degree of contamination of the target pollution source at the location of the virtual object. Since different locations are polluted by the target pollution source at different levels, the virtual object can obtain guidance and quickly find the target pollution source.
- the target purification area can reduce the regional impact of the current pollution sources on the target purification area, it can reduce the degree of pollution at the location of the virtual object, enrich the content of the virtual game, and increase the number of virtual objects and virtual pairs.
- the interaction mode of objects in the game improves the efficiency of human-computer interaction.
- FIG. 3 is a flow chart of another virtual object interaction method provided according to an embodiment of the present application. Referring to FIG. 3 , in the embodiment of the present application, execution by a terminal is used as an example for explanation.
- the interaction method of this virtual object includes the following steps:
- the terminal displays the game impact value of the virtual scene and the virtual object.
- the virtual scene includes multiple pollution areas, and the pollution area includes pollution sources.
- the game impact value changes with the duration of participation in the virtual game.
- the terminal displays virtual objects in the virtual scene.
- the terminal will also display the game influence value of the location of the virtual object.
- the game influence value can reflect the urgency of the virtual object to complete the virtual game, and is used to remind the virtual object that it needs to complete the task goal of the virtual game as soon as possible.
- the virtual object remains affected by this effect until the virtual game ends.
- the game influence values of each location in the virtual scene may be the same or different, and this is not limited in the embodiments of the present application.
- the virtual object corresponds to a game influence value.
- the game influence value decreases as the participation time in the virtual game increases, or increases as the participation time in the virtual game increases, which is not limited in the embodiment of the present application.
- the game influence value received by each position in the virtual scene is the same, and the game influence value increases with the increase in the participation time of the virtual game.
- the game influence value of the location of the virtual object is 10.
- the game impact value of the location of the virtual object is 20. This game impact value can remind players that the current virtual game has been going on for a long time. If the virtual object cannot complete the mission goal of the virtual game as soon as possible, the game will be deemed to have failed.
- the embodiment of the present application uses the game influence value to intuitively display the urgency of the virtual object to complete the virtual game, so that the virtual object can actively search for and complete the task goal of the virtual game, thereby improving the efficiency of human-computer interaction.
- the reference duration of the virtual game can also be called the progress of the virtual game.
- the pollution sources in the contaminated area in the virtual scene will have an impact on the virtual objects entering the contaminated area.
- the regional influence value assigned to the virtual object can also remind the virtual object to actively participate in the virtual game and eliminate the influence of the contaminated area as soon as possible to complete the virtual game. See step 302 below.
- the number of contaminated areas in the virtual scene may be 5, 6, or 7, etc., and the embodiments of the present application do not limit this.
- the pollution source is included in the polluted area. There is an object associated with this pollution source.
- the terminal can control the virtual object to enter the pollution area, and then control the virtual object to interact with objects associated with the pollution source.
- the terminal when the virtual game starts, can select a certain number of reference areas from a plurality of preconfigured reference areas as contaminated areas in the virtual game.
- the terminal pre-configures n reference areas in the virtual scene, where n is a positive integer.
- the terminal randomly selects m reference areas from the n reference areas as contaminated areas in the virtual game, that is, in the virtual game, the virtual scene includes The number of contaminated areas is m, and m is a positive integer.
- m belongs to the interval [a, b], a ⁇ b. Different virtual games can correspond to different values. If n ⁇ a, it will cause n to be less than m. In this case, the terminal directly uses the n reference areas as contaminated areas in the virtual game.
- FIG. 4 is a schematic diagram of a reference area provided according to an embodiment of the present application.
- 7 reference areas are configured in this virtual scene.
- the irregular areas in Figure 4 are used to represent the terrain of the ground in the virtual scene.
- the terminal can randomly select a certain number of reference areas among the above 7 reference areas as the virtual game. Contaminated areas. For example, when the virtual game is enabled, the terminal randomly displays reference area 1, reference area 2, reference area 3, reference area 4 and reference area 5 in the virtual scene as the five contaminated areas in the virtual object.
- the terminal can determine the location of each reference area based on the birth point location of the virtual object in the virtual scene, so that there is at least one birth point location near each reference area.
- the distance between the position of the reference area and the position of the birth point of the virtual object is not less than the first distance, so as to prevent the virtual object from finding the contaminated area too quickly and degrading the player experience.
- the terminal can also determine the position of the reference area based on the position of the game target object in the virtual game.
- the distance between the position of the reference area and the position of the game target object in the virtual game is not less than the second distance, so as to avoid triggering the game target object when the virtual object interacts with objects in the contaminated area. , causing interference to interactions within the area.
- the game target object is the final goal of the virtual game. After defeating the game target object, the virtual game will end.
- the terminal in addition to randomly selecting a contaminated area from a plurality of preconfigured reference areas, the terminal can also use different methods to select a reference area that meets the conditions for the virtual object from the multiple preconfigured reference areas. , as the contaminated area of this virtual game.
- Method 1 Pollution sources in different pollution areas have different degrees of pollution to the location of the virtual object. Correspondingly, there are differences in attribute values such as attack value and health value of objects associated with pollution sources in different pollution areas.
- the terminal can obtain the object level of the virtual object. Then, the terminal determines an object whose level matches based on the object level. Then, the terminal uses the reference area where the pollution source associated with the object is located as the pollution area of the virtual game.
- the solution provided by the embodiment of the present application selects the area where the pollution source associated with the object that matches the object level of the virtual object is located, so that the virtual object will neither defeat the object quickly nor be unable to defeat the object. That is to say, the virtual game will neither end quickly nor be unable to end for a long time or even fail, thereby improving the player experience.
- Method 2 The objects that most virtual objects can defeat are limited and cannot defeat all objects.
- the terminal can obtain the historical interaction record of the virtual object.
- the historical interaction record includes multiple objects defeated by the virtual object in the historical time period.
- the terminal selects from multiple reference areas the reference area where the pollution sources associated with the multiple objects that the virtual object can defeat are located, as the pollution area of the virtual game.
- the solution provided by the embodiment of the present application selects the reference area where the pollution sources associated with multiple objects that the virtual object can defeat are located through the historical interaction records of the virtual object, so that the virtual object can complete the virtual game, thereby improving the player experience.
- the server can also pre-configure multiple reference areas and select a certain number of reference areas from the multiple reference areas as contaminated areas in the virtual game. This method is similar to the above-mentioned method for the terminal to determine the contaminated area, and will not be described again here.
- the game impact value can not only reflect the degree of global pollution in the virtual game to the location of the virtual object, but also reflect the urgency of the virtual object to complete the virtual game.
- the terminal can according to the location of the virtual object The degree of impact is displayed in the virtual scene.
- the terminal can render the virtual scene based on the game influence value of the location of the virtual object.
- the terminal obtains the game influence value of the location of the virtual object.
- the terminal determines the first rendering parameter of the virtual scene based on the game influence value.
- the terminal displays the virtual scene based on the first rendering parameter.
- the first rendering parameter includes a parameter used to indicate the brightness of the virtual scene.
- the solution provided by the embodiment of the present application renders the virtual scene by using the game influence value based on the location of the virtual object. Since the rendering parameters determined by different game influence values are different, the brightness of the rendered virtual scene is also different.
- the display format of the virtual scene is enriched, allowing players to be immersed in the scene and improve the game experience.
- the terminal displays the regional influence value of the target pollution area.
- the regional influence value is used to represent the degree of pollution of the location of the virtual object by the target pollution source.
- the target contaminated area is any contaminated area among multiple contaminated areas.
- the terminal controls the virtual object to explore in the virtual scene, it can control the virtual object to enter the target contaminated area.
- the position of the virtual object is already within the range that the target pollution source in the target pollution area can produce pollution.
- the degree of pollution is reflected by the regional impact value of the target polluted area.
- the dummy object is polluted in different When moving in a region, the change amplitude of the regional influence value of the virtual object may be the same or different, and the embodiment of the present application does not limit this.
- the terminal can display the regional impact value of the target contaminated area on the virtual scene through different methods, see the following two display methods.
- Method 1 The terminal independently displays the game influence value and regional influence value on the virtual scene.
- the terminal independently displays the game influence value and the area influence value, it is possible to visually display the degree of contamination of the virtual object's location by the virtual game and the degree of contamination of the target contaminated area, so that the player's decision-making can be affected based on the size of the pollution.
- the operations corresponding to the player's decision-making control the removal and retention of virtual objects, thus improving the efficiency of human-computer interaction.
- the terminal can display the sum of the game influence value and the regional influence value on the virtual scene.
- the terminal sums the game influence value and the regional influence value to obtain the influence sum value.
- the terminal displays the effects and values on the virtual scene.
- the terminal can directly display the above-mentioned influence and value without performing the step of displaying the regional influence value, so as to prevent the player from perceiving a sudden change in the value and affecting the player's judgment.
- the terminal can also cancel the display of the game influence value and the area influence value, and only display the sum of the influence value, replacing the game influence value and the area influence value with the sum of the influence value.
- the terminal can also display three values: game impact value, regional impact value, and impact sum value.
- the embodiments of this application do not limit the way of displaying the impact and value.
- By displaying the sum of the game influence value and the regional influence value it can visually display all the pollution suffered by virtual objects in the virtual scene, which not only enriches the content of the virtual game, but also controls the removal and retention of virtual objects according to the size of the pollution. Thereby improving the efficiency of human-computer interaction.
- the game influence value will affect the display of the virtual scene, and after the game influence value and the regional influence value are superimposed, it will also affect the display of the virtual scene.
- the terminal can render the virtual scene according to the game influence value, that is, the method in step 301, which will not be described again here.
- the terminal controls a virtual object to enter the target contaminated area, the degree of contamination at the location of the virtual object is reflected by the sum of the game influence value and the regional influence value of the target contaminated area.
- the terminal can render the virtual scene based on the game influence value and the area influence value.
- the terminal obtains the game influence value and at least one regional influence value of the location of the virtual object. Then, the terminal determines the second rendering parameter of the virtual scene based on the sum of the game influence value and at least one area influence value. Then, the terminal displays the virtual scene based on the second rendering parameter.
- the second rendering parameters include parameters indicating the brightness of the virtual scene. The greater the sum of the game influence value and the area influence value, the lower the brightness of the virtual scene displayed by the terminal, making the virtual scene darker; the smaller the sum of the game influence value and the area influence value, the smaller the virtual scene displayed by the terminal. The higher the brightness, the brighter the virtual scene.
- the solution provided by the embodiment of the present application renders the virtual scene based on the game influence value and regional influence value of the location of the virtual object. Since the rendering parameters determined by different game influence values and regional influence values are different, the rendered There are also differences in the brightness of virtual scenes, which enriches the display form of virtual scenes, making players immersed in the scene and improving the game experience.
- the terminal can also render the virtual scene according to the regional influence value of the location of the virtual object.
- This method is similar to the above-mentioned method of rendering virtual scenes based on game influence values, and will not be described in detail here.
- the solution provided by the embodiment of the present application renders the virtual scene based on the regional influence value of the location of the virtual object. Since the rendering parameters determined by the different regional influence values are different, the brightness of the rendered virtual scene is also different, which enriches the The display form of virtual scenes can make players immersed in the scene and enhance the game experience.
- multiple virtual objects can team up to participate in the virtual game.
- the multiple virtual objects will be affected.
- the influence value of the location of the virtual object can be the game influence value, or the sum of the game influence value and the regional influence value.
- the multiple influence values of the locations of the multiple virtual objects may be the same or different.
- the terminal can render the virtual scene according to the sum of multiple influence values of the locations of the multiple virtual objects.
- the terminal obtains multiple influence values of the locations of multiple virtual objects.
- the terminal determines the third rendering parameter of the virtual scene based on the sum of multiple influence values.
- the terminal displays the virtual scene based on the third rendering parameter.
- the solution provided by the embodiment of the present application renders a virtual scene by using multiple influence values based on the locations of multiple virtual objects.
- the rendering parameters determined by different influence values are different, so that the brightness of the rendered virtual scene is also different.
- the display format of the virtual scene is enriched, allowing players to be immersed in the scene and improve the game experience.
- the terminal updates the regional influence value that displays the location of the virtual object based on the change in the distance between the virtual object and the target pollution source in the target pollution area.
- the distance between the virtual object and the target pollution source will change as the virtual object moves. If there is a change, the regional influence value displayed on the terminal will also change. The closer the distance between the virtual object and the target pollution source, the greater the influence value of this area; the farther the distance between the virtual object and the target pollution source, the smaller the influence value of this area.
- the terminal can display the regional impact value of the location of the virtual object based on the functional relationship and the distance between the virtual object and the target pollution source.
- the terminal obtains the influence value curve of the target contaminated area.
- the terminal determines the regional impact value of the location of the virtual object based on the impact value curve and the distance between the virtual object and the target pollution source in the target pollution area.
- the terminal displays the influence value of the area on the virtual scene.
- the influence value curve is used to indicate the regional influence value corresponding to different distances, that is, the influence value curve is used to indicate the relationship between the regional influence value and distance.
- the impact value curve can represent the functional relationship between the distance between the virtual object and the target pollution source and the regional impact value of the location of the virtual object.
- the influence value curves of different polluted areas may be the same or different, and the embodiments of this application do not limit this.
- the solution provided by the embodiment of the present application determines the regional impact value of the location of the virtual object through the impact value curve of the target pollution area and the distance between the virtual object and the target pollution source, making the determined regional impact value more accurate, and by displaying
- the influence value of this area can visually display the pollution caused by the location of the virtual object, enriching the content of the virtual game.
- the target contamination area may have an overlap area with at least one non-target contamination area of the plurality of contamination areas.
- the virtual object may move into an overlapping area.
- the location of the virtual object will be contaminated not only by the target contaminated area, but also by at least one non-target contaminated area.
- the regional influence value of the location of the virtual object displayed by the terminal will also change.
- the terminal determines the first area influence value and at least one second area influence value.
- the terminal displays the sum of the first area influence value and at least one second area influence value as the area influence value of the location where the virtual object is located.
- the first area influence value is determined based on the target pollution area
- at least one second area influence value is determined based on at least one non-target pollution area
- the at least one non-target pollution area overlaps with the target pollution area
- the virtual object is located in this overlapping area.
- the virtual object is simultaneously located in the target contaminated area and at least one of the above-mentioned non-target contaminated areas.
- the solution provided by the embodiment of the present application displays the regional impact value of the location of the virtual object through the sum of the regional impact values of multiple contaminated areas where the virtual object is located, and can visually display the overall pollution suffered by the location of the virtual object, enriching content of the virtual game.
- the regional influence value may be displayed above the terminal screen, on the left side of the terminal screen, or on the right side of the terminal screen, which is not limited in the embodiments of the present application.
- the regional influence value can be displayed in the form of a numerical value or a percentage, which is not limited in the embodiment of the present application.
- FIG. 5 is a schematic diagram of a regional influence value provided according to an embodiment of the present application.
- the terminal displays a virtual scene of a virtual game, and virtual objects are displayed in the virtual scene.
- the terminal displays a radar control, which is used to indicate the current location of the virtual object.
- the terminal displays the area influence value in percentage form, which is 35%.
- the pollution source has multiple forms. As the distance between the virtual object and the target pollution source changes, the shape of the target pollution source will also change. For details, please refer to steps 304 to 305.
- the terminal displays the target pollution source in the target pollution area.
- the embodiment of the present application does not limit the size of the distance threshold. It can be set based on experience, and can also be flexibly adjusted according to the scenario.
- the distance threshold may be 10 meters, 15 meters or 20 meters, which is not limited in this embodiment of the present application.
- the distance thresholds corresponding to pollution sources in different polluted areas may be the same or different, and the embodiments of this application do not limit this.
- the terminal can display the target pollution source through special effects.
- the special effects may be tornado special effects, typhoon special effects, fog special effects, etc., which are not limited in the embodiments of the present application. It can be seen that when the distance between the virtual object and the target pollution source is greater than the distance threshold, the target pollution source is a non-entity.
- FIG. 6 is a schematic diagram of the conversion between a target pollution source and a target object according to an embodiment of the present application.
- (a) in Figure 6 exemplarily shows that the terminal uses a tornado special effect to present the target pollution source when the distance between the virtual object and the target pollution source is greater than the distance threshold.
- the terminal displays the target object, which is converted from the target pollution source.
- the terminal displays the target object.
- Embodiments of the present application do not limit the timing of converting the target pollution source to obtain the target object. For example, when the distance between the virtual object and the target pollution source is equal to the distance threshold, the terminal converts the target pollution source into the target object.
- the target object can be regarded as a form of the target pollution source.
- the target pollution source displayed in the form of a target object is in an activated state. At this time, the target object can move and interact with virtual objects.
- the target object can be attacked by the virtual object and can also attack the virtual object.
- the target object can appear in humanoid, mechanical, or other forms.
- the target object is an entity.
- the terminal when the target pollution source is converted into a target object, the terminal will not only display the target object, but also be able to display other objects near the target object. Other objects can also interact with virtual objects.
- FIG. 6 exemplarily shows a schematic diagram of converting a target pollution source into a target object.
- the target pollution source transforms from the form of a tornado into a humanoid form.
- Several other objects are displayed around the target object.
- the tornado special effects gradually become transparent and the target object gradually appears.
- the terminal can set a function curve to control the conversion of target pollution sources into target objects.
- steps 304 and 305 are optional steps.
- the terminal can convert the target pollution source into the target object through the above steps 304 and 305, so that it can continue to execute step 306 to control the virtual object and the target object. to interact.
- the shape of the target pollution source may change, from the target pollution source to the target object. That is, the execution timing of steps 304 and 305 may be the same as the execution timing of step 303.
- the terminal can perform steps 304 and 305 during the process of controlling the virtual object to move within the target contaminated area in step 303.
- the target pollution source is displayed in the target pollution area in the form of a target object, the terminal does not need to execute step 304 and step 305. After executing step 303, it directly executes step 306, so that the virtual object interacts with the target object.
- the terminal controls the virtual object to interact with the target object.
- the interaction between the virtual object and the target object includes various interactive behaviors such as attack, defense, and pursuit. It should be noted that attack, defense, pursuit, etc. are interactive behaviors between objects in the game.
- the target object when the terminal controls the virtual object to move away from the target object, the target object can chase the virtual object. Correspondingly, the terminal controls the virtual object to move away from the target object. Then, when the distance between the virtual object and the target object is less than the distance threshold, the terminal displays the target object chasing the virtual object. According to the solution provided by the embodiment of the present application, when the distance between the virtual object and the target object is less than the distance threshold, the target virtual object can pursue the virtual object, which increases the interaction between the virtual object and the objects in the contaminated area.
- the terminal controls the virtual object to move away from the target object. Then, when the distance between the virtual object and the target object is greater than or equal to the distance threshold, the terminal displays that the target object is converted into the target pollution source. At this time, the target pollution source cannot move and cannot interact with virtual objects.
- the target object can be directly converted into the target pollution source at the current position after giving up the pursuit, or it can be returned to the initial position of the target object and then converted into the target pollution source.
- the initial position is the position where the target pollution source is converted into the target object.
- FIG. 6 exemplarily shows a schematic diagram of converting a target object into a target pollution source. Transforms from humanoid form to tornado form as shown in the picture. During the form transformation, the target object and other surrounding objects gradually become transparent. The tornado special effects gradually appeared.
- the terminal can set a function curve to control the conversion of target objects into target pollution sources.
- the position of the target contaminated area also changes, so that the target object is always in the target contaminated area.
- the position of the target object relative to the target contaminated area can remain unchanged or can be changed.
- the terminal when the virtual object approaches the target pollution source again, the terminal repeatedly performs the above steps 304 to 306.
- the terminal displays the target pollution source in the target pollution area again. At this time, the target pollution source cannot move and cannot interact with virtual objects.
- the terminal displays the target pollution source converted into the target object again.
- the terminal displays again that the target object is converted into the target pollution source.
- Figure 7 is a flow chart of conversion between a target pollution source and a target object provided according to an embodiment of the present application.
- the terminal when the virtual game starts, the terminal initializes multiple contaminated areas in the virtual scene of the virtual game. Taking a target pollution area among multiple pollution areas as an example, the terminal displays the target pollution source in the target pollution area. The terminal detects whether there is a virtual object whose distance from the target pollution source is equal to the distance threshold. If there is no virtual object whose distance from the target pollution source is equal to the distance threshold, the terminal will still display the target pollution source.
- the terminal converts the target pollution source into a target object. Then, the terminal detects whether there is a virtual object whose distance from the target object is less than a distance threshold. If there is a virtual object whose distance from the target object is less than the distance threshold, the terminal displays the virtual object and interacts with the target object. The target object can pursue the virtual object. If there is no virtual object whose distance from the target object is less than the distance threshold, the terminal converts the target object into a target pollution source. Then, the terminal continues to display the target pollution source until the virtual object appears again at a position equal to the distance threshold from the target pollution source.
- the pollution degree of the pollution source there is a correlation between the pollution degree of the pollution source and the attribute values of the objects that the pollution source can convert.
- the higher the pollution degree of the pollution source the higher the attribute value of the object that the pollution source can convert; the lower the pollution degree of the pollution source, the lower the attribute value of the object that the pollution source can convert.
- the attribute value is at least one of multiple values such as attack value, health value, defense value, etc., which is not limited in the embodiment of the present application. In the process of interaction between virtual objects and objects that can be converted by pollution sources, objects with different attribute values will have different effects on the virtual objects.
- an object with a higher attribute value launches a stronger attack on a virtual object, the virtual object will suffer greater damage, and the more difficult it is for the virtual object to defeat the object.
- the object with lower attribute values launches a weaker attack on the virtual object, the virtual object will suffer less damage, and the easier it is for the virtual object to defeat the object.
- the pollution levels of pollution sources in different polluted areas are different, and the regional impact values displayed on the terminal are also different. By displaying the regional impact value of the target pollution area, the terminal can visually display the pollution degree of the target pollution source in the target pollution area, providing players with a reference for understanding the attributes of the target object, thereby influencing the player's decision-making, thereby improving the efficiency of human-computer interaction.
- the contamination source can also reduce the attribute value of the virtual object.
- Pollution sources with different levels of pollution have different effects on virtual objects. The higher the pollution degree of the pollution source, the more the attribute value of the virtual object in the pollution area where the pollution source is located will decrease; the lower the pollution degree of the pollution source, the less the attribute value of the virtual object in the pollution area where the pollution source is located will decrease. Or, the higher the pollution degree of the pollution source, the faster the attribute value of the virtual object in the contaminated area where the pollution source is located decreases; the lower the pollution degree of the pollution source, the slower the attribute value of the virtual object in the contaminated area where the pollution source is located decreases. This application The embodiment does not limit this.
- the terminal can visually display the target pollution area by displaying the regional impact value of the target pollution area.
- the pollution degree of the target pollution source in the contaminated area provides a reference for the player to understand the current situation of the virtual object, thereby affecting the player's decision-making, thereby improving the efficiency of human-computer interaction.
- the contaminated areas in the virtual scene will evolve.
- This evolution refers to the increase in the pollution degree of the contaminated area to the location of the virtual object, that is, the increase in the regional influence value given by the pollution source in the contaminated area to the location of the virtual object.
- the terminal can display prompt information about the evolution of contaminated areas to provide prompts.
- the terminal displays the first prompt information.
- the first prompt information is used to prompt that the regional influence value in the contaminated area increases with the change in distance from the pollution source in the area, and the attribute value of the object corresponding to the pollution source in the contaminated area increases.
- the polluted area refers to the polluted area with non-interactive pollution sources within the area. This regional evolution command will not affect the polluted areas within the area that contain objects corresponding to the pollution source.
- FIG. 8 is a schematic diagram of first prompt information provided according to an embodiment of the present application.
- the terminal displays a prompt message above the virtual scene.
- the prompt message is "Attention! The global contaminated area has evolved.”
- the virtual game will also evolve, that is, the game influence value of the location of the virtual object changes.
- the terminal can display game evolution prompt information to provide prompts.
- the terminal displays the second prompt information.
- the second prompt information is used to prompt that the game influence value has increased.
- the terminal displays the target pollution area as the target purification area.
- the target purification area is used to reduce the regional impact of the current pollution sources on the target purification area.
- the virtual life value of the target object when the terminal controls the virtual object to interact with the target object, the virtual life value of the target object can be reduced.
- the defeat thresholds of different objects may be the same or different, and the embodiments of the present application do not limit this.
- the defeat threshold can be set based on experience and can also be flexibly adjusted according to application scenarios.
- the terminal removes the target object from the virtual scene. Since there is a coexistence relationship between the target object and the target pollution area, when the target object is removed, the terminal no longer displays the target pollution area, so that the location of the virtual object is no longer polluted by the target pollution source in the target pollution area. .
- the terminal when the target object is removed, can display a removal special effect to visually display that the target object has been removed from the virtual scene.
- the target contaminated area also no longer exists.
- the removal special effect may be an explosion special effect, a shattering special effect, etc., which is not limited in the embodiments of the present application.
- FIG. 9 is a schematic diagram of removing a target object according to an embodiment of the present application.
- the terminal displays an explosion special effect at the position of the target object to replace the previously displayed target object.
- the terminal uses the explosion special effect to indicate that the virtual scene no longer includes the target object and the target contaminated area.
- the terminal can display the target purification area based on the location of the target object when it was defeated.
- the virtual object can receive rewards for defeating the target object in the target decontamination area.
- the reward includes increasing at least one attribute value of the virtual object and reducing the regional influence value of the location of the virtual object.
- the attribute value may be an attack value, a health value, a defense value, etc., which are not limited in the embodiments of this application.
- the terminal can display the increased at least one attribute value and the decreased regional influence value.
- the terminal can also display decontamination area special effects in the target decontamination area.
- the purification area special effects may be special effects of water ripples spreading outward, halo special effects, light mist special effects, etc., which are not limited in the embodiments of the present application.
- the terminal can determine whether to display the target purification area based on the positional relationship between the target object and the existing purification area. Correspondingly, when the position of the target object is located in the purification area, the terminal displays the purification area special effect in the purification area. When the position of the target object is not located in any purification area, the terminal displays the target purification area, and the purification area special effects are displayed in the target purification area.
- the terminal when the target object is located in an existing purification area, the terminal only displays the purification area special effects in the existing purification area and no longer displays the target purification area, reducing operating consumption; when the target object is not When located in any existing purification area, the terminal displays the target purification area and purification area special effects, enriching the virtual The content of the game.
- FIG. 10 is a flow chart showing a target purification area provided according to an embodiment of the present application.
- the terminal detects whether the position of the target object is within the existing purification area. If the target object is located in an existing purification area, the terminal displays the purification area special effects in the purification area where the target object is located, but does not display the target purification area. If the location of the target object is not within the existing purification area, the terminal displays the target purification area and displays the purification area special effects in the target purification area.
- the location of the target contaminated area changes as the target object moves.
- the target contaminated area covers the center of any purified area, cancel the display of the purified area.
- the terminal will no longer display the purified area with the center covered.
- multiple purification areas are displayed in the virtual scene.
- the plurality of purification areas may or may not have overlapping portions.
- the embodiments of the present application do not limit the positions of the plurality of purification areas in the virtual scene.
- the terminal controls the virtual object to enter the overlapping area of the purification area, the terminal can adjust the regional influence value of the location of the virtual object according to each purification area where the virtual object is located.
- the terminal adjusts the area influence value of the location of the virtual object based on the at least two purification areas.
- the terminal can then display the adjusted regional impact value.
- the solution provided by the embodiment of this application adjusts the regional influence value of the virtual object through each purification area where the virtual object is located.
- the rewards provided by the purification area for the virtual object can be intuitively displayed, enriching the content of the virtual game.
- the terminal can obtain at least two bonus values assigned to the virtual object by the at least two purification areas. This bonus value is used to reduce the regional influence value of the location of the virtual object. Then, the terminal adjusts the regional influence value of the virtual object based on the maximum value of the at least two reward values.
- the decontamination area has an existence time limit.
- Each purification area corresponds to a duration threshold, and the terminal controls the display duration of the purification area through this duration threshold.
- the target duration threshold is the longest display duration of the target purification area.
- the duration threshold corresponding to each purification area can be set based on experience or adjusted according to the scenario. The embodiment of the present application does not limit the duration threshold corresponding to the purification area.
- the terminal can repeatedly perform the above steps 302 to 307 to remove multiple contaminated areas in the virtual scene.
- the terminal can also remove some of the contaminated areas without removing all the contaminated areas in the virtual scene.
- the virtual scene further includes a game target object
- the game target object is a task goal of the virtual game.
- the terminal can control the virtual object to find the game target object and defeat the game target object to complete the virtual game. Accordingly, in the event that the virtual object defeats the game target object, the terminal removes all remaining objects from the virtual scene. Then, the terminal displays a game end special effect centered on the position of the game target object. Then, the terminal ends the virtual game. The terminal also no longer displays all remaining contaminated areas in the virtual match in the event that the virtual object defeats the match target object.
- the game ending special effects may be special effects of water ripples spreading outward, scene explosion special effects, etc., which are not limited in the embodiments of the present application.
- the terminal can also render a virtual scene at a target brightness based on the rendering parameters at the end of the game. The target brightness is greater than the brightness used to render the virtual scene when the contaminated area exists.
- Embodiments of the present application provide a virtual object interaction method that displays multiple pollution areas in a virtual scene, and displays the regional impact value of the location of the virtual object based on the distance between the virtual object and the target pollution source.
- the influence value of this area can reflect the degree of pollution of the target pollution source at the location of the virtual object. Since the pollution levels of the target pollution sources at different locations are different, the virtual object can be guided to find the target pollution source quickly without searching aimlessly.
- the target object converted from the target pollution source is displayed, enriching the display method of the object. By converting the target pollution source into the target object, the virtual object can interact with the target object.
- the target purification area is displayed to realize the issuance of rewards to the virtual object and reduce the regional impact value of the location of the virtual object. Not only It enriches the content of virtual games and increases the interaction between virtual objects and objects in virtual games, improving human-computer interaction. mutual efficiency.
- FIG 11 is a schematic structural diagram of a virtual object interaction device provided according to an embodiment of the present application.
- the device is used to perform the steps when executing the above-mentioned virtual object interaction method.
- the device includes: a display module 1101 and an area display module 1102.
- the display module 1101 is used to display a virtual scene, the virtual scene includes multiple polluted areas, and the polluted areas include pollution sources;
- the display module 1101 is also used to display the regional influence value of the location of the virtual object based on the distance between the virtual object and the target pollution source in the target pollution area during the movement of the virtual object within the target pollution area among the multiple pollution areas, This regional influence value is used to represent the degree of pollution of the location of the virtual object by the target pollution source;
- the display module 1101 is also used to display the target object converted from the target pollution source when the distance between the virtual object and the target pollution source is not greater than the distance threshold;
- the area display module 1102 is used to display the target pollution area as the target purification area when the virtual object defeats the target object.
- the target purification area is used to reduce the regional impact value of the currently existing pollution source on the target purification area.
- Embodiments of the present application provide an interaction solution for virtual objects.
- the regional influence value of the location of the virtual object is displayed.
- the regional impact value can reflect the degree of pollution of the target pollution source at the location of the virtual object. Since different locations are polluted by the target pollution source at different levels, the virtual object can obtain guidance and quickly find the target pollution source.
- the distance between the virtual object and the target pollution source continues to shorten, when the distance between the virtual object and the target pollution source is not greater than the distance threshold, by converting the target pollution source into the target object, the virtual object can interact with the target object, and then By defeating the target object, the target contaminated area is revealed as the target decontaminated area.
- the target purification area can reduce the regional impact caused by the current pollution sources on the target purification area, so as to reduce the degree of pollution at the location of the virtual object, enrich the content of the virtual game, and increase the number of virtual objects and virtual games.
- the object interaction mode improves the efficiency of human-computer interaction.
- Figure 12 is a schematic structural diagram of another virtual object interaction device provided according to an embodiment of the present application.
- the display module 1101 is used to obtain the influence value curve of the target pollution area.
- the influence value The curve is used to indicate the regional impact value corresponding to different distances; based on the impact value curve and the distance between the virtual object and the target pollution source in the target pollution area, the regional impact value of the location of the virtual object is determined; on the virtual scene, the regional impact value is displayed .
- the target contamination area has an overlapping area with the non-target contamination area in the plurality of contamination areas
- the device also includes:
- Determining module 1103 configured to determine the first area influence value and at least one second area influence value when the virtual object enters the overlapping area during the movement of the virtual object within the target pollution area among the plurality of pollution areas, the The first regional impact value is determined based on the target pollution area, and the at least one second regional impact value is determined based on at least one non-target pollution area;
- the display module 1101 is also configured to display the sum of the first area influence value and at least one second area influence value as the area influence value of the location of the virtual object.
- the game influence value of the location of the virtual object is displayed on the virtual scene, and the game influence value changes with the duration of participation in the virtual game
- the device also includes:
- the summation module 1104 is used to sum the game influence value and the regional influence value to obtain the influence sum value;
- the display module 1101 is also used to display the influence and value on the virtual scene.
- the display module 1101 is used to obtain the game influence value of the location of the virtual object.
- the game influence value changes with the progress of the virtual game; based on the game influence value, determine the virtual game influence value.
- the first rendering parameter of the scene; based on the first rendering parameter, the virtual scene is displayed.
- the display module 1101 is used to obtain the match image of the location of the virtual object.
- the influence value and at least one regional influence value, the game influence value changes with the progress of the virtual game; based on the sum of the game influence value and at least one regional influence value, determine the second rendering parameter of the virtual scene; based on the second rendering Parameters to display the virtual scene.
- the device further includes:
- the display module 1101 is also used to display the target object converted from the target pollution source when the distance between the virtual object and the target pollution source is equal to the distance threshold while the virtual object is moving within the target pollution area.
- the apparatus further includes:
- the first control module 1105 is used to control the virtual object to interact with the target object
- the area display module 1102 is also used to remove the target object from the virtual scene when the virtual health value of the target object reaches the defeat threshold.
- the device further includes:
- the second control module 1106 is used to control the virtual object to move away from the target object
- the display module 1101 is also used to display that the target object is chasing the virtual object when the distance between the virtual object and the target object is less than the distance threshold.
- the device further includes:
- the third control module 1107 is used to control the virtual object to move away from the target object
- the display module 1101 is also used to display that the target object is converted into a target pollution source when the distance between the virtual object and the target object is greater than or equal to the distance threshold.
- the display module 1101 is also configured to display first prompt information in response to the regional evolution instruction.
- the first prompt information is used to prompt that the regional impact value in the polluted area increases with the distance from the pollution source in the area. The amplitude of change increases, and the attribute values of objects in the contaminated area increase.
- the display module 1101 is also used to display the target contaminated area as the target purified area when the target object is not located in any purified area. There is a purge area effect, the target purge area is centered on the location of the target object.
- the display module 1101 is also used to display the purification area special effects in the purification area when the target object is located in the purification area;
- the location of the target contaminated area changes as the target object moves
- the device also includes:
- the cancellation module 1108 is used to cancel the display of the purification area when the target pollution area covers the center of any purification area.
- the device further includes:
- the adjustment module 1109 is configured to adjust the regional influence value of the virtual object based on the at least two purification areas when the virtual object enters the overlapping portion of the at least two purification areas.
- the virtual scene also includes a game target object, and the game target object is the task goal of the virtual game;
- the area display module 1102 is also used to remove all remaining objects from the virtual scene when the virtual object defeats the game target object;
- the display module 1101 is also used to display the game end special effects centered on the position of the game target object;
- the device also includes:
- the end module 1110 is used to end the virtual game.
- the virtual object interaction device provided by the above embodiments runs an application program
- only the division of the above functional modules is used as an example.
- the above functions can be allocated to different functional modules as needed. Completion means dividing the internal structure of the device into different functional modules to complete all or part of the functions described above.
- the virtual object interaction device and the virtual object interaction method embodiment provided in the above embodiments belong to the same concept. For details of the implementation process, please refer to the method embodiment, which will not be described again here.
- FIG 13 is a structural block diagram of a terminal 1300 provided according to an embodiment of the present application.
- the terminal 1300 may be a portable Mobile terminals, such as smartphones, tablets, players, laptops or desktop computers.
- the terminal 1300 may also be called a user equipment, a portable terminal, a laptop terminal, a desktop terminal, and other names.
- the terminal 1300 includes: a processor 1301 and a memory 1302.
- the processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
- the processor 1301 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
- DSP Digital Signal Processing, digital signal processing
- FPGA Field-Programmable Gate Array, field programmable gate array
- PLA Programmable Logic Array, programmable logic array
- the processor 1301 can also include a main processor and a co-processor.
- the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
- the processor 1301 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen.
- the processor 1301 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
- AI Artificial Intelligence, artificial intelligence
- Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. Memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1301 to implement the methods provided by the method embodiments in this application. Interaction methods of virtual objects.
- the terminal 1300 optionally further includes a display screen 1305.
- the display screen 1305 is used to display UI (User Interface, user interface).
- the UI can include graphics, text, icons, videos, and any combination thereof.
- display screen 1305 also has the ability to collect touch signals on or above the surface of display screen 1305 .
- the touch signal can be input to the processor 1301 as a control signal for processing.
- the display screen 1305 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
- the display screen 1305 may be one display screen 1305, which is provided on the front panel of the terminal 1300; in other embodiments, there may be at least two display screens 1305, which are respectively provided on different surfaces of the terminal 1300 or have a folding design; In other embodiments, the display screen 1305 may be a flexible display screen disposed on a curved surface or a folding surface of the terminal 1300. Even, the display screen 1305 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen.
- the display screen 1305 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
- FIG. 13 does not constitute a limitation on the terminal 1300, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
- Embodiments of the present application also provide a non-volatile computer-readable storage medium.
- the non-volatile computer-readable storage medium stores at least one computer program.
- the at least one computer program is loaded by the processor of the computer device and The operations performed by the computer device in the virtual object interaction method of the above embodiment are performed.
- the non-volatile computer-readable storage medium can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), tapes, floppy disks and optical data storage devices, etc.
- Embodiments of the present application also provide a computer program product or computer program.
- the computer program product or computer program includes computer program code, and the computer program code is stored in a computer-readable storage medium.
- the processor of the computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device executes the virtual object interaction method provided in the above various optional implementations.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
虚拟对象的交互方法、装置、计算机设备及存储介质,属于计算机技术领域。方法包括:显示虚拟场景,虚拟场景包括多个污染区域(201);在虚拟对象在多个污染区域中的目标污染区域内移动过程中,基于虚拟对象与目标污染区域中目标污染源之间的距离,显示虚拟对象所在位置的区域影响值(202);在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,目标对象由目标污染源转换得到(203);在虚拟对象击败目标对象的情况下,将目标污染区域显示为目标净化区域(204)。上述技术方案,丰富了虚拟对局的内容,增加了虚拟对象和虚拟对局中的对象的交互方式,提高了人机交互效率。
Description
本申请要求于2022年07月25日提交的申请号为202210877788.9、发明名称为“虚拟对象的交互方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,特别涉及一种虚拟对象的交互方法、装置、计算机设备及存储介质。
随着计算机技术的发展,在终端上能够进行的游戏种类越来越多。其中,开放世界类型的游戏便是其中的一种。该游戏中,通过终端能够操控虚拟对象在该类游戏的虚拟场景中自由探索,进而完成虚拟对局的对局目标。
发明内容
本申请实施例提供了一种虚拟对象的交互方法、装置、计算机设备及存储介质,以丰富虚拟对局的内容,增加虚拟对象和虚拟对局中的对象的交互方式,提高人机交互效率。所述技术方案如下:
一方面,提供了一种虚拟对象的交互方法,所述方法由计算机设备执行,所述方法包括:
显示虚拟场景,所述虚拟场景包括多个污染区域,所述污染区域包括污染源;
在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,基于所述虚拟对象与所述目标污染区域中目标污染源之间的距离,显示所述虚拟对象所在位置的区域影响值,所述区域影响值用于表示所述虚拟对象所在位置受到所述目标污染源的污染程度;
在所述虚拟对象与所述目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,所述目标对象由所述目标污染源转换得到;
在所述虚拟对象击败所述目标对象的情况下,将所述目标污染区域显示为目标净化区域,所述目标净化区域用于降低当前存在的污染源对所述目标净化区域内所造成的区域影响值。
另一方面,提供了一种虚拟对象的交互装置,所述装置包括:
显示模块,用于显示虚拟场景,所述虚拟场景包括多个污染区域,所述污染区域包括污染源;
所述显示模块,还用于在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,基于所述虚拟对象与所述目标污染区域中目标污染源之间的距离,显示所述虚拟对象所在位置的区域影响值,所述区域影响值用于表示所述虚拟对象所在位置受到所述目标污染源的污染程度;
所述显示模块,还用于在所述虚拟对象与所述目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,所述目标对象由所述目标污染源转换得到;
区域显示模块,用于在所述虚拟对象击败所述目标对象的情况下,将所述目标污染区域显示为目标净化区域,所述目标净化区域用于降低当前存在的污染源对所述目标净化区域内所造成的区域影响值。
另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器用于存储至少一段计算机程序,所述至少一段计算机程序由所述处理器加载并执行以实现本申请实施例中的虚拟对象的交互方法。
另一方面,提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介
质中存储有至少一段计算机程序,所述至少一段计算机程序由处理器加载并执行以实现如本申请实施例中虚拟对象的交互方法。
另一方面,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现本申请实施例中提供的虚拟对象的交互方法。
另一方面,提供了一种计算机程序,该计算机程序包括计算机指令,计算机指令由处理器加载并执行,以使计算机实现如上述的虚拟对象的交互方法。
本申请实施例提供了一种虚拟对象的交互方案,通过在虚拟场景中设置多个污染区域,并基于虚拟对象与目标污染源之间的距离,显示虚拟对象所在位置的区域影响值。该区域影响值能够反映虚拟对象所在位置受到目标污染源的污染程度,由于不同位置受到的目标污染源的污染程度不同,使得虚拟对象能够获得指引,较快找到目标污染源。随着虚拟对象和目标污染源之间的距离不断缩短,在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,通过将目标污染源转为目标对象,使得虚拟对象能够与目标对象进行交互,进而通过击败该目标对象,将目标污染区域显示为目标净化区域。由于目标净化区域能够降低当前存在的污染源对目标净化区域内所造成的区域影响值,从而能够实现降低虚拟对象所在位置受到的污染程度,丰富了虚拟对局的内容,增加了虚拟对象和虚拟对局中的对象的交互方式,提高了人机交互效率。
图1是根据本申请实施例提供的一种虚拟对象的交互方法的实施环境示意图;
图2是根据本申请实施例提供的一种虚拟对象的交互方法的流程图;
图3是根据本申请实施例提供的另一种虚拟对象的交互方法的流程图;
图4是根据本申请实施例提供的一种参考区域的示意图;
图5是根据本申请实施例提供的一种区域影响值的示意图;
图6是根据本申请实施例提供的一种目标污染源和目标对象之间转换的示意图;
图7是根据本申请实施例提供的一种目标污染源和目标对象之间的转换流程图;
图8是根据本申请实施例提供的一种第一提示信息的示意图;
图9是根据本申请实施例提供的一种移除目标对象的示意图;
图10是根据本申请实施例提供的一种显示目标净化区域的流程图;
图11是根据本申请实施例提供的一种虚拟对象的交互装置的结构示意图;
图12是根据本申请实施例提供的另一种虚拟对象的交互装置的结构示意图;
图13是根据本申请实施例提供的一种终端的结构框图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。
本申请中术语“至少一个”是指一个或多个,“多个”的含义是指两个或两个以上。
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的虚拟对象的区域影响值都是在充分授权的情况下获取的。
为了便于理解,以下,对本申请涉及的术语进行解释。
虚拟场景:是指应用程序在终端上运行时显示(或提供)的虛拟场景。该虚拟场景可以是对真实世界的仿真环境,也可以是半仿真半虚构的虚拟场景,还可以是纯虚构的虚拟场景。虛拟场景可以是二维虚拟场景、2.5维虚拟场景或者三维虛拟场景。例如,虛拟场景可以包括天空、陆地、海洋等,该陆地可以包括沙漠、城市等环境元素,用户可以控制虚拟对象在该虚拟场景中进行移动。
虚拟对象:是指在虚拟世界中的可活动对象。该可活动对象可以是虚拟人物、虚拟动物、动漫人物中的至少一种。在一些实施例中,当虚拟世界为三维虚拟世界时,虚拟对象是三维立体模型,每个虚拟对象在三维虚拟世界中具有自身的形状和体积,占据三维虚拟世界中的一部分空间。在一些实施例中,虚拟对象是基于三维人体骨骼技术构建的三维角色,该虚拟对象通过穿戴不同的皮肤来实现不同的外在形象。在一些实施例中,虚拟对象能够采用2.5维或2维模型来实现,本申请实施例对此不加以限定。
射击游戏:包含第一人称射击游戏、第三人称射击游戏等所有使用热兵器类进行远程攻击的游戏,但不仅限于此。
第三人称视角:虚拟场景内的虚拟镜头在虚拟对象的后方一定距离的位置,画面中可以看到虚拟对象以及周围一定环境内的所有战斗要素的视角。
开放世界:指游戏中的虚拟场景完全自由开放的,虚拟对象可以朝任何方向自由前进探索,各个方位的边界之间距离非常大。
本申请实施例提供的虚拟对象的交互方法,能够由计算机设备执行。在一些实施例中,该计算机设备为终端或服务器。下面以计算机设备为终端为例,介绍一下本申请实施例提供的虚拟对象的交互方法的实施环境,图1是根据本申请实施例提供的一种虚拟对象的交互方法的实施环境示意图。参见图1,该实施环境包括终端101和服务器102。终端101和服务器102能够通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。
在一些实施例中,终端101是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、智能语音交互设备、智能家电、车载终端等,但并不局限于此。终端101安装有支持虚拟场景的应用程序。该应用程序可以是第一人称射击游戏(First-Person Shooting game,FPS)、第三人称射击游戏、多人在线战术竞技游戏(Multiplayer Online Battle Arena games,MOBA)、虚拟现实应用程序、三维地图程序或者多人枪战类生存游戏中的任意一种。终端101不仅能够显示虚拟对局的虚拟场景,终端101还能够操作位于该虚拟场景中的虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、投掷中的至少一种。示意性的,该虚拟对象是虚拟人物,比如仿真人物角色或动漫人物角色。
本领域技术人员可以知晓,上述终端的数量可以更多或更少。比如上述终端可以仅为一个,或者上述终端为几十个或几百个,或者更多数量。本申请实施例对终端的数量和设备类型不加以限定。
在一些实施例中,服务器102是独立的物理服务器,也能够是多个物理服务器构成的服务器集群或者分布式***,还能够是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)以及大数据和人工智能平台等基础云计算服务的云服务器。服务器102用于为支持虚拟场景的应用程序提供后台服务。在一些实施例中,服务器102承担主要计算工作,终端101承担次要计算工作;或者,服务器102承担次要计算工作,终端101承担主要计算工作;或者,服务器102和终端101二者之间采用分布式计算架构进行协同计算。
相关技术中,通过终端能够操控虚拟对象在该类游戏的虚拟场景中自由探索,进而完成虚拟对局的对局目标。由于该虚拟场景的自由度很高,虚拟对象可能很快就找到并完成了对局目标,导致虚拟对局的时间过短,或者长时间找不到对局目标,而在虚拟场景中盲目行动,导致虚拟对局的时间过长。由此可见,由于上述游戏的玩法单一,导致虚拟对局要么过早结
束,要么迟迟不能结束,人机交互效率低下。
图2是根据本申请实施例提供的一种虚拟对象的交互方法的流程图,参见图2,在本申请实施例中以由终端执行该方法为例进行说明。该虚拟对象的交互方法包括以下步骤:
201、终端显示虚拟场景,该虚拟场景包括多个污染区域,该污染区域包括污染源。
在本申请实施例中,该虚拟场景为三维的立体空间,虚拟场景中包括的多个污染区域为立体空间区域。由于虚拟对象通常在虚拟场景中的地面行动,本申请实施例中所描述的污染区域的形状,为立体空间区域在地面上的投影的形状。相应地,该污染区域的形状可以是圆形、方形、多边形或者不规则形状,本申请实施例对此不进行限制。该多个污染区域可以存在重叠部分,也可以不存在重叠部分,本申请实施例对该多个污染区域在虚拟场景中的位置不进行限制。每个污染区域内都存在一个污染源。该污染源所造成的污染的扩散范围即为该污染源所在的该污染区域。
202、在虚拟对象在多个污染区域中的目标污染区域内移动过程中,终端基于虚拟对象与目标污染区域中目标污染源之间的距离,显示虚拟对象所在位置的区域影响值,该区域影响值用于表示虚拟对象所在位置受到目标污染源的污染程度。
在本申请实施例中,该虚拟对象为终端控制的虚拟对象。终端能够控制虚拟对象在虚拟场景中自由的活动,如控制虚拟对象进入多个污染区域中的目标污染区域。当虚拟对象位于该目标污染区域内时,该目标污染区域内的目标污染源会对该虚拟对象产生影响。终端通过显示虚拟对象所在位置的区域影响值,来体现该目标污染源对该虚拟对象的影响大小。该影响大小等于虚拟对象所在位置受到目标污染源的污染程度,也即虚拟对象所在位置的区域影响值用于表示虚拟对象所在位置受到目标污染源的污染程度。例如,虚拟对象所在位置受到目标污染源的污染程度通过虚拟对象所在位置的区域影响值来量化表示。该目标污染源可以位于该目标污染区域中的任一位置。当虚拟对象在目标污染区域内移动时,随着虚拟对象和目标污染源之间的距离的变化,终端显示的区域影响值也会发生变化。可选地,虚拟对象和目标污染源之间距离越近,虚拟对象所在位置受到该目标污染源的污染程度越高,则区域影响值越大;虚拟对象和目标污染源之间距离越远,虚拟对象所在位置受到该目标污染源的污染程度越低,则区域影响值越小。
203、在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,终端显示目标对象,该目标对象由目标污染源转换得到。
在本申请实施例中,虚拟对象在目标污染区域内移动过程中,终端不仅能够显示区域影响值,还能够显示目标对象,目标对象由目标污染源转换得到。本申请实施例不对目标污染源转换得到目标对象的时机进行限定。例如,随着虚拟对象向目标污染源逐渐靠近,虚拟对象与目标污染源之间的距离越来越小。当虚拟对象距离目标污染源不超过距离阈值时,该目标污染源能够转换为目标对象。示例性地,该目标对象为虚拟场景中的NPC(Non-Player Character,非玩家角色)。终端能够控制的虚拟对象能够与该目标污染区域内的目标对象进行交互。
204、在虚拟对象击败目标对象的情况下,终端将目标污染区域显示为目标净化区域,该目标净化区域用于降低当前存在的污染源对目标净化区域内所造成的区域影响值。
在本申请实施例中,污染区域和该污染区域内的对象具有共存关系。当目标污染区域中的目标对象被虚拟对象击败时,该目标对象会被移除。相应地,终端不再显示目标污染区域,而是将目标污染区域所在的源区域显示为目标净化区域,也即虚拟对象不再受到该目标污染区域的影响。在虚拟对象所在位置位于该目标净化区域内的情况下,该虚拟对象所在位置受到的污染程度降低,也即该虚拟对象所在位置的区域影响值降低。本申请实施例中净化区域为立体空间区域,净化区域的形状为立体空间区域在地面上的投影的形状。相应地,净化区域的形状可以是圆形、方形、多边形或者不规则形状,本申请实施例对此不进行限制。
本申请实施例提供了一种虚拟对象的交互方案,通过在虚拟场景中设置多个污染区域,并基于虚拟对象与目标污染源之间的距离,显示虚拟对象所在位置的区域影响值。该区域影
响值能够反映虚拟对象所在位置受到目标污染源的污染程度,由于不同位置受到的目标污染源的污染程度不同,使得虚拟对象能够获得指引,较快找到目标污染源。随着虚拟对象和目标污染源之间的距离不断缩短,当虚拟对象与目标污染源之间的距离不大于距离阈值时,通过将目标污染源转为目标对象,使得虚拟对象能够与目标对象进行交互,进而通过击败该目标对象,将目标污染区域显示为目标净化区域。由于目标净化区域能够降低当前存在的污染源对目标净化区域内所造成的区域影响值,从而能够实现降低虚拟对象所在位置受到的污染程度,丰富了虚拟对局的内容,增加了虚拟对象和虚拟对局中的对象的交互方式,提高了人机交互效率。
图3是根据本申请实施例提供的另一种虚拟对象的交互方法的流程图,参见图3,在本申请实施例中以由终端执行为例进行说明。该虚拟对象的交互方法包括以下步骤:
301、终端显示虚拟场景和虚拟对象的对局影响值,该虚拟场景包括多个污染区域,该污染区域包括污染源,该对局影响值随着虚拟对局的参与时长而变化。
在本申请实施例中,虚拟对局开始后,终端在虚拟场景中显示虚拟对象。终端在显示虚拟场景时,还会显示该虚拟对象所在位置的对局影响值。该对局影响值能够体现虚拟对象完成该虚拟对局的紧迫程度,用以提醒虚拟对象需要尽快完成该虚拟对局的任务目标。在虚拟对局结束之前,虚拟对象会一直受到该影响。在任一时刻,该虚拟场景中各个位置所受到的对局影响值可以相同,也可以不同,本申请实施例对此不进行限制。无论该虚拟对象处于虚拟场景中的何处位置,该虚拟对象都对应一个对局影响值。可选地,该对局影响值随着虚拟对局的参与时长的增加而减小,或者,随着虚拟对局的参与时长的增加而增大,本申请实施例对此不进行限制。
例如,以在任一时刻,该虚拟场景中各个位置所受到的对局影响值相同,且对局影响值随着虚拟对局的参与时长的增加而增大为例,当虚拟对局进行到15分钟时,该虚拟对象所在位置的对局影响值为10。当虚拟对局进行到30分钟时,该虚拟对象所在位置的对局影响值为20。该对局影响值能够提醒玩家,当前的虚拟对局已开展较长时间。若虚拟对象不能尽快完成该虚拟对局的任务目标,则视为对局失败。本申请实施例通过该对局影响值,直观地显示虚拟对象完成该虚拟对局的紧迫程度,使得虚拟对象能够积极寻找并完成该虚拟对局的任务目标,从而能够提高人机交互效率。其中,虚拟对局的参考时长也可以称为虚拟对局的进度。
在本申请实施例中,除了通过对局影响值来提醒虚拟对象需要尽快完成该虚拟对局,该虚拟场景中污染区域内的污染源,会对进入到该污染区域内的虚拟对象造成影响,污染源赋予虚拟对象的区域影响值同样能够提醒虚拟对象积极参与虚拟对局,尽快消除污染区域的影响,以完成该虚拟对局。参见下述步骤302。其中,该虚拟场景中污染区域的数量可以为5个、6个或者7个等,本申请实施例对此不进行限制。
对于任一污染区域,该污染区域中包括污染源。该污染源关联有对象。终端能够控制虚拟对象进入该污染区域,进而控制虚拟对象与该污染源关联的对象进行交互。
在一些实施例中,在虚拟对局开始时,终端能够从预先配置的多个参考区域内,选择一定数量的参考区域,作为该虚拟对局中的污染区域。相应地,终端在虚拟场景中预先配置n个参考区域,n为正整数。然后,响应于该虚拟对局的开启指令,终端从该n个参考区域中随机选择m个参考区域,作为该虚拟对局中的污染区域,也即在该虚拟对局中,虚拟场景中包括的污染区域的数量为m个,m都是正整数。可选地,m属于[a,b]区间,a<b。不同的虚拟对局可以对应不同的取值。若n<a,则会导致n小于m,在此情况下,终端直接将该n个参考区域作为该虚拟对局中的污染区域。
例如,图4是根据本申请实施例提供的一种参考区域的示意图。参见图4,该虚拟场景中配置7个参考区域。图4中不规则的区域用于表示虚拟场景中地面的地形。当虚拟对局开启时,终端能够在上述7个参考区域中随机选择一定数量的参考区域,作为该虚拟对局中的
污染区域。比如,当虚拟对局开启时,终端在虚拟场景中随机显示参考区域1、参考区域2、参考区域3、参考区域4以及参考区域5,作为该虚拟对象中的5个污染区域。
在一些实施例中,在预先配置n个参考区域时,终端可以根据该虚拟场景中虚拟对象的出生点位置,来确定各个参考区域的位置,以使得各个参考区域附近均有至少一个出生点位置。如,参考区域的位置与虚拟对象的出生点的位置之间的距离不小于第一距离,以避免虚拟对象过快地找到污染区域,降低玩家体验。或者,终端还可以根据该虚拟对局中对局目标对象的位置,来确定参考区域的位置。如,参考区域的位置与该虚拟对局中对局目标对象的位置之间的距离不小于第二距离,以避免虚拟对象在污染区域内与区域内的对象进行交互时,触发对局目标对象,给区域内的交互造成干扰。其中,该对局目标对象为虚拟对局的最终目标,击败该对局目标对象之后,该虚拟对局将会结束。
在一些实施例中,除了从预先配置的多个参考区域中随机选择出污染区域外,终端还能够采用不同的方式,从预先配置的多个参考区域中,为虚拟对象选择满足条件的参考区域,作为该虚拟对局的污染区域。
方式一,不同的污染区域的污染源对虚拟对象所在位置的污染程度是不同的。相应地,不同的污染区域内污染源所关联的对象的攻击值、生命值等属性值存在差异。终端能够获取虚拟对象的对象等级。然后,终端基于该对象等级,确定等级匹配的对象。然后,终端将该对象关联的污染源所在的参考区域,作为该虚拟对局的污染区域。本申请实施例提供的方案,通过选择与虚拟对象的对象等级匹配的对象所关联的污染源所在的区域,使得虚拟对象既不会较快击败该对象,也不会存在无法击败该对象的情况,也即使得该虚拟对局既不会较快结束,也不会长时间无法结束甚至失败,从而提升玩家体验。
方式二,大部分的虚拟对象所能击败的对象是有限的,并不能够击败所有的对象。终端能够获取该虚拟对象的历史交互记录。该历史交互记录包括该虚拟对象在历史时间段击败的多个对象。然后,终端根据该历史交互记录,从多个参考区域中,选择出该虚拟对象所能够击败的多个对象关联的污染源所在的参考区域,作为该虚拟对局的污染区域。本申请实施例提供的方案,通过虚拟对象的历史交互记录,选择虚拟对象所能够击败的多个对象关联的污染源所在的参考区域,使得虚拟对象能够完成该虚拟对局,从而提升玩家体验。
需要说明的是,服务器也能够预先配置的多个参考区域,从该多个参考区域中选择一定数量的参考区域,作为该虚拟对局中的污染区域。该方式与上述终端确定污染区域的方式相似,在此不再赘述。
在一些实施例中,对局影响值不仅能够体现虚拟对局中的全局污染对虚拟对象所在位置的污染程度,还能够体现虚拟对象完成该虚拟对局的紧迫程度,终端可以根据虚拟对象所在位置所受到的影响的程度,来显示的虚拟场景。换而言之,终端能够根据虚拟对象所在位置的对局影响值,来渲染虚拟场景。相应地,终端获取虚拟对象所在位置的对局影响值。然后,终端基于对局影响值,确定虚拟场景的第一渲染参数。然后,终端基于第一渲染参数,显示虚拟场景。其中,该第一渲染参数包括用于指示虚拟场景的亮度的参数。虚拟对象所在位置的对局影响值越大,终端显示的虚拟场景的亮度越低,使得该虚拟场景越黑暗;虚拟对象所在位置的对局影响值越小,终端显示的虚拟场景的亮度越高,使得该虚拟场景越明亮。本申请实施例提供的方案,通过基于虚拟对象所在位置的对局影响值,来渲染虚拟场景,由于不同对局影响值所确定的渲染参数不同,使得渲染得到的虚拟场景的亮度也存在差别,丰富了虚拟场景的显示形式,能够使得玩家身临其境,提升对局体验。
302、在虚拟对象进入多个污染区域中的目标污染区域的情况下,终端显示目标污染区域的区域影响值,该区域影响值用于表示虚拟对象所在位置受到目标污染源的污染程度。
在本申请实施例中,该目标污染区域为多个污染区域中的任一污染区域。终端在控制虚拟对象在虚拟场景中探索时,能够控制虚拟对象进入该目标污染区域。当虚拟对象进入该目标污染区域时,该虚拟对象的位置已处于该目标污染区域的目标污染源所能产生污染的范围。污染程度的大小通过该目标污染区域的区域影响值来体现。可选地,虚拟对象在不同的污染
区域中进行移动时,虚拟对象的区域影响值的变化幅度可以相同,也可以不同,本申请实施例对此不进行限制。
在一些实施例中,终端能够通过不同的方式,在虚拟场景上显示目标污染区域的区域影响值,参见下述两种显示方式。
方式一,终端在虚拟场景上分别独立显示对局影响值和区域影响值。通过独立显示对局影响值和区域影响值,能够直观展示虚拟对象所在位置受到虚拟对局的污染的大小和受到目标污染区域的污染的大小,使得能够根据污染的大小来影响玩家的决策,根据玩家的决策所对应的操作控制虚拟对象的去留,从而提高人机交互效率。
方式二,终端能够在虚拟场景上显示对局影响值和区域影响值的和值。相应地,终端对对局影响值和区域影响值进行求和,得到影响和值。然后,终端在虚拟场景上,显示影响和值。可选地,终端可以直接显示上述影响和值,而不执行显示区域影响值的步骤,以避免玩家感知到数值的突变,而影响玩家的判断。终端还可以取消显示对局影响值和区域影响值,只显示影响和值,以影响和值代替对局影响值和区域影响值。终端还可以显示对局影响值、区域影响值以及影响和值这三个值。本申请实施例对显示影响和值的方式不进行限制。通过显示对局影响值和区域影响值的和值,能够直观展示虚拟对象在虚拟场景中受到的所有污染,不仅丰富了虚拟对局的内容,还能够根据污染的大小控制虚拟对象的去留,从而提高人机交互效率。
在一些实施例中,对局影响值会影响虚拟场景的显示,而对局影响值和区域影响值叠加之后,也会影响虚拟场景的显示。相应的,在虚拟对象位于多个污染区域之外的情况下,该虚拟对象所在位置所受污染的大小由对局影响值体现。在此情况下,终端能够根据该对局影响值来渲染虚拟场景,也即步骤301中的方式,在此不再赘述。当终端控制虚拟对象进入目标污染区域时,该虚拟对象所在位置所受污染的大小由对局影响值和该目标污染区域的区域影响值的和值来体现。在此情况下,终端能够根据该对局影响值和区域影响值,来渲染虚拟场景。相应地,终端获取虚拟对象所在位置的对局影响值和至少一个区域影响值。然后,终端基于对局影响值和至少一个区域影响值的和,确定虚拟场景的第二渲染参数。然后,终端基于第二渲染参数,显示虚拟场景。该第二渲染参数包括用于指示虚拟场景的亮度的参数。对局影响值和区域影响值的和值越大,终端显示的虚拟场景的亮度越低,使得该虚拟场景越黑暗;对局影响值和区域影响值的和值越小,终端显示的虚拟场景的亮度越高,使得该虚拟场景越明亮。本申请实施例提供的方案,通过基于虚拟对象所在位置的对局影响值和区域影响值,来渲染虚拟场景,由于不同对局影响值和区域影响值所确定的渲染参数不同,使得渲染得到的虚拟场景的亮度也存在差别,丰富了虚拟场景的显示形式,能够使得玩家身临其境,提升对局体验。
在一些实施例中,终端还能够根据虚拟对象所在位置的区域影响值,来渲染虚拟场景。该方式与上述基于对局影响值来渲染虚拟场景的方式相似,在此不在赘述。本申请实施例提供的方案,通过基于虚拟对象所在位置的区域影响值,来渲染虚拟场景,由于不同区域影响值所确定的渲染参数不同,使得渲染得到的虚拟场景的亮度也存在差别,丰富了虚拟场景的显示形式,能够使得玩家身临其境,提升对局体验。
在一些实施例中,多个虚拟对象能够组队参与该虚拟对局。在该虚拟对局中,该多个虚拟对象均会受到影响。对于任一虚拟对象,该虚拟对象所在位置的影响值可以是对局影响值,也可以是对局影响值和区域影响值的和。该多个虚拟对象所在位置的多个影响值可以相同,也可以不同。终端能够根据该多个虚拟对象所在位置的多个影响值的和值,来渲染该虚拟场景。相应地,终端获取多个虚拟对象所在位置的多个影响值。然后,终端基于多个影响值的和,确定虚拟场景的第三渲染参数。然后,终端基于第三渲染参数,显示虚拟场景。本申请实施例提供的方案,通过基于多个虚拟对象所在位置的多个影响值,来渲染虚拟场景,有不同影响值所确定的渲染参数不同,使得渲染得到的虚拟场景的亮度也存在差别,丰富了虚拟场景的显示形式,能够使得玩家身临其境,提升对局体验。
303、在虚拟对象在多个污染区域中的目标污染区域内移动过程中,终端基于虚拟对象与目标污染区域中目标污染源之间的距离的变化,更新显示虚拟对象所在位置的区域影响值。
在本申请实施例中,随着虚拟对象在目标污染区域内进行移动,由于目标污染区域内的目标污染源不会移动,则该虚拟对象与目标污染源之间的距离会随着虚拟对象的移动而发生变化,终端显示的区域影响值也会发生变化。虚拟对象与目标污染源之间的距离越近,该区域影响值越大;虚拟对象与目标污染源之间的距离越远,该区域影响值越小。
在一些实施例中,虚拟对象与目标污染源之间的距离与虚拟对象所在位置的区域影响值存在某种函数关系。终端能够根据该函数关系和虚拟对象与目标污染源之间的距离,来显示虚拟对象所在位置的区域影响值。相应地,终端获取目标污染区域的影响值曲线。然后,终端基于影响值曲线和虚拟对象与目标污染区域中目标污染源之间的距离,确定虚拟对象所在位置的区域影响值。然后,终端在虚拟场景上,显示该区域影响值。其中,该影响值曲线用于指示不同距离对应的区域影响值,也即该影响值曲线用于指示区域影响值与距离之间的关系。例如,该影响值曲线能够表示虚拟对象与目标污染源之间的距离与虚拟对象所在位置的区域影响值存在的函数关系。不同污染区域的影响值曲线可以相同,也可以不同,本申请实施例对此不进行限制。本申请实施例提供的方案,通过目标污染区域的影响值曲线和虚拟对象与目标污染源之间的距离,来确定虚拟对象所在位置的区域影响值,使得确定的区域影响值更加准确,并且通过显示该区域影响值,能够直观显示虚拟对象所在位置所受的污染,丰富了虚拟对局的内容。
在一些实施例中,该目标污染区域可能与多个污染区域中的至少一个非目标污染区域具有重叠区域。在虚拟对象在多个污染区域中的目标污染区域内移动过程中,该虚拟对象可能会移动到重叠区域中。在此情况下,该虚拟对象所在位置不仅会受到目标污染区域的污染,还会受到至少一个非目标污染区域的污染。由此终端显示的该虚拟对象所在位置的区域影响值也会发生变化。相应地,在虚拟对象在多个污染区域中的目标污染区域内移动过程中,在虚拟对象进入重叠区域的情况下,终端确定第一区域影响值和至少一个第二区域影响值。然后,终端将第一区域影响值和至少一个第二区域影响值的和,显示为虚拟对象所在位置的区域影响值。其中,第一区域影响值基于目标污染区域确定,至少一个第二区域影响值基于至少一个非目标污染区域确定,该至少一个非目标污染区域与目标污染区域有重叠区域,且虚拟对象所在位置位于该重叠区域。换而言之,虚拟对象同时位于目标污染区域和上述至少一个非目标污染区域内。本申请实施例提供的方案,通过虚拟对象所在的多个污染区域的区域影响值的和,来显示该虚拟对象所在位置的区域影响值,能够直观显示虚拟对象所在位置所受的总体污染,丰富了虚拟对局的内容。
在一些实施例中,该区域影响值可以显示终端屏幕的上方、终端屏幕的左侧或者终端屏幕的右侧,本申请实施例对此不进行限制。该区域影响值可以以数值的形式进行显示,也可以以百分比的形式进行显示,本申请实施例对此不进行限制。
例如,图5是根据本申请实施例提供的一种区域影响值的示意图。参见图5,终端显示虚拟对局的虚拟场景,该虚拟场景中显示有虚拟对象。在终端屏幕的右上角,终端显示有雷达控件,该雷达控件用于指示该虚拟对象当前所处的位置。在该雷达控件的下方,终端以百分比形式显示区域影响值,该区域影响值为35%。
在一些实施例中,污染源具有多种形态,随着虚拟对象与目标污染源之间的距离的变化,该目标污染源的形态也会发生变化,详细内容请参见步骤304至步骤305中。
304、在虚拟对象在目标污染区域内移动过程中,在虚拟对象与目标污染源之间的距离大于距离阈值的情况下,终端在目标污染区域中显示目标污染源。
在本申请实施例中,本申请实施例不对距离阈值的大小进行限定,可以根据经验设置,也可以根据场景灵活调整。例如,该距离阈值可以是10米、15米或者20米,本申请实施例对此不进行限制。不同污染区域的污染源对应的距离阈值可以相同,也可以不同,本申请实施例对此不进行限制。在虚拟对象与目标污染源之间的距离大于距离阈值的情况下,该目标
污染源属于未激活状态,此时目标污染源不会移动,也不会与虚拟对象进行交互。换而言之,该目标污染源不能被虚拟对象攻击,也不能攻击该虚拟对象。
在一些实施例中,终端能够通过特效来显示该目标污染源。该特效可以是***特效、台风特效或者迷雾特效等,本申请实施例对此不进行限制。由此可见,在虚拟对象与目标污染源之间的距离大于距离阈值的情况下,该目标污染源为非实体。
例如,图6是根据本申请实施例提供的一种目标污染源和目标对象之间转换的示意图。参见图6,图6中的(a)示例性地示出了终端通过***特效,来呈现当虚拟对象与目标污染源之间的距离大于距离阈值时的目标污染源。
305、在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,终端显示目标对象,该目标对象由目标污染源转换得到。
在本申请实施例中,随着虚拟对象向目标污染源逐渐靠近,虚拟对象与目标污染源之间的距离越来越小。在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,终端显示目标对象,本申请实施例不对由目标污染源转换得到目标对象的时机进行限定。例如,当虚拟对象与目标污染源之间的距离等于距离阈值时,终端将目标污染源由转换为目标对象。该目标对象可以视为该目标污染源的一种形态。以目标对象的形态显示的目标污染源属于已激活状态,此时目标对象可以移动,也可以与虚拟对象进行交互。换而言之,该目标对象能被虚拟对象攻击,也能攻击该虚拟对象。目标对象可以显示为类人形态、机械形态或者其他形态。此种情况下,该目标对象为实体。可选地,当目标污染源转换为目标对象时,终端不仅会显示该目标对象,还能够在该目标对象的附近显示其他对象。其他对象也可以与虚拟对象进行交互。
例如,继续参见图6,图6中的(b)示例性地示出了目标污染源转换为目标对象的示意图。该目标污染源由***的形态转换为类人形态。在目标对象的周围,还显示有若干个其他对象。在形态转换过程中,***特效逐渐变为透明,目标对象逐渐显现。终端能够设置函数曲线,来控制目标污染源转换为目标对象。可选地,目标污染源和目标对象之间有关联,如目标污染源中的部分特效会保留在目标对象上,以提示目标对象。
需要说明的是,上述步骤304和步骤305为可选步骤。在目标污染源以不可交互的形态显示在目标污染区域中的情况下,终端能够通过上述步骤304和步骤305,将目标污染源转换为目标对象,从而才能够继续执行步骤306,控制虚拟对象与目标对象进行交互。其中,在虚拟对象在目标污染区域内移动过程中,目标污染源的形态能够会发生变化,由目标污染源转换为目标对象。也即,步骤304和步骤305的执行时机可以与步骤303的执行时机相同。终端能够在执行步骤303中的控制虚拟对象在目标污染区域内移动过程中,执行步骤304和步骤305。在目标污染源以目标对象的形态显示在目标污染区域中的情况下,终端无需执行步骤304和步骤305,执行完步骤303后直接执行步骤306,使得虚拟对象与目标对象进行交互。
306、终端控制虚拟对象与目标对象进行交互。
在本申请实施例中,虚拟对象与目标对象之间的交互包括攻击、防御以及追击等多种交互行为。需要说明的是,攻击、防御以及追击等为游戏中的对象之间的交互行为。
在一些实施例中,当终端控制虚拟对象远离该目标对象时,该目标对象能够追击虚拟对象。相应地,终端控制虚拟对象远离目标对象。然后,在虚拟对象与目标对象之间的距离小于距离阈值的情况下,终端显示目标对象追击虚拟对象。本申请实施例提供的方案,当虚拟对象与目标对象之间的距离小于距离阈值时,该目标虚拟对象能够对虚拟对象进行追击,增加了虚拟对象和污染区域内的对象的交互方式。
在一些实施例中,随着虚拟对象逐渐远离目标对象,该虚拟对象与目标对象之间的距离越来越大,目标对象在无法追击到虚拟对象时,会放弃追击。相应地,终端控制虚拟对象远离目标对象。然后,在虚拟对象与目标对象之间的距离大于或等于距离阈值的情况下,终端显示目标对象转换为目标污染源。此时,该目标污染源不能移动,不能与虚拟对象进行交互。
可选地,目标对象可以在放弃追击后,在当前位置直接转换为目标污染源,也可以回到目标对象的初始位置,再转换为目标污染源。其中,该初始位置为目标污染源转换为该目标对象的位置。本申请实施例提供的方案,在虚拟对象与目标对象之间的距离大于或等于距离阈值的情况下,通过将目标对象转换为目标污染源,不仅丰富了目标污染源的显示方式,还丰富了虚拟对局的内容。
例如,继续参见图6,图6中的(c)示例性地示出了目标对象转换为目标污染源的示意图。如图所示由类人形态转换为***的形态。在形态转换过程中,该目标对象和周围的其他对象逐渐变为透明。***特效逐渐显现。终端能够设置函数曲线,来控制目标对象转换为目标污染源。
在一些实施例中,随着目标对象的移动,该目标污染区域的位置也发生变化,使得该目标对象始终处于该目标污染区域中。可选地,目标对象相对于目标污染区域的位置可以保持不变,也可以改变。
需要说明的是,当虚拟对象再次靠近该目标污染源时,终端重复执行上述步骤304至步骤306。相应地,在虚拟对象与目标污染源之间的距离大于距离阈值的情况下,终端再次在目标污染区域中显示该目标污染源。此时,该目标污染源不能移动,不能与虚拟对象进行交互。在虚拟对象与目标对象之间的距离等于距离阈值的情况下,终端再次显示目标污染源转换为目标对象。在虚拟对象与目标对象之间的距离大于或等于距离阈值的情况下,终端再次显示目标对象转换为目标污染源。
为了更加清楚地描述目标污染源和目标对象之间的转换过程,下面结合附图再次对该转换过程进行进一步描述。图7是根据本申请实施例提供的一种目标污染源和目标对象之间的转换流程图。参见图7,在虚拟对局开始时,终端对该虚拟对局的虚拟场景中的多个污染区域进行初始化。以多个污染区域中的,目标污染区域为例,终端在该目标污染区域中,显示目标污染源。终端检测是否存在与该目标污染源之间的距离等于距离阈值的虚拟对象。若不存在与该目标污染源之间的距离等于距离阈值的虚拟对象,则终端依旧显示该目标污染源。若存在与该目标污染源之间的距离等于距离阈值的虚拟对象,则终端将该目标污染源转换为目标对象。然后,终端检测是否存在与该目标对象之间的距离小于距离阈值的虚拟对象。若存在与该目标对象之间的距离小于距离阈值的虚拟对象,则终端显示虚拟对象和目标对象进行交互。该目标对象能够对该虚拟对象进行追击。若不存在与该目标对象之间的距离小于距离阈值的虚拟对象,则终端将该目标对象转换为目标污染源。然后,终端持续显示目标污染源,直至距离该目标污染源等于距离阈值的位置处再次出现虚拟对象。
在一些实施例中,污染源的污染程度与该污染源所能转换的对象的属性值存在关联关系。污染源的污染程度越高,该污染源所能转换的对象的属性值越高;污染源的污染程度越低,该污染源所能转换的对象的属性值越低。该属性值为攻击值、生命值以及防御值等多个值中的至少一项,本申请实施例对此不进行限制。在虚拟对象与污染源所能转换的对象进行交互的过程中,不同属性值的对象会对虚拟对象产生不同的影响。例如,属性值越高的对象对虚拟对象发动的攻击越强,虚拟对象会受到的伤害越大,虚拟对象越难击败该对象。属性值越低的对象对虚拟对象发动的攻击越弱,虚拟对象会受到的伤害越小,虚拟对象越容易击败该对象。不同污染区域内污染源的污染程度不同,终端所显示的区域影响值也不同。终端通过显示目标污染区域的区域影响值,能够直观地显示该目标污染区域内目标污染源的污染程度,为玩家提供了解目标对象的属性的参考,从而影响玩家决策,进而提高人机交互效率。
在一些实施例中,污染源还能够降低虚拟对象的属性值。不同污染程度的污染源对虚拟对象的影响程度不同。污染源的污染程度越高,该污染源所在污染区域内的虚拟对象的属性值降低越多;污染源的污染程度越低,该污染源所在污染区域内的虚拟对象的属性值降低越少。或者,污染源的污染程度越高,该污染源所在污染区域内的虚拟对象的属性值降低越快;污染源的污染程度越低,该污染源所在污染区域内的虚拟对象的属性值降低越慢,本申请实施例对此不进行限制。终端通过显示目标污染区域的区域影响值,能够直观地显示该目标污
染区域内目标污染源的污染程度,为玩家了解虚拟对象的当前处境提供参考,从而影响玩家决策,进而提高人机交互效率。
在一些实施例中,随着虚拟对局的推进,该虚拟场景中的污染区域会发生进化。该进化指的是污染区域对虚拟对象所在位置的污染程度增大,也即该污染区域内的污染源赋予该虚拟对象所在位置的区域影响值增大。终端能够显示污染区域进化的提示信息来进行提示。相应地,响应于区域进化指令,终端显示第一提示信息。该第一提示信息用于提示污染区域内的区域影响值随距离区域内污染源的变化幅度增加,污染区域内的污染源对应的对象的属性值提升。该污染区域指的是区域内为不可交互的污染源的污染区域。对于区域内的显示有污染源对应的对象的污染区域,本次的区域进化指令不会对其产生影响。
例如,图8是根据本申请实施例提供的一种第一提示信息的示意图。参见图8,当虚拟对局中的污染区域已进化时,终端在虚拟场景的上方显示提示信息。如图8所示,该提示信息为“注意!全局的污染区域已经获得进化”。
在一些实施例中,随着虚拟对局的推进,该虚拟对局也会发生进化,也即该虚拟对象所在位置的对局影响值发生变化。终端能够显示对局进化的提示信息来进行提示。相应地,响应于对局进化指令,终端显示第二提示信息。该第二提示信息用于提示对局影响值增大。
307、在目标对象的虚拟生命值达到击败阈值的情况下,终端将目标污染区域显示为目标净化区域,该目标净化区域用于降低当前存在的污染源对目标净化区域内所造成的区域影响值。
在本申请实施例中,终端控制虚拟对象与目标对象进行交互时,可以削减目标对象的虚拟生命值。不同对象的击败阈值可以相同,也可以不同,本申请实施例对此不进行限制。此外,击败阈值可以基于经验设置,也可以根据应用场景灵活调整。在目标对象的虚拟生命值低于该目标对象的击败阈值的情况下,该目标对象被虚拟对象击败。然后,终端从该虚拟场景中移除该目标对象。由于该目标对象与目标污染区域之间具有共存关系,当该目标对象被移除时,终端不再显示该目标污染区域,从而该虚拟对象所在位置不再受到该目标污染区域内目标污染源的污染。
在一些实施例中,当目标对象被移除时,终端能够显示移除特效,来直观地显示该目标对象已被移除出该虚拟场景。该目标污染区域也不存在了。该移除特效可以是***特效、也可以是破碎特效等,本申请实施例对此不进行限制。
例如,图9是根据本申请实施例提供的一种移除目标对象的示意图。参见图9,当目标对象的虚拟生命值低于击败阈值时,终端在目标对象的位置,显示一个***特效,用于取代之前显示的目标对象。终端通过该***特效,来表示该虚拟场景中不再包括目标对象和该目标污染区域。
在本申请实施例中,在虚拟对象击败目标对象后,终端能够基于目标对象被击败时所在的位置,显示目标净化区域。该虚拟对象能够在该目标净化区域中获得击败目标对象的奖励。该奖励包括增加该虚拟对象的至少一个属性值以及降低该虚拟对象所在位置的区域影响值。该属性值可以是攻击值、生命值或者防御值等,本申请实施例对此不进行限制。终端能够显示增加后的至少一个属性值以及降低后的区域影响值。终端还能够在该目标净化区域中显示净化区域特效。该净化区域特效可以是水波纹向外扩散的特效、光环特效以及光雾特效等,本申请实施例对此不进行限制。
在一些实施例中,该虚拟场景中有已存在的净化区域。终端能够根据目标对象与已存在的净化区域之间的位置关系,来确定是否显示目标净化区域。相应地,在目标对象的位置位于净化区域内的情况下,终端在该净化区域内,显示净化区域特效。在目标对象的位置未位于任一净化区域内的情况下,终端显示目标净化区域,该目标净化区域中显示有净化区域特效。本申请实施例提供的方案,在目标对象位于已存在的净化区域的情况下,终端只在已存在的净化区域中显示净化区域特效,不再显示目标净化区域,减少运行消耗;在目标对象未位于任一已存在的净化区域的情况下,终端显示目标净化区域和净化区域特效,丰富了虚拟
对局的内容。
例如,图10是根据本申请实施例提供的一种显示目标净化区域的流程图。参见图10,当目标对象被击败的情况下,终端检测目标对象的位置是否位于已存在的净化区域内。若该目标对象的位置在已存在的净化区域内,则终端在目标对象所在的净化区域内显示净化区域特效,但不显示目标净化区域。若该目标对象的位置不在已存在的净化区域内,终端显示目标净化区域,并在该目标净化区域中显示净化区域特效。
在一些实施例中,由于该目标污染区域的位置随着目标对象的移动而变化。为避免污染区域和净化区域发生冲突,在目标污染区域覆盖任一净化区域的中心的情况下,取消显示该净化区域。换而言之,在污染区域移动过程中,当污染区域覆盖已存在的净化区域的中心的情况下,终端不再显示中心被覆盖的净化区域。
在一些实施例中,该虚拟场景中显示有多个净化区域。该多个净化区域可以存在重叠部分,也可以不存在重叠部分,本申请实施例对该多个净化区域在虚拟场景中的位置不进行限制。当终端控制虚拟对象进入净化区域的重叠区域时,终端能够根据虚拟对象所在的各个净化区域,来调整该虚拟对象所在位置的区域影响值。相应地,在虚拟对象进入至少两个净化区域的重叠区域的情况下,终端基于该至少两个净化区域调整虚拟对象所在位置的区域影响值。然后,终端能够显示调整后的区域影响值。本申请实施例提供的方案,通过虚拟对象所在的各个净化区域,来调整虚拟对象的区域影响值,通过显示调整后的区域影响值,能够直观地显示该净化区域为虚拟对象提供的奖励,丰富了虚拟对局的内容。
可选地,终端能够获取该至少两个净化区域赋予该虚拟对象的至少两个奖励值。该奖励值用于降低虚拟对象所在位置的区域影响值。然后,终端基于该至少两个奖励值的最大值,调整该虚拟对象的区域影响值。
在一些实施例中,净化区域具有存在时限。每个净化区域都对应一个时长阈值,终端通过该时长阈值控制净化区域的显示时长。相应地,在目标净化区域的显示时长等于目标时长阈值的情况下,取消显示目标净化区域。其中,该目标时长阈值为目标净化区域的最长显示时长。每个净化区域对应的时长阈值可以根据经验设置,也可以根据场景调整,本申请实施例不对净化区域对应的时长阈值进行限定。
需要说明的是,终端能够重复执行上述步骤302至步骤307,以实现移除该虚拟场景中的多个污染区域。终端也能够无需移除该虚拟场景中所有的污染区域,移除部分污染区域即可。
在一些实施例中,该虚拟场景还包括对局目标对象,该对局目标对象为虚拟对局的任务目标。终端能够控制虚拟对象找到该对局目标对象,击败该对局目标对象,以完成该虚拟对局。相应地,在虚拟对象击败对局目标对象的情况下,终端从虚拟场景中移除所有剩余的对象。然后,终端显示以对局目标对象的位置为中心的对局结束特效。然后,终端结束虚拟对局。在虚拟对象击败对局目标对象的情况下,终端也不再显示虚拟对局中所有剩余的污染区域。该对局结束特效可以是水波纹向外扩散的特效、场景***特效等,本申请实施例对此不进行限制。其中,终端还能够基于对局结束的渲染参数,渲染处于目标亮度的虚拟场景,该目标亮度大于污染区域存在时渲染虚拟场景所使用的亮度。
本申请实施例提供了一种虚拟对象的交互方法,在虚拟场景中显示有多个污染区域,并基于虚拟对象与目标污染源之间的距离,显示虚拟对象所在位置的区域影响值。该区域影响值能够反映虚拟对象所在位置受到目标污染源的污染程度,由于不同位置受到的目标污染源的污染程度不同,使得虚拟对象能够获得指引,较快找到目标污染源,无需漫无目的地寻找。随着虚拟对象和目标污染源之间的距离不断缩短,当虚拟对象与目标污染源之间的距离等于距离阈值时,显示由目标污染源转换得到的目标对象,丰富了对象的显示方式。通过将目标污染源转为目标对象,使得虚拟对象能够与目标对象进行交互,当击败目标对象时,通过显示目标净化区域,以实现向虚拟对象发放奖励,降低虚拟对象所在位置的区域影响值,不仅丰富了虚拟对局的内容,还增加了虚拟对象和虚拟对局中的对象的交互方式,提高了人机交
互效率。
图11是根据本申请实施例提供的一种虚拟对象的交互装置的结构示意图。该装置用于执行上述虚拟对象的交互方法执行时的步骤,参见图11,该装置包括:显示模块1101和区域显示模块1102。
显示模块1101,用于显示虚拟场景,该虚拟场景包括多个污染区域,该污染区域包括污染源;
显示模块1101,还用于在虚拟对象在多个污染区域中的目标污染区域内移动过程中,基于虚拟对象与目标污染区域中目标污染源之间的距离,显示虚拟对象所在位置的区域影响值,该区域影响值用于表示虚拟对象所在位置受到目标污染源的污染程度;
显示模块1101,还用于在虚拟对象与目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,该目标对象由目标污染源转换得到;
区域显示模块1102,用于在虚拟对象击败目标对象的情况下,将目标污染区域显示为目标净化区域,该目标净化区域用于降低当前存在的污染源对目标净化区域内所造成的区域影响值。
本申请实施例提供了一种虚拟对象的交互方案,通过在虚拟场景中设置多个污染区域,并基于虚拟对象与目标污染源之间的距离,显示虚拟对象所在位置的区域影响值。该区域影响值能够反映虚拟对象所在位置受到目标污染源的污染程度,由于不同位置受到的目标污染源的污染程度不同,使得虚拟对象能够获得指引,较快找到目标污染源。随着虚拟对象和目标污染源之间的距离不断缩短,当虚拟对象与目标污染源之间的距离不大于距离阈值时,通过将目标污染源转为目标对象,使得虚拟对象能够与目标对象进行交互,进而通过击败该目标对象,将目标污染区域显示为目标净化区域。目标净化区域能够降低当前存在的污染源对目标净化区域内所造成的区域影响值,以实现降低虚拟对象所在位置受到的污染程度,丰富了虚拟对局的内容,增加了虚拟对象和虚拟对局中的对象的交互方式,提高了人机交互效率。
在一些实施例中,图12是根据本申请实施例提供的另一种虚拟对象的交互装置的结构示意图,参见图12,显示模块1101,用于获取目标污染区域的影响值曲线,该影响值曲线用于指示不同距离对应的区域影响值;基于影响值曲线和虚拟对象与目标污染区域中目标污染源之间的距离,确定虚拟对象所在位置的区域影响值;在虚拟场景上,显示区域影响值。
在一些实施例中,继续参见图12,目标污染区域与多个污染区域中的非目标污染区域具有重叠区域;
该装置还包括:
确定模块1103,用于在虚拟对象在多个污染区域中的目标污染区域内移动过程中,在虚拟对象进入重叠区域的情况下,确定第一区域影响值和至少一个第二区域影响值,该第一区域影响值基于目标污染区域确定,该至少一个第二区域影响值基于至少一个非目标污染区域确定;
显示模块1101,还用于将第一区域影响值和至少一个第二区域影响值的和,显示为虚拟对象所在位置的区域影响值。
在一些实施例中,继续参见图12,虚拟场景上显示有虚拟对象所在位置的对局影响值,该对局影响值随着虚拟对局的参与时长而变化;
该装置还包括:
求和模块1104,用于对对局影响值和区域影响值进行求和,得到影响和值;
显示模块1101,还用于在虚拟场景上,显示影响和值。
在一些实施例中,继续参见图12,显示模块1101,用于获取虚拟对象所在位置的对局影响值,对局影响值随着虚拟对局的进度而变化;基于对局影响值,确定虚拟场景的第一渲染参数;基于第一渲染参数,显示虚拟场景。
在一些实施例中,继续参见图12,显示模块1101,用于获取虚拟对象所在位置的对局影
响值和至少一个区域影响值,对局影响值随着虚拟对局的进度而变化;基于对局影响值和至少一个区域影响值的和,确定虚拟场景的第二渲染参数;基于第二渲染参数,显示虚拟场景。
在一些实施例中,继续参见图12,该装置还包括:
显示模块1101,还用于在虚拟对象在目标污染区域内移动过程中,在虚拟对象与目标污染源之间的距离等于距离阈值的情况下,显示目标污染源转换得到的目标对象。
在一些实施例中,继续参见图12,该装置还包括:
第一控制模块1105,用于控制虚拟对象与目标对象进行交互;
区域显示模块1102,还用于在目标对象的虚拟生命值达到击败阈值的情况下,从虚拟场景中移除目标对象。
在一些实施例中,继续参见图12,该装置还包括:
第二控制模块1106,用于控制虚拟对象远离目标对象;
显示模块1101,还用于在虚拟对象与目标对象之间的距离小于距离阈值的情况下,显示目标对象追击虚拟对象。
在一些实施例中,继续参见图12,该装置还包括:
第三控制模块1107,用于控制虚拟对象远离目标对象;
显示模块1101,还用于在虚拟对象与目标对象之间的距离大于或等于距离阈值的情况下,显示目标对象转换为目标污染源。
在一些实施例中,继续参见图12,显示模块1101,还用于响应于区域进化指令,显示第一提示信息,第一提示信息用于提示污染区域内的区域影响值随距离区域内污染源的变化幅度增加,污染区域内的对象的属性值提升。
在一些实施例中,继续参见图12,显示模块1101,还用于在目标对象的位置未位于任一净化区域内的情况下,将目标污染区域显示为目标净化区域,该目标净化区域内显示有净化区域特效,该目标净化区域以目标对象的位置为中心。
在一些实施例中,显示模块1101,还用于在目标对象的位置位于净化区域内的情况下,在该净化区域内,显示净化区域特效;
在一些实施例中,继续参见图12,目标污染区域的位置随着目标对象的移动而变化;
该装置还包括:
取消模块1108,用于在目标污染区域覆盖任一净化区域的中心的情况下,取消显示该净化区域。
在一些实施例中,继续参见图12,该装置还包括:
调整模块1109,用于在虚拟对象进入至少两个净化区域的重叠部分的情况下,基于至少两个净化区域调整虚拟对象的区域影响值。
在一些实施例中,继续参见图12,虚拟场景还包括对局目标对象,对局目标对象为虚拟对局的任务目标;
区域显示模块1102,还用于在虚拟对象击败对局目标对象的情况下,从虚拟场景中移除所有剩余的对象;
显示模块1101,还用于显示以对局目标对象的位置为中心的对局结束特效;
该装置还包括:
结束模块1110,用于结束虚拟对局。
需要说明的是,上述实施例提供的虚拟对象的交互装置在运行应用程序时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的虚拟对象的交互装置与虚拟对象的交互方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
图13是根据本申请实施例提供的一种终端1300的结构框图。该终端1300可以是便携式
移动终端,比如:智能手机、平板电脑、播放器、笔记本电脑或台式电脑。终端1300还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,终端1300包括有:处理器1301和存储器1302。
处理器1301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1301可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1301可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1301还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1302可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1302还可包括高速随机存取存储器以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1302中的非暂态的计算机可读存储介质用于存储至少一个计算机程序,该至少一个计算机程序用于被处理器1301所执行以实现本申请中方法实施例提供的虚拟对象的交互方法。
在一些实施例中,终端1300还可选包括有:显示屏1305。
显示屏1305用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1305是触摸显示屏时,显示屏1305还具有采集在显示屏1305的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1301进行处理。此时,显示屏1305还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1305可以为一个,设置在终端1300的前面板;在另一些实施例中,显示屏1305可以为至少两个,分别设置在终端1300的不同表面或呈折叠设计;在另一些实施例中,显示屏1305可以是柔性显示屏,设置在终端1300的弯曲表面上或折叠面上。甚至,显示屏1305还可以设置成非矩形的不规则图形,也即异形屏。显示屏1305可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
本领域技术人员可以理解,图13中示出的结构并不构成对终端1300的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本申请实施例还提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质中存储有至少一段计算机程序,该至少一段计算机程序由计算机设备的处理器加载并执行以实现上述实施例的虚拟对象的交互方法中计算机设备所执行的操作。例如,该非易失性计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机程序代码,该计算机程序代码存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机程序代码,处理器执行该计算机程序代码,使得该计算机设备执行上述各种可选实现方式中提供的虚拟对象的交互方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。
Claims (36)
- 一种虚拟对象的交互方法,其中,所述方法由计算机设备执行,所述方法包括:显示虚拟场景,所述虚拟场景包括多个污染区域,所述污染区域包括污染源;在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,基于所述虚拟对象与所述目标污染区域中目标污染源之间的距离,显示所述虚拟对象所在位置的区域影响值,所述区域影响值用于表示所述虚拟对象所在位置受到所述目标污染源的污染程度;在所述虚拟对象与所述目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,所述目标对象由所述目标污染源转换得到;在所述虚拟对象击败所述目标对象的情况下,将所述目标污染区域显示为目标净化区域,所述目标净化区域用于降低当前存在的污染源对所述目标净化区域内所造成的区域影响值。
- 根据权利要求1所述的方法,其中,所述基于所述虚拟对象与所述目标污染区域中目标污染源之间的距离,显示所述虚拟对象所在位置的区域影响值,包括:获取所述目标污染区域的影响值曲线,所述影响值曲线用于指示不同距离对应的区域影响值;基于所述影响值曲线和所述虚拟对象与所述目标污染区域中目标污染源之间的距离,确定所述虚拟对象所在位置的区域影响值;在所述虚拟场景上,显示所述区域影响值。
- 根据权利要求1或2所述的方法,其中,所述目标污染区域与所述多个污染区域中的非目标污染区域具有重叠区域;所述方法还包括:在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,在所述虚拟对象进入所述重叠区域的情况下,确定第一区域影响值和至少一个第二区域影响值,所述第一区域影响值基于所述目标污染区域确定,所述至少一个第二区域影响值基于至少一个非目标污染区域确定;将所述第一区域影响值和所述至少一个第二区域影响值的和,显示为所述虚拟对象所在位置的区域影响值。
- 根据权利要求1-3任一所述的方法,其中,所述虚拟场景上显示有所述虚拟对象所在位置的对局影响值,所述对局影响值随着虚拟对局的参与时长而变化;所述方法还包括:对所述对局影响值和所述区域影响值进行求和,得到影响和值;在所述虚拟场景上,显示所述影响和值。
- 根据权利要求1-4任一所述的方法,其中,所述显示虚拟场景,包括:获取所述虚拟对象所在位置的对局影响值,所述对局影响值随着虚拟对局的进度而变化;基于所述对局影响值,确定所述虚拟场景的第一渲染参数;基于所述第一渲染参数,显示所述虚拟场景。
- 根据权利要求1-4任一所述的方法,其中,所述显示虚拟场景,包括:获取所述虚拟对象所在位置的对局影响值和至少一个区域影响值,所述对局影响值随着虚拟对局的进度而变化;基于所述对局影响值和所述至少一个区域影响值的和,确定所述虚拟场景的第二渲染参数;基于所述第二渲染参数,显示所述虚拟场景。
- 根据权利要求1-6任一所述的方法,其中,所述方法还包括:在所述虚拟对象在所述目标污染区域内移动过程中,在所述虚拟对象与所述目标污染源之间的距离等于距离阈值的情况下,显示所述目标污染源转换得到的所述目标对象。
- 根据权利要求1-7任一所述的方法,其中,所述方法还包括:控制所述虚拟对象与所述目标对象进行交互;在所述目标对象的虚拟生命值达到击败阈值的情况下,从所述虚拟场景中移除所述目标对象。
- 根据权利要求1-8任一所述的方法,其中,所述方法还包括:控制所述虚拟对象远离所述目标对象;在所述虚拟对象与所述目标对象之间的距离小于所述距离阈值的情况下,显示所述目标对象追击所述虚拟对象。
- 根据权利要求1-8任一所述的方法,其中,所述方法还包括:控制所述虚拟对象远离所述目标对象;在所述虚拟对象与所述目标对象之间的距离大于或等于所述距离阈值的情况下,显示所述目标对象转换为所述目标污染源。
- 根据权利要求1-10任一所述的方法,其中,所述方法还包括:响应于区域进化指令,显示第一提示信息,所述第一提示信息用于提示污染区域内的区域影响值随距离区域内污染源的变化幅度增加,污染区域内污染源对应的对象的属性值提升。
- 根据权利要求1-11任一所述的方法,其中,所述在所述虚拟对象击败所述目标对象的情况下,将所述目标污染区域显示为目标净化区域,包括:在所述目标对象的位置未位于任一净化区域内的情况下,将所述目标污染区域显示为所述目标净化区域,所述目标净化区域内显示有净化区域特效,所述目标净化区域以所述目标对象的位置为中心。
- 根据权利要求12所述的方法,其中,所述方法还包括:在所述目标对象的位置位于净化区域内的情况下,在所述净化区域内,显示所述净化区域特效。
- 根据权利要求12所述的方法,其中,所述目标污染区域的位置随着所述目标对象的移动而变化;所述方法还包括:在所述目标污染区域覆盖任一净化区域的中心的情况下,取消显示所述净化区域。
- 根据权利要求12所述的方法,其中,所述方法还包括:在所述虚拟对象进入至少两个净化区域的重叠部分的情况下,基于所述至少两个净化区域调整所述虚拟对象所在位置的区域影响值。
- 根据权利要求1-15任一所述的方法,其中,所述虚拟场景还包括对局目标对象,所述对局目标对象为虚拟对局的任务目标;所述方法还包括:在所述虚拟对象击败所述对局目标对象的情况下,从所述虚拟场景中移除所有剩余的对象;显示以所述对局目标对象的位置为中心的对局结束特效;结束所述虚拟对局。
- 一种虚拟对象的交互装置,其中,所述装置包括:显示模块,用于显示虚拟场景,所述虚拟场景包括多个污染区域,所述污染区域包括污染源;所述显示模块,还用于在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,基于所述虚拟对象与所述目标污染区域中目标污染源之间的距离,显示所述虚拟对象所在位置的区域影响值,所述区域影响值用于表示所述虚拟对象所在位置受到所述目标污染源的污染程度;所述显示模块,还用于在所述虚拟对象与所述目标污染源之间的距离不大于距离阈值的情况下,显示目标对象,所述目标对象由所述目标污染源转换得到;区域显示模块,用于在所述虚拟对象击败所述目标对象的情况下,将所述目标污染区域显示为目标净化区域,所述目标净化区域用于降低当前存在的污染源对所述目标净化区域内所造成的区域影响值。
- 根据权利要求17所述的装置,其中,所述显示模块,用于获取所述目标污染区域的影响值曲线,所述影响值曲线用于指示不同距离对应的区域影响值;基于所述影响值曲线和所述虚拟对象与所述目标污染区域中目标污染源之间的距离,确定所述虚拟对象所在位置的区域影响值;在所述虚拟场景上,显示所述区域影响值。
- 根据权利要求17或18所述的装置,其中,所述目标污染区域与所述多个污染区域中的非目标污染区域具有重叠区域;所述装置还包括:确定模块,用于在虚拟对象在所述多个污染区域中的目标污染区域内移动过程中,在所述虚拟对象进入所述重叠区域的情况下,确定第一区域影响值和至少一个第二区域影响值,所述第一区域影响值基于所述目标污染区域确定,所述至少一个第二区域影响值基于至少一个非目标污染区域确定;所述显示模块,还用于将所述第一区域影响值和所述至少一个第二区域影响值的和,显示为所述虚拟对象所在位置的区域影响值。
- 根据权利要求17-19任一所述的装置,其中,所述虚拟场景上显示有所述虚拟对象所在位置的对局影响值,所述对局影响值随着虚拟对局的参与时长而变化;所述装置还包括:求和模块,用于对所述对局影响值和所述区域影响值进行求和,得到影响和值;所述显示模块,还用于在所述虚拟场景上,显示所述影响和值。
- 根据权利要求17-20任一所述的装置,其中,所述显示模块,用于获取所述虚拟对象所在位置的对局影响值,所述对局影响值随着虚拟对局的参与时长而变化;基于所述对局影响值,确定所述虚拟场景的第一渲染参数;基于所述第一渲染参数,显示所述虚拟场景。
- 根据权利要求17-20任一所述的装置,其中,所述显示模块,用于获取所述虚拟对象所在位置的对局影响值和至少一个区域影响值,所述对局影响值随着虚拟对局的进度而变化;基于所述对局影响值和所述至少一个区域影响值的和,确定所述虚拟场景的第二渲染参数;基于所述第二渲染参数,显示所述虚拟场景。
- 根据权利要求17-22任一所述的装置,其中,所述显示模块,还用于在所述虚拟对象在所述目标污染区域内移动过程中,在所述虚拟对象与所述目标污染源之间的距离等于距离阈值的情况下,显示所述目标污染源转换得到的所述目标对象。
- 根据权利要求17-23任一所述的装置,其中,所述装置还包括:第一控制模块,用于控制所述虚拟对象与所述目标对象进行交互;所述区域显示模块,还用于在所述目标对象的虚拟生命值达到击败阈值的情况下,从所述虚拟场景中移除所述目标对象。
- 根据权利要求17-24任一所述的装置,其中,所述装置还包括:第二控制模块,用于控制所述虚拟对象远离所述目标对象;所述显示模块,还用于在所述虚拟对象与所述目标对象之间的距离小于所述距离阈值的情况下,显示所述目标对象追击所述虚拟对象。
- 根据权利要求17-24任一所述的装置,其中,所述装置还包括:第三控制模块,用于控制所述虚拟对象远离所述目标对象;所述显示模块,还用于在所述虚拟对象与所述目标对象之间的距离大于或等于所述距离阈值的情况下,显示所述目标对象转换为所述目标污染源。
- 根据权利要求17-26任一所述的装置,其中,所述显示模块,用于响应于区域进化指令,显示第一提示信息,所述第一提示信息用于提示污染区域内的区域影响值随距离区域内污染源的变化幅度增加,污染区域内污染源对应的对象的属性值提升。
- 根据权利要求17-27任一所述的装置,其中,所述显示模块,还用于在所述目标对象的位置未位于任一净化区域内的情况下,将所述目标污染区域显示为所述目标净化区域,所述目标净化区域内显示有净化区域特效,所述目标净化区域以所述目标对象的位置为中心。
- 根据权利要求28所述的装置,其中,所述显示模块,还用于在所述目标对象的位置位于净化区域内的情况下,在所述净化区域内,显示净化区域特效。
- 根据权利要求28所述的装置,其中,所述目标污染区域的位置随着所述目标对象的移动而变化;所述装置还包括:取消模块,用于在所述目标污染区域覆盖所述任一净化区域的中心的情况下,取消显示所述净化区域。
- 根据权利要求28所述的装置,其中,所述装置还包括:调整模块,用于在所述虚拟对象进入至少两个净化区域的重叠部分的情况下,基于所述至少两个净化区域调整所述虚拟对象所在位置的区域影响值。
- 根据权利要求17-31任一所述的装置,其中,所述虚拟场景还包括对局目标对象,所述对局目标对象为虚拟对局的任务目标;所述区域显示模块,还用于在所述虚拟对象击败所述对局目标对象的情况下,从所述虚拟场景中移除所有剩余的对象;所述显示模块,还用于显示以所述对局目标对象的位置为中心的对局结束特效;所述装置还包括:结束模块,用于结束所述虚拟对局。
- 一种计算机设备,其中,所述计算机设备包括处理器和存储器,所述存储器用于存储至少一段计算机程序,所述至少一段计算机程序由所述处理器加载并执行权利要求1至16任一项权利要求所述的虚拟对象的交互方法。
- 一种非易失性计算机可读存储介质,其中,所述非易失性计算机可读存储介质用于存储至少一段计算机程序,所述至少一段计算机程序用于执行权利要求1至16任一项权利要求所述的虚拟对象的交互方法。
- 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至16任一项权利要求所述的虚拟对象的交互方法。
- 一种计算机程序,其中,所述计算机程序包括计算机指令,所述计算机指令由处理器加载并执行,以使计算机实现如权利要求1至16任一所述的虚拟对象的交互方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210877788.9A CN117482508A (zh) | 2022-07-25 | 2022-07-25 | 虚拟对象的交互方法、装置、计算机设备及存储介质 |
CN202210877788.9 | 2022-07-25 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2024021781A1 true WO2024021781A1 (zh) | 2024-02-01 |
WO2024021781A9 WO2024021781A9 (zh) | 2024-03-21 |
Family
ID=89667760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/094589 WO2024021781A1 (zh) | 2022-07-25 | 2023-05-16 | 虚拟对象的交互方法、装置、计算机设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117482508A (zh) |
WO (1) | WO2024021781A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110215698A (zh) * | 2019-04-29 | 2019-09-10 | 努比亚技术有限公司 | 游戏中危险提示方法、可穿戴设备及计算机可读存储介质 |
CN110801629A (zh) * | 2019-11-07 | 2020-02-18 | 腾讯科技(深圳)有限公司 | 虚拟对象生命值提示图形的显示方法、装置、终端及介质 |
CN111111217A (zh) * | 2019-12-06 | 2020-05-08 | 腾讯科技(深圳)有限公司 | 虚拟道具的控制方法和装置、存储介质及电子装置 |
CN112263834A (zh) * | 2020-11-13 | 2021-01-26 | 腾讯科技(深圳)有限公司 | 虚拟场景中的区域控制方法、装置、设备及存储介质 |
-
2022
- 2022-07-25 CN CN202210877788.9A patent/CN117482508A/zh active Pending
-
2023
- 2023-05-16 WO PCT/CN2023/094589 patent/WO2024021781A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110215698A (zh) * | 2019-04-29 | 2019-09-10 | 努比亚技术有限公司 | 游戏中危险提示方法、可穿戴设备及计算机可读存储介质 |
CN110801629A (zh) * | 2019-11-07 | 2020-02-18 | 腾讯科技(深圳)有限公司 | 虚拟对象生命值提示图形的显示方法、装置、终端及介质 |
CN111111217A (zh) * | 2019-12-06 | 2020-05-08 | 腾讯科技(深圳)有限公司 | 虚拟道具的控制方法和装置、存储介质及电子装置 |
CN112263834A (zh) * | 2020-11-13 | 2021-01-26 | 腾讯科技(深圳)有限公司 | 虚拟场景中的区域控制方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN117482508A (zh) | 2024-02-02 |
WO2024021781A9 (zh) | 2024-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112691377B (zh) | 虚拟角色的控制方法、装置、电子设备及存储介质 | |
WO2021184806A1 (zh) | 互动道具显示方法、装置、终端及存储介质 | |
US20230076343A1 (en) | Virtual item selection interface | |
US20230336792A1 (en) | Display method and apparatus for event livestreaming, device and storage medium | |
JP2022535675A (ja) | 仮想オブジェクトの制御方法並びにその、装置、端末及びコンピュータプログラム | |
CN114225372B (zh) | 虚拟对象的控制方法、装置、终端、存储介质及程序产品 | |
TWI818351B (zh) | 多人在線對戰程式中的消息發送方法、裝置、終端及媒體 | |
US20220288497A1 (en) | Method and apparatus for displaying pre-ordered prop, device, medium, and product | |
CN112221135B (zh) | 画面显示方法、装置、设备以及存储介质 | |
CN103760972A (zh) | 跨平台的增强现实体验 | |
JP2023164787A (ja) | 仮想環境の画面表示方法、装置、機器及びコンピュータプログラム | |
KR20230130109A (ko) | 가상 시나리오 디스플레이 방법, 장치, 단말 및 저장매체 | |
CN114217708B (zh) | 虚拟场景中开局操作的控制方法、装置、设备及存储介质 | |
CN113018862B (zh) | 虚拟对象的控制方法、装置、电子设备及存储介质 | |
CN111760280B (zh) | 界面显示方法、装置、终端及存储介质 | |
US20230271087A1 (en) | Method and apparatus for controlling virtual character, device, and storage medium | |
WO2024098628A1 (zh) | 游戏交互方法、装置、终端设备及计算机可读存储介质 | |
WO2023071808A1 (zh) | 基于虚拟场景的图形显示方法、装置、设备以及介质 | |
WO2024021781A1 (zh) | 虚拟对象的交互方法、装置、计算机设备及存储介质 | |
WO2023024880A1 (zh) | 虚拟场景中的表情显示方法、装置、设备以及介质 | |
JP7504228B2 (ja) | 仮想シーンの表示方法、仮想シーンの表示装置、端末及びコンピュータプログラム | |
CN114307150A (zh) | 虚拟对象之间的互动方法、装置、设备、介质及程序产品 | |
JP2023528135A (ja) | 仮想オブジェクトの制御方法及び装置並びにコンピュータ装置及びプログラム | |
WO2024119956A1 (zh) | 虚拟投掷物的控制方法、装置、设备、介质及程序产品 | |
WO2024060914A1 (zh) | 虚拟对象的生成方法、装置、设备、介质和程序产品 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23844996 Country of ref document: EP Kind code of ref document: A1 |