POV-Ray : Newsgroups : povray.windows : Transparent Objects Server Time
23 Nov 2024 09:52:39 EST (-0500)
  Transparent Objects (Message 1 to 2 of 2)  
From: Simon
Subject: Transparent Objects
Date: 26 May 2007 17:57:46
Message: <4658ad5a@news.povray.org>
Hi all,

wonder if someone can point me in the right direction for how to fade an
object into/out of visibility.

I can do rgbt and modify the t but have some complex (for me) objects so not
sure how to do it for the whole union'd object rather than on a per-pigment
basis. Ideally I just want to change what % of light rays passing through
the volume of the objects are affected by them

Sorry if that was a tad unclear - Any help greatly appreciated

-Simon


Post a reply to this message

From: Stephen
Subject: Re: Transparent Objects
Date: 26 May 2007 18:27:54
Message: <r0dh53h9dbq1r82c3aoi66aj8opdr81no3@4ax.com>
On Sat, 26 May 2007 22:58:12 +0100, "Simon" <povray@*NOSPAM*SOWare.co.uk> wrote:

>Hi all,
>
>wonder if someone can point me in the right direction for how to fade an
>object into/out of visibility.
>
>I can do rgbt and modify the t but have some complex (for me) objects so not
>sure how to do it for the whole union'd object rather than on a per-pigment
>basis. Ideally I just want to change what % of light rays passing through
>the volume of the objects are affected by them
>
>Sorry if that was a tad unclear - Any help greatly appreciated
>
>-Simon
>
>
You could add a variable to all the rgbt values you want to fade.

#declare FadeValue =0;

colour rgbt <1.0, 0.5, 0.2, .6*FadeValue>


Regards
	Stephen


Post a reply to this message

From: Simon
Subject: Re: Transparent Objects
Date: 27 May 2007 05:03:56
Message: <4659497c$1@news.povray.org>
Thanks very much, I'll have to do that. Was hoping there was a neater way

Thanks again!

S
"Stephen" <mcavoysATaolDOTcom@> wrote in message 
news:r0dh53h9dbq1r82c3aoi66aj8opdr81no3@4ax.com...
> On Sat, 26 May 2007 22:58:12 +0100, "Simon" <povray@*NOSPAM*SOWare.co.uk> 
> wrote:
>
>>Hi all,
>>
>>wonder if someone can point me in the right direction for how to fade an
>>object into/out of visibility.
>>
>>I can do rgbt and modify the t but have some complex (for me) objects so 
>>not
>>sure how to do it for the whole union'd object rather than on a 
>>per-pigment
>>basis. Ideally I just want to change what % of light rays passing through
>>the volume of the objects are affected by them
>>
>>Sorry if that was a tad unclear - Any help greatly appreciated
>>
>>-Simon
>>
>>
> You could add a variable to all the rgbt values you want to fade.
>
> #declare FadeValue =0;
>
> colour rgbt <1.0, 0.5, 0.2, .6*FadeValue>
>
>
> Regards
> Stephen


Post a reply to this message

From: Stephen
Subject: Re: Transparent Objects
Date: 27 May 2007 05:23:32
Message: <ufji535jehjpm0ha8valurh9kcp85ath21@4ax.com>
On Sun, 27 May 2007 09:57:17 +0100, "Simon" <povray@*NOSPAM*SOWare.co.uk> wrote:

>Thanks very much, I'll have to do that. Was hoping there was a neater way

I don't think that there is.
Remember to "Merge" any object that you are going to fade out to get rid of
internal surfaces. Help - 3.4.6.5  Merge

Regards
	Stephen


Post a reply to this message

From: Simon
Subject: Re: Transparent Objects
Date: 27 May 2007 07:43:13
Message: <46596ed1$1@news.povray.org>
Much appreciated - I'll have a look at that now :)

"Stephen" <mcavoysATaolDOTcom@> wrote in message 
news:ufji535jehjpm0ha8valurh9kcp85ath21@4ax.com...
> On Sun, 27 May 2007 09:57:17 +0100, "Simon" <povray@*NOSPAM*SOWare.co.uk> 
> wrote:
>
>>Thanks very much, I'll have to do that. Was hoping there was a neater way
>
> I don't think that there is.
> Remember to "Merge" any object that you are going to fade out to get rid 
> of
> internal surfaces. Help - 3.4.6.5  Merge
>
> Regards
> Stephen


Post a reply to this message

