Texture t=new Texture(); t.setImageLocation("file:/"+tc.texName); t.setWrap(Texture.WM_WRAP_S_WRAP_T); float vScale = tc.vScale; float uScale = tc.uScale; if ( uScale == 0 ) { uScale = 1; } if ( vScale == 0 ) { vScale = 1; } t.setScale( new Vector3f( uScale, vScale, 1 ) ); myTexState.setTexture(t); myTexState.setEnabled(true);
Texture t=new Texture(); t.setImageLocation("file:/"+tc.texName); t.setWrap(Texture.WM_WRAP_S_WRAP_T); float vScale = tc.vScale; float uScale = tc.uScale; if ( uScale == 0 ) { uScale = 1; } if ( vScale == 0 ) { vScale = 1; } t.setScale( new Vector3f( uScale, vScale, 1 ) ); myTexState.setTexture(t, 0); myTexState.setEnabled(true);
    private void readTextureMapOne(ChunkHeader i) throws IOException {        TextureChunk tc=new TextureChunk(myIn,i);//        myTexState.setTexture(TextureManager.loadTexture(tc.texName,Texture.MM_LINEAR,Texture.FM_LINEAR,false));        Texture t=new Texture();        t.setImageLocation("file:/"+tc.texName);        t.setWrap(Texture.WM_WRAP_S_WRAP_T);        float vScale = tc.vScale;        float uScale = tc.uScale;        if ( uScale == 0 ) {            uScale = 1;        }        if ( vScale == 0 ) {            vScale = 1;        }        t.setScale( new Vector3f( uScale, vScale, 1 ) );        myTexState.setTexture(t);        myTexState.setEnabled(true);    }