Examples of loadTexture()


Examples of com.eteks.sweethome3d.j3d.TextureManager.loadTexture()

    HomeTexture skyTexture = home.getEnvironment().getSkyTexture();
    if (skyTexture != null) {
      TextureManager textureManager = TextureManager.getInstance();
      if (waitForLoading) {
        // Don't share the background texture otherwise if might not be rendered correctly
        backgroundAppearance.setTexture(textureManager.loadTexture(skyTexture.getImage()));
      } else {
        textureManager.loadTexture(skyTexture.getImage(), waitForLoading,
            new TextureManager.TextureObserver() {
                public void textureUpdated(Texture texture) {
                  backgroundAppearance.setTexture(texture);
View Full Code Here

Examples of com.eteks.sweethome3d.j3d.TextureManager.loadTexture()

      TextureManager textureManager = TextureManager.getInstance();
      if (waitForLoading) {
        // Don't share the background texture otherwise if might not be rendered correctly
        backgroundAppearance.setTexture(textureManager.loadTexture(skyTexture.getImage()));
      } else {
        textureManager.loadTexture(skyTexture.getImage(), waitForLoading,
            new TextureManager.TextureObserver() {
                public void textureUpdated(Texture texture) {
                  backgroundAppearance.setTexture(texture);
                }
              });
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

            try {
                TextureKey key = new TextureKey(absoluteName);
                key.setAsCube(false);
                key.setFlipY(true);
                key.setGenerateMips(generateMipmaps);
                result = assetManager.loadTexture(key);
                result.setKey(key);
            } catch (AssetNotFoundException e) {
                LOGGER.fine(e.getLocalizedMessage());
            }
        } else {
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

                    key.setAsCube(false);
                    key.setFlipY(true);
                    key.setGenerateMips(generateMipmaps);
                    AssetInfo info = assetManager.locateAsset(key);
                    if (info != null) {
                        Texture texture = assetManager.loadTexture(key);
                        result = texture;
                        // Set key explicitly here if other ways fail
                        texture.setKey(key);
                        // If texture is found return it;
                        return result;
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

            // The asset was not found in the loop above, call loadTexture with
            // the original path once anyway so that the AssetManager can report
            // the missing asset to subsystems.
            try {
                TextureKey key = new TextureKey(name);
                assetManager.loadTexture(key);
            } catch (AssetNotFoundException e) {
                LOGGER.fine(e.getLocalizedMessage());
            }
        }
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

  }

  private static Spatial createSimpleSkyBox() {
    AssetManager assetManager = GlobalObjectStore
        .<AssetManager> getObject(AssetManager.class);
    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

  private static Spatial createSimpleSkyBox() {
    AssetManager assetManager = GlobalObjectStore
        .<AssetManager> getObject(AssetManager.class);
    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

  private static Spatial createSimpleSkyBox() {
    AssetManager assetManager = GlobalObjectStore
        .<AssetManager> getObject(AssetManager.class);
    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");

    Spatial skySpatial = SkyFactory.createSky(assetManager, west, east,
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

    AssetManager assetManager = GlobalObjectStore
        .<AssetManager> getObject(AssetManager.class);
    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");

    Spatial skySpatial = SkyFactory.createSky(assetManager, west, east,
        north, south, up, down);
View Full Code Here

Examples of com.jme3.asset.AssetManager.loadTexture()

        .<AssetManager> getObject(AssetManager.class);
    Texture west = assetManager.loadTexture("skybox/milkyway/left.png");
    Texture east = assetManager.loadTexture("skybox/milkyway/right.png");
    Texture north = assetManager.loadTexture("skybox/milkyway/front.png");
    Texture south = assetManager.loadTexture("skybox/milkyway/back.png");
    Texture up = assetManager.loadTexture("skybox/milkyway/top.png");
    Texture down = assetManager.loadTexture("skybox/milkyway/bottom.png");

    Spatial skySpatial = SkyFactory.createSky(assetManager, west, east,
        north, south, up, down);
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.