About this page

On this page I present writings, computer graphics I created, programming projects, and photographs. These include scientific papers (formatted and typeset using web technologies), experiments with WebGL and other technologies, and more.

For a list of my publications in the traditional scientific literature, see publications on CV page.


This is a good approximation of a fully standalone web app. It runs off-line, i.e., when the browser/device is not connected to the internet. You can add it to your smartphone/tablet home screen, and it would show a dedicated icon like a native app. It automatically updates when connected to the internet via the appcache mechanism (albeit officially deprecated, it still works). And of course it shows some nice animation and interactivity with the user.

Graphics-wise, this app demonstrates off-screen rendering, procedurally generated noise textures, reflection of sky in water, fog effect, perspective projection, and interactivity with mouse and touch.

Read more on this app in the dedicated blog entry.

Click here for source code.

WebGL flashing stars

A simple WebGL program displaying four revolving and flashing stars. The program explores the difference between rendering with triangles versus rendering with point sprites, as well as changing the viewport.

Click here for source code.

Autumn leaves particle system

A WebGL program that implements a particle system using sprites, rendered as quads (each being a pair of triangles), and applying a texture from an image file.

Click here for source code.

Smoky galaxy

A filter effect (mathematically, a convolution operation) done by sampling a texture several times for each fragment. The texture comes from an image of a galaxy. The smoke effect is achieved by randomly varying the filter coefficients, and by blending the blurred (filtered) image with a fresh copy of a rotated galaxy image. All of this is achieved using offscreen rendering to framebuffers.

Click here for source code.

The galaxy image is by the European Space Agency / Hubble Space Telescope, and made available under CC-BY-3.0 license.

Julia fractals

My take on a classic computer graphics exercise – Julia fractals. The traveling red dot represents the current value of the c parameter, that determines the shape of the fractal. By smoothly varying the parameter value over time, we get a nice animated fractal.

Click here for source code.

Marble texture

WebGL program that procedurally generates a marble texture. First a noise texture is created, using my implementation of Worley cellular noise (based on Voronoi diagrams). The noise texture is then used for domain distortion of the dark stripes, creating the deformation effect. The pinkish background pattern is also generated using the noise texture.

Click here for source code.

Noisy flame

Using a procedurally generated Worley noise texture, domain distortion, and a simple color spline to create an animated flame.

Click here for source code.

Noisy water

Using a procedurally generated Worley noise texture, a simple color spline, and domain distortion, to create an animated pattern resembling the waves on the surface of a lake or a pool.

Click here for source code.

Interactive WebGL

A simple drawing program that tests the touch/mouse event functionality of my WebGL helper library.

(Source code on GitHub.)

Draw a shape on the screen with the mouse or finger, and the path appears once you release your mouse button or stop touching the screen. The path is color coded based on the movement direction of the mouse/touch while drawing.

Click here for source code.


Billowing clouds and day/night cycle in this animation. Done with procedurally generated fractal Worley noise texture, and application of simple color splines.

Click here for source code.

Pencil drawing

Simulating pencil drawing of a mountain range, by combining white noise to create the pencil effect, and Worley fractal noise to create the ruggedness of the mountains.

Click here for source code.

Bumpy cobblestone town

I have originally written this program in C (OpenGL), and later translated it into JavaScript and WebGL. Its main purpose is to demonstrate automatic generation of bumpmaps from images. In this case, the cobblestone texture and the images of the buildings. The bumpiness of the cobblestones and buildings is most evident during sunset and sunrise.

In addition, the program demonstrates interactivity. You can navigate the town by dragging with the mouse or by panning on a touch screen.

Click here for source code.

Scientific publishing using web technologies

  1. Forty years since Smith-Fretwell - an experiment with typesetting of scientific papers using web technologies. The scientific content is my own work on mathematical modeling of evolution of offspring size, in the context of an earlier work by Smith and Fretwell (1974).