Sunday, 2 September 2012

More and more HUD-scanning and some graphics elements

Example of some graphics element that may be used, I made it in Flash:


 Here is a simple scan effect. Basically, I modeled out the whole scene and rendered out a depth path.
The value of z is used in a expression to assign values to each pixels.

Here is the detail of the expression:

variables: 
head(user variable, used for feathering of the head), 
depth(user variable, use to control the scan depth), 
tail(user variable, used for feathering of the tail), 
r(red channel RGBA)

expression: r<=depth? lerp(0,1,(r-depth+tail)/tail):lerp(0,1,(depth+head-r)/head)



No comments:

Post a Comment