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
8
votes
2 answers

Creating a trail with SKEmitterNode and particles in SpriteKit

I am trying to make it so a particle I made follows the player whenever the player is moved. The effect I am trying to replicate is like when you are on a website and they have some sort of set of objects following your mouse. I tried to do this by…
EvilAegis
  • 733
  • 1
  • 9
  • 18
7
votes
4 answers

Particle Engine - XNA/C#

I'm looking for a particle engine for a XNA game? Is there a good/actively maintained library available? (Open Source if possible)
Fabian
  • 1,982
  • 4
  • 25
  • 35
7
votes
7 answers

uniform generation of 3D points on cylinder/cone

I wish to randomly and uniformly generate points on a cylinder and a cone (separately). The cylinder is defined by its center, its radius and height. Same specifications for the cone. I am able to get the bounding box for each shape so I was…
Myx
  • 1,792
  • 5
  • 23
  • 37
7
votes
5 answers

Uncaught TypeError: Cannot read property 'getContext' of null

In my console I get the error: "Uncaught TypeError: Cannot read property 'getContext' of null" and I just can't find the error I've made... or what I've done wrong. So maybe you can help me find it? Please help :) enter code here var canvas =…
Pumpkin_M
  • 161
  • 1
  • 2
  • 12
6
votes
2 answers

particle effects?

I want to achieve particle effect when an object is found. I have relative Layout on which I have many ImageViews are Placed now when user click on the ImageViews I want some particle effect to happen ( I do not want sprite animation ). How will I…
user1169079
  • 3,053
  • 5
  • 42
  • 71
6
votes
5 answers

More Efficient Method of Drawing Thousands of Particles (Java/Android)

So I'm writing a sort of particle simulator, like a "falling sand game" if you know what that is, and I've kind of hit a roadblock now. The way I'm doing this is I have a particle object that basically as of now has an position (int x, int y) and…
Hamel
  • 61
  • 2
6
votes
5 answers

What STL container to perform removal of elements in between?

I need to pick a container to hold pointers to a type I defined (Particle). I'm using a pre-allocated Particle Object Pool ( which contain objects pre-allocated on an std::vector ). My Particle emitters ask the Particle Pool for particles when they…
Goles
  • 11,599
  • 22
  • 79
  • 140
6
votes
4 answers

What is the proper way to end a CAEmitterLayer in Swift?

I've mostly seen examples of continuous emitters in Swift, and I've found one example in Obj-C by setting the birthRates of the emitter cells to 0.0, but it doesn't seem to work, so I must be doing something wrong. In my example, I can see the…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
6
votes
2 answers

Rendering fire in OpenGL

I want to render a fire effect in OpenGL based on a particle simulation. I have hundreds of particles which have a position and a temperature (and therefore a color) as well as with all their other properties. Simply rendering a solidSphere using…
Etan
  • 17,014
  • 17
  • 89
  • 148
6
votes
4 answers

Canvas particles, collisions and performance

I'm creating a web app which has an interactive background with particles bouncing around. At all times there are about 200 circular particles on the screen and at most around 800 particles. Some of the collisions and effects that are being run for…
0x_Anakin
  • 3,229
  • 5
  • 47
  • 86
6
votes
2 answers

Octree implementation for triangular mesh and particles

I am currently working in an efficient calculation engine for particle simulation both in CPU and GPU. I have been working lately in octrees and I managed to write a working version of octree for particles in space and also efficiently handled their…
rawcoder
  • 113
  • 1
  • 9
6
votes
1 answer

iOS: capturing CAEmitterLayer particles on screen

Is there a way to capture CAEmitterCells (generated using a CAEmitterLayer) when capturing the ios device screen? UIGetScreenImage() works, but since it's a private method im not allowed to use it. UIGraphicsBeginImageContext doesn't seem to work,…
Zoltán Matók
  • 3,923
  • 2
  • 33
  • 64
5
votes
5 answers

LibGDX: Particle scale

In my game I use static final float FRUSTUM_WIDTH = 10; static final float FRUSTUM_HEIGHT = 15; So when I draw the particles they take the whole screen and are huge! So how do I scale them down to fit my needs? //Pew Labs
Pew Labs
  • 809
  • 2
  • 8
  • 12
5
votes
3 answers

use CAEmitterLayer to draw particles around a circle or a CGPath

I'm trying to use iOS 5's particle system (CAEmitterLayer and CAEmitterCell) to draw particles around a circle (or even better, a CGPath), but I don't know how to do it. The best I could do is make an arc (by modifying the yAcceleration property of…
cpprulez
  • 896
  • 2
  • 9
  • 21
5
votes
3 answers

Position based dynamics example (Matthias Müller)

I'm wondering if someone has a code example of position based dynamics with i.e. a spring constraint? I found this paper describing the technique which has some pseudo code, but I would love to see some java/c/c++/as/...…
pollux
  • 779
  • 2
  • 14
  • 30
1
2
3
52 53