POV-Ray : Newsgroups : povray.binaries.images : Chocolate glazed cake donut (26.5k bu) : Re: Chocolate glazed cake donut (26.5k bu) Server Time
3 Oct 2024 13:22:15 EDT (-0400)
  Re: Chocolate glazed cake donut (26.5k bu)  
From: SamuelT 
Date: 20 Feb 2000 19:37:17
Message: <38B08B1F.52A56C87@aol.com>
Sorry, I've been gone for a week. Here's the code for tha glaze. I used the
blobbing technique, but reversed part of it to make a smooth csg difference
operation.

#declare Thr=.0000001;

isosurface{

function
  (1+Thr)
  -Thr^(sqr( x^2+z^2-.6 )+.7+sqr(y*1.8)+cub(noise3d(x*4,y*4,z*4)/5))
  +Thr^((y+.8+noise3d(x*4,0,z*4)/4)^2)

 threshold 1 sign 1
 contained_by{box{<-1.1,-.5,-1.1>,<1.1,.35,1.1>}}
 pigment{rgb<.6 .5 .2>}
 finish{phong 1}}
}


TonyB wrote:

> How did you do that? I can think of any pattern that does that... I tried in
> vain to use planar and an image_map, which was obviously not suited for
> donutting. Please explain.

--
Samuel Benge

E-Mail: STB### [at] aolcom

Visit the still unfinished isosurface tutorial: http://members.aol.com/stbenge


Post a reply to this message

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