Hi! I trying to do something like ribbon.js, But I want it to look like a texture in my project(lights):
https://playcanvas.com/editor/scene/908992
What can I do?
Hi! I trying to do something like ribbon.js, But I want it to look like a texture in my project(lights):
https://playcanvas.com/editor/scene/908992
What can I do?
Hi @pekarnik,
What do you mean texture?
Right now the trail effect uses the lights (4).png texture from what I see.
I mean i want to see 4 lines, that folow for model, like a picture on texture. Right now it’s looked weird:(
Hmm, you will have to calculate the right UV coordinates as the vertices “flow” behind the mesh to properly map that texture.
An alternative would be to put a properly rotate plane following your player and scale it up/down as he moves.
Hm, I will think about it, thank you
Maybe you can use a spotlight with cookie or use the particle system to create the same effect:
https://developer.playcanvas.com/en/user-manual/packs/components/particlesystem/