Package

Source Code of temp

import NoiseGen.NoiseContainer.NoiseContainer;
import NoiseGen.NoiseContainer.populated.GeneratedNoiseContainer;
import NoiseGen.NoiseContainer.populated.combined.AdditiveLayers;
import NoiseGen.NoiseContainer.populated.combined.RidgedMultiCombiner;
import NoiseGen.NoiseGenerator.PerlinGenerator;
import NoiseGen.NoiseGenerator.VoronoiGenerator;
import Test.Loggers;
import displayNoise.NoiseDisplay1D;
import displayNoise.NoiseDisplay2D;
import displayNoise.NoiseDisplay3D;

import java.util.logging.Level;

/**
* Created by Jesse on 8/7/2014.
*/
public class temp {

    public static void main(String[] arg) {
        Loggers.NOISE_DISPLAY_LOGGER.setLevel(Level.WARNING);
        Loggers.NOISE_GENERATOR_LOGGER.setLevel(Level.WARNING);
        Loggers.WRAPPER_LOGGER.setLevel(Level.WARNING);
        Loggers.TEST_LOGGER.setLevel(Level.INFO);

//        PerlinGenerator perlin = new PerlinGenerator();
        VoronoiGenerator voronoi = new VoronoiGenerator(70, 1200, 800, 0.1);

//        GeneratedNoiseContainer perlinVanilla = new GeneratedNoiseContainer(800, 500, 1);
//        perlinVanilla.setScale(0.03, 0.03, 0.03);
//        perlinVanilla.populate(perlin);

//        RidgedMultiCombiner perlinRidged = new RidgedMultiCombiner(1200, 800, 1);
//        perlinRidged.setNumOctaves(6);
//        perlinRidged.setScale(0.005, 0.005, 0.005);
//        perlinRidged.populate(perlin);

//       AdditiveLayers perlinAddtive = new AdditiveLayers(1200, 800, 1);
//        perlinAddtive.setNumOctaves(6);
//        perlinAddtive.setScale(0.005, 0.005, 0.005);
//        perlinAddtive.populate(perlin);

        GeneratedNoiseContainer voronoiVanilla = new GeneratedNoiseContainer(1200, 800, 1);
        voronoiVanilla.setOffset(0.0, 0.0, 0.0);
        voronoiVanilla.setScale(1, 1, 1);
        voronoiVanilla.populate(voronoi);
//
//        RidgedMultiCombiner voronoiRidged = new RidgedMultiCombiner(800, 500, 1);
//        voronoiRidged.setOffset(0, 0, 0);
//        voronoiRidged.setScale(1, 1, 1);
//        voronoiRidged.populate(voronoi);

//        display2D(perlinVanilla);
//        display2D(perlinRidged);
//        display2D(perlinAddtive);
        display2D(voronoiVanilla);
//        display2D(voronoiRidged);
    }

    public static void display3D(NoiseContainer values) {
        NoiseDisplay3D display = new NoiseDisplay3D(values);
        display.display();
    }

    public static void display2D(NoiseContainer values) {
        NoiseDisplay2D display = new NoiseDisplay2D(values);
        display.display();
    }

    public static void display1D(NoiseContainer values) {
        NoiseDisplay1D display = new NoiseDisplay1D(values);
        display.display();
    }

}
TOP

Related Classes of temp

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.