- Home /
Question by
MountDoomTeam · Mar 09, 2013 at 03:20 PM ·
javascriptperlinlibnoise
LibNoise JavaScript parameters
How do you initialise parameters for 3d Perlin noise from libnoise in JavaScript?
I can initialise the 3d Perlin noise
var sponge=new Perlin();
var crd : float= sponge.Noise( vtxx * 4,vtxy * 4,vtxz * 4);
but they are randomised across tiles of terrain I don't know how to control the parameters such as offset and resolution etc. i.e:
private Noise2D m_noiseMap = null;
private Texture2D[] m_textures = new Texture2D[3];
public int resolution = 64;
.......
this.m_noiseMap = new Noise2D(resolution, resolution, moduleBase);
this.m_noiseMap.GeneratePlanar(
offset + -1 ,
offset + offset + 1 ,
offset + -1 ,
offset + 1);
I am checking out about mixing 3d sponge functions with 2d terrains it's really fun. if you could tell me I will tell you example of this kind of formula:)
f2.jpg
(1.9 MB)
Comment
Your answer
Follow this Question
Related Questions
Setting Scroll View Width GUILayout 1 Answer
Perlin Noise and Terrain Generation 1 Answer
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Perlin Noise. 1 Answer
Is there a way to make a class destructor in javascript? 2 Answers