Closed Tugcga closed 1 month ago
For each pointcloud with instances we should create ParticleSystem
. For each instance inside this pointcloud we should create Particle
structure, fill it data (index
, age
, lifetime
, location
, rotation
, size
, velocity
and angular_velocity
) and add this particle to the system by psys->particles.push_back_slow(pa);
. To connect created instance with particle, we should also set object->set_particle_system(psys);
and define index by object->set_particle_index(psys->particles.size() - 1);
Done in 2.2 release
Consider the possibility to implement
cycParticleInfo
shader node. May be it will be possible to transfer some data from pointcloud object to instance objects, and access it by using this node.