Hello, I applied a grayscale image with 24bit as a texture to a simple quad. it works perfect but looks bad. the image seems to be color reduced. it is not dithered or have compression artefacts but have blocklike structures. it might have 256 colors? has anybody a solution or idea?
//create geometry QuadArray qa = new QuadArray(8, QuadArray.COORDINATES | QuadArray.TEXTURE_COORDINATE_2 | QuadArray.NORMALS); //... //load an image tk = java.awt.Toolkit.getDefaultToolkit() tk.getImage(filename) //create the texture Appearance app = new Appearance(); app.setCapability(Appearance.ALLOW_TEXTURE_WRITE); app.setCapability(Appearance.ALLOW_TEXTURE_READ); TextureAttributes texAttr = new TextureAttributes(); app.setTextureAttributes(texAttr); Material mm = new Material(); mm.setLightingEnable(false); app.setMaterial(mm); app.setColoringAttributes( new ColoringAttributes( new Color3f(1.0f, 1.0f, 1.0f), //ColoringAttributes.FASTEST)); ColoringAttributes.NICEST)); imageSwitch.addChild(new Shape3D(qa, app)); the code is copy and paste from various locations in my code, maybe some lines are missing. does anyone see the fault? thanks for help! Chris =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".