Hello,
I am trying to translate the checker.c example from the textures chapter:
http://www.sgi.com/products/software/opengl/examples/redbook/source/ checker.c
Unfortunately, the code http://paste.lisp.org/display/55290 does not work for some reason. Any ideas?
Thanks!
On Sat, 02 Feb 2008 22:54:13 +0000, Sohail Somani wrote:
Hello,
I am trying to translate the checker.c example from the textures chapter:
http://www.sgi.com/products/software/opengl/examples/redbook/source/ checker.c
Unfortunately, the code http://paste.lisp.org/display/55290 does not work for some reason. Any ideas?
Thanks!
Specifically, there is no checker board pattern!
On Sat, 2 Feb 2008 23:10:16 +0000 (UTC) Sohail Somani sohail@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
cl-opengl-devel@common-lisp.net