Modelling programs also allow for the creation of simple primitives directly spheres, cubes, cylinders, pyramids, etc. These can then be combined together using Boolean operations, either 'additively or subtractively. An example: the gear-wheel will need a hole drilled in the centre for it to fit on a shaft. Mter the gear-wheel has been created, you then create an appropriately sized cylinder, position it in the centre of the gear-wheel, and subtract it from the gear with a Boolean operation. Again, this is done automatically, many new triangles are created and the gear wheel now has the appropriate hole - the two objects have been replaced by just one. Building up complex structures in this way tends rapidly to create large numbers oftrian¬gles, many of which are unnecessary. It is often useful to go in and do some low-level editing, and many applications provide some type of simplification or tidying-up proce¬dure. The gear-wheel now needs some colour.
There are usually many factors associated with a surface - even with individual trian¬gles - that give the final look when it is rendered. The most obvious is colour, but this is not as simple as one might at first think. The colour of an object when viewed depends on the light that is reflected from its surface. The process of co louring an object during rendering is called shading. The reason for this term is simple: consider a ball illumi¬nated by a light on only one side. The ball will not have uniform colour all around, but the side facing the light will be bright, and the side away from the light will be dark, be in shadow. To render this properly, the colour needs to be shaded around the ball, from bright on one side to dark on the other. There are many different software techniques for shading, which we do not need to go into here.
Also, the colour of the light that hits the object in the first place may itself not be pure white, and the two main ways in which objects reflect that light are referred to as diffuse and specular. Think of a piece of brass for our gear-wheel or other shiny metal. The general colour of the brass is due to diffuse reflection, but the polished metal also reflects similarly to a mirror - this will give rise, when lights and bright objects are pres¬ent, to specular highlights visible on the brass surface. There is more to colour than this, but those are the basic principles.
Next, consider a polished piece of wood. This will have a general diffuse colour, possi¬ble specular highlights if it is well polished, and also a pattern due to the grain of the wood. The pattern is often produced in model¬ling by using a raster image - in this case, perhaps even a digital photograph of real wood. Such an image is called a texture map, and within the software it needs to be speci¬fied just how the image is applied to the object surface. For example, with a building you might well have a texture map of a few bricks, perhaps a square section, and this will need to be repeated - tiled - over the surface many times. In another example, the airline log on the side of an aeroplane needs to be used just once, with a particular relative size and exact position.