Html Codes: WebGL- Basic 3D Geometries (Cube, Icosahedron, Octahedron, Tetrahedron, Torus and Torus-Knot)
HTML5 WebGL by using Three.js and Sim.js let you easily add basic 3D objects and geometries. Below we have shown some of them. They are:
Cube Geometry, Icosahedron Geometry, Octahedron Geometry, Tetrahedron Geometry, Torus Geometry and Torus-Knot Geometry
You can add more details and make them more complex by manipulating their options and parameters. But it's nice for taking some 3D baby steps! Note that if you are unfamiliar with the code template we have used, refer to our previous simpler examples. Enjoy!
Our used libraries are found here:
http://html5freecode.com/libs/libs.zip
Cube Geometry, Icosahedron Geometry, Octahedron Geometry, Tetrahedron Geometry, Torus Geometry and Torus-Knot Geometry
You can add more details and make them more complex by manipulating their options and parameters. But it's nice for taking some 3D baby steps! Note that if you are unfamiliar with the code template we have used, refer to our previous simpler examples. Enjoy!
Our used libraries are found here:
http://html5freecode.com/libs/libs.zip
If you don't know how to use this code or need more information Click here!
![]() | You can leave comments once you sign in/up. |