POV-Ray : Newsgroups : povray.binaries.images : Bamboo test 1. : Re: Bamboo test 1. Server Time
19 Aug 2024 16:19:25 EDT (-0400)
  Re: Bamboo test 1.  
From: Sigmund Kyrre Aas
Date: 11 Dec 2000 06:55:53
Message: <jdb93tcekq10samukhuo5gm21v0cfbo3jv@4ax.com>
On Mon, 11 Dec 2000 07:31:21 +0100, Rob Verweij
<rg.### [at] worldonlinenl> wrote:

>I have some difficulties on deciding what the best way of "modeling" is for
>the segments. Texturing them is easy but "modeling" them isn't (well at least
>for me it isn't). I thought I could do it by using a gradient bump map but

I've tested my function posted in p.a-u and it works ok. I Threw in
some variable names just so you know what to tweak. The
R*(.995-y*.005) part is used to make the straw thinner at the top.

$R=3;
$Segment_curve=2;
$Segment_length=5;
isosurface {
    function {
sqrt(Segment_curve*cos(y/Segment_length))+x^2+z^2-R*(.995-y*.005)}
    accuracy 0.001
    contained_by{box{-<R,50,R>,<R,50,R>}}
    pigment {rgb .9} finish {phong 0.5 phong_size 10}
}

sig
-- 
ICQ 74734588


Post a reply to this message

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