three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Renderer: Auto-Instancing [WIP]

Open sunag opened this issue 2 years ago • 1 comments

Description

renderer.autoInstancing = true will automatically instantiates a Mesh that contains the same similarities to another Mesh except for position/rotation/scale. Before release, it is important to decide on what policy to adopt for expanding/unexpand buffers, how to adopt hysteresis or not for example, among some extra checks and tests that I need to made.

The example below is rendered in just two draw calls, and this process is done automatically without additional code.

https://raw.githack.com/sunag/three.js/dev-auto-instance/examples/webgpu_auto_instance_mesh.html

image

sunag avatar Aug 24 '23 04:08 sunag

Amazing feature!!!

LeviPesin avatar Sep 05 '23 05:09 LeviPesin