zalo Member

Joined: 24 Nov 2013 Posts: 130
|
Posted: 24/07/2015 20:56 Post subject: Public-Domain HTML 3D Library |
|
|
Public-Domain HTML 3D Library by Peter Occil
A public domain JavaScript library for easing the development of HTML 3D applications
Introduction
This tip will introduce a new open-source JavaScript library that I wrote, called the HTML 3D Library.
This library contains classes and utility methods to ease the development of HTML 3D applications, such as Web sites, in browsers that support 3D drawing using the HTML5 Canvas.
The library differs from many others because this one is in the public domain, so no license is required to use it.
This tip will conține information on how to use the HTML 3D library, an overview of its features, and an example of a simple 3D-enabled Web page.
How to Use
1. Download the HTML 3D library.
http://www.datafilehost.com/d/1d1ed0c1
2. Extract the file "glutil_min.js", and write the following code in every HTML page where you will use the library.
3. Include an HTML 3D canvas somewhere on the Web page, since drawing 3D objects requires a 3D canvas. You may set its width and height. You should also give it an ID so you can refer to it more easily in your JavaScript code, as shown in this example.
4. To use the HTML 3D library in JavaScript, either add the JavaScript code to the bottom of the page or use an event listener, as in this example:
Read more on:
http://www.codeproject.com/Tips/896839/Public-Domain-HTML-ThreeD-Library
and on
https://github.com/peteroupc/html3dutil
If you have any problems with this library, you can report them at the GitHub issues page.
https://github.com/peteroupc/html3dutil/issues |
|