I would love to use edge rendering on particles in a solid particle system. Here’s an example of what I would like to do.
https://www.babylonjs-playground.com/#GUKJNL
Notice the default box has an edge renderer, but the SPS doesn’t have edge rendering. How can I get edge rendering on the particles?
Pinging @jerome but I don’t think it’s possible for the time being.
jerome
3
I didn’t test it but the SPS is a standard mesh. So apply the edge rendering to the SPS mesh and check how it works ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/win10/slight_smile.png?v=9)
https://www.babylonjs-playground.com/#GUKJNL#1
1 Like
This does not work for me, only the original disposed box object edges show up.
Just figured it out. If I do
const mesh = sps.buildMesh(); sps.setParticles(); sps.refreshVisibleSize(); mesh.enableEdgesRendering();
it works. If I do
const mesh = sps.buildMesh(); mesh.enableEdgesRendering(); sps.setParticles(); sps.refreshVisibleSize();
it only outlines the initial box.