[visionegg] Re: Texture artifacts
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx, Gabriel Nevarez <nevarezg@xxxxxxxx>
- Date: Mon, 13 Jun 2005 09:53:33 -0700
Dear Gabriel,
The most likely cause is how OpenGL stretches texel data to fill a
textured patch. This seems to vary slightly from card to card, and
testing these differences and trying to make the Vision Egg perform
acceptably on all cards is why test/conform.py exists. I suggest
trying various texture_wrap_s & texture_wrap_t settings in subclasses
of TextureStimulusBaseClass. Also, you may try to give texel data that
is exactly a power of 2 in each dimension (e.g. 512x512). I hope this
helps.
Cheers!
Andrew
On Jun 13, 2005, at 9:26 AM, Gabriel Nevarez wrote:
Hello all,
This is very likely a simple fix:
When loading textures and superimposing them atop other stimuli, I
often get
visual artifacts around the edges of the texture, likely due to OpenGL
texture manipulations. I have included a jpeg image of a screen
capture
with one such texture artifact (in this case, the top and right edges
are
shown as grey bars, where the texture meets the background).
I have tried different internal_format settings to no avail. I have
seen
this problem before in previous studies and found that I had to
actually
draw my stimuli using the Python Imaging Library.
Anybody know a workaround for this?
Cheers,
-=Gabriel Nevarez
Research Programmer
Psychology Department
Cardiff University
http://www.cf.ac.uk/psych
<artifacts.JPG>
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Texture artifacts
- From: Gabriel Nevarez
Other related posts:
- » [visionegg] Texture artifacts
- » [visionegg] Re: Texture artifacts
- » [visionegg] Re: Texture artifacts
- » [visionegg] Re: Texture artifacts
Hello all,
This is very likely a simple fix:
When loading textures and superimposing them atop other stimuli, I often get
visual artifacts around the edges of the texture, likely due to OpenGL
texture manipulations. I have included a jpeg image of a screen capture
with one such texture artifact (in this case, the top and right edges are
shown as grey bars, where the texture meets the background).
I have tried different internal_format settings to no avail. I have seen
this problem before in previous studies and found that I had to actually
draw my stimuli using the Python Imaging Library.
Anybody know a workaround for this?
Cheers,
-=Gabriel Nevarez Research Programmer Psychology Department Cardiff University http://www.cf.ac.uk/psych
<artifacts.JPG>
- [visionegg] Texture artifacts
- From: Gabriel Nevarez