|
|
This one is another one in ASCII format designated by the magic number P2.
It's a 6x6 pixel image. Because of the low res there's really nothing to
look at. It includes a # to show that bug as well. Here's a scene to test
it with:
light_source {<0, 20, 20> color rgb <1, 1, 1>}
camera {location <0, 1, 0>
look_at 0
}
height_field {
pgm "test.pgm"
smooth
translate <-.5, 0, -.5>
scale <1, .1, 1>
pigment {color rgb <1, 1, 1>}
}
/*
plane {y, 0
pigment {
image_map {
pgm "test.pgm"
once
}
rotate 90*x
translate <-.5, 0, -.5>
}
finish {ambient 1}
}
*/
/* the data in the PGM file
P2
#
6 6
65535
40000 0 60000 0 0 0
40000 0 0 0 20000 0
40000 0 60000 0 20000 0
40000 0 60000 0 20000 0
40000 0 0 0 20000 0
40000 0 0 0 20000 0
*/
Post a reply to this message
Attachments:
Download 'test.pgm.txt' (1 KB)
|
|