I made some particle effects in the babylon editor since this makes it a lot easier than typing it out in code. I then exported the json, but when trying to use the particle systems in my project there are multiple issues.
I eventually got it to work, but it feels like a really hacky way of doing it, so I’d like some feedback/advice on how to do it better
1. When I export to json from the babylon editor the particle texture name won’t be the actual file name, but a really long string. (Not ‘skull.png’, but ‘data:image/png;base64,iVBORw0KGgoAAAANSUhE…’)
2. It will always try to pull the particle texture from a path on the babylon website even when the path for the json is set correctly (assets.babylonjs.com/particles/textures/xxxxx)
I found a thread talking about this issue Forum Post however the solution doesn’t work for me.
BABYLON.Constants.PARTICLES_BaseAssetsUrl doesn’t even exist for me.
I worked around this by
set.systems.particleTexture.updateURL("skull.png"); after the particle system has loaded in. However this way we still get a failed request to where it originally wants to find it.