texture image imagenameThis texture pastes a RLE image onto a surface. Note that some implementations of Rayshade use other image formats (TGA or MTV). There are four main sources of images for you to use:
For another example of this texture look at the example with the disc primitive.
NOTE the use of the "IMAGES/" prefix to the image file-names. This tells rayshade to look in the "image library" which is located in the /RLE directory. This is specific to our instalation at UNSW. A discussion of how this is achieved is contained in the section "Creating an Images directory" in the next chapter.
Figure 7-8
/*
image.ray
Image Texture Example
Stephen Peter 15 Feb 93
*/
eyep 0 -1 1565
lookp 0 0 0
screen 300 227
background .9 .9 .9
light 1 point -600 0 1500
light 1 point 600 0 1500
#define PIC1 IMAGES/face.rle
#define PIC2 IMAGES/paint.rle
#define PIC3 IMAGES/snap.rle
#define PIC4 IMAGES/room.rle
name photo
box 0 0 -1 1 1 0
texture image PIC1 map planar
name paint
box 0 0 -1 1 1 0
texture image PIC2 map planar
name capture
box 0 0 -1 1 1 0
texture image PIC3 map planar
name rayshade
box 0 0 -1 1 1 0
texture image PIC4 map planar
object photo scale 600 550 1 translate -625 -90 0
object paint scale 600 320 1 translate -625 -460 0
object capture scale 600 470 1 translate 25 -10 0
object rayshade scale 600 400 1 translate 25 -460 0
Go to next section: Marble.
Return to Contents.
THE END - Notes on Rayshade - 7 - Textures - Image