POV-Ray : Newsgroups : povray.advanced-users : drapes/curtians Server Time
26 Nov 2024 13:46:08 EST (-0500)
  drapes/curtians (Message 1 to 10 of 10)  
From: Robert Jefferson
Subject: drapes/curtians
Date: 1 Apr 2000 09:31:28
Message: <38e60840@news.povray.org>
How do you make drapes for a romm

--
-----------------------------------------------------
Click here for Free Video!!
http://www.gohip.com/freevideo/


Post a reply to this message

From: Eiki Martinson
Subject: Re: drapes/curtians
Date: 1 Apr 2000 17:36:08
Message: <38E7CD8C.2F540D64@gate.net>
Robert Jefferson wrote:

> How do you make drapes for a romm
>
> --
> -----------------------------------------------------
> Click here for Free Video!!
> http://www.gohip.com/freevideo/

Bezier patches may be good for this, depending on what you need. Check
out Mike Clifton's Spatch, a graphical patch modeller for MS Windows.


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: drapes/curtians
Date: 1 Apr 2000 18:27:03
Message: <38E685A3.E0FACDE9@hotmail.com>
Robert Jefferson wrote:
> 
> How do you make drapes for a romm
> 
> --
> -----------------------------------------------------
> Click here for Free Video!!
> http://www.gohip.com/freevideo/

Maybe you could make a mix of long cut 
cylinders and cones.

Tor Olav

-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

From: Amedeo Paglione
Subject: Re: drapes/curtians
Date: 2 Apr 2000 05:26:24
Message: <38e71240@news.povray.org>
Robert Jefferson <bob### [at] mindspringcom> wrote in message
news:38e60840@news.povray.org...
> How do you make drapes for a romm
>
> --

I would use the "Striscia" macro file, it is a very powerful macro. You can
find it at:
http://members.xoom.com/_XMCM/dvarrazzo/epov.htm

Amedeo


Post a reply to this message

From: Margus Ramst
Subject: Re: drapes/curtians
Date: 2 Apr 2000 09:08:06
Message: <38E73886.605E7502@peak.edu.ee>
I've gotten pretty passable results with height_fields.
Try something like a stretched bozo pattern.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

From: Mike Williams
Subject: Re: drapes/curtians
Date: 2 Apr 2000 10:23:25
Message: <WHb+MDAOa154EwCm@econym.demon.co.uk>
Wasn't it Robert Jefferson who wrote:

>How do you make drapes for a romm

I do it with isosurfaces.

I built it up like this:-

Stage 1: a vertical plane contained by a box gives a flat rectangle.

  isosurface {
    function { z }
    contained_by {box {-1,1}}
    open
  }


Stage 2: add a sin wave in the x direction to create folds in the
material

  function { z + sin(x*12)*0.15 }


Stage 3: add a second wave with a different frequency to make the folds
look less regular

  function { z + (sin(x*12)+cos(x*7))*0.15 }


Stage 4: the curtains in my room have a tendency to be less folded at
the top, where they meet the curtain rail. To reduce the folding to zero
at (y=1) we would multiply the fold effect by (y-1), but the material
isn't perfectly straight at the top, so try multiplying by (y-1.5) so
that the zero point is a little way off the top.

  function { z + (sin(x*12)+cos(x*7))*0.15*(y-1.5) }

Stage 5: but now the folds have become a little exaggerated at the
bottom edge, because ay y=-1 they're being multiplied by -2.5, so reduce
the 0.15 factor.

  function { z + (sin(x*12)+cos(x*7))*0.05*(y-1.5)}

Stage 6: that's not bad for heavy curtains, but perhaps lighter curtains
should have a high frequency component to the folds, like this

  isosurface {
    function { z + (sin(x*12)+cos(x*7)/2-sin(x*50)/4)*0.025*(y-1.5)}
    contained_by {box {-1,1}}
    open
    pigment {rgb <1,.5,0>}
  }


If you're using MegaPOV 0.3 or earlier, replace "contained_by  open"
with "clipped_by".

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Ken
Subject: Re: drapes/curtians
Date: 2 Apr 2000 10:50:55
Message: <38E75E89.D3DBE14E@pacbell.net>
Mike Williams wrote:
> 
> Wasn't it Robert Jefferson who wrote:
> 
> >How do you make drapes for a romm
> 
> I do it with isosurfaces.

Just a reminder...

...if you are using the official version of POV-Ray this method will
not work because Isosurfaces are not yet supported.

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Chris Huff
Subject: Re: drapes/curtians
Date: 2 Apr 2000 12:43:37
Message: <chrishuff_99-17A2D2.11460002042000@news.povray.org>
In article <WHb+MDA### [at] econymdemoncouk>, Mike Williams 
<mik### [at] econymdemoncouk> wrote:

> Wasn't it Robert Jefferson who wrote:
> 
> >How do you make drapes for a romm
> 
> I do it with isosurfaces.
> 
> I built it up like this:-
...

I prefer to use noise3d() instead of sin() or cos(), here is an example:

    function {z-
        ((noise3d(x*Freq,0,z)*2)-1)*sqrt(y)*Depth
        +((noise3d(x*Freq*5,0,z)*2)-1)*(1/(abs(y)+0.5))*Depth*0.3
    }
    threshold 0

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Paul Jones
Subject: Re: drapes/curtians
Date: 3 Apr 2000 08:15:00
Message: <38E88B3B.A8110AB2@psu.edu>
I find that S-Patch does a good job, plus with the render preview, you get
to see exactly what it will look like, so you can tweak the folds and
ruffles. But, it is sometimes hard to make a bicubic patch which fits in
with all the other objects in a scene.

-paul

Eiki Martinson wrote:

> Robert Jefferson wrote:
>
> > How do you make drapes for a romm
> >
> > --
> > -----------------------------------------------------
> > Click here for Free Video!!
> > http://www.gohip.com/freevideo/
>
> Bezier patches may be good for this, depending on what you need. Check
> out Mike Clifton's Spatch, a graphical patch modeller for MS Windows.


Post a reply to this message

From: Ron Parker
Subject: Re: drapes/curtians
Date: 5 Apr 2000 12:58:48
Message: <slrn8emse5.bfg.ron.parker@not.a.valid.hostname>
On Mon, 03 Apr 2000 08:14:51 -0400, Paul Jones wrote:
>I find that S-Patch does a good job, plus with the render preview, you get
>to see exactly what it will look like, so you can tweak the folds and
>ruffles. But, it is sometimes hard to make a bicubic patch which fits in
>with all the other objects in a scene.

Not if you make them by hand rather than in a modeler; you might check out
the code in my IRTC entry for inspiration.  It would have been in the 
"imaginary worlds" round.


Post a reply to this message

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