POV-Ray : Newsgroups : povray.general : Applying grid to isosurface Server Time
26 Dec 2024 13:21:41 EST (-0500)
  Applying grid to isosurface (Message 1 to 3 of 3)  
From: Xedi
Subject: Applying grid to isosurface
Date: 15 Mar 2006 10:35:00
Message: <web.441831a9134eb929e606030f0@news.povray.org>
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

When trying, for example, a checkered texture, it is of course not uniform
in x and z directions (for example, on a plane parallel to the y axis, I
would expect not to see any grid lines perpendicular to the plane).
To explain another way, I would like to be able to project the grid (that is
on
the xz plane) onto the surface, perpendicularly to the plane (to be able to
see easily how the surface actually is)

Can anybody please give me a hand here ?


Post a reply to this message

From: Mike Williams
Subject: Re: Applying grid to isosurface
Date: 15 Mar 2006 11:29:59
Message: <CDWT$AA8DEGEFw60@econym.demon.co.uk>
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

From: Xedi
Subject: Re: Applying grid to isosurface
Date: 15 Mar 2006 11:45:01
Message: <web.441843a9a62a873be606030f0@news.povray.org>
Wow, thanks a lot.


Post a reply to this message

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