From: Warp
Subject: Re: Transparent Objects
Date: 27 May 2007 07:50:29
Message: <46597085@news.povray.org>
Stephen <mcavoysATaolDOTcom@> wrote:
> Remember to "Merge" any object that you are going to fade out to get rid of
> internal surfaces. Help - 3.4.6.5  Merge

  Note that merge only removes the surfaces inside the object. It doesn't
make the inner side of the outer surfaces invisible. This may or may not
become a problem, depending on the effect you want to achieve.

  A completely transparent interior_texture might be worth a try if you
want to make the inner sides invisible.

-- 
                                                          - Warp


Post a reply to this message

From: Stephen
Subject: Re: Transparent Objects
Date: 27 May 2007 08:43:05
Message: <s4vi53dqvcjldjegnql3i21nrok4kd3gnh@4ax.com>
On 27 May 2007 07:50:29 -0400, Warp <war### [at] tagpovrayorg> wrote:

>Stephen <mcavoysATaolDOTcom@> wrote:
>> Remember to "Merge" any object that you are going to fade out to get rid of
>> internal surfaces. Help - 3.4.6.5  Merge
>
>  Note that merge only removes the surfaces inside the object. It doesn't
>make the inner side of the outer surfaces invisible. This may or may not
>become a problem, depending on the effect you want to achieve.

A good point. That probably explains a few of my failures.


Regards
	Stephen


Post a reply to this message

From: Simon
Subject: Re: Transparent Objects
Date: 27 May 2007 09:40:46
Message: <46598a5e$1@news.povray.org>
It's working (ish) with the objects. I have a sky sphere and want to fade 
that too....


 #local p_image=
 pigment{
  image_map{
   jpeg SkySphere
   map_type 1
   interpolate 2
  }
 }
 #local p_image_filtered=
 pigment{
  image_map{
   jpeg SkySphere
   map_type 1
   interpolate 2
   filter all light_filter
  }
 }

Any suggestions how I coul re-work this?

"Stephen" <mcavoysATaolDOTcom@> wrote in message 
news:s4vi53dqvcjldjegnql3i21nrok4kd3gnh@4ax.com...
> On 27 May 2007 07:50:29 -0400, Warp <war### [at] tagpovrayorg> wrote:
>
>>Stephen <mcavoysATaolDOTcom@> wrote:
>>> Remember to "Merge" any object that you are going to fade out to get rid 
>>> of
>>> internal surfaces. Help - 3.4.6.5  Merge
>>
>>  Note that merge only removes the surfaces inside the object. It doesn't
>>make the inner side of the outer surfaces invisible. This may or may not
>>become a problem, depending on the effect you want to achieve.
>
> A good point. That probably explains a few of my failures.
>
>
> Regards
> Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: Transparent Objects
Date: 27 May 2007 10:38:07
Message: <465997cf$1@news.povray.org>
"Simon" <povray@*NOSPAM*SOWare.co.uk> schreef in bericht 
news:4658ad5a@news.povray.org...
> Hi all,
>
> wonder if someone can point me in the right direction for how to fade an
> object into/out of visibility.
>
> I can do rgbt and modify the t but have some complex (for me) objects so 
> not
> sure how to do it for the whole union'd object rather than on a 
> per-pigment
> basis. Ideally I just want to change what % of light rays passing through
> the volume of the objects are affected by them
>
> Sorry if that was a tad unclear - Any help greatly appreciated
>

Hi Simon,
I think that  instead of union {}, you should use merge{}probably because 
otherwise, by making the (collection) of objects transparent, you will see 
the inner limits of the individual objects constituting the union. Merge is 
specific for transparent objects.
Now concerning your question, if each constituent object has its own 
pigment, I would make a  #declare T = yourvalue; and use that in every 
pigment inside the union/merge block. If the union/merge block has only one 
pigment, then it is much easier of course :-)
I hope this answers your question. Post an image in p.b.i. if in doubt.

Thomas


Post a reply to this message

From: Stephen
Subject: Re: Transparent Objects
Date: 27 May 2007 11:57:29
Message: <5iaj539kp36u1urgbqo3th2pgbv7lf2u5a@4ax.com>
On Sun, 27 May 2007 14:41:24 +0100, "Simon" <povray@*NOSPAM*SOWare.co.uk> wrote:

>It's working (ish) with the objects. I have a sky sphere and want to fade 
>that too....

I've never obtained satisfactory results when trying to fade an object. So I
might not be the best person to help you further. :-(
But I've just checked this and it looks like Pov can only use one sky_sphere.
The last in the scene is the one it uses.

Regards
	Stephen


Post a reply to this message

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