POV-Ray : Newsgroups : povray.newusers : How can I make a sun-like object? : Re: How can I make a sun-like object? Server Time
4 Jul 2024 14:05:38 EDT (-0400)
  Re: How can I make a sun-like object?  
From: D103
Date: 7 Sep 2010 09:50:00
Message: <web.4c863f02b7c5d6bfde8f61900@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> D103 <nomail@nomail> wrote:
> > The disc had a pigment map, which started of as white, changed to yellow about
> > half way, and then faded to transparency. It also had an ambient of 1, and was
> > at the same position as the light source. When rendered the disc showed up as
> > pure white, even when I reversed the pigment map.
>
>   What pigment map, exactly? (Better yet: Show us the entire object
> definition.)
>
> --
>                                                           - Warp

Here are the relevant objects :

#declare LiPo = <-2000, 250, 0>;

light_source { LiPo White }

disc { 0, y, 100 pigment { cylindrical pigment_map { [ 0 rgb 1 ] [ 0.5 rgb <1,
1, 0.5> ] [ 1 rgbt 1 ] }
} finish { ambient 1 } rotate z*90 translate LiPo }

sphere { LiPo, 100 hollow pigment { Clear } interior { media { scattering { 1, 1
} density { spherical density_map { [ 0 rgb 1 ] [ 0.25 rgbt <1, 1, 0.5, 0.5> ] [
1 rgbt 1 ] } } } } }

camera { location <2, 0.05, 0> right x*16/9 look_at <0, 0.2, 0> }

I have enabled radiosity with media on for this scene.


D103


Post a reply to this message

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