View Full Version : texture registering
03-29-2002, 06:46 PM
until now i've always used gluBuild2DMipmaps() for texture registration, however when i try to register a texture object using glTexImage2D, the texture image somehow gets lost, at least i am not getting any texture when binding this texture object, although it does reserve an ID!=0
03-29-2002, 07:10 PM
Are you filling up all mipmap levels correctly?
03-29-2002, 07:21 PM
of course not. i don't want to use mipmaps for this texture since it's just for a skybox and therefore always directly in my face http://www.opengl.org/discussion_boards/ubb/smile.gif
do i need to set some glTexParameters for this to work?
04-07-2002, 03:56 AM
GL_TEXTURE_MIN_FILTER must be GL_LINEAR or GL_NEAREST.
do u use glGenTextures(...)?
04-08-2002, 06:26 AM
Does your texture have dimensions that are a power of 2? gluBuild2DMipMaps will resize textures to be a power of 2 for you. glTexImage2D will not. And in order to work, your textures must have dimensions that are a power of 2.
Question: I know that the textures must be powers of 2, but I discover that I can't use power greater than 8. The red book says the max power depends on opengl implementation...
2. Why is that?
3. Can I increase it?
4. How do I increase it?
It's up to whoever is writing your implementation (the driver for your graphics card in most cases today) to choose how large textures you can use. And no, you can't change the maximum size.
Use glGetInteger with GL_MAX_TEXTURE_SIZE to ask your implementation how large textures it can use.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.