|
|
/* see related message at p.b-t. */
/* use respective cmd comment to render with, depending on GrayImage */
#declare GrayImage=yes; // yes to make input image, no for final output
#if (GrayImage=yes)
/* please note that the +hi file may be different from yours */
// cmd: +hiBeta8fix.inc +fn +w900 +h900 +oc:\images\isogray16.png
// cmd: +hiBeta8fix.inc +ft +w900 +h900 +oc:\images\isogray16.tga
// cmd: +hiBeta8fix.inc +fp +w900 +h900 +oc:\images\isogray16.ppm
#include "functions.inc"
global_settings {
hf_gray_16 on // whether on or off, has contour lines
noise_generator 3 // 1, 2 or 3
}
camera{
orthographic
location y*10
up y*30
right x*30
look_at 0
}
isosurface{
function{y-f_noise3d(x,y,z)} // could this be the problem?
contained_by{box{<0,-0.1,-30>,<30,1,0>}}
// notice the default max_gradient, etc, is used
texture{pigment{gradient y}finish{ambient 1}}
translate x*-15+z*15
}
#else
/* be sure to use this command line when GrayImage=no ! */
// cmd: +hiBeta8fix.inc +fn +w320 +h240 +oc:\images\isotest16.png
#declare F_p=function {
pigment {image_map {
/* use input image intended for test */
png "isogray16.png"
// tga "isogray16.tga"
// ppm "isogray16.ppm" // errors, unsupported number of colors
}
rotate 90*x translate -.5}
}
isosurface {
function {y-F_p(x,y,z).gray*.1}
contained_by {box {-1,1}}
texture {pigment {rgb 1}}
scale <10,1,10> rotate -45*x translate <0,.25,2>
}
light_source {<10,10,-10>,1}
#end
Post a reply to this message
Attachments:
Download 'iso-gray_noise.pov.txt' (2 KB)
Download 'isogray16noise.jpg' (110 KB)
Preview of image 'isogray16noise.jpg'
|
|