POV-Ray : Newsgroups : povray.newusers : Atmospherics and bounding spheres Server Time
24 Nov 2024 21:09:10 EST (-0500)
  Atmospherics and bounding spheres (Message 1 to 6 of 6)  
From: milco2006
Subject: Atmospherics and bounding spheres
Date: 13 Jun 2007 19:35:01
Message: <web.46707e32db36b4cb7be7ef4b0@news.povray.org>
Apologies for posting this message initially in the advanced users section
and then moving it over here but firstly it wasnt as likely to get answered
over there and also not so sure it is an advanced question anymore.

My question arises from trying to use two atmospheric affects in the one
picture. One of these is a bounded shape with the atmosphere not taking up
the whole bounding shape, the other is a much much larger (almost unbounded
in
x-z plane) shape with a bit of scattering media. Note that the smaller
shapes are not inside the bigger ones. My problem is that the bounding
spheres used for the small shapes seem to show when I use the second
atmoshere filled shape and it is between the small bounded shapes and the
camera. Is there any way to eliminate this? Also a short explanation of why
would be interesting.
Thanks

~Malcolm


Post a reply to this message

From: Tim Attwood
Subject: Re: Atmospherics and bounding spheres
Date: 14 Jun 2007 03:02:47
Message: <4670e817@news.povray.org>
> Apologies for posting this message initially in the advanced users section
> and then moving it over here but firstly it wasnt as likely to get 
> answered
> over there and also not so sure it is an advanced question anymore.
>
> My question arises from trying to use two atmospheric affects in the one
> picture. One of these is a bounded shape with the atmosphere not taking up
> the whole bounding shape, the other is a much much larger (almost 
> unbounded
> in
> x-z plane) shape with a bit of scattering media. Note that the smaller
> shapes are not inside the bigger ones. My problem is that the bounding
> spheres used for the small shapes seem to show when I use the second
> atmoshere filled shape and it is between the small bounded shapes and the
> camera. Is there any way to eliminate this? Also a short explanation of 
> why
> would be interesting.
> Thanks

Did you use emision in one of the medias? It's hard to diagnose witthout
seeing your media... also the bounding boxes of medias shouldn't overlap.


Post a reply to this message

From: milco2006
Subject: Re: Atmospherics and bounding spheres
Date: 14 Jun 2007 06:40:01
Message: <web.46711aa7fce84d1362d5bd420@news.povray.org>
Thanks for your reply. They do not overlap unless you mean in terms of the
line of sight for the camera. The code is as follows:


//Small bounded shapes
sphere { 0,1 hollow
        scale<cloudsize,cloudsize/3,cloudsize>
        texture { pigment { rgbt 1 } }
        interior {
          media {scattering { 1 cloudscatter}
            emission rgb<0.00025,0.0000075,0.000005>
            density { spherical
            warp { turbulence cloudturb octaves cloudoct lambda cloudlam
omega 0.5}
            scale <(cloudsize/1.8),(cloudsize/3.5),(cloudsize/1.8)>
            density_map { [0 rgb 0][0.05 rgb 1] }
            }
          }
        }
      rotate 360*rand(S1)*y translate cloudpos}

//Large shape below small bounded shapes
box{<-10000,-300,-3000><10000,-170,74> hollow
  texture{pigment{rgbt 1}}
  interior{
    media{scattering{1,0.00009 extinction 0.01}
  }}
}

I hope some of this makes sense and apologies for all the strange variable
names however just copied this out of a macro I have written.
Thanks again for taking the time to answer.
~Malcolm


Post a reply to this message

From: Tim Attwood
Subject: Re: Atmospherics and bounding spheres
Date: 14 Jun 2007 23:25:16
Message: <4672069c$1@news.povray.org>
I don't see it...

#declare cloudsize = 1;
#declare cloudscatter = 1;
#declare cloudturb = 1;
#declare cloudoct = 1;
#declare cloudlam = 1;
#declare cloudpos = <0,0,0>;
#declare S1 = seed(1);

http://i201.photobucket.com/albums/aa280/Zakardis/media.jpg
http://i201.photobucket.com/albums/aa280/Zakardis/bounded.jpg


Post a reply to this message

From: milco2006
Subject: Re: Atmospherics and bounding spheres
Date: 15 Jun 2007 08:35:00
Message: <web.4672835efce84d13286ceba30@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> wrote:
> I don't see it...
>
> #declare cloudsize = 1;
> #declare cloudscatter = 1;
> #declare cloudturb = 1;
> #declare cloudoct = 1;
> #declare cloudlam = 1;
> #declare cloudpos = <0,0,0>;
> #declare S1 = seed(1);
>
> http://i201.photobucket.com/albums/aa280/Zakardis/media.jpg
> http://i201.photobucket.com/albums/aa280/Zakardis/bounded.jpg

Ok this is going to sound strange but it seems to be to do with another
object in the scene. However your rendering helped as I was presuming it
was to do with the extra atmosphere I had added. It does however turn out
it was caused by a plane above which hadnt occured to me stupidly. I feel a
little silly now for not thinking of testing the scene without these other
objects now before coming here for help. Sorry if it seems I have wasted
your time however I assure you that I would probably have either given up
or spent several more hours struggling over this if you hadnt helped, so
thank you.
Cheers,
Malcolm


Post a reply to this message

From: Alain
Subject: Re: Atmospherics and bounding spheres
Date: 16 Jun 2007 15:41:07
Message: <46743cd3$1@news.povray.org>
milco2006 nous apporta ses lumieres en ce 2007/06/15 08:30:
> "Tim Attwood" <tim### [at] comcastnet> wrote:
>> I don't see it...
>>
>> #declare cloudsize = 1;
>> #declare cloudscatter = 1;
>> #declare cloudturb = 1;
>> #declare cloudoct = 1;
>> #declare cloudlam = 1;
>> #declare cloudpos = <0,0,0>;
>> #declare S1 = seed(1);
>>
>> http://i201.photobucket.com/albums/aa280/Zakardis/media.jpg
>> http://i201.photobucket.com/albums/aa280/Zakardis/bounded.jpg
> 
> Ok this is going to sound strange but it seems to be to do with another
> object in the scene. However your rendering helped as I was presuming it
> was to do with the extra atmosphere I had added. It does however turn out
> it was caused by a plane above which hadnt occured to me stupidly. I feel a
> little silly now for not thinking of testing the scene without these other
> objects now before coming here for help. Sorry if it seems I have wasted
> your time however I assure you that I would probably have either given up
> or spent several more hours struggling over this if you hadnt helped, so
> thank you.
> Cheers,
> Malcolm
> 
> 
> 
> 
There is no stupid request. Without you request, you'd probably not found what 
caused your problem, or would have taken a LOT of time finding it's cause.

-- 
Alain
-------------------------------------------------
An unbreakable toy is useful for breaking other toys.


Post a reply to this message

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