Source for file cone.php
Documentation is available at cone.php
require_once('Image/3D.php');
$light = $world->createLight (-200 , -200 , -200 );
$light2 = $world->createLight (200 , -200 , -200 );
$cone = $world->createObject ('cone', array ('detail' => 20 ));
$cone->transform ($world->createMatrix ('Scale', array (100 , 400 , 100 )));
$cone->transform ($world->createMatrix ('Move', array (0 , -80 , 0 )));
$cone->transform ($world->createMatrix ('Rotation', array (150 , 30 , 30 )));
$world->createRenderer ('perspectively');
$world->createDriver ('GD');
$world->render (400 , 400 , 'Image_3D_Object_Cone.png');
Documentation generated on Mon, 11 Mar 2019 14:04:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|