Git Product home page Git Product logo

randomworldgenerator's Introduction

GENERATOR

Možné implementace

  • výšková mapa
  • teplotní mapa
  • Vítr plus fronty
  • Déšt + řeky terénem?
  • Tvrdost různých povrchů

Progress Log

V 0.1

  • změna persistance na 0.7 (větší náhodnodnost), odstranenim *sampleFreq. z blendů dojde k zajímavým rozbitím (zjistit důvod) Zatím umí jenom Heightmapu

Sample

V 0.1.1

  • Persistance změněna zpět na 0.55, základní přidání mořské hladiny, hodnoty pod 0.5 jsou nyní voda V perlinově šumu nová interpolace místo lineární cosinová Výšková mapa tímto hotová
  • Linearní interpolace - nevýhoda hrany
  static float Interpolate(float x0, float x1, float alpha){
    return x0 * (1 - alpha) + alpha * x1;    
  }

LinearInterpolation

  • cosinova interpolace - vypadá lépe
      static float Interpolate(float x0, float x1, float alpha){
        double cosine = (1.0 - Math.cos(alpha * Math.PI)) / 2.0;
        return (float) (x0 * (1 - cosine) + cosine * x1);
      }
    

CosineInterpolation

V 0.1.2

  • trochu jsem si pohral s perlin noisem aby leva a prava strana na sebe navazovali, chce to dovylepsit
  • nově Voronoiho Diagram(spatne nazev mam nejspis) rozdeleni bodu do blizkych okruhu idealní pro tektonicke desky
    VoronoiDiagram_v0.1.2

V xxx

-Voronoi diagram celkem good rozepsat

V xxxx

  • tektonicke desky - začátek
  • generuji je paralelne pridam ke kazde bod na jeji hranici je to rozbity, puvodne jsem mel pomale generovani, chyba byla v odstranovani prvku z arraylistu border - opraveno, generace porad vypada jak shit, budu radeji pouzivat voronoi algoritmus

randomworldgenerator's People

Contributors

vakson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

randomworldgenerator's Issues

Voronoi diagram reminder

double xDiff = i - inicPoints[k][0]; replace with

double xDiff =( i - inicPoints[k][0])>width/2 ?width-(i - inicPoints[k][0]) :i - inicPoints[k][0];

And also add perlin velocity plus time instead of distance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.