Effect
step
1. Create a new material, named here "Mat_Beam"
Set the material domain to surface, the blending mode to translucent, and the shading model to unlit.
The material nodes are as follows:
2. Create a new particle system and name it "P_Beam"
Open "P_Beam" and create a new beam data in the emitter
Change the material in the required module to the material "Mat_Beam" created in the previous step
In the "Beam Data" module, set the beam method to "Target", which means we need to provide the source and target
Therefore, it is necessary to add two modules, "Beam -> Source" and "Beam -> Target" in the transmitter.
Set the source coordinates in the "Source" module to (-200, 0, 0)
Set the target coordinates in the "Target Module" to (200, 0, 0)
In the "Beam Data" module, set the speed to 0, which represents the instantaneous beam
At this time, you can see a beam from (-200, 0, 0) to (200, 0, 0)
In the generation module we can change the number of particles generated to 1
To make the beam thinner, we can change the initial size to 3
Remove the "in-life color" module in the emitter and add an "initial color" module
We can set an initial color for the beam
Next we want to be able to bend this beam, so we need to set some key points between this straight line
Click the "Beam Data" module and set the number of "Interpolation Points" to 5
Set the source tangent method to "User Set" in the "Source" module
Set the rotation direction of the source tangent to (0, 0, 10)
In the "Target" module, we also set the target tangent method to the user set
Set the target tangent direction to (0, 0, -10)
At this time, the shape of the beam particles is as follows
In the Beam Data module, set Slices to 5
Number of interpolation points increased to 20
In the Source module, increase the source tangent direction to (0, 0, 40)
In the "Target" module, increase the target tangent direction to (0, 0, -40) as well
Next I hope to make this particle achieve a lightning-like effect
Add the "Beam->Noise" module to the emitter
In the "Noise" module, check "Low Frequency Enabled" and set the frequency value to 10
Set the noise range as follows:
At this point you can see an effect similar to current
You can increase the noise range
It can be seen that the amplitude of the beam jitter is larger:
If you feel the beam is too thin, you can increase the initial size
In order to increase the number of beams, we can increase the maximum number of beams in the "Beam Data" module, and then increase the number of particle spawns in the "Generation" module
The effect at this time is as follows: