POV-Ray : Newsgroups : povray.advanced-users : scattering media: help! Server Time
2 Nov 2024 07:24:03 EDT (-0400)
  scattering media: help! (Message 1 to 7 of 7)  
From: Sean Worle
Subject: scattering media: help!
Date: 15 Nov 1999 23:25:08
Message: <3830DC62.4327459@insurquote.com>
I have been trying to create a smoke effect using scattering media, but
I cannot seem to get any results.  Emitting and absorbing media work
fine, but scattering media appears completely invisible.  I got so
frustrated that I want and downloaded Glenn McCarter's and N.B.'s source
code for thier "First Strike at Pearl" image (absolutely fabulous, by
the way).  I borrowed the smoke texture from their include file, but
again, nothing.
Here is the interior statement.  Yes, all of my objects are hollow (as I
say, emitting and absorbing media work fine).

#declare SmokeInt =
 interior {
  media {
//   scattering { 1, <.02,.02,.02,> extinction 1.0 } // stinking choking
black
   scattering { 3, <.01,.01,.01,> extinction 1.0 } // charcoal grey with
fuzzy fur
//   scattering { 1, <.002,.002,.002,> extinction 1.0 } // soft fluffy
grey
     density { spherical
    color_map{
     [0.0 color rgb <0.0,0.0,0.0> ] // outside is transparent
     [0.4 color rgb <0,0,0> ] // this prevents it from reaching the
container
     [1.0 color rgb <1,1,1> ] // inside is opaque
    }
   turbulence .18
   omega 0.835 // default 0.5, higher = rougher
     }
  }
 }

When I render a sphere with this texture, I get absolutely nothing.  I
discovered that if I remove the density section, the media shows up, but
of course it is constant.  If I add the density back in again, the
sphere once again disappears.  At this point, I'm just testing this
texture, so the scene only has a plane and the sphere.  What's going on?


Post a reply to this message

From: Edward Coffey
Subject: Re: scattering media: help!
Date: 16 Nov 1999 01:00:07
Message: <3830f2e7@news.povray.org>
> When I render a sphere with this texture, I get absolutely nothing.  I
> discovered that if I remove the density section, the media shows up, but
> of course it is constant.  If I add the density back in again, the
> sphere once again disappears.  At this point, I'm just testing this
> texture, so the scene only has a plane and the sphere.  What's going on?

Have you tried it with a very large sphere.  I think your problem may be
scale dependant.


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: scattering media: help!
Date: 16 Nov 1999 02:36:21
Message: <38310975@news.povray.org>
[0.0 color rgb <0.0,0.0,0.0> ] // outside is transparent

Try

[0.0 color rgbt <0.0,0.0,0.0,1.0> ] // outside is transparent


Post a reply to this message

From: Chris Huff
Subject: Re: scattering media: help!
Date: 16 Nov 1999 07:15:54
Message: <38314BAA.499A3B98@compuserve.com>
As I recall, the filter and transmit values in the density are ignored.


Post a reply to this message

From: Chris Huff
Subject: Re: scattering media: help!
Date: 16 Nov 1999 07:18:25
Message: <38314C42.58A81E2F@compuserve.com>
You probably need to increase the density. I usually control the density
by doing something like this:
scattering { 1, < 0.002, 0.002, 0.002,>*5 extinction 1.0 } // soft
fluffy grey

Notice that I multiplied the color by a value. Just increase this value
until the smoke is the desired density.


Post a reply to this message

From: Phil Clute
Subject: Re: scattering media: help!
Date: 16 Nov 1999 16:13:05
Message: <3831C8E5.DE9E1559@tiac.net>
Have you looked over SmokeGen.inc?
http://www.studenter.hb.se/~arch/smokegen/index.htm
-- 
Phil
...coffee?...yes please! extra sugar,extra cream...Thank you.


Post a reply to this message

From: Sean Worle
Subject: Re: scattering media: help!
Date: 16 Nov 1999 18:38:14
Message: <3831EAA2.D06AD814@insurquote.com>
Edward Coffey wrote:

> Have you tried it with a very large sphere.  I think your problem may be
> scale dependant.

That's it.  Man, that was annoying.  My problem was that I misunderstood the
way media works.  That smoke looked great on the "First Strike" image, but the
clouds must have been a lot bigger.  Media apparently doesn't scale the way
other Material specs do.  A bigger sphere will not mean that the media gets
bigger, it just means that the media has more space to fill.  This means more
media, thus darker effect.  My sphere was too small, and so the light was
barely attenuated by the time it exited.  A bigger sphere means more media to
pass through.  I found that both scaling the sphere up and increasing the
media density on the small sphere achieved the desired results.
Thank you (all of you) for your help!


Post a reply to this message

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