Skip to main content

3D rendering

Canvas offers basic 3D capabilities through the use of AffineTransforms and Cameras. This enables Views to display content in a shared 3D space.

The following examples has a View that draws a 3D cube. The cube looks like a 3D object even though it is flat on the View's surface. The controls (which are overlaid on the View) let you change the starting transform applied to the cube's back face (which changes the cube's overall transform), the folding angle of each face, and the camera used to create the perspective.