POV-Ray : Newsgroups : povray.general : smoke/cloud/media problem : smoke/cloud/media problem Server Time
5 Nov 2024 18:25:59 EST (-0500)
  smoke/cloud/media problem  
From: Steve Shelby
Date: 14 Feb 2003 09:45:54
Message: <3e4d0122@news.povray.org>
Hi,
I've been trying to make a scene where the objects are immersed in a
swirling cloud of red and blue. The objects are in  a sphere with interior
media / density / colormap pattern gradient / turbulance. There is a
spotlight / parallel. It looks really good, except the swirling clouds
appear to be in the background, rather than surrounding  the objects. I've
made every adjustment I can think of, but nothing seems to work. I noticed
something called smokegen.inc, which looks like it might be helpful,but it
does not work with Povray 3.5. Any ideas?
Thanks,
Steve Shelby

current code for media (see any glaring faults?):

#declare sphere1 =
   material  // sphere1
   {
      texture
      {
         pigment
         {
            color rgbft <1.0, 1.0, 1.0, 1.0, 1.0>
         }
      }
      interior
      {
         media
         {
            intervals 3
            samples 1,10
            absorption rgbt <0.0, 0.0, 0.0, 1.0>
            emission rgb <0.002, 0.016176, 0.018>
            scattering
            {
               5 ,  rgbft <0.05797, 0.01003, 0.01003, 0.001, 0.001> //
henyey greenstein scattering
               eccentricity 0.3
               extinction 0.5
            }
            density
            {
               gradient <1.0, 1.0, 1.0>
               color_map
               {
                  [ 0.0     rgbft <1.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
               }
               turbulence 3.0
               ramp_wave
               scale  0.5
            }
         }
      }
   }


Post a reply to this message

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