|
![](/i/fill.gif) |
It seems POV-Ray has problems reading ppm-files it has generated itself.
- Run the first scene, then use the result in the second scene below.
- With any value of the +fp commandline-switch between 0 and 13 for the
first scene, rendering the second scene results is an error:
File: D:\Ingo\SceneTest\test2.pov Line: 47
image_map {
ppm "test1.ppm" <----ERROR
Parse Error: Unsupported number of colors (0) in PPM image.
- If the value for +fp is in the range 14-16, an image is rendered but the
result is garbled.
- Doing the same with png's gives a perfect result.
====================================
// test1.pov
// +w500 +h500 +fp(0-13)(14-16)
#version 3.5;
global_settings {assumed_gamma 1.0}
camera {
orthographic
location -z
look_at 0
right x*image_width/image_height
angle 90
}
box {
<-1,-1,0><1,1,1>
pigment {
gradient y
translate <0,0.5,0>
scale 2
}
finish {ambient 1}
}
=====================================
// test2.pov
// +w500 +h500
#version 3.5;
global_settings {assumed_gamma 1.0}
camera {
orthographic
location -z
look_at 0
right x*image_width/image_height
angle 90
}
box {
<-1,-1,0><1,1,1>
pigment {
image_map {
ppm "test1.ppm"
interpolate 2
once
}
translate <-0.5,-0.5,0>
scale 2
}
finish {ambient 1}
}
======================================
POV-Ray 3.5.icl.win32, Win2000, Athlon 1800+, 1.5 GB
Ingo
Post a reply to this message
|
![](/i/fill.gif) |