POV-Ray : Newsgroups : povray.general : Transparency gives checkers Server Time
4 Nov 2024 13:32:11 EST (-0500)
  Transparency gives checkers (Message 1 to 4 of 4)  
From: Kimberley
Subject: Transparency gives checkers
Date: 2 Jul 2007 12:25:02
Message: <web.468926cf7ca27b6bc0fe8760@news.povray.org>
When I make some the top of 2 layered objects (which have solid color)
transparent, I get a large checkered pattern appearing, rather than solid
color. Any suggestions?


#include "colors.inc"
#include "finish.inc"
#include "glass.inc"
#include "metals.inc"
#include "textures.inc"
background { color rgb<0.000000,0.000000,0.0000000> }
camera { orthographic location <-0.491178,-0.320733,-0.984815>
    sky <0.121747,-0.960052,0.251947>
    right <1.260921,0,0> up <1.260921,0,0>
    look_at <-0.062685,-0.040932,-0.125684> }
light_source
  {
 <33.733015,-71.254273,-60.330759>
  color rgb<0.00000,0.00000,0.00000> }
sky_sphere { pigment {gradient y  color_map {[0, 1 color White color White]}
rotate x*45}}
global_settings { ambient_light rgb<4.000000, 4.000000, 4.000000>
assumed_gamma 2.2}
//object
//{
//intersection{
//plane { <0.555706, -0.000000, -0.831379>,  0.200000 }
//plane { <1.000000, -0.000000, -0.000000>,  0.100000 }
//plane { <0.000000, 1.000000, -0.000000>,  0.100000 }
//plane { <0.000000, -1.000000, 0.000000>,  0.100000 }
//plane { <-1.000000, 0.000000, 0.000000>,  0.100000 }
//plane { <-0.555706, 0.000000, 0.831379>,  0.200000 }
//plane { <0.555706, -0.000000, 0.831379>,  0.200000 }
//plane { <-0.555706, 0.000000, -0.831379>,  0.200000 }
//} interior { ior 2.500000 } pigment {color rgbt < 0.4, 0.4, 1, 0.1>}
// }
 // arbitrary X,Y FINITE (no CSG) shape
// A complex example for a polygon is the letter "P":
polygon {
 4, // number of points
  <-0.188, -0.161> <-0.188, 0.042>, <-0.005, 0.162>, <-0.005, -0.0508>
  interior { ior 1.50000 } pigment {Red_Marble color rgbt < 0.7, 0.2, 0.2,
0.6>}
}
polygon {
 4, // number of points
  <-0.005, 0.162>, <-0.005, -0.0508>, <0.112, -0.0358>, <0.112, 0.175>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
 4, // number of points
  <0.112, -0.0188>, <0.112, 0.175>, <0.19, 0.155>, < 0.19, -0.045>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
 4, // number of points
  <-0.185, -0.161> <-0.188, 0.042>, <-0.112, 0.021>, <-0.112, -0.179>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
 4, // number of points
  <-0.112, 0.021>, <-0.112, -0.179>, <0.013, -0.157>, <0.013, 0.043>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
 4, // number of points
  <0.013, -0.157>, <0.013, 0.043>, <0.19, 0.155>, < 0.19, -0.045>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}
polygon {
 6, // number of points
  <-0.188, -0.161>, <-0.005, -0.0508>, <0.112, -0.0358>,  < 0.19, -0.045>,
<0.013, -0.157>, <-0.112, -0.179>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.6>}
}
polygon {
 6, // number of points
  <-0.188, 0.042>, <-0.005, 0.1522>, <0.112, 0.1672>,  < 0.19, 0.158>,
<0.013, 0.046>, <-0.112, 0.024>
  interior { ior 1.00000 } pigment {color rgbt < 0.7, 0.2, 0.2, 0.3>}
}


Post a reply to this message

From: Jim Henderson
Subject: Re: Transparency gives checkers
Date: 2 Jul 2007 12:41:36
Message: <46892ac0$1@news.povray.org>
On Mon, 02 Jul 2007 12:24:47 -0400, Kimberley wrote:

> When I make some the top of 2 layered objects (which have solid color)
> transparent, I get a large checkered pattern appearing, rather than
> solid color. Any suggestions?

This is fairly typical - not a POV issue per se, but rather the way most/
many display programs show transparency.

Jim


Post a reply to this message

From: Samuel Benge
Subject: Re: Transparency gives checkers
Date: 2 Jul 2007 14:07:35
Message: <46893ee7$1@news.povray.org>
Kimberley wrote:
> When I make some the top of 2 layered objects (which have solid color)
> transparent, I get a large checkered pattern appearing, rather than solid
> color. Any suggestions?

Are either of these present in the ini text bar?

Output_Alpha=on
or
+UA

If so, you can try switching them off.

~Sam


Post a reply to this message

From: Sherry Shaw
Subject: Re: Transparency gives checkers
Date: 3 Jul 2007 10:13:45
Message: <468a5999@news.povray.org>
Kimberley wrote:

>When I make some the top of 2 layered objects (which have solid color)
>transparent, I get a large checkered pattern appearing, rather than solid
>color. Any suggestions?
>
>  
>
I think your question was about transparent pigments, but I think the 
guys answered a question about producing images with transparency.  Is 
that right?  If so:

I think the dark areas you're seeing are where the translucent objects 
overlap (and therefore are darker).  Plus, the high ior value is going 
to give light and dark areas.  When I tried replacing  the partly 
transparent pigments with various opaque colors, I noticed that you 
appear to have some coincident surface issues as well.  Another thing to 
watch out for with reflection/transparency is not having a high enough 
max_trace_level.

Not related to your question, but I noticed you had a godawfully high 
ambient_light setting.  If your scene seems too dark and you're trying 
to brighten it, you probably need to lose the ambient_light and just set 
assumed_gamma to 1.0.  Also, the combination of high ambient_light, 
orthographic camera, and transparent objects with a white background is 
going to effectively kill any visible 3D effect.

BTW, based on the occurence of values like "-0.000000," I'm guessing 
that this code was generated by some other software...?  What are you 
using?  'Cause I really think you might get better results by just, 
well, typing your own code.  ;)

Dang, I'm *really* not trying to pick your scene apart, just want to 
help...Let us know how this goes, OK?

--Sherry Shaw

-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

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