|
|
In example:
http://www.f-lohmueller.de/pov_tut/tex/tex_651e.htm
#declare fn_Pigment_1 =
function {pigment{ Pigment_1} }
isosurface { //----------------------------
function{
f_rounded_box(
x,y,z,
0.15, // radius of curvature
1.5, 1.0, 1.625 // scale<x,y,z>
) //
- fn_Pigment_1(x,y,z).gray*0.25
} // end function
threshold 0
contained_by {box {<-2,-2,-3>,<2,2,3.5>}}
max_gradient 6
accuracy 0.0001
texture{
pigment{ Pigment_1 }
normal { crackle 0.5 scale 0.045}
finish { phong 1}
} // end texture
translate <0.5, 1.1, 0.375>
} // end of isosurface --------------------
http://www.f-lohmueller.de/pov_tut/tex/im/pattern_crackle_isosurface_4i.htm
My file:
#version 3.7;
#include "functions.inc"
global_settings {
assumed_gamma 1.0
max_trace_level 3
}
background {rgbt<0.0509, 0.0509, 0.0509, 0>}
#declare Material_tex = texture {pigment{rgb 0.8}}
#declare Pigment_1 = //------------------
pigment{ crackle
turbulence 0.25 scale 0.1
color_map{
[0.00 color rgb<1,1,1>*0]
[0.08 color rgb<1,1,1>*0]
[0.40 color rgb<1,0.55,0>]
[1.00 color rgb 1]
} // end of color_map
} // end of pigment -----------------------
#declare fn_Pigment_1 =
function {pigment{ Pigment_1} }
isosurface{ //-------------------------
function {
(f_devils_curve(x*x,y,z, 10) * f_cubic_saddle(x,y,z, 1)) -
fn_Pigment_1(x,y,z).gray
}
//contained_by{ sphere{<0,0,0>, 1} }
contained_by{ box{-1, 1} }
accuracy 0.03
max_gradient 1500
texture{ pigment{ Pigment_1}}
scale <1,1,1>*2
rotate <0,-20,0>
translate <0,0,0>
} // end of isosurface ----------------
light_source {
<8.95,5.9,9.18>
color rgb<1, 1, 1>
}
camera {
location <0, 0, 0>
look_at <0, 0, -1>
right <-1.6077777759896383, 0, 0>
up <0, 1, 0>
angle 49.134343
rotate <-27.098163, 46.688390, -0.903519>
translate <7.481132, 5.343666, 6.507640>
}
Not all in contained_by { box {-1, 1} } it is subtracted
Below on the right there was a smooth surface
Though, very beautiful stone turned out
I will make available manipulation with similar objects in Blender3d. It is very
valuable to creation of an interesting scene, for example, ancient architecture
or a fantasy. Very good! :)
Post a reply to this message
Attachments:
Download 'povwip_f_crack.png' (366 KB)
Preview of image 'povwip_f_crack.png'
|
|