al404 Posted April 18, 2016 Share Posted April 18, 2016 I'm using a SolidParticleSystem where my particles are planes Quote var particle = BABYLON.MeshBuilder.CreatePlane("model", {size: 0.8}, scene); on this plane i add the flare.png that has alpha instead of black now what i would like to obtain is something like this effect http://playground.babylonjs.com/#ZVNDN#3 not sure i could do it but in update loop seems that is possible to change color but not alpha should i look into shaders? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 18, 2016 Share Posted April 18, 2016 Hello can you provide a PG link with your current implementation? This will be easier to help you update it I think you can use the updateParticle function(http://doc.babylonjs.com/overviews/Solid_Particle_System) Quote Link to comment Share on other sites More sharing options...
al404 Posted April 18, 2016 Author Share Posted April 18, 2016 here my PG http://www.babylonjs-playground.com/#21XXDF#0 i used the flare.png texture, the difference is that mine has alpha where this is black i don't know how to upload the image so i linked this one from other examples Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 18, 2016 Share Posted April 18, 2016 Have a look at this topic Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 19, 2016 Share Posted April 19, 2016 Ok sounds good. Now what I suggest is having a texture with all images that you want to cycle into. With this texture, you can then update every particle to change their uv Quote Link to comment Share on other sites More sharing options...
al404 Posted April 20, 2016 Author Share Posted April 20, 2016 I was thinking to create a second cloud of particles using ParticleSystem to add over the first one, I found a way to position initial particles on the mesh but i can't find a way to generate new particles in same mesh position. It seem that just dies. I also have a strange problem with the mesh that i'm loading, it probably is a problem on how the mesh is exported from blender if i add the mesh to the scene it in in horizontal position, if i use it to generate the particle system is in vertical position in solid particle system i can just rotate the mesh after i create it in ParticleSystem i can't find a way to do it i attach the monkey head screen capture for a better example here a PG http://playground.babylonjs.com/#ZPIC4#0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.