Tugcga / Sycles

Cycles render integration into Softimage
5 stars 1 forks source link

Implement ParticleInfo shader node #20

Closed Tugcga closed 1 month ago

Tugcga commented 9 months ago

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.

Tugcga commented 9 months 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);

Tugcga commented 1 month ago

Done in 2.2 release