Search the Community

Showing results for tags 'particle system'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 12 results

  1. Hi I'm a newbie of BJS, when i try the particle system, after set the particle texture, how to animation it? I used the texture as below: Thanks for any assistance!
  2. Hi peeps, I've already published a similar topic not a while ago, but we couldn't really reach any conclusion: http://www.html5gamedevs.com/topic/32079-sprite-occlusion-for-performance/ I have this demo: http://devel.arinnova.com/tests/3dmaps/babylonjs_demo/ I'm trying to get a similar forest to this three.js scene: https://www.piste.io/#!/cortina . Notice how the forest is really dense and the FPS are really good. What I've already tried without success: 1) Loading meshes instead of sprites and applying LOD mechanism resulted in very low FPS. 2) Using mesh instances instead of sprites, still very low FPS 2) Temechon kindly helped me and coded a LOD function for sprites, but unfortunately it was more or less the same FPS as without the LOD. 4) Showing all the 54k trees, but using a particle system instead of sprites, which helped to reduce the draw calls, but the FPS were still low. 5) I've implemented a "poor man's LOD". I separated the 54k trees into 9 chunks, each chunk corresponding to a specific area. Then at every frame I calculated the distance from the camera to the central point of each area. If it was close enough to the camera, I showed the area trees and if not, I removed them. This way at each frame I had to calculate distances to only 9 points instead of 54k points, which helped but visually it was not pretty at all. Even applying a brown texture on the terrain underneath the trees, the chunks of trees appearing and disappearing all at once are very noticeable. 6) I also reduced the tree image size to 128x128, just in case, but I'm not sure it had an effect on FPS. Using an image of a pine tree or a leafy tree would create much more perception of a dense forest, but unfortunately I can't use those. The scene is a winter map of a specific real-world area with leafless trees and I'm trying to be as realistic as possible. A silly idea I've also tried was using an image of a group of trees instead of an image of a single tree. It obviously looked fake, especially when rotating the camera. Some other ideas that I've had but have not tried: Solid Particle System -> as it has more effect on performance than a simple particle system and I've already tried that. Octrees -> could this help me? I've read the tutorial but I'm not sure I understand how could I apply it to sprites. I don't know how camera.maxZ works internally, but is there possibly any way to apply it only to sprites, so the nearest sprites only are visible? Could I implement my own camera that does this? tldr; I'd like to show ~200.000 trees in my scene with minimal performance drawback. Thanks a lot in advance!
  3. I am trying o figure out a way of doing bursting in a particle system... what I mean is I wanna one-shot or burst an amount of particles (but not end or stop playing the particles from the the previous burst) and one-shot or burst another amount of particles right behind the first set at a specified delay in milli secs or whatever... think of Indian Smoke Signals type effect. Yo @Deltakosh or @Sebavan or ANYBODY else know how to make this happen... of even modify the BABYLON.ParticleSystem to support BURST instead of just a one-shot then you die type deal I know 'maualEmitCount' gives you a one-shot then die type deal... but I need something like that but be able to one-shot multiple and a given delay ALSO... Can anybody tell me for sure exactly what ParticleSystem.emitRate is that how many particles PER SECOND... so and emitRate of 1 would emit 1 particle per second (if emitPower min/max ratio set to 1.0) ???
  4. melonjs-particle system

    Hi, I am try to use particles in my code. so i have registered it like this "me.pool.register("droplet", game.dropletParticle, true);" and in my entity.js i have written "game.dropletParticle = me.SpriteObject.extend({ init: function(x, y) { // class constructor this.parent(x, y, me.loader.getImage("droplet")); }, game.startEmitter = function(x, y, count) { // add count particles in the game, all at once! for (var i = 0; i < count; i++) // add the particle in the game, using the mouse coordinates and game layer 5 // use the objects pool for better performance! me.game.world.addChild(me.pool.pull("droplet", x, y), 5); };" i have mentioned the image in resources.js as well but I am getting the following error ---me.Error: Cannot register object 'droplet', invalid class--- all my other images i have used tmx file. Can someone help me here!!!
  5. It seems that preventAutoStart no longer has any effect... I have babylon scene with preventAutoStart set to true but they still auto start. Anybody else having this issue?
  6. Jet Fire Particle System

    @Deltakosh or @Sebavan or @RaananW Anybody got any idea how i make jet flame particle system ... I have a texture for the flame... But i have no idea what NUMBERS (all the babylon particle system properties like emit boxes and min and max start, etc...) to use to make a flame for a a space ship jet flame. Is there some CYOS type deal for particle system...??? Is there some examples for different kind a particle system that can be created with "Specified Settings"... ??? Or anything that show a beginner how to make various particle system... What is the rhyme and reason to the setting the particle system numbers ???
  7. I have the following particle system serialized into the scene... works great except for that fact that they always auto start the particles... What if i don't want some to start at scene load, but ill start them later... Is there some kinda of 'autoStart' flag we can add to deserialization that will only start a deserialized particle system if autostart is set to true, other you will have to call particles.start() in code. Here is the following son i have for the particle system but see any kind of 'started' flags that be set: { "emitterId" : "1d03dbd4-f86a-4ee3-b11a-1e99606bf25a", "gravity" : [ 0, -9.81, 0 ], "direction1" : [ -7, 8, 3 ], "direction2" : [ 7, 8, -3 ], "minEmitBox" : [ -1, 0, 0 ], "maxEmitBox" : [ 1, 0, 0 ], "color1" : [ 0.8161765, 0.390084326, 0.390084326, 1 ], "color2" : [ 0.06893382, 0.375, 0.134368643, 1 ], "colorDead" : [ 0.350237876, 0.399548054, 0.5808823, 1 ], "deadAlpha" : 0, "emitRate" : 1000, "updateSpeed" : 0.01, "targetStopFrame" : 5, "minEmitPower" : 1, "maxEmitPower" : 3, "minLifeTime" : 0.3, "maxLifeTime" : 1.5, "minSize" : 0.1, "maxSize" : 0.5, "minAngularSpeed" : 0, "maxAngularSpeed" : 3.14, "textureName" : "Flare.png", "blendMode" : 0, "capacity" : 500, "textureMask" : [ 0, 0, 0, 0 ], "linkToEmitter" : true, "name" : "solo1" }
  8. Hi everybody! I was wondering about which properties of particle systems are most resource-consuming and how we can optimize particle systems in general? Thanks...
  9. Integration with Particle Designer.

    Hi guys, I'm trying to add particle system in Phaser now and I have a software called Particle Designer, which I use a lot when I develop in other 2d game engines. But I couldn't find any resources to do it since all example are using emitter to set the property manually and it's hard to see the effect right away. And the reason why I ask this because I found that the developer said Phaser is going to support this software long time ago, so I just wanna make sure is there a way to make it work with Particle Designer. Thanks a lot.
  10. Physics for particle system

    I wanted to add physics to the emitted particles for fluid simulation but I don't think Babylonjs has that kind of capability as of now. Is there any workaround for this? Basically, I want to simulate a waterfall, and the particles emitted would strike the stationary pond/water. I figured, using the meshes for this approach would hamper the performance too much. So, manipulating the vertex array for this might be a better option I think. How do I simulate this effect?
  11. Hi again. I'm working with particle systems at the moment and have a specific effect that I need. Essentially it is a sun that has been created with one particle system inside of a nebula which is another particle system. The problem is that they are not depth sorted in anyway, so particles from one system will always be drawn in front of the other system. The order is determined by the particle system creation order; the last system is always drawn over the previous system. Does anyone know if BabylonJS has the ability to specify sorting for particles? I can't find anythin in the particle system code, but thought there might be something more generic elsewhere, or will I need to add support for that myself?
  12. Please recommend flexible particle system engine. That can easily use with custom visualization. Plan to use with game engine https://github.com/darlingjs/darlingjs