There are very good resources and tutorials available to get started with WebGL and a quick online search will bring all those links to you. So, why am I interested about WebGL ? Answer is simple : WebGL brings plugin-free 3D to the web, implemented right into the browser. So, let's explore WebGL and my intention here is to start with simple steps of creating some basic geometries and render them. With progress in our WebGL learning, I want to see how we can integrate this with Autodesk technologies.
First let's see what is WebGL ? Here is the technical definition of WebGL from khronos.org (http://www.khronos.org/webgl/
WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on OpenGL ES 2.0, exposed through the HTML5 Canvas element as Document Object Model interfaces. Developers familiar with OpenGL ES 2.0 will recognize WebGL as a Shader-based API using GLSL, with constructs that are semantically similar to those of the underlying OpenGL ES 2.0 API. It stays very close to the OpenGL ES 2.0 specification, with some concessions made for what developers expect out of memory-managed languages such as JavaScript.
After going through some of the online tutorials and resources, here is my First WebGL sample which simply creates a triangle in a WebGL supported browser :
Here is the link to Download the sample code if you want to give it a try at your end.
Comments
You can follow this conversation by subscribing to the comment feed for this post.