Skip to main content
Notice removed Reward existing answer by Anko
Bounty Ended with Yousef Amar's answer chosen by Anko
Notice added Reward existing answer by Anko
Bounty Started worth 50 reputation by Anko
Tweeted twitter.com/StackGameDev/status/667556669275160576
Clarified title. Embedded and described video link. Replaced screenshot with a more illustrative one. Language clarifications. Tags.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

Overwatch's Shield effect. How to detect touched surfaces fromdo I write a model to worldshader that lights up when objects are near a surface?

In https://www.youtube.com/watch?v=t-fcjEApNzQ#t=02m08sthis Overwatch gameplay video

enter image description here, the character's shield lights up white in areas that are near other objects' geometry.

There are many different shapes of "shields" in this game-overwatch.Reinhart's shield clipping some level geometry

I want to know how to highlightNote the white edges of "touched spots" on the blue shield, near the floor, walls and pillar.

I believe the shield has its own model. And and the effect is done throughwith a shader.

However I am, but I'm lost trying to figure out a wayhow to translate the concept of "touched""nearness" to shader programming.

Overwatch's Shield effect. How to detect touched surfaces from a model to world

https://www.youtube.com/watch?v=t-fcjEApNzQ#t=02m08s

enter image description here

There are many different shapes of "shields" in this game-overwatch.

I want to know how to highlight edges of "touched spots" on the shield.

I believe the shield has its own model. And the effect is done through shader.

However I am lost to figure out a way to translate the concept of "touched" to shader programming.

How do I write a shader that lights up when objects are near a surface?

In this Overwatch gameplay video, the character's shield lights up white in areas that are near other objects' geometry.

Reinhart's shield clipping some level geometry

Note the white edges on the blue shield, near the floor, walls and pillar.

I believe the shield has its own model and the effect is done with a shader, but I'm lost trying to figure how to translate the concept of "nearness" to shader programming.

edited title
Link
Blue Bug
  • 1.1k
  • 12
  • 27

Overwatch's Shield effect. How to detect touched surfaces from a model to world

Source Link
Blue Bug
  • 1.1k
  • 12
  • 27

Overwatch's Shield effect. How to detect touched surfaces from a model

https://www.youtube.com/watch?v=t-fcjEApNzQ#t=02m08s

enter image description here

There are many different shapes of "shields" in this game-overwatch.

I want to know how to highlight edges of "touched spots" on the shield.

I believe the shield has its own model. And the effect is done through shader.

However I am lost to figure out a way to translate the concept of "touched" to shader programming.