POV-Ray : Newsgroups : povray.general : Isosurface help : Isosurface help Server Time
30 Jul 2024 08:15:29 EDT (-0400)
  Isosurface help  
From: Anthony D  Baye
Date: 22 Jun 2009 11:15:00
Message: <web.4a3f9ed3c397323eccc08f5a0@news.povray.org>
I'd like to convert the following isosurface into a height_field with a
function, but I'm having trouble getting the effect to work.  As it is, it
renders INCREDIBLY slowly.

#declare P1 =
function {
pigment {
crackle
color_map { [0.0 rgb 0 ] [0.08 rgb 1 ] }
turbulence 0.2
}
}

#declare P2 =
function {
pigment {
crackle
color_map { [0 rgb 0] [0.025 rgb 1] }
}
}

#declare P3 =
function {
pigment {
wrinkles
color_map {
[0 rgb 0]
[0.025 rgb 0.8]
[0.05 rgb 0.07]
[0.25 rgb 0.02]
[0.275 rgb 1.0]
[0.32 rgb 0.0]
}
turbulence 0.8
}
}

#declare Scale1 = 1.5*ft ;
#declare Scale2 = 0.3*ft ;
#declare Scale3 = 3.0*ft ;
#declare Height1 = 0.6*ft ;
#declare Height2 = 0.3*ft ;
#declare Height3 = 0.5*ft ;

isosurface {
function { y - P1(x/Scale3,0,z/Scale3).x*Height3 -
P3(x/Scale3,0,z/Scale3).y*Height3 - P2(x/Scale2,0,z/Scale2).x*Height2 }
//max_gradient 10
evaluate 1.2 4, 0.7
accuracy 0.01
threshold -(Height1+Height2)
contained_by { box { <-1e9, -3.0, -1e9>  <1e9, Height3, 1e9> } }
all_intersections
}

And no, a patterned texture won't do.

A.D.B.


Post a reply to this message

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