POV-Ray : Newsgroups : povray.beta-test.binaries : another PGM test file Server Time
16 May 2024 11:54:19 EDT (-0400)
  another PGM test file (Message 1 to 1 of 1)  
From: Mike Hough
Subject: another PGM test file
Date: 2 Oct 2001 19:48:58
Message: <3bba526a@news.povray.org>
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)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.