|
|
Granted, I don't realy know about isosufaces but copied an example from the
tutorials, but with the following code I don't get a sphere but a perfectly
smooth cube
// Test code
#version 3.7;
#include "colors.inc"
#include "functions.inc"
light_source {< -400, 1000, -500>, color 1.0 }
global_settings {
ambient_light 0
noise_generator 3
assumed_gamma 1.0
}
#declare SimpleBlock =
isosurface{
function {
f_sphere( x, y, z, 2.6) -
f_noise3d( x, y, z ) * 0.5
}}
object { SimpleBlock pigment { red 0.5 }}
plane { y, -25 pigment { Gray50 }}
camera {
location <2, 1.5, -6>
look_at 0
direction z * 1.0
right image_width / image_height * x
}
// End code
Most likely I'm doing something wrong. but fail to see what.
Any hints appreciated.
Running povray 3.7.0 RC7 on opensuse 12.3
--
Ger
Post a reply to this message
|
|