Source for file zbuffer.php
Documentation is available at zbuffer.php
require_once('Image/3D.php');
$light1 = $world->createLight ('Light', array (-20 , -20 , -20 ));
$light2 = $world->createLight ('Light', array (20 , 20 , -20 ));
$world->transform ($world->createMatrix ('Rotation', array (90 , 90 , 0 )));
$world->setOption (Image_3D::IMAGE_3D_OPTION_BF_CULLING , false );
$world->setOption (Image_3D::IMAGE_3D_OPTION_FILLED , true );
$world->createRenderer ('perspectively');
$world->createDriver ('ZBuffer');
$world->render (400 , 400 , 'Image_3D_ZBuffer.png');
Documentation generated on Mon, 11 Mar 2019 15:48:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|