[visionegg] Re: moving plaids
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Mon, 18 Dec 2006 07:17:26 -0800
Dear Bjoern,
(Sorry it's taken so long to respond to your email.)
Just about anything is possible - the plaids are drawn by combining
individual gratings using OpenGL blending and various texture modes. Not
having using plaids myself, I chose one possible mathematical rule for
combining the gratings, but as you point out, there are more.
Unfortunately, I'm too busy to implement more in a reasonable time
frame, but you're of course welcome to jump in. I would suggest making a
copy of the "Gratings.py" module and playing around until you've got
something you like. The lines that will be most potentially interesting
are those that affect the blending mode and texture environment (near
line 377). It will probably be useful to read the OpenGL specification
to get a clear mathematical understanding of what all these blending and
texture environment modes do from a mathematical perspective. These are
available from http://opengl.org/documentation/specs/ (the document for
any OpenGL version should do).
Cheers!
Andrew
Bjoern Kampa wrote:
> Hi,
>
> I am trying to stimulate with a moving plaid. The demo example does
> that, however only by overlaying to sine wave gratings. Is there a
> possibility to stimulate with a homogeneous plaid, i.e. where the
> crossing points don't appear darker than the individual gratings?
>
> cheers,
> Bjoern
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Other related posts: