Questions tagged [particles]

Particle in computer graphics usually refers to the small, simple images or 3D models (meshes) that are governed by and make up a particle system, usually used to depict a fuzzy object (e.g. fire, smoke, glowing trail left behind by a meteor).

Particle (in computer graphics)

Particles are small units that together represent a fuzzy object in a particle system. Over time the system generates particles, which move and change from the origin of creation (or emission) and eventually die or fade away. Link to academic paper

Particle can have a different meaning depending on if the field is computer graphics, nanotechnology, or physical sciences

788 questions
2
votes
1 answer

LibGDX - Dynamically change particle emitter's Atlas Region?

Is it possible to dynamically change the Atlas Region used by a particle emitter? I've tried... effect.getEmitters().get(0).setImagePath("[someAtlasRegionName]"); ...but it continues to use the original region the effect was loaded with. There…
Bumpy
  • 1,290
  • 1
  • 22
  • 32
2
votes
1 answer

Can libgdx Particle Effects use texture regions?

I have all of my images for a libgdx project in a single texture. I'm about to add some nice particle effects, but the documentation implies that each type of emitter requires a separate graphics file for its particle. Is that true? Or, is there a…
Bumpy
  • 1,290
  • 1
  • 22
  • 32
2
votes
1 answer

Calculate if Two Particles Come Close

I'm doing some simple collision detection for a 2D game in PSM Studio. My current method involves iterating through every game object and finding the distance between another game object, then seeing if the two are within a certain distance (usually…
watswat5
  • 671
  • 1
  • 7
  • 19
2
votes
1 answer

How to set particle color to black in cocos2d

I am trying to set my particle's color to be black like follows. My background color is gray, other colors like red shows up but the black doesn't. Isn't black RGB (0,0,0)? Thanks in advance. startColor.r = 0.0f; startColor.g = 0.0f; startColor.b =…
2
votes
1 answer

Why Is My Spatial Hash So Slow?

Why is my spatial hash so slow? I am working on a code that uses smooth particle hydrodynamics to model the movement of landslides. In smooth particle hydrodynamics each particle influences the particles that are within a distance of 3 "smoothing…
user3100953
  • 23
  • 1
  • 3
2
votes
2 answers

how to create a 3d sparse like matrix in octave

my Problem is difficult or too simple. So I've been using sparse to creat a matrix from different vectors (example here) I use sparse(i,j,s,m,n) where i and j are allocations for particles i derived with floor etc. (it is particle in cell…
2
votes
0 answers

canvas particles firefox framerate

I need to create a smoke simulation thingy on 2d canvas. I made a script and it looks/works fine on chrome and safari, but on firefox the framerate is far from acceptable, and I don't know how else I could optimize the code. Also, some people told…
Jonas Grumann
  • 10,438
  • 2
  • 22
  • 40
2
votes
1 answer

Three.js Particles of various sizes

I'm new to three.js and am trying to figure out the best way to add a 1000 particles each being a different size and color. The texture for each particle is created by drawing a canvas. By using a ParticleSystem all the particles are the same color…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
2
votes
2 answers

Python tkinter bouncing balls - energy goes to infinity

I have written a Python script which creates a Ball class and then creates instances of it. The balls should bounce off the walls, and later (not implemented yet) off of each other. Note that, instead of just reversing the direction of the ball…
2
votes
1 answer

cocos2d particle system auto remove

As far as I understand, autoRemoveOnFinish only works only when the duration has a finite value. But what if I stop the particle system at some point, will it remove the node after no particles left? for example CCParticleSun *particleSun =…
user1817517
  • 349
  • 1
  • 5
  • 16
2
votes
0 answers

Use of Point Sprites in Android OpenGL ES 2.0

I've seen a few discussions regarding 'Point Sprites vs Textured Quad Sprites' and the like. However, one thing confuses me, if I understand correctly, aren't the size of point sprites limited (By a point sprite range)? I'm fairly new to OpenGL ES…
Zippy
  • 3,826
  • 5
  • 43
  • 96
2
votes
0 answers

Cigarette smoke animation

I would like to do an animation of cigarette smoke, preferrably using UIKit (and not, say, Cocos). I have worked with CAEmitterLayer before and gotten good results for various smoke and fog effects. Problem is, cigarette smoke looks nothing like the…
user1459524
  • 3,613
  • 4
  • 19
  • 28
2
votes
1 answer

javascript draw particles

How can I draw around 50000 particles in a browser and then just stop, I know how to create unending animations of particles, but how can I create one that once its done drawing the particles it just stops. Edit So essintially I want to time the…
user1786283
2
votes
2 answers

Pygame particle effects

So I have this mini particle effect that produces circles that move up. I want to make it look like smoke. I'm having a lot of problems though. First off I want to make it recursive so that when the particle reaches the top it returns to its…
user1758231
  • 1,001
  • 3
  • 14
  • 20
2
votes
1 answer

FPS drops down on iPhone 4 and 3GS

I have a problem with fps while using particles. In game I have coins which uses particles. I have tested my application on iPhone 3gs, 4, 4s, 5 and on iPad 3. FPS goes down to 30-35 on 3GS and iPhone 4. But when I stop using particles FPS goes to…
Rendel
  • 1,794
  • 3
  • 13
  • 16