Information and Downloads
- generator JglTF from https://github.com/javagl/JglTF
- source glTF-Sample-Models
- EXT_mesh_gpu_instancing
- fileSize 7.18 kB
Download GLB Source Asset from
glTF-Sample-ModelsOpen in USD Web Viewer Download USDZ Converted with three.js
r154, Needle ForkOpen in USD Web Viewer Download USDZ Converted with Blender 3.6
Open in USD Web Viewer Download USDZ Converted with Omniverse Kit 105.0
Description
SimpleInstancing
A simple example for the EXT_mesh_gpu_instancing
extension.
Screenshot
Data
The sample contains a single mesh, with a single mesh primitive of a unit cube. The node that contains this mesh defines the EXT_mesh_gpu_instancing
extension object:
"extensions" : {
"EXT_mesh_gpu_instancing" : {
"attributes" : {
"TRANSLATION" : 3,
"ROTATION" : 4,
"SCALE" : 5
}
}
}
The object refers to three accessors: One for the TRANSLATION
, one for the ROTATION
, and one for the SCALE
of the instances. The data from these accessors causes 125 instances to be rendered. These instances are arranged in a 5x5x5 cube.
- The translation ranges from 0.0 to 10.0 along each axis
- The rotation ranges from 0.0 to 90.0 degrees along each axis
- The scale ranges from 1.0 to 2.0 along each axis
This means that the first instance that is rendered is the unmodified unit cube, and the last instance is a cube at (10.,10.0,10.0) that is rotated around the axis (1.0,1.0,1.0) by 90.0 degrees, and scaled by (2.0, 2.0, 2.0).
License Information
Public domain (CC0)