POV-Ray : Newsgroups : povray.general : Help with media Server Time
20 Nov 2024 02:14:17 EST (-0500)
  Help with media (Message 1 to 7 of 7)  
From: Lutz Kretzschmar
Subject: Help with media
Date: 6 Dec 2001 12:44:16
Message: <klbv0u0n3euu22dakt2a9eushjab7v6lqr@4ax.com>
Hi all,

I am trying to create a sort of a glow effect in a sphere and am not
getting it quite right. I can still see a defined boundary around the
media.

What is the best way to create this effect?

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Josh English
Subject: Re: Help with media
Date: 6 Dec 2001 12:53:42
Message: <3C0FB075.AFA268A4@spiritone.com>
If you posted a snippet of code it might help, but generally you want to
check a few things:

Make sure the sphere is hollow,
Make sure the pigment is rgbf 1
Make sure there is no highlight in the finish

here is a quick example:

sphere { 0,1.5
  pigment { rgbf 1 }
  interior { 
    media { 
      emission 1
      density { spherical
                turbulence 0.5 // or whatever
              } } } }

You might need ot add absorption as well to block out the background

Josh English
eng### [at] spiritonecom


Lutz Kretzschmar wrote:
> 
> Hi all,
> 
> I am trying to create a sort of a glow effect in a sphere and am not
> getting it quite right. I can still see a defined boundary around the
> media.
> 
> What is the best way to create this effect?
> 
> - Lutz
>   email : lut### [at] stmuccom
>   Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Christoph Hormann
Subject: Re: Help with media
Date: 6 Dec 2001 13:24:46
Message: <3C0FB820.8D061574@gmx.de>
Lutz Kretzschmar wrote:
> 
> Hi all,
> 
> I am trying to create a sort of a glow effect in a sphere and am not
> getting it quite right. I can still see a defined boundary around the
> media.
> 
> What is the best way to create this effect?
> 

How about:

Subject: Missing glows in 3.5? An alternative solution
Date: 14 Sep 2001 08:40:41 -0400
From: Warp <war### [at] tagpovrayorg>
Newsgroups: povray.text.scene-files

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Alan Holding
Subject: Re: Help with media
Date: 6 Dec 2001 13:58:59
Message: <3c0fbff3@news.povray.org>
"Lutz Kretzschmar" <lut### [at] stmuccom> wrote in message
news:klbv0u0n3euu22dakt2a9eushjab7v6lqr@4ax.com...
> Hi all,
>
> I am trying to create a sort of a glow effect in a sphere and am not
> getting it quite right. I can still see a defined boundary around the
> media.
>
> What is the best way to create this effect?

Funnily enough, I sat myself down the other day to teach myself a bit of
media.  You need to use a spherical density map.  Try this (bit long-winded
because I tend to #declare everything):

#version 3.5;

global_settings {assumed_gamma 1.8}
background {rgb 0}

camera {
  location <0,0,-100>
  right x*image_width up y*image_height
  look_at 0
  angle 70
  perspective
}

#local media_colour1=<0.8,0.3,0.1>*0.1;

//    THE INTERESTING BIT
#local media_density1=density {
  spherical
  colour_map {
    [0.1 rgb 0]
    [0.3 rgb 1]
    [1.0 rgb 1]
  }
}

#local media_test1=media {
  method 3
  emission media_colour1
  density {media_density1}
}

#local txt_clear=texture {
  pigment {rgbf 1}
  finish {ambient 0 diffuse 1}
}

sphere {
  0 1
  scale <1,1,0.5>
  texture {txt_clear}
  interior {media {media_test1}}
  hollow on
  no_shadow
  scale 40
}


--
http://www.mp3.com/FeedingTheCats


Post a reply to this message

From: Jamie Davison
Subject: Re: Help with media
Date: 6 Dec 2001 15:06:07
Message: <MPG.1679e05f2c4d202a989a71@news.povray.org>
> I am trying to create a sort of a glow effect in a sphere and am not
> getting it quite right. I can still see a defined boundary around the
> media.
> 
> What is the best way to create this effect?

Have a look in moray.binaries for how I'd do it.

Bye for now,
     Jamie.


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Help with media
Date: 6 Dec 2001 16:29:24
Message: <8tov0ugnl57ume3rnjs1871rckq03n646g@4ax.com>
Hi Christoph Hormann, you recently wrote in povray.general:

> How about:
> 
> Subject: Missing glows in 3.5? An alternative solution
> Date: 14 Sep 2001 08:40:41 -0400
Hmmmm, couldn't find it in my archive...

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

From: Lutz Kretzschmar
Subject: Re: Help with media
Date: 6 Dec 2001 16:30:05
Message: <juov0uk4sh0ssvt2l0hp794odlqb9kea51@4ax.com>
Thanks all, I think I've got it now, I was missing the density block.

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

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