Monday 15 June 2015

Three.js instancing equivalent -



Three.js instancing equivalent -

i've started playing three.js. noticed few one thousand simple cubes, performance starts drop.

so brings main question: there way instance using three.js? i'm pretty sure drop in performance related drawcalls, hence if instancing possible three.js somehow, can help back upwards performance.

i'm aware of buffers @ point it's impossible me create geometry buffer give me powerfulness modify individual objects during runtime. if there library handle this, counts solution.

shortly, i'm looking equivalent of object instancing in three.js. suggestions appreciated.

i've understood instancing can emulated / reimplemented shader. not sure , have not tried though.

this old demo has 150k individually animated cubes on gpu btw, source minified hard see what's going on. perhaps not proper instancing solution work mesh, not sure, might be. http://alteredqualia.com/three/examples/webgl_cubes.html

will maintain eye open we'd need think.. (have added trees vizicities in demo now)

three.js

No comments:

Post a Comment