FANDOM


Terrain 1 Edit

Terrain3

Terrain

%e=2.71828182845904523536;

for( %posx = -2 ; %posx < 2 ; %posx+=0.1 )
{
for( %posy = -2 ; %posy < 2 ; %posy+=0.1 )
{

%posz=%posx*mPow( %e,-((%posx*%posx)+(%posy*%posy)) );

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 25*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 2 Edit

Terrain

Terrain

for( %posx = -3 ; %posx < 3 ; %posx+=0.1 )
{
for( %posy = -3 ; %posy < 3 ; %posy+=0.1 )
{

%posz=mSin(%posx)*mSin(%posy);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 3 Edit

Terrain2

Terrain 2

for( %posx = -3 ; %posx < 3 ; %posx+=0.1 )
{
for( %posy = -3 ; %posy < 3 ; %posy+=0.1 )
{

%posz=mSin(%posx)+mSin(%posy);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 4 Edit

Terrain5

Terrain 4

for( %posx = -5 ; %posx < 5 ; %posx+=0.1 )
{
for( %posy = -5 ; %posy < 5 ; %posy+=0.1 )
{

%posz=mSin(mSqrt ( %posx*%posx + %posy*%posy) );

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 5 Edit

Terrain6

Terrain 5

for( %posx = -5 ; %posx < 5 ; %posx+=0.1 )
{
for( %posy = -5 ; %posy < 5 ; %posy+=0.1 )
{

%posz=(%posx*%posx*%posx*%posy - %posx*%posy*%posy*%posy)/(%

posx*%posx + %posy*%posy);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Hyperbolic Paraboloid Edit

Terrain7

Terrain6

Please see the wiki article for more information on this shape.

for( %posx = -5 ; %posx < 5 ; %posx+=0.1 )
{
for( %posy = -5 ; %posy < 5 ; %posy+=0.1 )
{

%a=1;
%b=1;

%posz=(%posx*%posx)/(%a*%a)-(%posy*%posy)/(%b*%b);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 7 Edit

Terrain8
for( %posx = -10 ; %posx < 10 ; %posx+=0.1 )
{
for( %posy = -10 ; %posy < 10 ; %posy+=0.1 )
{

%posz=mPow(mAbs(mCos(%posx)+mCos(%posy)),0.5);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 9 Edit

Terrain9
for( %posx = 1 ; %posx < 20 ; %posx+=0.1 )
{
for( %posy = 1 ; %posy < 20 ; %posy+=0.1 )
{

%posz=mAbs( mPow( mCos(%posx)+mCos(%posy),4) );

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

Terrain 10 Edit

Terrain10

Terrain, side view

for( %posx = -3 ; %posx < 3 ; %posx+=0.1 )
{
for( %posy = -3 ; %posy < 3 ; %posy+=0.1 )
{

%posz=mLog(6)*(mPow(%posx,2)+mPow(%posy,2))-2;

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = 10*%posx SPC 10*%posy SPC 10*%posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };

}
}

See Also Edit

3D Graph-in-a-Box -- A page where you can see what various 3D mathematical functions would look like (which would come in handy if you wanted to make terrains.)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.