Various

On this page I collect a number of rather simple demos.


Inline texture cube


This demo is a simple variation of the cube demos in the "16 simple" set. My standard inline texture "minitex" is applied to each side of a cube. This was an intermediate step towards the more interesting "mipmapcube" and "faked bumpmap". Thus, the whole point was to make a small example with an inline cube with texture coordinates.


Updated 2017 for Linux Mint.


Inline-texture-cube.tar.gz



Phong bunny


A prequel to some other demos with Phong shaded bunnies, but now also an example of using the mouse buttons.


Phong-bunny.tar.gz



Phong Stanford bunny


Many of my demos use the simple, nameless, bunny model of unknown origin, but here I use the well-known Stanford bunny instead.


Phong-Stanford-bunny.tar.gz



Simple shadow


The simplest way to make a shadow on a flat surface. Same as in TSBK03 lecture 3.


download



Planet system


An example of making hierarical animation, witn two spheres and a teddy satellite.


Planet-system.tar.gz



Textured glossy sphere


A simple example of gloss mapping.


http://computer-graphics.se/demos/files/Textured-glossy-sphere.tar.gz



Multitextured bunny


This is the multitextured bunny that I show at the lectures.


multitextured-bunny.tar.gz



Warprotation


The simple white triangle demo, here reused as demo for glutWarpPointer. This may help you to make a decent mouse control. The demo locks the mouse pointer in the middle of the window with glutWarpPointer and uses the x offset to rotate the triangle.


Tested on Mac and Linux.


warprotation.zip

This page is maintained by Ingemar Ragnemalm.