POV-Ray : Newsgroups : povray.binaries.images : trouble figuring out media again Server Time
17 Aug 2024 04:15:41 EDT (-0400)
  trouble figuring out media again (Message 1 to 3 of 3)  
From: Bryan Valencia
Subject: trouble figuring out media again
Date: 20 Nov 2001 19:56:04
Message: <3BFAFBEF.FCF2B17E@209software.com>
I'm looking for a way to do a gas giant (planet) using a big media sphere.

Here's what I want.

a hazy surface
turbulenced colored bands

kind of like Jupiter.

I don't see how to use a map to color media though.


Post a reply to this message

From: Mahalis
Subject: Re: trouble figuring out media again
Date: 20 Nov 2001 20:01:04
Message: <3bfafcd0$1@news.povray.org>
> a hazy surface
> turbulenced colored bands

media{/*your media here*/ density{gradient y turbulence 0.25 color_map{[0
one color][0.25 another][0.5 etcetera]}}}


Post a reply to this message

From: Bob H 
Subject: Re: trouble figuring out media again
Date: 21 Nov 2001 05:05:55
Message: <3bfb7c83$1@news.povray.org>
"Mahalis" <don### [at] fakeycom> wrote in message
news:3bfafcd0$1@news.povray.org...
> > a hazy surface
> > turbulenced colored bands
>
> media{/*your media here*/ density{gradient y turbulence 0.25 color_map{[0
> one color][0.25 another][0.5 etcetera]}}}

Well, a bit more to it if you want a atmosphere haze over the cloud bands.
You would make several predeclared density statements.  One would be the
hazy layer density, which can simply be a density {rgb <0.1,0.2,0.3>} for
example.  The others would be density {gradient y density_map {[0 rgb
<1,0.9,0.8>][1 rgb <1,0.9,0.8>]} turbulence <1,0.25,1> scale <0.25,2,0.25>
translate -y}, with whatever colors and number of entries you want for the
bands.  The transformations there may need changing to suit your planet.

Then, you take those two densities and put it into the media statement's
density statement.

media {
// ...whatever...
    density {spherical
        density_map {
            [0 Haze][0.1 Bands]
    }}
}

Far as color goes, it's dependant on the type of media used.  Scattering can
use a color vector too so it causes the density rgb values to change
accordingly.  You'll probably need to double up on the media statement, one
with absorption and one with emission.  That is to say, two media's within
the interior statement.

Hopefully I've described this right.

Bob H.


Post a reply to this message

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