Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Zodiarc · Feb 22, 2016 at 07:06 PM · shaderrenderinguv mappinguvanimation

How to achieve this effect in an easy way?

Hi

I always wondered if there is an easier way to achieve this effect (the green light stripes):

http://imgur.com/m7c9ytS

My current approach is to align the UVs and make the texture scroll (as you can see it´s messed up right now). This takes a lot of time. Is there an easier way to do this? Through a shader or something (I have zero experience in shader writing)?

It´s from an UE4 experiment of mine. Don´t stone me to death for this :D

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 PrincipleDev · Feb 22, 2016 at 07:14 PM 0
Share

Its probably not the response your looking for, but when I saw that, my first thought was animation.

2 Replies

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

Answer by phil_me_up · Feb 23, 2016 at 12:31 AM

Shaders are absolutely the way to do this. Whilst I can't tell you off the top of my head what the best approach is, you'll probably want to look at having a scrolling gradient which you then tint. The speed of the scroll can be controlled through an exposed property, as can the colour tinting etc.

If you're not familiar with writing shaders, then looking at something like Shaderforge would be a good start. It's fairly similar to UE4 with respect to building shaders.

Comment
Add comment · Show 1 · 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 Zodiarc · Feb 23, 2016 at 07:46 AM 0
Share

Shader Forge is quite expensive. I'll see if I can do this within UE4 first.

avatar image
0

Answer by tanoshimi · Feb 23, 2016 at 06:52 AM

If you're shading in world space coordinates you don't need to worry about lining up the UVs, but if you want them in object coordinates then the way I've always done it is the same as you describe you're already doing.

Comment
Add comment · Show 1 · 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 Zodiarc · Feb 23, 2016 at 12:07 PM 0
Share

Bu is there a way to align them by code? It's really annoying to do this by hand.

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

54 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

Related Questions

Fake Volumetrics via custom bloom 0 Answers

Using Color.Lerp with Lightweight Render Pipeline 1 Answer

Layer Dependent Reflections 1 Answer

how to do a simple multi-pass rendering? 0 Answers

Forward Rendering for Terrain, overriding the shader? 0 Answers


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