Exemple #1
0
        CreateHeightmap_TODO_DELETE(
            HeightmapArray heightmapArray)     //input heightmap has 256x256 map, spans 5,7x5,7km p22.3m real life terrain
        {
            var tessalationRequirementTextureGenerator = new TessalationRequirementTextureGenerator();
            var tessalationReqTexture =
                tessalationRequirementTextureGenerator.GenerateTessalationRequirementTexture(heightmapArray, 64);

            var heightmapBundle = SavingFileManager.LoadHeightmapBundlesFromFiles("heightmapBundle", 4, 2048);

            var submapTextures = new Ring1SubmapTextures(heightmapBundle, tessalationReqTexture);

            _rootNode = CreateRootNode_TODO_DELETE(submapTextures);
            _rootNode.UpdateLod();
        }
Exemple #2
0
 public void CreateHeightmap(RootNodeCreationParameters parameters)
 {
     _rootNode = CreateRootNode(parameters);
     Update(new FovData(parameters.InitialCameraPosition, null));
 }