Meshes, Instances and Clones

Show Javascript  

This demonstration uses a custom mesh - a generally cylindrical shape made up of triangles. The parameters for the construction of this mesh are on lines 129-131; the version used has five sides. This custom mesh is copied by creating another 15 instances of it, which are placed randomly on the ground mesh. The custom mesh also uses color values on its vertices to make it slightly lighter towards the top, and edge rendering to highlight the triangles that make it up. Look in this demo for: 1) a decal mesh; 2) a combined mesh moving around the scene; 3) a visual effect using morphing of a parametric shape