Hey there, so I am finding it impossible to figure out how to get my Niagara systems to actually follow my landscape terrain. I have a few abilities that shoot a ground projectile forward in front of them but it just goes through the landscape terrain. I need it to follow up and down hills. Same with any physical meshes like stairs etc. But there is nothing online that explains it like a 5 year old for me to apply to my VFX. I can share my niagara systems if needed to see if anyone can pinpoint the problem.
Hello Venlym1,
Iād check out the Content Examples project. In the Niagara_Particles map Demo Display 2.6 shows an example of collisions. (Plus all the Niagara systems in that level are well commented)
Welcome to the forums.
I already have a set of effects that work the way I need.
But im trying to basically use this to figure out how I can apply it to my own effects with 0 progress thus far.
Ah, I see where the creator of the pack mentioned needing distance fields enabled. From your response it wasnāt clear if you enabled distance fields or not. Youāll find this setting in Project Settings ā āGenerate Mesh Distance Fieldsā
Another approach may be to start with these effects and modify them to fit your needs. (As opposed to adding their functionality to your FX)
Right, and ive tried to do that, but I might literally end up needing to gut their systems and copy-pasting in my own stuff, but the problem is im not entirely sure whats making them work in HIS stuff either. But ye, I have all that enabled, his effects work flawlessly. Im just not sure why.
Wait, actually. they DONT seem to work in my project nowā¦
Ye so turns out even the effects that are made for doing what i need dont work and I havent a clue why.
I see that the marketplace assets is listed as a āComplete Projectā instead of an āAsset Packā.
This means that there may be some project-specific settings that must be enabled for these assets to work.
The next step forward would be to find/create repro steps and let the marketplace creator know your findings.
Example:
Create Ice Skill VFX project with 5.0
Enable Distance Fields in project settings
Create a level with a landscape
Place FX in level
Result: FX does not work
Hopefully the creator could advise/patch from there.
If you put the system in a blueprint, you can tell the blueprint how to fly without hitting the terrain, and the N system will just go with it.
Oh? and how do you tell it to float across the ground in such a way?
You have to code it.
To avoid me just guessing, in what way would you like them to move across the terrain?
I really just need my abilities to stay on top of landscape and meshes (things my character would typically walk on.). Whatever the best way to do that is, im not sure. I assumed it was within the Emitter itself.
So itās like a projectile, but it musnāt go through things?
You can turn on collision in Niagara, maybe thatās enough for you? It will be heavy on performance if you have many systems flying around.
Or you need to write a projectile BP that holds the system, and avoids hitting objects. Iād try the collision first, itās the most direct
so if you look at my previous comments, I linked a similar ability set to what im wanting done his works in his videos and thats what im trying to recreate. Specifically the following the landscape portion. I have my own effects already built.
btw, I appreciate your time in helping work this out with me.
Sorry for the delay. I understand what you mean now.
I had the idea of a projectile flying across the terrain and going up and down the hills. But you just mean, make an effect on the ground right in front of the player. So this is just placing particles on the X axis.
So that ice pack, the meshes ( particles ) are just spawned a row or circle on the ground. What part are you having a problem with? Keeping them on the ground?
If i cast an effect in front of my character, and there is a hill in front of me, i need the abilities to go up the hill for the length of the effect, but besides that, im actually have a larger issue where im not able to generate landscape mesh collision fields.
I think all the effects youāre wondering about ( Iām visualizing ice attacks etc ), just go out in a line from the player. Thereās no landscape monitoring.
Although, Iām assuming you could do that sort of thing.
So after a little bit more knowledge into the actual issue here. Ive discovered that the landscape is in fact, not generate a distance field for my niagara particles to interact with. Im not sure why but even in a new project ive never gotten my landscape to generate a distance field like all my other static meshes in the scene. Ive STILL not figured out how to make the landscape create its own distance field.