Forgot to commit some stuff (noise+dynaterrain) from previous commit

This commit is contained in:
Remi Beges
2012-05-31 15:35:52 +02:00
parent 9008c36802
commit 4d975fa67e
21 changed files with 589 additions and 206 deletions

View File

@@ -16,7 +16,8 @@
//TODO : tableau de gradients en float au lieu de int ? Ou condition ternaires ?
// utiliser fastfloor partout
// vérifier bon fonctionnement perlin1d
// utiliser copies paramètres pour économiser mémoire
// améliorer le mélange de la table de perm
class NzNoiseMachine : public NzNoiseBase
{
@@ -24,7 +25,6 @@ class NzNoiseMachine : public NzNoiseBase
NzNoiseMachine(int seed = 0);
~NzNoiseMachine();
float Get1DPerlinNoiseValue (float x, float res);
float Get2DPerlinNoiseValue (float x, float y, float res);
float Get3DPerlinNoiseValue (float x, float y, float z, float res);
float Get4DPerlinNoiseValue (float x, float y, float z, float w, float res);
@@ -42,7 +42,6 @@ class NzNoiseMachine : public NzNoiseBase
void SetOctavesNumber(float octaves);
void RecomputeExponentArray();
float Get1DFBMNoiseValue(float x, float res);
float Get2DFBMNoiseValue(float x, float y, float res);
float Get3DFBMNoiseValue(float x, float y, float z, float res);
@@ -52,10 +51,6 @@ class NzNoiseMachine : public NzNoiseBase
protected:
private:
//Pour tronquer les nombres
int fastfloor(float n);
int gradient1[2];
float gradient2[8][2];
int gradient3[16][3];
int gradient4[32][4];
@@ -65,15 +60,13 @@ class NzNoiseMachine : public NzNoiseBase
float n1, n2, n3, n4, n5;
NzVector4f A;
NzVector4i Origin;
NzVector4f d1,d2,d3,d4,d5;
NzVector4i off1, off2,off3;
NzVector4f IsoOriginDist;
NzVector4f H[5];
NzVector4i Origin;
NzVector4i off1, off2,off3;
int ii,jj,kk,ll;
int gi0,gi1,gi2,gi3,gi4,gi5,gi6,gi7,gi8,gi9,gi10,gi11,gi12,gi13,gi14,gi15;
float lenght;
float c1,c2,c3,c4,c5,c6;
int c;