Continuing Work on Signal Line

Continued working on signal line today.

Noticed this problem earlier, where you could see some artifacts at the edges separating the different planes:

square line detail

I couldn’t figure out how to fix it, and was pretty much ready to give up, since it seemed like a fairly minor issue. It was only noticeable if you looked very closely.

However, then @Jeddychan suggested changing the texture’s wrap mode to clamp to see if it would be fixed.

jeddychan

Incredibly, it worked! Thanks @Jeddychan!

square line detail fixed

Anyway, the rest of the day was spent getting the timing of light travel right, and being able to connect different lines together.

Now I’ve got it so that the light can travel consistently across all objects in a group, in lines of any length, and with any number of corners:

traveling-light-line

Pretty cool! I actually wanted to do this effect about a year ago after seeing it in Quantum Conundrum, but had no idea where to start. Neat that now I finally understand shaders enough to do what I want with them.

 

  • Facebook
  • Twitter
  • Tumblr
  • LinkedIn
  • del.icio.us
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • RSS

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>