Skip to main content

C# produceral terrain generation 3

I have been working on a raindrop algorithm for erosion on the heighmap. firstit went wrong:
spikes is not what you want

The better version uses 150 * 150 * 150 * 8  raindrops for a total of 27M drops. this takes 8000 milli seconds on one core(3.8ghz).
Second try, not very good
On the third try a river was created naturally. this is more promising.

here is a Fault-terrain that was "raindropped" and smoothed and i added small detail noise. Again a rivver. i add some materials and a water plane for fun. doesnt look too bad.


Here i am experimenting with parameters in the raindrop function.

DONE: Get basic raindrop erosion setup
TODO: tweak till i get decent and realistic results.

Cody Bloemhard
[tag: c#] [tag: OpenGL] [tag: Tortoise2D Engine] [tag: 2D] [tag: Game Engine] [tag: ocdy1001] [tag: ocdy1001official] [tag: Unity] [tag: Unity3D] [tag: Unity5] [tag: 3D] [tag: Cody Bloemhard]

Comments

Popular posts from this blog

C# produceral terrain generation 2

here is the first exported .obj terrain. The clock wise winding was wrong first, but i inverted a for loop and now it does fine. One time the hole terrain(flat) was not filled with flat squares but with a very weird pattern. Also a mountain was inside out. It works now. This model is loaded in unity. ta [tag: c#] [tag: OpenGL] [tag: Tortoise2D Engine] [tag: 2D] [tag: Game Engine] [tag: ocdy1001] [tag: ocdy1001official] [tag: Unity] [tag: Unity3D] [tag: Unity5] [tag: 3D] [tag: Cody Bloemhard]

Neural Network 0: handwriting learner and sin(x)

Here is a project from a while ago, it recognises characters:
https://www.youtube.com/watch?v=V8WA54l9ec8

This is the network class:


using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;publicclass NeuralNetwork {publicdouble learnRate;publicdouble momentum;public List<Neuron> inputLayer;public List<Neuron> hiddenLayer;public List<Neuron> outputLayer;static Random random =new Random();public NeuralNetwork(int inputSize,int hiddenSize,int outputSize,string file =""){ learnRate =.9d; momentum =.04d; inputLayer =new List<Neuron>(); hiddenLayer =new List<Neuron>(); outputLayer =new List<Neuron>();for(int i =0; i < inputSize; i++) inputLayer.Add(new Neuron());for(int i =0; i < hiddenSize; i++) hiddenLayer.Add(new Neuron(inputLayer));for(int i =0; i < outputSize; i++) outputLayer.Add(new Neuron(hiddenLayer));if(file !=…