documentation projects applications publications gallery download
BOOGA
Virtual Emmental

Up ]

Using bitmap textures with BOOGA

Besides the shading language, bitmap textures are one of the most powerful rendering methods in computer graphics.

PolygonMapper BSDL language extension

The Polygonmapper BSDL language extension was originally implemented by Thierry Mattey as a BOOGA shader using the shading language. Bernhard Bühlmann implemented the Polgonmapper texture in C++ and adapted the OpenGL rendering engine. Both raytracing and OpenGL rendering now produce the same results when using bitmap textures.

The syntax of Polygonmapper

polygonmapper ("image.jpg", sx, sy, alpha, [tx, ty], [nx,ny,nz]) {
  specular (r,g,b);
  specpow s;
  ambient (r,g,b);
  reflectivity r;
}
sx, sy scaling of the texture coordinates (default: 1,1).
alpha angle of rotation of texture coordinates (default: 0).
[tx,ty] 2D translation vector of texture coordinates.
[nx,ny,nz] normal vector of the plane, to which the texture is mapped.
specular(r,g,b) Specular RGB color as in Phong model
specpow s s is teh size of the highlights on the objects. Values from 1-10 produce small highlights, valuse from 11-60 smaller ones.
reflectivity r r is the reflectivity of the bitmap. Values close to 0.0 apply no reflecticity, values towards 1.0 produce a mirror effect.

Example

wpeA.jpg (3513 Byte) wpe9.jpg (3421 Byte)
 

Last changed: 12.05.98

Back Home Up Next

documentation projects applications publications gallery download

BOOGA - A project of the fcg Research group of the Insitute of Computer Science of the University of Berne