Examples of Texture2D


Examples of com.ardor3d.image.Texture2D

            t.setTranslation(new Vector3(0, 20, 0));
            _root.attachChild(t);
        } else {
            textureRenderer.getCamera().setLocation(new Vector3(-10, 0, 15));
            textureRenderer.setBackgroundColor(new ColorRGBA(0f, 0f, 0f, 1));
            fakeTex = new Texture2D();
            textureRenderer.setupTexture(fakeTex);
            final TextureState screen = new TextureState();
            screen.setTexture(fakeTex);
            screen.setEnabled(true);
            quad.setRenderState(screen);
View Full Code Here

Examples of com.ardor3d.image.Texture2D

    }

    private void setCheck(final UIPanel panel) {
        panel.setTooltipText("Simple Checkerboard pattern");

        final Texture tex = new Texture2D();

        // Build up our function
        final Function3D finalCheck = new CheckerFunction3D();

        final Image img = GeneratedImageFactory.createLuminance8Image(finalCheck, wside, hside, 1, 1, 9, 1, 9, 0, 0,
                -1, 1);
        tex.setImage(img);
        // No need for filtering on this one...
        tex.setTextureKey(TextureKey.getRTTKey(MinificationFilter.NearestNeighborNoMipMaps));
        tex.setMagnificationFilter(MagnificationFilter.NearestNeighbor);
        tex.setMinificationFilter(MinificationFilter.NearestNeighborNoMipMaps);

        applyTexture(tex, panel);
    }
View Full Code Here

Examples of com.googlecode.gwtgl.wrapper.Texture2D

  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here

Examples of com.googlecode.gwtgl.wrapper.Texture2D

  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here

Examples of com.googlecode.gwtgl.wrapper.Texture2D

  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here

Examples of com.googlecode.gwtgl.wrapper.Texture2D

  private void initTexture() {
    webGLWrapper.setTextureWrapS(TextureTarget.TEXTURE_2D, TextureWrapMode.CLAMP_TO_EDGE);
    webGLWrapper.setTextureWrapT(TextureTarget.TEXTURE_2D, TextureWrapMode.CLAMP_TO_EDGE);
   
    // Create and initialize the WebGLTexture objects.
    textureFront = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxFt());
    textureBack = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxBk());
    textureTop = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxUp());
    textureBottom = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxDn());
    textureLeft = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxLf());
    textureRight = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxRt());

    // set the texture active on texture unit 0 and bind the texture
    textureFront.setActiveAndBind(0);
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D, TextureMinFilter.NEAREST);
    webGLWrapper.setTextureMagFilter(TextureTarget.TEXTURE_2D, TextureMagFilter.NEAREST);
View Full Code Here

Examples of com.jme.image.Texture2D

                BufferUtils.createByteBuffer(roundedWidth * roundedHeight * 4);
        Image image =
                new Image(Image.Format.RGB8, roundedWidth, roundedHeight, data);

        // Create the texture which wraps the image
        texture = new Texture2D();
        logger.fine("Created new texture " + texture);
        texture.setImage(image);
        texture.setMagnificationFilter(Texture.MagnificationFilter.Bilinear);
        texture.setMinificationFilter(
                Texture.MinificationFilter.BilinearNoMipMaps);
View Full Code Here

Examples of com.jme3.texture.Texture2D

        offCamera.setFrustumPerspective(45f, 4f, 1f, 1000f);
        offCamera.setLocation(new Vector3f(0f, 0f, -5f));
        offCamera.lookAt(new Vector3f(0f, 0f, 0f), Vector3f.UNIT_Y);

        //setup framebuffer's texture
        Texture2D offTex = new Texture2D(1024, 256, Format.RGBA8);
        offTex.setMinFilter(Texture.MinFilter.Trilinear);
        offTex.setMagFilter(Texture.MagFilter.Bilinear);

        //setup framebuffer to use texture
        offBuffer.setDepthBuffer(Format.Depth);
        offBuffer.setColorTexture(offTex);
       
View Full Code Here

Examples of com.jme3.texture.Texture2D

        awtWindow.pack();


//        TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
//        ts.setCorrectionType( TextureState.CorrectionType.Perspective );
        texture = new Texture2D();
        texture.setMagFilter( Texture.MagFilter.Bilinear );
        texture.setMinFilter( mipMapping ? Texture.MinFilter.Trilinear : Texture.MinFilter.BilinearNoMipMaps );
        texture.setWrap( Texture.WrapMode.Repeat );

        graphics = ImageGraphics.createInstance( this.width, this.height, mipMapping ? 2 : 0 , settings, renderer.getRenderer());
View Full Code Here

Examples of com.jme3.texture.Texture2D

     */
    private void initFilter(Filter filter, ViewPort vp) {
        filter.setProcessor(this);
        if (filter.isRequiresDepthTexture()) {
            if (!computeDepth && renderFrameBuffer != null) {
                depthTexture = new Texture2D(width, height, Format.Depth24);
                renderFrameBuffer.setDepthTexture(depthTexture);
            }
            computeDepth = true;
            filter.init(assetManager, renderManager, vp, width, height);
            filter.setDepthTexture(depthTexture);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.