POV-Ray : Newsgroups : povray.general : Plot 3d surface for math funtion : Plot 3d surface for math funtion Server Time
8 Jul 2024 13:11:22 EDT (-0400)
  Plot 3d surface for math funtion  
From: xslittlegrass
Date: 2 Jun 2014 00:00:01
Message: <web.538bf59667911eab4277cb5c0@news.povray.org>
I'm trying to use POV-Ray to plot some mathematical 3d functions, and I can make
a simple plot of the function, but I don't know how to make it look beautiful.

For example, I'm trying to plot this function

y=Sin(x)*Cos(z)

using this code:

isosurface {
function { sin(x)*sin(z)-y }
        accuracy 0.001
        contained_by{box{-2*pi,2*pi}} open
        max_gradient 5
        pigment {rgb .9}
}
camera {
  location <10,10,10>
  look_at   <0.0, 0.0,  0.0>
}

light_source { <50,50,50> 1 }
background { rgb <0,.25,.5> }

and I can get a result look like this
http://imgur.com/jxElYiI

but how can we make it look like this

http://www.mitchr.me/SS/mjrcalc/lispy/exPovWaveGraph-ART_p.png

Any suggestions and comments are appreciated.


Post a reply to this message

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