Strange Texture

why the textures are rendered so strangely ?

Maybe a special filter could solve it…

I think you gotta disable image compression.

No image compression ? Hm, so i should use bmp right ?

No the compression is not the problem… BMP files look strange, too…

Maybe the VideoPlayer is the problem… I use the class ImageGraphics to render the Video, maybe ImageGraphics overrides some TextureState…



The problem occurs when i depart from the texture… Any idea ?



PS: Maybe the source code is helpful:



Loading of texture


        this.notHover = TextureManager.loadTexture(new URL("file:"+notHover.getPath()),
                                                   MinificationFilter.Trilinear,
                                                   MagnificationFilter.Bilinear);



Setting


        ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
        ts.setTexture( packs[activePackIndex].getNotHover() );
        setRenderState(ts);
        ts.setEnabled(true);



When i remove the ImageGraphics from the render queue the textures are rendered well... When i depart from the textures and the ImageGraphics is not in the render queue the textures become darker... But if the ImageGraphics is in the render queue the textures will be rendered strange... Maybe a wrong initialized LOD ? I'm new with the MonkeyEngine and don't know everything about it...

Thanks for help!

perhaps an updateRenderState() is missing somewhere…

No, updateRenderState() doesn't change anything…

Ok, i find a solution but i think it's not the reason:



When i use BilinearNoMipMaps as MinificationFilter the Textures a rendered well …



But i think this is a fix and not a real solution…