From: Brad Schwagler (bschwagg++at++yahoo.com)
Date: 02/13/2003 19:26:58
One method to create rain would be to use a sheet of
rain. Basically, a polygon textured with a
transparent background and opaque rain drops. To make
the rain fall you can use a pfEngine with the texture
coordinates to make the texture continuosly wrap or
'fall'. An alternate solution to this (the way I did
it) was use a DCS to lower the rain sheet. When the
texture is at a point where it matches a same wrapped
texture above it, reset the DCS to the starting
height.
What seems to look OK, is surround the viewpoint with
a grid of rainsheets. You have to play around with
the spacing and number of sheets to use to look
realistic. Each rainsheet has to stay stationary
relative to it's X,Y coordinate. If it is moving, as
in the cylinder object idea, it isn't real and will
either give you a massive headache or sick. Once you
move past a rainsheet in one direction take the row of
rainsheets behind the view and translate them to the
first row in front of the view. If you set it up in
every direction, it looks fairly realistic.
Another note: place the rainsheets on pfBillboards so
that they will always face the camera viewpoint.
This, in essence, resembles the cylinder object you
initially tried out. Also, it looks more natural to
have each rainsheet fall at a slightly different
speed.
I don't know if this is simpler but it does work.
best of luck Chee,
brad
--- Chee Tzuon <CheeTzuon++at++stts.com.sg> wrote:
> Hi pfAll,
>
> I've read the thread on creating rain and snow
> effects with a cylinder object with rain texture and
> attached to the view point.
> Had tried but the result is not satisfactory and
> also having problems wrapping the texture around the
> object.
>
> Does anyone have some examples for reference? or
> Does anyone have a better and simplier method?
>
> An example source code will be appreciated.
>
> Thanks
> Regards Jason
>
>
-----------------------------------------------------------------------
> List Archives, Info, FAQ:
> http://www.sgi.com/software/performer/
> Open Development Project:
> http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests:
> info-performer-request++at++sgi.com
>
-----------------------------------------------------------------------
>
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
This archive was generated by hypermail 2b29 : Thu Feb 13 2003 - 19:28:03 PST