Method and apparatus for detecting picked object, computer device, readable storage medium, and computer program product
AssigneeTencent Technology (Shenzhen) Company Limited
InventorShuai Lou
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorShuai Lou
Estimating the term…
This application relates to a method for detecting a picked object performed by a computer device. The method includes: detecting trigger location information of a trigger operation; in a process of rendering a second image frame by using a graphics processing unit, obtaining location information of a pixel associated with each three-dimensional model in the second image frame, and matching the location information of the pixel associated with each three-dimensional model with the trigger location information; storing, by using the graphics processing unit, a model identifier of a three-dimensional model associated with a pixel with location information successfully matched, to a storage location in a color buffer that corresponds to the successfully matched pixel; and obtaining the model identifier in the color buffer by using a central processing unit, and determining, based on the obtained model identifier, the picked object specified by the trigger operation.
A method for detecting a picked object performed by a computer device, the method comprising:
A computer device, comprising a memory and one or more processors, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the one or more processors, causing the computer device to perform a method for detecting a picked object including:
One or more non-transitory readable storage media, storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors of a computer device, causing the computer device to implement a method for detecting a picked object including:
Dependencies are inferred from the claim text.