Loading a 3D Model with ThreeJS - 1
In this example you can see how 3D model can be loaded to WebGL using ThreeJS library. A low polygon model of a Motor Cycle is used here. The 3D mesh is in OBJ format and texture as TGA files. To make
In this example you can see how 3D model can be loaded to WebGL using ThreeJS library. A low polygon model of a Motor Cycle is used here. The 3D mesh is in OBJ format and texture as TGA files. To make
An example of how a WebGL scene can be created using ThreeJS library. ThreeJS wraps the complex code required to create WebGL graphics and helps us to build it using much simpler API functions. This s
A simple experiment with particle animation in WebGL. In working example below, click and drag mouse to see the animation. Open the Javascript tab and the see the code with inline explanation.
Basic 3D transforamtion in WebGL. In the working exampel below, click on the buttons to see the changes when applying the transformations. Open the Javascript tab and the see the code with inline exp
This example shows how simple texture can be applied to a 3D shape in WebGL. Texture is loaded from an image file an applied to a cube. Open the Javascript tab and the see the code with inline explana
This example shows how a 3D shape can be drawn and rotated in WebGL. In the working example belwo you can see a rotating cube with different colors on each face. Open the Javascript tab and the see th
This example shows how vertices can be painted in WebGL. Open the Javascript tab and the see the code with inline explanation.
This example shows how you can draw a circle with the mode LINE_LOOP. Open the Javascript tab and the see the code with inline explanation.
This example shows how you can draw a triangle with the mode LINE_LOOP. Open the Javascript tab and the see the code with inline explanation.
This example shows how you can draw a rectangle as a WebGL element with the mode TRIANGLES. Open the Javascript tab and the see the code with inline explanation.