|
|
I am working on a simple image, with a light blue background and a union of
interconnected glass balls and cylinders in the foreground. It is almost
exactly what I want, but there is one problem. At almost all of the
connections of the cylinders to the spheres, I am seeing black.
How can I fix this? By the way, I can not move the camera, nor change the
background much--this image is being used for a web page.
Furthermore, I need to translate this image into a GIF so I can have an
invisible background, so I am using +FN8 in the command line options
(Windows version) which I believe creates a 256 color image which can be
transformed into a GIF without destroying it. That part, anyhow, seems to
be working.
I am using a glass texture and then a glass-like finish over it simply
because that created the effect I want--I want the glass parts to appear
almost translucent. This is the background for a web page, so I want it
very subtle. Mind you, however, I am a newbie with POV-Ray and actually
have no idea what I am doing. I just put the finish in there and it looked
good, so I left it. :)
Thanks,
Hershel
PS: Here is my code (there is more to it than this, but this is enough to
see the problem):
#include "colors.inc"
#include "glass.inc"
light_source
<-100, 00, 0>
// color Blue * Intensity
color White shadowless
}
#declare SphiraCamera = camera { location <0,-1.5,-18>
look_at <0,-1.5,0>
}
camera {SphiraCamera}
plane { z , 2
pigment{rgb <.7,1,1>}
finish {
diffuse 1
ambient 1
}
}
#declare sphira =
sphere { <0,0,0>,1
}
#declare Width=6;
merge {
// keter
object {
sphira
translate 6*y
}
cylinder {
<0,6,0>, <-1*Width,4,0>, .2
}
cylinder {
<0,6,0>, <Width,4,0>, .2
}
cylinder {
<0,6,0>, <0,-9,0>, .2
}
// bina
object {
sphira
translate <-1*Width,4>
}
cylinder {
<-1*Width,4,0>, <Width,4,0>, .2
}
cylinder {
<-1*Width,4,0>, <Width,1,0>, .2
}
cylinder {
<-1*Width,4,0>, <-1*Width,1,0>, .2
}
cylinder {
<-1*Width,4,0>, <0,-1,0>, .2
}
// chochma
object {
sphira
translate <Width,4>
}
cylinder {
<Width,4,0>, <Width,1,0>, .2
}
cylinder {
<Width,4,0>, <-1*Width,1,0>, .2
}
cylinder {
<Width,4,0>, <0,-1,0>, .2
}
texture {T_Glass3}
interior{ I_Glass}
finish {
ambient 0.6
diffuse 0.1
reflection .2345
specular 1
roughness .001
}
}
Post a reply to this message
|
|
|
|
Could it be a coincident surfaces problem?
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|
|
|
On Thu, 6 Sep 2001 12:04:52 +0200, Hershel Robinson wrote:
>Furthermore, I need to translate this image into a GIF so I can have an
>invisible background, so I am using +FN8 in the command line options
>(Windows version) which I believe creates a 256 color image which can be
>transformed into a GIF without destroying it. That part, anyhow, seems to
>be working.
Actually, +fn8 outputs a 24-bit-per-pixel (8-bit-per-component) PNG, so it
won't go directly to GIF without some sort of color reduction. There is no
way to output an image of less than 15 bits per pixel from POV-Ray, so you'll
have to do some color reduction in any case. This isn't as bad as it
appears, however, as dedicated programs are more likely to be able to do
sophisticated color reduction with access to the whole image than POV can
do looking at the image on a pixel-by-pixel basis.
--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}
Post a reply to this message
|
|