Tag Archives: 3D graphics

Rendering to Texture with WebGL

The JavaScript program below, when run, will display a simple three-dimensional scene rendered with WebGL. It is nearly identical to a program from a previous post, except that this version demonstrates how to render a scene to a texture, rather … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

A Rudimentary Mesh Editor in JavaScript

The code below implements a rudimentary editor for three-dimensional forms called “meshes”. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, visit … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

The Catmull-Clark Subdivision Surface Algorithm in JavaScript

Below is an implementation in JavaScript of the Catmull-Clark “subdivision surface” algorithm. Originally developed by pioneering computer graphics researchers Edwin Catmull and Jim Clark in the 1970s, this algorithm divides each face of an arbitrary polyhedron, or “mesh”, into multiple … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment