cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

MeshInstancer / ArraySpray : get Index #737

Closed 60-hz closed 6 months ago

60-hz commented 7 months ago

Would be super handy to get instance Index number as output for MeshInstancer, ArraySpray, and AmmoEmitter like repeat do, for all iterations processes.

pandrr commented 7 months ago

they are not iterated they are all drawn with one drawcall.

pandrr commented 7 months ago

https://en.wikipedia.org/wiki/Geometry_instancing

60-hz commented 7 months ago

Oh yeah thanks, it makes sense for MeshInstancer. But ArraySpray could allows indexes at least? I didn't find an easy way to make different text name for every particles with current implementation without writing a special Op yet.

pandrr commented 6 months ago

arrayspray always outputs the same number of particles

60-hz commented 6 months ago

Ok, using it with the fixed version of ArrayTranslate is very easy now.