[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Shader Demo
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: [pygame] Shader Demo
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Sun, 30 Nov 2008 02:45:33 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 30 Nov 2008 05:45:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=y6QUTN7g1DaKIYD01AWG6xVm9EnVUpr9CBRLVX4ETlc=; b=AZLx0PfR6BEhAW4aFNkDDNsktlqqkvQCn9gtGSWRrmegrNP1ZMYdOeQrw2DniyiLtL CMgZ+WXRwLYSayjBsTeAixEDn/zjRUqByfcYHOgWjwd19kiOnZiHHBkF/CF71jzMAN7+ zPejdXXU4oq1Mc4teMo1zQXAoPOthanPRiyEQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=bZVvVJOpJW5WuKX2hjmrvAn41jOjFrWkld/TT7eK0m47vuQR6zlqdDaqdWagRNWI6Y fLqWLso20QGG9Hae+br0+m1xvMXCGFjekKHEDsIGqM2A7jjXxaVZ6L/6DwWcYBSNZ9ZL ShkN+3immcvSPvL/phuIia11CZdNAUyWg8zfU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello everyone,
I've been working on and off on shader code. There's still a lot to do, but I want to release a little demo of what I have so far with respect to vertex shaders. This is just a little demo, sort of a "first draft"; nothing big enough to put on the site itself, but still pretty interesting, and, dare I say, funny:
http://www.geometrian.com/Ian's Shader Demo.zip
It's self-running; just double-click on Demo.py, and it will play itself with commentary.
Note that your computer may not like some bits of code:
-I've heard problems with glutInit(). Apparently, some people need the line, others can't have it. (edit it on glLib/glLibLocals.py/line 4)
-Of course, your computer may not be able to run the demo at all due to hardware/software issues. This program was created and tested with Python 2.5.1, pygame 1.8, and PyOpenGL 3.0.0b*.
-If it's not one of these problems, contact me personally and I'll see what I can do :)
A fragment shader demo might happen sooner or later...
Ian