LWJGL
May 22, 2013, 15:54:39 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: "Invalid Value (1281)" error with glTexImage3D on  (Read 3264 times)
indiana
Newbie
*
Posts: 37



« on: June 17, 2004, 01:44:34 »

Hi,

I have a strange error 1281 when running some code on a GeForce2MX, code thats works fine on a GeForce4 e.g.

the section the error is thrown in is

Code:
GL12.glTexImage3D(GL12.GL_TEXTURE_3D, 0, GL11.GL_RGBA, 256, 256, 8, 0, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, textureBuffer);


textureBuffer is a direct byte buffer of the correct size containing the texture data. the texture ID is bound etc... everything seems to be ok...

as mentioned, the code works fine on other machines. i use newest drivers on the GeForce2MX machine, and all other lwjgl code also works. i simply cant get 3d textures to work it seems .....   :cry:

any ideas on this ?
Logged
cfmdobbie
Prolific Timewaster
****
Posts: 366



« Reply #1 on: June 17, 2004, 10:07:01 »

I think you'll find that the GeForce 2MX can't handle 3D textures over 64x64x64 in size.  Try querying MAX_3D_TEXTURE_SIZE and see what it gives you.
Logged

ellomynameis Charlie Dobbie.
indiana
Newbie
*
Posts: 37



« Reply #2 on: June 17, 2004, 10:23:10 »

There is a MAX_3D_TEXTURE_SIZE ?!

Damn i thought MAX_TEXTURE_SIZE is sufficient to query for 3d textures ...

Thanks for the proposal, I'll try it !
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!