POV-Ray : Newsgroups : povray.general : How to make invisible surfaces in media? Server Time
26 Dec 2024 14:13:45 EST (-0500)
  How to make invisible surfaces in media? (Message 1 to 6 of 6)  
From: Benjamin
Subject: How to make invisible surfaces in media?
Date: 13 Mar 2006 05:10:01
Message: <web.4415445a9f9b250c17488de60@news.povray.org>
Hello,
I have a problem with media and partial transparent objects. Here is my
example:

//====================================mediatest
//global_settings { assumed_gamma 1 }
camera { location <0.0, 2, -4.0> look_at <0.0, 0.0,  0.0> }
background { rgb 0 }
light_source { <20, 100, -50> rgb 1 }
plane { y,-1 pigment { checker rgb 0, rgb 0.2 } }
box { -1,1
                   material
                   {  texture { pigment { rgbt 1 } finish { ambient 0 } }
                      interior
                      {
                        media {
                          intervals 1
                          scattering { 5, rgb 0.3 }
                          samples 1, 10
                          confidence 0.9
                          variance 1/100
                          ratio 0.9
                              }
                      }
                   }
    translate <-0.5,0,0>
    no_shadow
    hollow
}
#local OBJ=
disc
{ <0,0,0>, z, 0.75
        texture { spherical texture_map {
                                [0.5 pigment { rgbt 1 }]
                                [0.5 pigment { rgb <0,1,0>}]
                                [1 pigment { rgb <1,0,0>}]
                                        } turbulence 0.3 scale 0.75
                }
  hollow
  no_shadow
}
object { OBJ translate <-0.5,0,0> }//inside the medie
object { OBJ translate < 1.5,0,0> }//outside

//====================================mediatest EOF


and here is the renderd picture:

http://www.home.pages.at/maus84/4711/media.jpg

I tried many things but the left disc stays visible in the media. Is is
possible to make the disc in the media disapear but the texture stay? I
know, in this example I can get such an effect when I scale the disc, make
is bigger then the media-box but that is not what I want.

hope you know a solution
thank you


Post a reply to this message

From: Benjamin
Subject: Re: How to make invisible surfaces in media?
Date: 13 Mar 2006 05:20:00
Message: <web.441546bf3e0a764017488de60@news.povray.org>
oh, sorry, I use POV-Ray for Windows v3.6.1 icl8.win32
thanks


Post a reply to this message

From: Bob Hughes
Subject: Re: How to make invisible surfaces in media?
Date: 13 Mar 2006 16:34:36
Message: <4415e56c@news.povray.org>
"Benjamin" <nanoinverno[at]web[dot]de> wrote in message 
news:web.4415445a9f9b250c17488de60@news.povray.org...
>
> http://www.home.pages.at/maus84/4711/media.jpg
>
> I tried many things but the left disc stays visible in the media. Is is
> possible to make the disc in the media disapear but the texture stay?

Hiya Benjamin.

Figured it might be sampling at fault. Gave that a try, making it samples 15 
(no min,max) and now shows no sign of the disc here. Also, intervals 1 isn't 
needed in there since default method 3 media makes its own changes to that 
(unless you really want to override it).

-- 
Bob H  www.3digitaleyes.com
http://3digitaleyes.com/imagery/


Post a reply to this message

From: Kenneth
Subject: Re: How to make invisible surfaces in media?
Date: 27 Mar 2006 02:45:00
Message: <web.442797743e0a76402045a15f0@news.povray.org>
"Bob Hughes" <omniverse@charter%net> wrote:

> Figured it might be sampling at fault. Gave that a try, making it samples 15
> (no min,max) and now shows no sign of the disc here. Also, intervals 1 isn't
> needed in there since default method 3 media makes its own changes to that
> (unless you really want to override it).

A question (since I may have been doing some things incorrectly up until
now): Is samples 15 the same as specifying samples(15,15)? In the POV docs,
there's no mention of using just a single value for it, so I'm curious.

Also, the docs led me to believe that, with method 3, I needed to actually
specify intervals 1 rather than leave it out altogether.  Is there a
difference?

BTW, awhile back I posted a little discussion about the default for
intervals being 1, not 10 as the docs say (in ver. 3.6.1) Here's the
post...

http://news.povray.org/povray.documentation.inbuilt/thread/%3Cweb.434c8b2fe42c859ad82bb7c00%40news.povray.org%3E/

This led me to think that there *might* be some other incorrectly-stated
default values for media, but I've not been able to determine that.  Can
anyone out there give a definitive listing of the various media defaults?

Ken


Post a reply to this message

From: Kenneth
Subject: Re: How to make invisible surfaces in media?
Date: 27 Mar 2006 02:55:00
Message: <web.4427996c3e0a76402045a15f0@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> ... Is samples 15 the same as specifying samples(15,15)?

Sorry, I meant  samples 15,15 (no parentheses).

Ken


Post a reply to this message

From: Bob H
Subject: Re: How to make invisible surfaces in media?
Date: 27 Mar 2006 10:58:13
Message: <44280b95@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote in message 
news:web.442797743e0a76402045a15f0@news.povray.org...
>
> A question (since I may have been doing some things incorrectly up until
> now): Is samples 15 the same as specifying samples(15,15)? In the POV 
> docs,
> there's no mention of using just a single value for it, so I'm curious.

That's my understanding of it, without checking the Doc. One number equates 
to both min., max.

> Also, the docs led me to believe that, with method 3, I needed to actually
> specify intervals 1 rather than leave it out altogether.  Is there a
> difference?

When the default became the new method 3 intervals was reworked (by Nathan 
Kopp, I believe) to default to 1 so it would increase automatically instead 
of being a static 10. Ever since that programming change I've just 
considered it needed specifying only if one of the other methods were 
chosen. I think the confusion is that, as suggested, you should not use 
intervals other than 1 or else you override the automatic increase but many 
times that keyword might exist in your script and you could inadvertantly 
use it incorrectly.

> Can anyone out there give a definitive listing of the various media 
> defaults?

Good question. If I tried to say, it would go like this:

method 1 intervals 10 samples 1,1
method 2 intervals 10 samples 1,1
method 3 intervals 1 samples 1,1

Having now looked at the Doc I see what you meant about that intervals 10 in 
there, other defaults look okay. Obviously, it would not be 10 if the value 
is changed internally the way that newer method type works. However, if it 
did begin at ten and go lower or higher as needed that could explain it 
being 10 there in the Doc. So again, a person would only be using intervals 
1 (usually) if they have the keyword used at all in their media statement to 
signify not to override the inner workings of the program. My memory of what 
was said about it goes like: "increase as needed", so that leaves out any 
decreases downward from 10.

All that said, method 3 really could begin at intervals 10 like the others 
do and I hadn't thought of that. I've remembered it as being 1 internally 
ever since the change was made and I could be mistaken about that. A check 
of the source code would clarify this once and for all.

I took a look at the old source code and I see it shows both the 1 and 10 
based on method type (if I read it correctly) and something about a 
'minsamples' of 2 within the Intervals coding. It's all greek to me, though.
Curiously, I noticed AA depth 3 not 4 as stated in the Doc for method 1, so 
I don't know if that's changed now or another thing that might need 
clarification in the future.
-- 
Bob H  www.3digitaleyes.com
http://3digitaleyes.com/imagery/


Post a reply to this message

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