PHP 3D Model Viewer Class: Render a 3D object from the shapes definitions

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-11-03 (25 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 77 This week: 3All time: 9,649 This week: 69Up
Version License PHP version Categories
model-3d-class 1.0Custom (specified...5PHP 5, Graphics, Physics
Description Author

This class can render a 3D object from the shapes definitions

It takes a list of nodes of the edges and lines of the model of a 3D object and renders an image that shows the lines and the edges of the described object. The class can also add lines for the ground plane.

The the rendered image of the 3D model object is stored in a class variable that is set to a image object created by the PHP GD extension.

Picture of Win Aung Cho
  Performance   Level  
Name: Win Aung Cho is available for providing paid consulting. Contact Win Aung Cho .
Classes: 4 packages by
Country: Myanmar Myanmar
Age: 57
All time rank: 35495 in Myanmar Myanmar
Week rank: 18 Up1 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 1x

 

Details

PHP-Model3D-Class

3dimensional perspective drawing class

##Model3DClass

* [Model3D] class create 3 dimensional perspective view by projecting 3d coordinate system onto 2d canvas. * Current model provide 2 modes, z axis vertical and y axis vertical. * This simplest first version implement only 3 dimensional line drawing and wire frame that include 3d nodes and connected lines. * 3D object is centeted at PROJECTION_CENTER center point on the canvas view. View rotation is defined with $ROT about vertical axis. * Coordinate system obey right-hand-rule.

##Sample 1. Drawtower1.php is a sample file that use Model3D class and create 3d trustal tower. 2. index.php is a sample for the html file.

##Permission * This class is free for the educational use as long as maintain this header together with this class. Contact author for other uses.

* Author: Win Aung Cho * Contact winaungcho@gmail.com * version 1.0 * Date: 4-11-2020

Screenshots  
  • Screenshot_20201104-052828_Chrome.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file drawtower1.php Example Example script
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Plain text file model3d.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:77
This week:3
All time:9,649
This week:69Up

For more information send a message to info at phpclasses dot org.