|
 |
Hello everyone,
I created a spline object using the following code, but I could not get the
proper camera position. I was wondering if there is some systematic way to
figure out the camera position, and angle and look at vectors for a given shape.
Or is it just trial and error? Can someone please help me to get the proper
camera setup so as to obtain the figure attached:
// code used
#include"colors.inc"
camera {
location <-0.0872 , -1.8850 , 4.8301 >*3.5
look_at <0,0,0> }
light_source {
<4,6,-10>
color rgb<1,1,1> }
background {
color rgb<0.5,0.5,0.5> }
sphere_sweep {
b_spline
6,
<0,0,-20>,0.1,
<2.583e-09,-2.7093e-08,3>,0.1,
<0.075646,-0.91834,8.9288>,0.1,
<0.076898,-2.3756,14.7492>,0.1,
<-0.15231,-4.2038,20.4593>,0.1,
<-0.15231,-4.2038,20.4593>,0.1
tolerance 0.1
texture{ pigment{ color rgb<0.69,0.99,0.15>}
finish { phong 1
ambient 0.3
}
}
scale<2,2,0.35> rotate<-90,0,0> translate<0,-2,3>
}
Post a reply to this message
Attachments:
Download 'screenshot 2022-05-22 180728.png' (23 KB)
Preview of image 'screenshot 2022-05-22 180728.png'

|
 |