Welcome to
Planetside Software Forums
.
Log in
Sign up
Search Forums
Search
Home
Search
Planetside Software Forums
►
General
►
File Sharing
►
Shaders, Materials
►
Smooth Gradient
Smooth Gradient
Started by mogn, December 16, 2007, 03:09:04 AM
Previous topic
-
Next topic
Print
Go Down
Pages
1
User actions
mogn
Member+
Posts: 443
Location: Denmark
Logged
Smooth Gradient
December 16, 2007, 03:09:04 AM
I have build a 6 colour smooth gradient.
The 6 colours are used as control points in an equal distributed bezier curve
with the formular:
CFinal = C1*(1-t)^5+5*C2*t*(1-t)^4+10*C3*t^2*(1-t)^3+10*C4*t^3*(1-t)^2+5*C5*t^4*(1-t)+C6*t^5
where t is the controlling variable beteen 0 and 1.
A bezier curve takes on the first colour for t= 0 and the last colour for t=1 and a strong smothing between.
http://img69.imageshack.us/img69/6990/7274xj6.jpg
bigben
1k+ Member
Posts: 2,129
The Long Stranger rides again
Location: Melbourne - Australia
Logged
Re: Smooth Gradient
#1
December 16, 2007, 06:50:47 AM
Thanks for this.
I rearranged the clip file from the TGD to include the altitude processing as this would probably be a common usage, although it could obviously be used for other visualisations as well.
mogn
Member+
Posts: 443
Location: Denmark
Logged
Re: Smooth Gradient
#2
December 16, 2007, 11:56:21 AM
Thanks BigBen
Print
Go Up
Pages
1
User actions
Planetside Software Forums
►
General
►
File Sharing
►
Shaders, Materials
►
Smooth Gradient
User actions
Print