|
|
hi,
I have some problems connecting spheres and cylinders. :-)
the image (posted in p.b.i, same subject) should show each cylinder centred,
filling 90% of the distance between the respective sphere centres.
the bottom left I take to be a bug?
the real problem (for me) is the loss of accuracy, the vertical cylinder looks
correct, but, as the angle changes, the gaps to the spheres grow. (I also think
the cylinders look "fatter" as they approach horizontal, but that may just be an
optical thing)
what can I do to get .. more uniformity?
alpha.10013324.unofficial, code used:
#version 3.8;
global_settings {assumed_gamma 1}
light_source {<-100,100,-100>, colour rgb 1 shadowless}
#declare SP = pigment {colour rgb <1,0,0>};
#declare SR = .1;
#declare CR = .025;
#declare N = 12;
#declare SC = array [N] {
<0,4,0>, <1,4,0>, <2,4,0>, <3,4,0>, <4,4,0>, <5,4,0>,
<6,4,0>, <7,4,0>, <7,3,0>, <7,2,0>, <7,1,0>, <7,0,0>
};
#declare SO = <0,0,0>;
sphere {SO, SR texture {SP}}
#for(I,0,N-1)
sphere {SC[I], SR texture {SP}}
#local p1_ = (SO - SC[I]) * .05;
#local p2_ = (SO - SC[I]) * .95;
cylinder {SO - p1_, SO - p2_, CR texture {pigment {colour rgb <1,1,0>}}}
#end
camera {
perspective
location <3.5,2,-6>
look_at <3.5,2,0>
right x * 1.334
up <0,1,0>
}
regards, jr.
Post a reply to this message
|
|