Kevin Vance - I just wrote my first pixel shader! It takes an HSV color as input…

Entries | Archive | Friends | Friends' Friends | User Info

09:25 pm

Thursday, December 8th, 2005
Previous Entry Share Next Entry
I just wrote my first pixel shader! It takes an HSV color as input and shades every fragment that color. Not particularly exciting, but what's neat is that the HSV to RGB conversion runs on the graphics hardware, not on the CPU. Anyway, a quick shakycam video if you're interested:

Teapot filmstrip
HSVShader.avi (xvid) - 948KB

The shader is written in GLSL, and the test program is written in Python with pyopengl and glewpy (which has the best name of anything ever).

Current Mood proud
Link )Reply )

[User Picture]From: kartos
2005-12-09 02:55 am (UTC)
ow ow ow! mien eyes! its like color theory all over again >_
(Reply) (Thread)
[User Picture]From: kvance
2005-12-09 03:04 am (UTC)
Haha, how so? The demo just goes around the color wheel once every 5 seconds.
(Reply) (Parent) (Thread)
[User Picture]From: kartos
2005-12-09 03:06 am (UTC)
FUCKING BRIGHT, that's why.
(Reply) (Parent) (Thread)
[User Picture]From: endril
2005-12-09 03:38 am (UTC)
That is an awesome icon, particularly since I know what it's from
(Reply) (Parent) (Thread)
[User Picture]From: kartos
2005-12-09 07:30 am (UTC)
lol yes!

(Reply) (Parent) (Thread)