POV-Ray : Newsgroups : povray.newusers : Isosurface and image_map : Isosurface and image_map Server Time
6 May 2024 21:31:32 EDT (-0400)
  Isosurface and image_map  
From: Edward Willem
Date: 28 Sep 2014 14:15:01
Message: <web.54284fa3a29fd8eb5f88611d0@news.povray.org>
I require a planar surface that truly has a rough surface. So my idea is to
implement an isosurface and use the function f_noise3d() as in the documentation
here: http://www.povray.org/documentation/view/3.6.1/73/#l27

However, I also need to map the rough plane with an image. Whenever I try to use
image_map with map_type 0 (plane-map), the object disappears completely but with
map_type 1 (sphere-map), the plane is mapped with a spherical mapping and I can
still see the object. But I do not want a sphere mapping. Any thoughts on how to
achieve a plane mapping onto an isosurface?

I have tried adjusting the accuracy and max_gradient as in the documentation
here: http://www.povray.org/documentation/view/3.6.1/157/. However, this does
not help.

#include "colors.inc"
#include "functions.inc"

#declare filename = concat("myfile.png")

isosurface {

 function { x + f_noise3d(0, y, z) }
 contained_by { box { <-5,-5,-5>, <5,5,5> } }
 accuracy 0.1 //adjust?
 max_gradient 1.1 //adjust?
 open
  pigment {
   image_map {
    png filename
    map_type 0 //changing to 1 allows me to see object but with spherical
mapping
    interpolate 2
    once
   }

  }
 scale 1
 rotate<0,90,0>
 translate<0,0,10>

}

light_source { <0, 0, 0> color White}


Post a reply to this message

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