Ejemplo n.º 1
0
		public VoxelGfx_Tree()
		{
			// Trunc starting direction : Vertical absolute.
			Random = new LightSpeedRandom();
			Random.Init( Seed );
			StartingDirection.Len = 1;
			StartingDirection.pitch = 90;
			StartingDirection.yaw = 90;
			StartingDirection.roll = 0;
			TruncHeight = 20; // 40.0
			MinSubDivisionsPerNode = 1;
			MaxSubDivisionsPerNode = 3;
			RandomSubdivs = true;
			BrancheLen = 10.0f;
			MaxBranchLenght = 80.0f;
			FolliageLenght = 50.0f; // 60.0
			HasFolliage = true;
		}
Ejemplo n.º 2
0
		public Genesis()
		{
			int i;
			// char to num
			RandomGen = new LightSpeedRandom();
			RandomGen.Init();
			SaltyRandomGen = new SaltyRandomGenerator();
			SaltyRandomGen.getsalt += RandomGen_getsalt;
			for( i = 0; i < 256; i++ ) ConvCN[i] = 0;
			for( i = 0; i <= 9; i++ ) ConvCN[i + '0'] = (ushort)i;
			for( i = 0; i < 26; i++ ) ConvCN[i + 'A'] = (ushort)( 10 + i );
			for( i = 0; i < 26; i++ ) ConvCN[i + 'a'] = (ushort)( 36 + i );
		}
Ejemplo n.º 3
0
		public VoxelGfx_Tree_Giant()
		{
			Random = new LightSpeedRandom();
			Random.Init( Seed );
			// Trunc starting direction : Vertical absolute.
			StartingDirection.Len = 1;
			StartingDirection.pitch = 90;
			StartingDirection.yaw = 90;
			StartingDirection.roll = 0;
			TruncHeight = 128; // 40
			MinSubDivisionsPerNode = 1;
			MaxSubDivisionsPerNode = 4;
			RandomSubdivs = true;
			BrancheLen = 20;
			SecundaryTruncSegmentLenght = 10;
			MaxBranchLenght = 500;
			FolliageLenght = 485; // 60
			HasFolliage = true;
		}