Archive 17/01/2023.

Ribbon Trail

ucupumar

I’ve been implemented ribbon trail on Urho3D and made a pull request.
My implementation consists of two types of trail, face camera and bone type. Face camera trail is always facing camera just like billboard. Bone trail will emit trail between child and it’s parent, it’s pretty useful for sword slashing effect. Also, I’ve been adding column option too to minimize artifacts.

Face camera trail:

Bone trail:

rasteron

Looks nice ucupumar! :slight_smile:

namic

Thank you!

Lumak

Thank you for this. I had plans to code this and now I just can use yours.

1vanK

Hm, at first sight it seems, that it can be used for docs.unity3d.com/Manual/class-LineRenderer.html with small modifications

ucupumar

Thanks for all the nice replies!

If I understand it correctly, you can use ribbon trail as line renderer if you set the tail lifetime to infinity. But I don’t think I have implement infinity lifetime yet. Maybe I’ll add that tomorrow.

I actually plan to add batch support like Ogre ribbon trail. For now, each trail is rendered in individual draw call, so if you render trail a lot, you’ll get some a performance hit.

ucupumar

Sorry to inform you, I just realized RibbonTrail not supposed to emit infinite tail, so it’s better to implement real Line renderer to do that specific things. If you really need that feature now, feel free to modify my code and start to create own LineRenderer class. :unamused: