3
\$\begingroup\$

I want to recreate electronic particle in Darwin Project.but I don't know how can I use vfx graph to make this effect.I upload this effect in youtube you can see in the link below:

Darwin Project Electronic Particle Effect Youtube

Condensation

image

\$\endgroup\$
4
  • \$\begingroup\$ In order to write an answer which is most helpful to you it would help to know which aspects of this effect you already managed to reproduce yourself and which parts you still need help with. \$\endgroup\$
    – Philipp
    Commented Jul 4, 2019 at 8:08
  • \$\begingroup\$ @Philipp particle has two part 1 : Condensation (Shrink) particle , part 2 : Scattering in normal direction of sphere.my problem is in part 1 when electronic fall. \$\endgroup\$ Commented Jul 4, 2019 at 8:30
  • 1
    \$\begingroup\$ I don't see anything falling in "part 1" of the effect. Maybe you meant to write "part 1 when electronic particles raise up"? Or "part 2 where the orb falls down to the ground"? It might also help to share the effect you already created so far so others can build on that and don't need to replicate everything from scratch. \$\endgroup\$
    – Philipp
    Commented Jul 4, 2019 at 8:34
  • \$\begingroup\$ @Philipp as I said particle has two part: Part1 Part2 Part 2 is easy for me my question is part 1 \$\endgroup\$ Commented Jul 4, 2019 at 9:02

1 Answer 1

2
\$\begingroup\$

This is what I came up with after an hour of playing around. It doesn't look exactly like the effect from the video, but it's a start which could easily be tweaked to get pretty close (seen from the side, not from below):

Particle Effect

I did this by creating a VFX graph and controlling some of its parameters with a timeline.

The VFX Graph

Let's first look at my VFX graph. First the "Spawn" and "Initialization" sections: Initialization

The initialization node spawns the particles in an AABox with a height of 0 - or in other words a rectangular plane aligned to the floor. The spawn rate is controlled by a parameter. I am multiplying the parameter by a constant, so I can have that parameter in a handy range between 0 and 1 in the timeline while I can control the general density through that multiplication factor.

The parameter has the Exposed checkmark enabled. This is important, because it makes it possible to control that value from something outside of the particle effect, like a C# script or like in this case a timeline asset.

Now for the Update section: Update

The update-node is based on "Conforms to Sphere". This causes all the spawned particles to get "sucked into" a spherical shape. The height of the sphere is the second parameter I exposed. I again used a multiplication node for better control over the maximum height without having to fiddle with it in the timeline.

I also added a dash of turbulence for flavor (to make the whole particle field look a bit more random).

A screenshot of my output-node isn't worth inlining. It's almost unchanged from the official template, just with the color changed from yellow/orange to cyan/blue.

The Timeline

Now for the interesting part: Timeline

I created a timeline-asset for my particle effect. Then I added the two parameters of my VFX to the timeline:

  1. go into "record" mode for that timeline clip (the red circle right of "New VFX")
  2. open the inspector of the VFX object
  3. Right-click on each of the "Parameters" and select "Add Key"
  4. Switch off record mode

Now you have the green curve to edit the spawn rate over time and the red curve to edit the sphere height over time.

Here I set the spawn rate to only spawn particles during the first 5 seconds, with its peak at 2.5 seconds.

The altitude of the sphere is set to slowly raise over the first 5 seconds, then smash down in a parabolic curve.

What next?

What you could do next is make the sphere explode after it reached the ground position. You can simply do that by adding another parameter which controls the attraction force and stick force of the "Conforms to Sphere" node and adding it to the timeline. Set that curve to quickly switch from positive to negative the moment the sphere hits the ground. This should cause the particle cloud to explode.

I am looking forward to seeing some awesome particle effects in your game.

Download

I tweaked the effect a bit more and added the explosion effect as described above. I also added a floor collider to make sure none of the particles from the explosion go to waste. The floor collider is controlled by a bool variable and is only active during the second phase so it doesn't get in the way of the spawned particles.

Here is the asset pack with the VFXGraph, timeline and a prefab which combines them.

\$\endgroup\$
6
  • \$\begingroup\$ Hi Philipp thanks! It seems good! can you attach the vfx file I want to check it out and then accept your answer. \$\endgroup\$ Commented Jul 5, 2019 at 3:53
  • \$\begingroup\$ @SeyedMortezaKamali You might learn more if you try to do it yourself. But I will see if I get around to put this into an asset bundle when I am back home in a couple hours. \$\endgroup\$
    – Philipp
    Commented Jul 5, 2019 at 11:57
  • \$\begingroup\$ @SeyedMortezaKamali I uploaded the effect I created as an asset pack. \$\endgroup\$
    – Philipp
    Commented Jul 5, 2019 at 18:32
  • \$\begingroup\$ thanks but when I added playable director and add your new VFX Timeline Nothing happened! \$\endgroup\$ Commented Jul 7, 2019 at 19:01
  • \$\begingroup\$ Nothing happened! \$\endgroup\$ Commented Jul 8, 2019 at 1:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .