POV-Ray : Newsgroups : povray.newusers : Isosurface troubles : Isosurface troubles Server Time
4 Nov 2024 21:26:29 EST (-0500)
  Isosurface troubles  
From: nathan 2002
Date: 22 Oct 2002 13:15:17
Message: <web.3db5874eec4f27f545704aba0@news.povray.org>
The following is a scene of a narrow canyon. How do I get the groove do bend
left or right, so I can see the canyon curve to the left and right(and set
the bounding box smaller) ?



// The_Gash.pov

#include "colors.inc"
#include "functions.inc"
#include "math.inc"
#include "transforms.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.0, 7.0, 40.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 5.0,  0.0>
}

sky_sphere {
  pigment { rgb <0.6,0.7,1.0>
  }
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-10, 40, -30>
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <40, 10, 30>
}






// create a isosurface object - the equipotential surface
// of a 3D math function f(x, y, z)
//#declare fn_X = function(x,y,z) {  x*x + y*y - 1 + pow(2,abs(x)) }  //
cylinder function
isosurface {
  function {-pow(2,abs(x))+y-f_noise3d(x*5, y*5, z*5)*2+2-f_noise_generator
(x,y,z, 1)*2 } //open
  contained_by { box { <-40,-8,-80>, <40,16,80> } }
  accuracy 0.01
  max_gradient 4
  pigment {Brown}
 Shear_Trans(x, y, cos(z))}



plane{
 y,3  pigment { rgbf <0,0,1,.1> }
        normal{ dents turbulence <5.0, 0.6, 0.1> } interior { ior 1.33 }
finish{ ambient .1 diffuse .9 reflection 0.3 }}


Post a reply to this message

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