POV-Ray : Newsgroups : povray.binaries.images : Media Woes? Server Time
6 Nov 2024 12:21:20 EST (-0500)
  Media Woes? (Message 1 to 7 of 7)  
From: Tim McMurdo
Subject: Media Woes?
Date: 20 Jan 2005 13:55:01
Message: <web.41effd8fb0cdf922acb32c570@news.povray.org>
I thought a nice experiment would be to create a telescope to apply to the
Niagara images. When I did, the reults were surprising. I do not understand
Media enough to know why the media cirrus clods change the light in the
lense. Can anybody help? The only thing changed between renderings is the
cirrus clouds.

Here is the lens code:

#declare R = .00007 ;
#declare Lens =
        union{



                intersection{
                        sphere{<0,0,0>, R translate<0,0,-R/1.0071>}
                        sphere{<0,0,0>, R translate<0,0,R/1.0071>}
                        cylinder{<0,0,.005>,<0,0,-.005>,0.00002}

                        texture{pigment{rgbt<1,1,1,1>} }
                        interior{
                                ior 1.52

                        }
                }


                difference{
                        cylinder{<0,0,.0000005>,<0,0,-.0000005>,0.0000083}
                        cylinder{<0,0,.0000006>,<0,0,-.0000006>,0.00000785}
                        texture{T_Brass_3B}
                }

        }


Here is the cirrus cloud code straight out of Jamies Tierra inc file.


/*
  Persistence of Vision Ray Tracer Scene Description File

  Tierra v1.0 - Cirrus shell include

  --
  Jaime Vives Piqueres, Apr-May-Jun 2004.

*/

#if (use_cirrus)

// basic cloud pigment maped spherically
#declare d_base=
density{
   Cirrus_Density
   color_map{
     [0.00 rgb 0]
     [(1-Cirrus_Level) rgb 0]
     [(1-Cirrus_Level)+Cirrus_Border rgb 1]
     [1.00 rgb 1]
   }
   warp{spherical}
   // changing default orientation to match scene orientation
   rotate 90*x
   rotate 360*rand(r_clouds)*z
}

// density with a tiny layer of clouds
#declare d_clouds=
density{
 spherical
 density_map{
  [0.0 d_base]
  [Cirrus_Flatness d_base]
  [Cirrus_Flatness rgb 0]
  [1.0 rgb 0]
 }
}

// shell sphere with media cirrus
difference{
 sphere{0,1}
 sphere{0,1-Cirrus_Flatness}
 hollow
 texture{pigment{rgbt 1}}
 interior{
  media{
   intervals Clouds_Intervals
   absorption .04*5
   scattering{1,.04}
   density{d_clouds}
  }
 }
 // scale somewhat like earth in km
 scale 6800
 translate (-6800+Cirrus_Height)*y
}

#end




Thanks for your help,

Tim


Post a reply to this message


Attachments:
Download 'without-clouds.jpg' (125 KB)

Preview of image 'without-clouds.jpg'
without-clouds.jpg


 

From: Tim McMurdo
Subject: Re: Media Woes?
Date: 20 Jan 2005 14:10:01
Message: <web.41f0014e7efaf3facb32c570@news.povray.org>
Here is the second image....can anybody tell me how to post 2 images in a
single post?


:)

Tim


Post a reply to this message


Attachments:
Download 'with-clouds.jpg' (227 KB)

Preview of image 'with-clouds.jpg'
with-clouds.jpg


 

From: Tim Nikias
Subject: Re: Media Woes?
Date: 20 Jan 2005 14:34:38
Message: <41f007ce$1@news.povray.org>
Are you sure that max_trace_level is high enough to pass through lenses and
clouds?

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tim McMurdo
Subject: Re: Media Woes?
Date: 20 Jan 2005 20:40:01
Message: <web.41f05cc77efaf3f6e93bf990@news.povray.org>
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote:
> Are you sure that max_trace_level is high enough to pass through lenses and
> clouds?
>
> --
> "Tim Nikias v2.0"
> Homepage: <http://www.nolights.de>

Tim, it was set at 34, but I tried several settings up to 255 with no change
in the image. Anything else I should check?


Post a reply to this message

From: Alain
Subject: Re: Media Woes?
Date: 20 Jan 2005 20:43:23
Message: <41f05e3b$1@news.povray.org>
Tim McMurdo nous apporta ses lumieres en ce 2005-01-20 14:06:
can anybody tell me how to post 2 images in a
> single post?
> 
> 
> :)
> 
> Tim
> 
> 
> ------------------------------------------------------------------------
> 
Just attach the first image, then attach the second. No change since the Netscape 3
days.

Alain


Post a reply to this message


Attachments:
Download 'pov logo chrome.png' (7 KB) Download 'pov logo.png' (8 KB)

Preview of image 'pov logo chrome.png'
pov logo chrome.png

Preview of image 'pov logo.png'
pov logo.png


 

From: Slime
Subject: Re: Media Woes?
Date: 20 Jan 2005 21:11:23
Message: <41f064cb@news.povray.org>
Your lens is very thin. After a ray hits a transparent surface, I believe it
travels a slight distance ahead before it resumes testing for surfaces, to
avoid reintersecting the same surface. It's possible that this little jump
is longer than the depth of the lens, causing the ray to think it's still
inside the lens. This could mess up media. I also notice that your sky looks
different within the lens even in the first image. I'm not sure why this
would cause the lens in the second image to appear *darker*, but this may be
to blame in some non-obvious way. (This problem, if it is a problem, would
also cause your lens refractions to be incorrect.)

Try making your lens much larger and just moving it farther away to
compensate.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Marc Jacquier
Subject: Re: Media Woes?
Date: 21 Jan 2005 01:28:01
Message: <41f0a0f1@news.povray.org>

news:web.41f05cc77efaf3f6e93bf990@news.povray.org...
>
> Tim, it was set at 34, but I tried several settings up to 255 with no
change
> in the image. Anything else I should check?
>

Maybe it's silly but it could be worth trying your lens hollow.

Marc


Post a reply to this message

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