How to enableEdgesRendering for SolidParticleSystem?

Is it possible?

https://playground.babylonjs.com/#GLZ1PX#278

1 Like

Hello!
I was trying to do the exact thing yesterday but it didn’t work whatever I tried. Actually it makes sense, it’s one big mesh and it doesn’t need edges/faces just vertices to render the system so I believe that’s why it is not possible.

2 Likes

Yup it would not be practical in case of SPS.

4 Likes

Well, you gonna laugh and not believe it, but I just accidentally clicked on my link and found that one of the ways that didn’t help started doing this.

Here it is:

const mesh = SPS.buildMesh();
SPS.initParticles();
SPS.setParticles();
   
mesh.enableEdgesRendering();	
mesh.edgesWidth = 6.0;
mesh.edgesColor = new BABYLON.Color4(0.94, 0.07, 0.07);
2 Likes

Maybe the feature was added in one of the releases of BJS5 :sunglasses:

2 Likes