Endless POVabilities- By Sonya RobertsThe Fifth Lesson - Fun With ImagesImages can be used to create many special effects to enhance the graphics we create. They can be used as a "height field" to create landscapes and "carved" surfaces, applied to objects as image maps to colour them, as bump maps to give them a textured surface, and as material maps to vary what materials are applied to different areas of an object. In this lesson, we're going to try out some simple examples of each of these methods. When we're done, we'll have created a simple scene that utilises images in many different ways to create very different effects. The files for all the examples used here are included in this zip file. As usual, the examples shown here skip over the "lights, camera, background" part of these sample files.
Part 1 - Image MapsOne of the simplest things to do with an image is to use it as in image within your scene. You can make a poster on a wall, a photo in a frame, or a label on a pop can, all through the simple method of taking an image and applying it onto an object. Let's look at how we'd create three simple objects by applying image maps to very basic shapes. Suppose we were going to make a scene that showed a polaroid photo, a small globe of the world, and a can of pop; by applying image maps to a box, a sphere, and a cylinder respectively we can make the basic shape for each of these objects, and do some minor additional CSG work to add details as needed. The "polaroid" is the first one we'll tackle. For this, we'll want to apply the image as a planer (flat) mapping. By default, POV projects the image along the X-Y plane, so it fits into the space from <0,0,0> to <1,1,0> with each pixel applying it's colour along the Z-axis from -infinity to +infinity. So for our polaroid photo, we'll need to rotate the texture around the X-axis and scale it to fit the dimensions of our picture area. image.povPolaroid Photo
Next we'll create the globe. For this, we'll use a spherical mapping. To tell POV to use a mapping type different than the default planar, we use a parameter called map_type. Spherical mapping is type "1". The image will be formed into a sphere centered around the origin, with the top and bottom edges contracting to become the poles, and the left and right edges joining to form a seam from pole to pole. We'll create our object at the origin as well, so that the image will map correctly to it, and then translate it into it's final position. Globe of World
Finally, we'll create the can of pop. For this we'll CSG an image mapped cylinder with some additional cylinders and torii to form a basic popcan shape. We tell POV to use a cylindrical mapping for the image by using map_type 2. Cylindrical maps are centered around the Y-axis, and fit from <0,0,0> to <0,1,0>, so we'll need to create our cylinder and scale the texture accordingly. Can of Pop
![]() |
<Crystal Clarity>
<Topas Try Me's> <Povabilities> <Soap Box> <Cranky's
Corner>
<Top> <Home>
<CG Web Board> <Contact>
The Rendering Times: Design and Copyright & © 1998 -- David Chandler Spake. All rights reserved. Reproduction in whole or in part in any form or medium without the express written permission of DCS is prohibited.