|
|
Wasn't it Xedi who wrote:
>Hello everyone, I'm new to Povray, and enjoying all the math in it.
>I would like to be able to apply a grid on a surface, similarly to this
>image :
>http://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Saddle_pt.jpg/600px-
>Saddle_pt.jpg
That sort of grid, where the grid is fixed in space rather than
following the surface, is easy. Compare this to the wiki image
camera { location <4, 8, -4>*2 look_at <0, 0, 0> angle 10}
background {rgb 1}
light_source {<0,200,0> colour rgb 1}
#declare T1 = texture {
pigment {
gradient x
colour_map{[0.05 rgb 0]
[0.05 rgbt <1,1,1,1>]
[0.95 rgbt <1,1,1,1>]
[0.95 rgb 0]
}
}
scale 0.1
}
isosurface {
function { y+cos(x*pi)*0.2-cos(z*pi)*0.3} open
max_gradient 1.5
contained_by{box{ <-2,-0.6,-0.8><2,0.6,0.8>}}
texture{pigment {rgb .9*y}}
texture {T1}
texture {T1 rotate y*90}
texture {T1 rotate z*90 scale 2.1 translate y*0.1}
}
Post a reply to this message
|
|