In this recipe, we will create a spaceship hull material. We will add random, tiny light windows based on the values of procedural textures, and the spaceship's logo as if it were painted in red on the hull, as shown in the following screenshot:
To start creating this spaceship hull, we need the spaceship and space first. Follow these steps to build a quick and easy model and set up the scene:
Start Blender and switch to the Cycles Render engine. Select the default Cube and delete it.
With the mouse arrow in the 3D view, press Shift + A and add a Torus primitive (press Shift + A and navigate to Mesh | Torus). In Edit Mode, scale it to at least twice its current size (press A to select all the vertices, then type S, enter 2, and press Enter).
Exit Edit Mode, and in Outliner, select the Lamp object. In the Object data window, change it to Sun. Then set the Size value...