[cl-opengl-devel] Re: Translating checker.c
Mikael Lax
mikael.lax at bredband.net
Mon Feb 4 11:21:01 UTC 2008
On Sat, 2 Feb 2008 23:10:16 +0000 (UTC)
Sohail Somani <sohail at taggedtype.net> wrote:
>
> Specifically, there is no checker board pattern!
>
> --
> Sohail Somani
> http://uint32t.blogspot.com
>
Hello, the error is that you do not specify a minification filter for the texture. The default value for the min-filter is :nearest-mipmap-linear which is a mipmapped format but you don't specify any mipmaps so texturing will be disabled.
Once the texture is shown you will also see that you're texture coordinates are wrong.
They should be like this for both quads:
(gl:tex-coord 0 0)
(gl:tex-coord 0 1)
(gl:tex-coord 1 1)
(gl:tex-coord 1 0)
Sincerely,
Mikael Lax
More information about the cl-opengl-devel
mailing list