Kevin Vance - So, my new thing has been procedural textures using the pixel…

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

04:07 pm

Monday, December 12th, 2005
Previous Entry Share Next Entry
Procedural textures screenshot So, my new thing has been procedural textures using the pixel shader. These are pretty cool, since you're not using any texture memory and more importantly, they are accurate to the pixel. Without having to use 1024x1024 textures, that is.

My first one is a simple gradient. Boring. The next three are checkerboards. The first is plain black and white, which has very obvious aliasing when it's tilted. (This is blurred in the video somewhat) So the next one, I made a smoothed checkerboard, which looks okay tilted but very blurry straight on. So finally, I made an autosmoothed one which applies more smoothing depending on how big the angle between it and the camera is.

A real mathematician could probably think of more interesting formulas to apply as 2D textures :P

And like I said, I can record straight from the framebuffer now, so please enjoy this next video in 720P!

ProceduralShaders720P.avi (xvid) - 7.0MB

Like before, the shaders are all GLSL and my test program is in Python. When I get a few more done, I'll start putting these in an archive on kvance.com. And if I ever feel like I really understand this stuff, I'll probably write a Python+GLSL shaders tutorial since there don't seem to be any now.
Link )Reply )

Comments
[User Picture]From: kvance
2005-12-13 05:34 am (UTC)
Wow, that's awesome man. I wish we did shaders in CMSC427 D:
(Reply) (Parent) (Thread)
From: (Anonymous)
2006-02-21 09:56 pm (UTC)

Any information on this?

I was trying to use glsl with pyopengl and was wondering if you could give me some pointers. mail lives at dawgmatix at that gmail service that google runs.
(Reply) (Thread)