Re: Intensity Interpolation
- From: Peter Krueger <pkrueger appss de>
- To: Matthew A Tobiasz <matobias ucalgary ca>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Intensity Interpolation
- Date: Sun, 7 Mar 2004 10:37:46 +0100 (MET)
On Sun, 7 Mar 2004, Matthew A Tobiasz wrote:
I was wondering if anyone knew here I could get some information about
intensity interpolation eg. Gouraud shading. I'm trying to make a colour
scale in a GtkDrawingArea: I have two GdkColours, and I'm trying to figure
out some reasonable way to interpolate the colour that are between these two.
Traditionally I've done this in a linear fashion, however I've been reading
about Gouraud shading
see: http://www.fastgraph.com/help/gouraud_shading.html for a picture
but I can't seem to find how to do it (or for that matter how it really works)
in a colour scale applications.
Hello Matthew,
since you only have two colors, linear color scaling will work fine.
Shadings like Gouraud and Phong come from 3D-computer graphics. The
Gouraud shading you mention takes a polygon and interpolates the given
colors of its vertices over the face. This is also done by combining
linear color interpolations.
Since you only have two colors, a Gouraud shaded face would look exactly
like the much simpler linear color interpolation face.
Regards,
Peter
--
====================================================================
Peter Krüger
applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany
Phone: +49-(0)391-54486-19388
Fax: +49-(0)391-54486-19222
email: krueger appss de
URL: http://www.appss.de
Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Mageburg
"Virtual business becomes reality!"
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]