POV-Ray : Newsgroups : povray.general : transparency and media Server Time
6 Nov 2024 00:27:43 EST (-0500)
  transparency and media (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Mick Hazelgrove
Subject: transparency and media
Date: 16 Dec 2002 12:30:13
Message: <3dfe0da5@news.povray.org>
Please don't shoot me if this is old news but ...

I've importrd an XFrog tree into Pov using mesh2. The leaves consist of a
square with an image of several leaves on it. Using image_pattern or
pigment_pattern or a tga with use alpha the non leaf part is made
transparent and the leaf section shows up nicely.

But if there is media behind the leaf (a sky in this case) the transparent
area displays the colour of the sky_sphere behind the media and ignores the
media colour completley so the squares show up.

This happens with image_pattern, pigment_pattern and tga with use alpha.

Is this a known bug? is there a fix?

Mick


Post a reply to this message

From: Christopher James Huff
Subject: Re: transparency and media
Date: 16 Dec 2002 12:50:51
Message: <chrishuff-C6C7A3.12472516122002@netplex.aussie.org>
In article <3dfe0da5@news.povray.org>,
 "Mick Hazelgrove" <mic### [at] mhazelgrovefsnetcouk> wrote:

> But if there is media behind the leaf (a sky in this case) the transparent
> area displays the colour of the sky_sphere behind the media and ignores the
> media colour completley so the squares show up.
> 
> This happens with image_pattern, pigment_pattern and tga with use alpha.
> 
> Is this a known bug? is there a fix?

It is not a bug. After the ray passes through the leaf, it is considered 
"in" the leaf. The leaf isn't hollow, so it excludes media. The best 
solution is to just make it hollow.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: transparency and media
Date: 16 Dec 2002 13:08:21
Message: <3dfe1695@news.povray.org>
Thanks I didn't think of that

Mick


Post a reply to this message

From: Gilles Tran
Subject: Re: transparency and media
Date: 17 Dec 2002 14:06:23
Message: <3dff75af@news.povray.org>

news: 3dfe1695@news.povray.org...
> Thanks I didn't think of that

Note that there are cases where I was never able to get rid of this problem,
in spite of putting "hollow" keywords everywhere, making sure that
everything was really transparent etc. I ended up rendering the leaves
separately and using a mask to put them on the final image !

G.


--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Christopher James Huff
Subject: Re: transparency and media
Date: 17 Dec 2002 14:40:02
Message: <chrishuff-446BA7.14353217122002@netplex.aussie.org>
In article <3dff75af@news.povray.org>,
 "Gilles Tran" <tra### [at] inapginrafr> wrote:

> Note that there are cases where I was never able to get rid of this problem,
> in spite of putting "hollow" keywords everywhere, making sure that
> everything was really transparent etc. I ended up rendering the leaves
> separately and using a mask to put them on the final image !

Probably because the transparent surface was causing POV to sample two 
shorter intervals instead of one long one. Raising the number of samples 
might have reduced or eliminated the artifact, at the cost of slower 
rendering.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Renderdog
Subject: Re: transparency and media
Date: 17 Dec 2002 15:20:03
Message: <web.3dff7ff48a77e58da7778c0e0@news.povray.org>
Gilles Tran wrote:

>news: 3dfe1695[at]news.povray.org...
>> Thanks I didn't think of that
>
>Note that there are cases where I was never able to get rid of this problem,
>in spite of putting "hollow" keywords everywhere, making sure that
>everything was really transparent etc. I ended up rendering the leaves
>separately and using a mask to put them on the final image !

A similar question:
I wanted to use a hollow transparent sphere to give some curvature
to my leaf image map, and it works great except when the transparent
part of the leaf's sphere intersects a (non-transparent) surface
behind it. I get black pixels, like it's showing coincident surfaces,
though the sphere's surface is transparent at that point.

I was thinking that I could use the image to clip the sphere somehow
(instead of a another sphere as I'm currently doing), but I wonder
if there is a simpler (and faster rendering) solution?


Post a reply to this message

From: Christopher James Huff
Subject: Re: transparency and media
Date: 17 Dec 2002 17:56:20
Message: <chrishuff-821356.17512917122002@netplex.aussie.org>
In article <web.3dff7ff48a77e58da7778c0e0@news.povray.org>,
 "Renderdog" <slo### [at] hiwaaynet> wrote:

> I wanted to use a hollow transparent sphere to give some curvature
> to my leaf image map, and it works great except when the transparent
> part of the leaf's sphere intersects a (non-transparent) surface
> behind it. I get black pixels, like it's showing coincident surfaces,
> though the sphere's surface is transparent at that point.

If it is coincident with or intersects the surface, sometimes it will 
get hit first and the transmitted ray will miss the other surface, so 
you see the interior of the second object through the transparent one. 
Since the interior is in shadow, it is dark.

The only way to avoid this in the intersecting surface case would be to 
change the way POV handles non-refracting transparency.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Ken
Subject: Re: transparency and media
Date: 17 Dec 2002 21:01:56
Message: <3DFFD7A5.8ADFF16E@pacbell.net>
Christopher James Huff wrote:
> 
> In article <web.3dff7ff48a77e58da7778c0e0@news.povray.org>,
>  "Renderdog" <slo### [at] hiwaaynet> wrote:
> 
> > I wanted to use a hollow transparent sphere to give some curvature
> > to my leaf image map, and it works great except when the transparent
> > part of the leaf's sphere intersects a (non-transparent) surface
> > behind it. I get black pixels, like it's showing coincident surfaces,
> > though the sphere's surface is transparent at that point.
> 
> If it is coincident with or intersects the surface, sometimes it will
> get hit first and the transmitted ray will miss the other surface, so
> you see the interior of the second object through the transparent one.
> Since the interior is in shadow, it is dark.
> 
> The only way to avoid this in the intersecting surface case would be to
> change the way POV handles non-refracting transparency.

Or he may need to increase the max_trace_level in the global settings block
a bit.

-- 
Ken Tyler


Post a reply to this message

From: Renderdog
Subject: Re: transparency and media
Date: 19 Dec 2002 09:50:03
Message: <web.3e01dc718a77e58d123e4a6e0@news.povray.org>
Ken wrote:
>
>Christopher James Huff wrote:
>>
>> If it is coincident with or intersects the surface, sometimes it will
>> get hit first and the transmitted ray will miss the other surface, so
>> you see the interior of the second object through the transparent one.
>> Since the interior is in shadow, it is dark.
>>
>> The only way to avoid this in the intersecting surface case would be to
>> change the way POV handles non-refracting transparency.
>
>Or he may need to increase the max_trace_level in the global settings block
>a bit.

My first suspect was max_trace_level, but increasing it didn't help. Looks
like I'll have to keep my objects away from the wall or not use transparency
and mask off the non-leaf parts.

Since the wall is an isosurface, perhaps increasing the accuracy would help,
or (if it's an option) maybe making the wall shadowless.

Thanks Christopher and Ken for your help.


Post a reply to this message

From: Tom A 
Subject: Re: transparency and media
Date: 19 Dec 2002 10:17:33
Message: <3E01E30C.E4CEFBFA@my-deja.com>
Renderdog wrote:
> 
> Ken wrote:
> >
> >Christopher James Huff wrote:
> >>
> >> If it is coincident with or intersects the surface, sometimes it will
> >> get hit first and the transmitted ray will miss the other surface, so
> >> you see the interior of the second object through the transparent one.
> >> Since the interior is in shadow, it is dark.
> >>
> >> The only way to avoid this in the intersecting surface case would be to
> >> change the way POV handles non-refracting transparency.
> >
> >Or he may need to increase the max_trace_level in the global settings block
> >a bit.
> 
> My first suspect was max_trace_level, but increasing it didn't help. Looks
> like I'll have to keep my objects away from the wall or not use transparency
> and mask off the non-leaf parts.
> 
> Since the wall is an isosurface, perhaps increasing the accuracy would help,
> or (if it's an option) maybe making the wall shadowless.
> 
> Thanks Christopher and Ken for your help.

How do you create an alpha channel?  Can POV do it?  Or do you need to
use a picture editor?

Thanks.

-- 
Tom A.
"Archie!  You are headstrong.  I am imperious.  It's a miracle 
we get along as well as we do." - Nero Wolf
Deja mail is gone.  Look for me at raugost at yahoo . com


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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