POV-Ray : Newsgroups : povray.binaries.images : A puzzle for everyone : Re: A puzzle for everyone Server Time
4 Oct 2024 19:22:17 EDT (-0400)
  Re: A puzzle for everyone  
From: SamuelT 
Date: 24 Feb 1999 22:58:56
Message: <01bd426b$fa3d57e0$116bd3ab@default>
Bingo! What I wanted to do more than anything else is to make people aware
of the superpatch's ability to make brand-new pigment types from
mathematical functions, using the isosurafce. I found the isosurface to be
a thing which can be learned, even though I had no previous experience
using such math equations. Simple trial and error leads to learning.

Fabien Mosen wrote:

> Looks like iso-surface with an iso-texture, right ?
> 
> Fabien.

Here is the code for all you superpatch users:

camera{location<0,5,-10>look_at<0,0,0>angle 35 rotate y*-45}

light_source{<100,200,-50>rgb 1.2}

sky_sphere{pigment{gradient y color_map{[0 rgb 1][1 rgb<.3 .7 1>]}}}

isosurface{
  function sqr(x+sin(z*2))+y^2+.5
  bounded_by{box{<-2,-1,-4>,<2,0,4>}}
  sign 1
  threshold 1
  
pigment{ function sqr(x+sin(z*2))+y^2+.49
  frequency 8 color_map{[0 rgb<.3 .3 .15>][1 rgb<.9 .9 .8>]}}

finish{phong 1}
}


Post a reply to this message

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