Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[RELEASED] SmoothTrails trail rendering system

Discussion in 'Assets and Asset Store' started by jhughes2112, Mar 7, 2019.

  1. jhughes2112

    jhughes2112

    Joined:
    Nov 20, 2014
    Posts:
    126
    Hey game developers!

    I'm super excited to raise awareness for my brand new asset on its way to the Asset Store very soon now!! It's called SmoothTrails, and it does what it says. It's a better version of the built-in Unity TrailRenderer. You might ask, why not just use TrailRenderer or one of the several other trail generators?

    Here's why you might like SmoothTrails:
    1. You have TrailRenderers already, but the trails look bad when objects rotate too fast, or frame rate drops.
    2. You have someone else's trails package but they render slowly.
    3. You want more control over the quality-vs-performance, perhaps dynamically.
    4. You want to customize TrailRenderer, but don't have source code.
    Features:
    • SmoothTrails comes with full source code.
    • SmoothTrails is a custom reimplementation of the Unity TrailRenderer component, and relies on LineRenderer, so the setup is what you're already comfortable with.
    • You can tell SmoothTrails how many cubic Bezier spline points to add between segment samples, and it does so smoooooothly. (It's a harder problem to solve than you might expect.)
    • SmoothTrails has 3 levels of quality that adjust performance/quality tradeoff.

    Here's a sample of what a TrailRenderer and SmoothTrails object look like side-by-side... I accidentally recorded this one in LOW QUALITY. At high quality, it's perfectly curved. I'll re-record when I get a chance.



    I can't wait to hear your feedback and see how I can help make your games better!

    Best regards,
    JH
     
  2. jhughes2112

    jhughes2112

    Joined:
    Nov 20, 2014
    Posts:
    126
    Good morning devs!

    I just pushed v1.1 of SmoothTrails today! Primarily this is just a cleanup release, but I added a nice PDF for documentation to explain a little how to test it out, and how to integrate it into your projects. There's some better explanation of what the knobs and dials do, as well as a few details on getting support and about us. In the rush to get SmoothTrails to the finish line several months ago, we didn't really take that as far as we wanted to... so now we did! :)

    If there's any features or improvements you'd like to see with this asset, drop us a line. We're happy to chat about it.

    Thanks!
     
  3. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    2,947
    Does this support texture mapped trails?
    I like to use it for tire tracks if thats possible?
     

    Attached Files:

  4. jhughes2112

    jhughes2112

    Joined:
    Nov 20, 2014
    Posts:
    126
    It should work fine. If you can get a trailrenderer or linerenderer to use the material and look good, smooth trails will too, because it uses a linerenderer as the underlying rendering mechanism. It just rearranges the points to be smoother.

    Hope that helps!
     
    Lars-Steenhoff likes this.
unityunity