D
dgreenheck
Guest
I started playing around with the soft body particle system trying to create fluids and came across an odd rendering glitch. Here's a screenshot of the glitch: https://imgur.com/a/Ie0Ne1l
It looks like the vertex buffer is getting overrun. Is there a limit to the number of particles allowed? I've noticed that the glitch appears when I create a single 150x50 box of particles, which isn't a huge number of particles.
I have a particle manager object and a static floor object for the particles to interact with. Here is the code for the particle manager
Create
Draw
Global Left Pressed
It looks like the vertex buffer is getting overrun. Is there a limit to the number of particles allowed? I've noticed that the glitch appears when I create a single 150x50 box of particles, which isn't a huge number of particles.
I have a particle manager object and a static floor object for the particles to interact with. Here is the code for the particle manager
Create
Code:
physics_particle_set_radius(3);
physics_particle_set_damping(1);
Code:
var flags = phy_particle_flag_water | phy_particle_flag_viscous | phy_particle_flag_tensile;
physics_particle_draw(flags, 2, spr_water, 0);
Code:
var flags = phy_particle_flag_water | phy_particle_flag_viscous | phy_particle_flag_tensile;
physics_particle_group_begin(flags, 0, mouse_x, mouse_y, 0, 0, 0, 0, c_teal, 1, 1, 2);
physics_particle_group_box(150,50);
mLastGroup = physics_particle_group_end();