Jump to content

How to create particle


thecco
 Share

Recommended Posts

hi 

 

i want create particle  like this. but i don't have particle image file 

 

post-5970-0-35210600-1388170045.jpg

 

 

i download looks like

 

 

post-5970-0-07613100-1388170177.png

 

 

and using particlesystem

scene.beginAnimation(Model, 0, 10, true, 1.0);        var material = Model.material;        if (material) {            scene.beginAnimation(material, 0, 10, true, 1.0);        } particleSystem.particleTexture = new BABYLON.Texture("foam.png", scene);        particleSystem.minAngularSpeed = -0.5;           particleSystem.maxAngularSpeed = 0.5;            particleSystem.minSize = 5;                    particleSystem.maxSize = 10;      //i think i need 10 texture                    // I don't know;;;;;;;;;;;;;;           particleSystem.minLifeTime = 0.5;                particleSystem.maxLifeTime = 1.5;                particleSystem.minEmitBox = 0;        particleSystem.maxEmitBox = 0;        particleSystem.minEmitPower = 0.5;               particleSystem.maxEmitPower = 1.0;               particleSystem.emitter = Model.position;           particleSystem.emitRate = 10;                  // I don't know;;;;;;;;;;;;;;         particleSystem.blendMode = BABYLON.ParticleSystem.BLENDMODE_STANDARD;         particleSystem.minEmitBox = new BABYLON.Vector3(0, 0, 0);           particleSystem.maxEmitBox = new BABYLON.Vector3(0, 0, 0);           // i want particle start position is  model's back and fornt         particleSystem.direction1 = new BABYLON.Vector3(-5, 1, -5);  /// ?? TT        particleSystem.direction2 = new BABYLON.Vector3(5, 1, 5);     // ?? TT        particleSystem.color1 = new BABYLON.Color4(0, 0, 0, 1);     // start color is default         particleSystem.gravity = new BABYLON.Vector3(0, 0, 0);      // useless          particleSystem.disposeOnStop = true;                                 particleSystem.targetStopDuration = 0.1;                             particleSystem.start();

anyway this code .....

 

post-5970-0-73525000-1388170954_thumb.jp

 

 

 

how can i create perfect foam particle

 

particle position

particle horizontal(my case  particle angle  random)

particle color - default(image color value)

particle count control like this

 

     ㅁ <-- ship

      ^

      ^  < particle

      ^

 

Thanks for reading the odd article

 

Link to comment
Share on other sites

I'm not good at English. But tutorials, wiki and many examples

 

See the source for 10 hours. This is the month of my study.

 

But I'm a model from the position of the particle's position and how to obtain and set up, i can not found

 

I is dyslexic?

 

Help me ...

 

Thank you ...

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...