From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-27T07:02:26+09:00 Subject: Re: OpenGL and large texture bitmaps On Tue, 27 May 2003 06:12:21 +0900, Joel VanderWerf wrote: > > I'm trying to use a large (1024x1024) bitmap as a texture. I started > with the texbind.rb example in the ruby opengl package. > > The problem is that this code gives me a GL_INVALID_VALUE error for any > bitmap larger than 256x256. I've tried using both RGB and RGBA formats, > with appropriate modifications to the GL calls. > > This is probably not a problem with the ruby opengl package, but with my > understanding of opengl, so it may be off topic. But if anyone here > wants to take a look, the two files are at: > > http://PATH.Berkeley.EDU/~vjoel/ruby/texture-bug/ > > The first few lines of bug.rb explains how to generate the problem (in > the 1024x1024 and 512x512 cases) and how to avoid the problem (by > cutting the image down to 256x256). Thanks for any help! I think I saw this on 'comp.graphics.api.opengl' yesterday. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&threadm=bajfug%24eoic%241%40ID-44132.news.dfncis.de&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26safe%3Doff%26q%3Dopengl%2Btexture%2Bsize%2Bmax%2Bbindtexture -- Simon Strandgaard