Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by mrsamurai · Apr 23, 2014 at 06:01 PM · shaderseffectenergy

How do I create an 'energy flowing through a circuit board' effect?

I'd like to make an effect similar to the clip of the circuit board seen here. I've thought about a couple different ways to create this effect, but none of them seem 'right'.

  1. Let a shader do all the work. I haphazardly ported parts of that shader over to HLSL, and it makes for some cool abstract fractal visualizations, but it's super fiddly and doesn't really give me exactly what I'm looking for

  2. Use a modified self-illum shader. I tried this and was able to get something that will flash the glow map and fade out. It's almost there, but not quite what I'm looking for.

  3. Use a material and pan UVs to give the appearance of motion. This would work OK for just straight lines, but not for traces that bend around a lot (unless I'm missing something completely obvious).

  4. Use particle systems and set their motion programmatically. Lots of work, difficult to get exactly the correct paths.

This might just be something that is difficult to implement quickly in Unity, but I want to make sure that I'm not missing anything big or obvious.

Comment
Add comment · Show 1
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 robertbu · Apr 23, 2014 at 07:49 PM 0
Share

Not sure how much of what you see in that video you need. You could create the effect of circuits lighting up in the direction of a flow with a mask and an alpha-cutoff shader.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Kiloblargh · Apr 24, 2014 at 03:29 AM

An old school (as in mid-90s, 16-bit stuff) effect is palette cycling. Where you have 256 colors and each one moves its index one over each frame and wraps. Another thing they used to do is magic colors for palette swapping- like Warcraft II team colors, everything that was those colors of red on the sprites would be remapped to matching shades of another color.

I don't know how exactly to make that happen in a shader, but that would be the approach I would take. Have a Color32[] as big as you need of different shades of some garish full-saturated color, and another of the colors you want mapped to them, and then create the sprites with gradients of just those specific colors where the animated circuit traces will be and cycle the palette over time.

Comment
Add comment · 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

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.

Follow this Question

Answers Answers and Comments

22 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

Related Questions

Shader Material in Game view 0 Answers

Projecting stained glass window onto other surfaces. 2 Answers

Smooth text disappear after erased like in old monitors. 1 Answer

On screen effect with limited components. 0 Answers

How to create energy waves colliding and moving on objects? 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