• 13
• 15
• 19
• 27
• 9

# gluBuild3DMipmaps where?

This topic is 4140 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

What is the correct wglGetProc for gluBuild3DMipmaps? What files do I need to use it? I know its glu1.3 but as usual windows only has 1.2. Thanks

##### Share on other sites
Hmm I found a site that has some files you can DL and replace your current glu.h glu32.lib and glu32.dll. Well the issue is the .dll when I copy it into the system32 dir it replaces itself with the older version? I have never seen this before... Any ideas? Thanks

##### Share on other sites
put it in your local exe directory, it'll be loaded before the system one

##### Share on other sites
Thanks phantom. Now it loads but with teh gluBuild3DMipmaps() my textures are all black vs. load just fine with glTexImage3D()

##### Share on other sites
Now it seem as the .dll is corrupted or not working... I take it out of the local dir and go back to glTexImage3D() works fine just not mipmapping, I put the .dll back in and call glTExImage3D() also no dice all black same as with gluBuild3DMipmaps()? Can anyone send me a 1.3 glu.dll that works? Thanks

##### Share on other sites

http://oss.sgi.com/projects/ogl-sample/

##### Share on other sites
Quote:
 Original post by ZQJCould always roll your own:http://oss.sgi.com/projects/ogl-sample/

I looked on the extension page and I can't find the extension? So I can use wglGetProc... Thanks

BTW I tried using GL_GENERATE_MIPMAP and it doesn't look like the textures are mipmapped?

and
glGenerateMipmapEXT()

and no luck. Could someone post the correct form to use these? I am assuming it just

glGenTextures(1, texture);glBindTexture(GL_TEXTURE_3D, *texture);glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_REPEAT);glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_REPEAT);glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_REPEAT);//or if using GL_GENERATE_MIPMAP uncomment the next line//glTexParameteri(GL_TEXTURE_3D, GL_GENERATE_MIPMAP, true);glTexImage3D(GL_TEXTURE_3D, 0, imageTypeInternal,  imageWidth, imageHeight, 0, imageTypeFormat,  GL_UNSIGNED_BYTE, imageData);glGenerateMipmapEXT(GL_TEXTURE_3D);

[Edited by - MARS_999 on November 16, 2006 4:22:31 PM]