CNA Samples

Triangle Picking

Ported from Microsoft's XNA 4.0 Triangle Picking Sample.

Source for this sample on GitHub ↗

Four 3D models on a wooden table, with a triangle on the Cats box outlined in magenta. Play ▸

Opens in a new tab.

About this sample

Four models sit on a textured table. Point at an individual triangle to highlight its edges in magenta. The camera can orbit around the scene to make other faces visible.

Controls

ActionMouse or keyboard
Highlight a triangleMove the pointer over a model
Orbit the cameraLeft and Right arrow keys
Reset the cameraR
ExitEscape