Source for file map.php
Documentation is available at map.php
require_once('Image/3D.php');
$light1 = $world->createLight ('Light', array (-20 , -20 , -20 ));
$light2 = $world->createLight ('Light', array (20 , 20 , -20 ));
$map = $world->createObject ('map');
for ($x = -1; $x <= 1; $x += $raster) {
for ($y = -1; $y <= 1; $y += $raster) {
$map->transform ($world->createMatrix ('Rotation', array (-40 , 20 , -10 )));
$world->setOption (Image_3D::IMAGE_3D_OPTION_BF_CULLING , false );
$world->setOption (Image_3D::IMAGE_3D_OPTION_FILLED , true );
$world->createRenderer ('perspectively');
$world->createDriver ('GD');
$world->render (400 , 400 , 'Image_3D_Object_Map.png');
Documentation generated on Mon, 11 Mar 2019 15:48:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|