Unlock instant, AI-driven research and patent intelligence for your innovation.

Methods and devices for treating target objects

A technology of target objects and processing methods, which is applied in the computer field and can solve problems such as time-consuming processing

Active Publication Date: 2018-07-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for processing target objects, so as to at least solve the technical problem of very time-consuming processing of target objects in the related art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Methods and devices for treating target objects
  • Methods and devices for treating target objects
  • Methods and devices for treating target objects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, an embodiment of a method for processing a target object is provided.

[0027] Optionally, in this embodiment, the above target object processing method can be applied to such as figure 1 In the hardware environment constituted by the server 102 and the terminal 104 as shown. figure 1 It is a schematic diagram of a hardware environment of a method for processing a target object according to an embodiment of the present invention. Such as figure 1 As shown, the server 102 is connected to the terminal 104 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for processing a target object in this embodiment of the present invention may be executed by the server 102 , may also be executed by the terminal 104 , and may also be...

Embodiment 2

[0100] The technical solution of the present invention will be described below in conjunction with preferred embodiments, specifically taking the first target object as a game object actor and the second target object as a mask area for illustration.

[0101] In the game scene, the contextual relationship between game characters and objects has different processing methods in 2D and 3D games. 3D games can use depth to solve this problem, while 2D games have no concept of depth, so they can only be marked in advance. Some areas, and it is stipulated that when the game character is in these areas, some special treatment such as semi-transparent effect should be done to it to show that the character is behind the object.

[0102] Figure 7 is a flowchart of a method for processing a target object according to an embodiment of the present invention. Such as Figure 7 As shown, the method includes the following steps:

[0103] Step S701, expressing all pixels in the game scene i...

Embodiment 3

[0126] The application environment of the embodiment of the present invention may refer to, but is not limited to, the application environment in the foregoing embodiments, which will not be described in detail in this embodiment. The embodiment of the present invention provides an optional specific application for implementing the above target object processing method.

[0127] In this embodiment, it is assumed that the game scene consists of 3*3 9 pixel bits. A matrix is ​​used to represent all the pixel bits in the game scene, "0" can be used to represent the pixels in the non-mask area in the game scene, and "1" can be used to represent the pixel bits in the mask area in the game scene. Table 1 is an identification table for identifying pixel bits in a scene instance.

[0128] Table 1 Identification table for identifying pixel bits in scene instances

[0129] 0

1

0

0

0

0

1

0

0

[0130] In Table 1, there are only two mask areas ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A target object processing method and device, a storage medium and an electronic device. The method comprises: determining that a first target object arrives at a first position in a game scenario; acquiring a pre-stored target distance between the first position and a second position, the second position being the position of a second target object in the game scenario, the second target object being the object closest to the first target object in the game scenario; if the target distance is smaller than a preset size of the first target object in the game scenario, determining that the first target object and the second target object have an overlapping area; and performing, according to the overlapping area, a presetting process on the first target object.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for processing a target object. Background technique [0002] At present, in the game running environment, every time the target object walks into a pixel, it will exhaust all the regions (mask) in the scene, and check whether the pixel distance between the target object and each region is smaller than the size of the target object itself. For example, the target object is a game character. In this way, every time the target object walks into a pixel in the game scene, it is necessary to judge the relationship between the pixel and all regions, and then select the region closest to the pixel of the target object, and its time complexity is O (n), wherein, n is the number of regions in the game scene. [0003] Since the value of n mentioned above is generally large in games, the time complexity O(n) is unacceptable, resulting in the problem that the processin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): A63F13/52A63F13/55A63F13/60
CPCA63F13/52A63F13/55A63F13/60
Inventor 王杰王毅祝清鲁桂宇怀夏可
Owner TENCENT TECH (SHENZHEN) CO LTD