POV-Ray : Newsgroups : povray.newusers : 'twas a dark and stormy night... (WIP) : Re: 'twas a dark and stormy night... (WIP) Server Time
1 Jul 2024 23:12:01 EDT (-0400)
  Re: 'twas a dark and stormy night... (WIP)  
From: Grassblade
Date: 24 Jun 2007 15:35:02
Message: <web.467ec66a6a461fd8798153040@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> Idialy, you need to have a way to confine the wind to a particular area of your
> cloth. I don't know if that's possible.
> Next, add some weight to the bottom of the cloth: best to simulate real curtains
> by making the cloth come back up some distance (3 to 10% of the curtain's
> height). Do the same to the edges but only for a small strip, typicaly only 1/4
> or less the width of the bottom trim. This mean that the bottom corners will
> have quadruple thickness. I've seen many curtains, mostly light fabric ones,
> fitted with a lead cord along the bottom: a string fitted with small lead beads.
> Curtains are normaly whider than the window. Have your cloth hang from a
> cylinder about 15%~25% shorter than itself, with the side edges lined to that
> cylinder.
> You may want to increase the weight and decrease the stiffness. Heavy curtains
> billow, light curtains flutter.
>
> --
> Alain
> -------------------------------------------------
> You know you've been raytracing too long when you downloaded and printed the
> Renderman Interface documentation, so you'd have a little light reading to take
> on holiday.
> Alex McLeod a.k.a. Giant Robot Messiah

I'm not sure it would work. I tried a number of things with Clothsim a few
months back. Since I wanted to make clothes, I arranged the points in a
cylindrical shape, but the simulation always failed around the third or
fourth iteration. Opening up the cloth so that it occupied about 300
degrees (as opposed to a full circle) also failed. I'm guessing there may
be some sort of singularity problem when points from opposing edges are too
close. Then again it could have been something else entirely.

I found a couple of examples in Megapov at the following address:
http://tofbouf.free.fr/clothray/mpg/mpg.html There's even a billowing
curtain animation but the code is not provided. Rideau.pov at
http://tofbouf.free.fr/clothray/mpg/rideau.pov is a curtain animation but
without wind.


Post a reply to this message

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