GPU Mesh Instancing
The document provides a guide for setting up a 3D model for GPU Mesh Instancing.
Last updated
Was this helpful?
The document provides a guide for setting up a 3D model for GPU Mesh Instancing.
Last updated
Was this helpful?
GPU Mesh Instancing is a method of leveraging a GPU to render duplicated instances of a mesh with the same material in a single draw call. This is useful for optimizing draw calls when populating a scene with multiple trees, bushes, grass or other duplicated objects.
In this example, a 3D model of grass is created in Blender and then exported into PlayCanvas where it's used for GPU Mesh Instancing. You can download the Grass_Grp.glb file below for testing. The model has already been exported from Blender and is ready for importing into PlayCanvas.
A. In a 3D modeling application, such as Blender, create an Empty. Give the Empty a name. In this example, the Empty has been given the name Grass_Grp.
B. Duplicate the instances of the object so that every object uses the same mesh and material. All of the instances need to parented under the Empty.
B. Drag the 3d model file into the browser and click on the magnifying glass icon to view the data.
C. Confirm the EXT_mesh_gpu_instancing extension was added. If EXT_mesh_gpu_instancing is not visible, then the model was not configured properly in the 3D modeling application. Retry steps 1-2.
A. Visit the site