31
votes
How can I make particles glow and cast light on its surroundings?
Heads-Up:
This answer is outdated. Unity now supports point light particles natively. Please see this answer for full details.
I'll leave post this here for anyone curious, or using old versions of ...
8
votes
Accepted
How can I make particles glow and cast light on its surroundings?
Light emiting particles is now a built in Unity feature in 5.5.
Simply enable Lights in the particle inspector, throw in a reference to a light prefab (both point and spot lights work), and change ...
7
votes
Accepted
How can I implement a short-cut grass effect?
You might want to look into fur shading technique. This is what I would use for this type of grass, since the shorter the grass is the better the performance (less layers).
Basically it works by ...
7
votes
Accepted
Unity doesn't change particle color when render is set to mesh?
I'm not sure why you say "The material solution restricts me in terms of random start color and stuff like this."
You can get random start colours into a material just fine. As I said in my first ...
7
votes
Additive, Alpha Blended, Unlit, Lit differences?
"Lit" shaders are affected by lighting in your scene. So your smoke plume may be bright where it wafts through the cone of a street lamp, and dark where it passes into shadow.
Lighting calculations ...
5
votes
Accepted
How can I create an "afterimage" effect like this one?
Create a new particle system
In the general settings:
"Start Lifetime" reduce a lot. The lower, the lower the length of the particle trail. In my example I am using 0.2.
"Start Speed" to 0, so the ...
5
votes
Accepted
Why does accessing ParticleSystem.IsAlive() raise this error?
It looks like you haven't set ps to the correct type (it should be a particle system). Try something like this:
...
5
votes
Accepted
Differences between particles and using shader in creating effects
This will depend a lot on the specific effect you're trying to achieve.
As one example, here's a pair of fire effects created by Edward del Villar. The one on the left uses particles, while the one ...
4
votes
How to implement soft edge areas with particles
My thoughts about these two points:
You could use shader blur, but that's going to be very expensive. Instead I would draw an extra border of triangles that fade from translucent in the center to ...
4
votes
Point sprites in particle system?
As the book says, a geometry shader can create new geometry in the pipeline. In this case, quads - which are just four vertices, or triangle pairs, that make up a 3D square. We often use quads to ...
4
votes
How can I make particles glow and cast light on its surroundings?
Years ago, before dynamic lights were affordable, we would simply use a 2D-billboarded particle effect with additive blending. It would brighten the scene towards white. By drawing it with the correct ...
4
votes
Accepted
Trying to leave a trail of particle effects with a Particle system attached to an Object Unity C#
Set the "Simulation Space" setting of the particle system from "Local" to "World". That way the position and rotation of the particle system (or its parents) will only affect newly spawned particles ...
4
votes
How to create a wind tunnel / sky diving effect like in Fortnite?
It looks like you can accomplish a similar effect by...
Attach an object with a TrailRenderer component to each point on the model that should send out streaks (eg. the hands & feet)
Set the ...
4
votes
Accepted
Wind-blown fire particle effect from scratch
An effect like the one you show is actually pretty simple to code.
Create a class Ember that sits at one (x,y) position and ...
4
votes
Accepted
Dust trail when character runs
Attach a particle system to the character. Set "Simulation Space" to "World" instead of "Local", so the particles stay behind when the player with the particle system ...
3
votes
Accepted
iOS Sprite Kit - Blend Mode Effect
Wrapping the SKEmitterNode in an SKEffectNode allows the EmitterNode to be rendered into a framebuffer which is subsequently rendered onto the screen. I tested this out (after much push and pull of ...
3
votes
Cover Screen with Snowing Effect in Libgdx
Im using LibGDX particle system for a snow effect. Here's the draft file. This will need some tuning but it's a good start.
In this effect the png get some light blue tint.
You can simply import it
<...
3
votes
How to implement soft edge areas with particles
The idea i had when reading your post was this one :
• build a set of tiles that you'll use for your areas.
• render the area polygon on a small temporary canvas at the tile resolution (ex : if tiles ...
3
votes
Accepted
Touch drawing in the dirt
So i'll post my attempt here.
Idea is to have very simple particles (=speed(with friction)+position) that are layered.
The top (=0) layer shows the dust at scale 1, then every layer below has bigger ...
3
votes
Accepted
How to i create a Particle system in unity5?
Take a look at the built in Unity particle system. Additionally, there's a number of Unity beginner tutorials (which I think would be great for you), including one for the particle system.
You can ...
3
votes
Unity Additive particle effect blends with background
There are 2 hacks I can think of with which you can acheive this.
You can create an alpha-blended 'mask particle system' for every additive particle system you create. Render the mask particle system ...
3
votes
Accepted
Particles to Denote Movement in Space
"The particles 'pop up' in front of the player when they're moving."
Your calculations aren't generating points outside the view frustum, and it seems they're going to be re-generated until they ...
3
votes
Accepted
How to add & copy ParticleSystem attached to an existing GameObject using C# script in Unity?
A simple workaround to do so is:
1- Make an empty GameObject with ParticleSystem attached.
2- Make prefab of that. Borrow that ...
3
votes
Accepted
Achieve a red lighning effect in unity for a 2d game
Attached to every sprite is a SpriteRenderer component which has a color property. You can use that property to recolor the ...
3
votes
Accepted
OpenGL - Changing blending modes using sprite batching
Background
OpenGL blend funcs are just a means of specifying a mathematical formula as follows:
src: the output from your fragment shader.
...
3
votes
Accepted
How to generate multiple particles at once?
This is called a "Burst" and it's part of the particle system's emission properties: Burst (scripting reference).
A burst is a particle emission event, where a number of particles are all emitted ...
3
votes
Accepted
How do I create this windblown snow effect?
Note: I have not used Unity yet, so here's my very high-level/conceptual answer:
Aside from simply spawning particles in a particular area/direction, it looks like Skyrim is using another technique ...
3
votes
Can I apply a force to particles from a script?
In 2018.2, the only way to apply external forces is through Wind Fields or direct collisions with rigid bodies.
You will probably have luck by using the ShapeModule with a ShapeType of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
particles × 268unity × 102
c# × 31
opengl × 22
libgdx × 21
physics × 17
shaders × 17
java × 15
2d × 13
graphic-effects × 13
c++ × 12
xna × 12
rendering × 11
collision-detection × 10
3d × 10
textures × 8
performance × 7
unreal-4 × 7
opengl-es2 × 7
android × 6
directx × 6
opengl-es × 6
mathematics × 5
animation × 5
graphics × 5