Jump to content
  • Advertisement

Recommended Posts

Posted (edited)

Games often highlight collectibles with halos or in the case of Wolfenstein with a cycling white stripe.  Its hard to see here with a still image but picture the white stripe moving across the object texture. I assume its done in the collectible's shader code and perhaps its much more simple than I thought but am I on the right track here?

(images from "Wolfenstein New Colossus")

collectible_highlight2.PNG.0fcabb1fde26bc8a31c4ae4f41e3f7c1.PNGcollectible_highlight.PNG.a52fec10dc85204b5ac41ed6aeb7f036.PNG

Edited by GameEngineer_gi

Share this post


Link to post
Share on other sites
Advertisement

Yes, this is done in a shader.  This can be one in any number of ways, but I've done something similar by testing the fragment's world position against a value and calculating a color to mix in the with sampled texture.  All you need to do at that point is to sweep the position you're comparing to over the object over a number of frames.

To know how exactly it's done in any particular game or how it could be done in your game, more information would need to be known.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!