jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

ImageTileLoader: Feature currently unusable.

Open capdevon opened this issue 2 years ago • 1 comments

An example of how to generate tile png files is missing. I asked on the forum and apparently no one ever used this feature. Most likely the cause is the lack of examples and supporting documentation.

File: TerrainGridTest

        this.terrain = new TerrainGrid("terrain", 65, 257, new ImageTileLoader(assetManager, new Namer() {
            @Override
            public String getName(int x, int y) {
                return "Scenes/TerrainMountains/terrain_" + x + "_" + y + ".png";
            }
        }));

Could you please provide a useful example? Thank you

capdevon avatar May 07 '23 17:05 capdevon

Maybe it is intended to generate the terrain heightmap tiles via external tools (e.g. Gimp, Blender,...) and load them in JME. (See:https://hub.jmonkeyengine.org/t/terraingridtileloadertest-confusion/26569/6)

Btw, I also found this old SDK plugin for loading and generating terrain heightmap tiles, seems the source code is still available: https://hub.jmonkeyengine.org/t/tiled-terrain-editor-project-initial-code-exposure/26809

Ali-RS avatar May 08 '23 05:05 Ali-RS