POV-Ray : Newsgroups : povray.binaries.images : Spline trunk : Re: Spline trunk (jpg 24,4Kbbu) Server Time
14 Aug 2024 13:20:43 EDT (-0400)
  Re: Spline trunk (jpg 24,4Kbbu)  
From: Marc-Hendrik Bremer
Date: 7 Oct 2002 06:46:40
Message: <3da16610@news.povray.org>
"Gena Obukhov" <obu### [at] mailcom> schrieb im Newsbeitrag
news:3DA10D20.A10F06A6@mail.com...
> Unfortunately, the bark doesn't follow the spline.

That's why I said you should declare your isosurface function first :-) How
about the if you displace the bark function too, you will get better
results.

How about this?

#declare Trunk_Fun=   function {pow(y ,2) + pow(z , 2) - 0.07  +
F1(x,y,z).grey*0.025}

#declare Trunk1 = isosurface {
 function {Trunk_Fun(x,y- S(x).y, z- S(x).z)}
 max_gradient 5
 contained_by{box{<0, -0.2, -1>, <0.8, 2, 1>}}
 pigment{Bark1}
 finish {ambient 0.2 phong 0}

 rotate -x*90
 scale<4, 1, 1>
 rotate z*90
}


Post a reply to this message


Attachments:
Download 'Spline_Trunk.jpg' (25 KB)

Preview of image 'Spline_Trunk.jpg'
Spline_Trunk.jpg


 

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