Bug in TextureIO.newTexture without Mipmapping?

Hello,

I have a problem : If I create a new Texture with com.sun.opengl.util.texture.TextureIO.newTexture and do not use mipmapping, I get a blank cube (which is textured if I’m setting mipmapping=true).
My texture has power of 2 (256x256 pixels).

If I create the Texture with TextureIO.newTextureData and setting the texture for the texture target manually, it works.

Here is my little test programm :

http://horustempel.de/OpenGL/TestFrame.java

and my test texture image :

http://horustempel.de/OpenGL/buntbaum.tga

What is wrong with my code???

dj3hut1

P.S. My graphics card has the following data :

Vendor : Matrox Graphics Inc.
Version : 1.1.3 Aug 2 2001
Renderer : Matrox G400
Extensions : GL_ARB_multitexture GL_ARB_texture_env_add GL_Autodesk_facet_normal
GL_EXT_abgr GL_EXT_bgra GL_EXT_compiled_vertex_array GL_EXT_packed_pixels GL_EX
T_separate_specular_color GL_EXT_stencil_wrap GL_EXT_texture_edge_clamp GL_EXT_t
exture_env_add GL_EXT_vertex_array GL_KTX_buffer_region GL_SGIS_multitexture GL_
WIN_swap_hint WGL_EXT_swap_control

Your test case works fine for me using the TextureIO.newTexture() factory method both with and without mipmapping. There’s probably something going on with your OpenGL drivers which doesn’t surprise me since you have a Matrox card. See whether there is a more recent driver release available, or just toss your card and get something (even a cheap one) made by NVidia.

I was banging my head against the wall playing with TextureIO for maybe the first time (I think I tried it out a few months ago, can’t remember :-), until I came across this thread. I turned mipmap to true, and presto, everything works now. Before I was getting a blank square.

For my purposes at this time, I really don’t need mipmapping, I am doing a 2D project.

I am using Ununtu linux 6.06.
Nvidia GeForce MX 4000
nvidias kernel module found in the ubuntu repository precompiled for a k7 processor.
The kernel is also precompiled for a k7.
beta 5 of jsr231.

The function is this one.
TextureIO.newTexture(File, boolean);

I may throw this over to my laptop later tonight and test it on an ati with dri running Ubuntu 5.10.

I am not saying that this is not a driver bug, I am saying it is a little more broad than the matrox.

Thanks

Greg

If you are running into a problem could you please provide a small and self-contained test case including the associated image which fails?