• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ian-tw · Aug 27, 2019 at 09:59 PM · particleseffectstrailrenderertrailtrail renderer

How to get Zerg Tentacle-like effect (see example in post)?

Hello there! I've been researching ways to get ribbon like effects working in Unity, and so far the best I've found is using a trail module on a particle emitter set to ribbon with invisible particles so all you see is the ribbon.

I still haven't quite gotten what I was hoping for, which is something along the lines of the tentacles a lot of zerg units have in Starcraft 2. Here's an example (flying guy on the right, forgive the random video!)

Does anyone more experienced know how they would go about creating something like this in Unity? The thing I love about the tentacles is how they stay super smooth without a lot of jagged steps I get from the ribbon module. It also seems to maintain a consistent overall size and shape. To be clear, I don't even know for sure this is done with a particle emitter in Starcraft, but that's all I can think of when I see it.

Any help would be much appreciated. :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by JonPQ · Aug 28, 2019 at 06:57 PM

yep, you build a straight tentacle on the texture. slap it into a mesh. then use either a vertex shader or pixel shader to apply a sin wave through the mesh/pixels.

vertex shader will be more performant, but require more polygons in the mesh. (it would wobble the vertices) pixel shader will be less performant renderer, but only need one quad per tentacle, but with some wasted overdraw (space either side of the tentacle on the texture, to allow for moving the UV's back and forth)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ian-tw · Aug 28, 2019 at 11:51 PM 0
Share

That's awesome, thanks so much. Which of those methods would be preferred for mobile use? There will only be two of these "tentacles" on screen at the same time.

avatar image JonPQ ian-tw · Aug 29, 2019 at 01:09 AM 0
Share

Welcome. I'd typically use vertex shaders, wherever I can on mobile in preference to pixel shaders. They are really fun and powerful once you get the hang of them. There might be something you can use in this thread.... or close to it... https://forum.unity.com/threads/help-with-a-basic-shader-to-modify-geometry-with-a-sine-wave.85072/

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

115 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make this trail? 1 Answer

How to Change Trail Render Position in 3D? 1 Answer

Trail Renderer 1 Answer

Trail renderer looks weird when there is a change of direction 1 Answer

Trails in just one direction 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges