A method and terminal for picking up objects in a three-dimensional scene based on a touch screen
A 3D scene and touch screen technology, applied in the computer field, can solve problems such as fault tolerance of small objects that cannot be accurately picked up in 3D scenes, time spent rendering textures, and high complexity of intersecting, so as to improve the efficiency of calculating the intersection area, improve accuracy and Fault tolerance, the effect of simplifying complex models
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] A method for picking up a three-dimensional scene object based on a touch screen, comprising steps:
[0057] S1. Project all the pickable objects in the 3D scene to the screen space, and respectively obtain the first graphics corresponding to each pickable object;
[0058] Step S1 specifically includes:
[0059] S11. Project the 8 vertices of the bounding boxes corresponding to all the pickable objects in the 3D scene to the screen space respectively, and obtain the projection coordinates corresponding to the 8 vertices of each bounding box in the screen space;
[0060] S12. According to the projection coordinates corresponding to the 8 vertices of each bounding box in the screen space, respectively obtain the smallest rectangle containing the 8 vertices of the bounding box, and use each of the obtained smallest rectangles as the first graphics corresponding to each pickable object. ;
[0061] S2. Acquire the coordinates of the touch point when the touch screen is cli...
Embodiment 2
[0070] A terminal for picking up three-dimensional scene objects based on a touch screen, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the program:
[0071] S1. Project all the pickable objects in the 3D scene to the screen space, and respectively obtain the first graphics corresponding to each pickable object;
[0072] Step S1 specifically includes:
[0073] S11. Project the 8 vertices of the bounding boxes corresponding to all the pickable objects in the 3D scene to the screen space respectively, and obtain the projection coordinates corresponding to the 8 vertices of each bounding box in the screen space;
[0074] S12. According to the projection coordinates corresponding to the 8 vertices of each bounding box in the screen space, respectively obtain the smallest rectangle containing the 8 vertices of the bounding box, and use each of the obtained ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

