// Tree int $i; float $x, $y, $z, $x1, $y1, $z1, $x2, $y2, $z2; for($i = 0; $i < 30; $i++) { select -r Branch; duplicate -rr; $x = rand (-5, 5) ; $y = rand (-5, 5) ; $z = rand (-5, 5) ; $x1 = rand ( -20, 30) ; $y1 = rand ( 0, 360) ; $z1 = rand ( -20, 30) ; $x2 = rand ( 0, 2) ; //$y2 = rand ( 1, 2) ; $z2 = rand ( 0, 2) ; move -r 0 $y 0; rotate -r $x1 $y1 $z1; scale -r $x2 0 $x2; } // Trava int $i; float $x, $y, $z, $x1, $y1, $z1, $x2, $y2, $z2; for($i = 0; $i < 300; $i++) { select -r Grass; duplicate -rr; $x = rand (-10, 10) ; $y = rand (-5, 5) ; $z = rand (-10, 10) ; $x1 = rand ( -20, 20) ; $y1 = rand ( 0, 360) ; $z1 = rand ( -20, 20) ; $x2 = rand ( 1, 2) ; $y2 = rand ( 0.8, 1.2) ; $z2 = rand ( 1, 2) ; move -r $x 0 $z; rotate -r $x1 $y1 $z1; scale -r 1 $y2 1; } // Kust int $i; float $x, $y, $z, $x1, $y1, $z1, $x2, $y2, $z2; for($i = 0; $i < 10; $i++) { select -r Bush; duplicate -rr; $x = rand (-10, 10) ; $y = rand (-5, 5) ; $z = rand (-10, 10) ; $x1 = rand ( -20, 20) ; $y1 = rand ( 0, 360) ; $z1 = rand ( -20, 20) ; $x2 = rand ( 0.5, 1.5) ; $y2 = rand ( 0.5, 1.5) ; $z2 = rand ( 0.5, 1.5) ; move -r $x 0 $z; rotate -r 0 $y1 0; scale -r $x2 $y2 $z2; } // Paporotnik int $i; float $x, $y, $z, $x1, $y1, $z1, $x2, $y2, $z2; for($i = 0; $i < 20; $i++) { select -r Paporotnik; duplicate -rr; $x = rand (-10, 10) ; $y = rand (-5, 5) ; $z = rand (-10, 10) ; $x1 = rand ( -20, 20) ; $y1 = rand ( 0, 360) ; $z1 = rand ( -20, 20) ; $x2 = rand ( 0.8, 2) ; $y2 = rand ( 0.5, 1.5) ; $z2 = rand ( 0.5, 1.5) ; move -r $x 0 $z; rotate -r 0 $y1 0; scale -r $x2 $x2 $x2; }