POV-Ray : Newsgroups : povray.newusers : Camera position for spline object : Camera position for spline object Server Time
6 Jul 2022 12:01:00 EDT (-0400)
  Camera position for spline object  
From: Aj
Date: 22 May 2022 20:10:00
Message: <web.628ad0814d1b9d6ad910e1853d902b29@news.povray.org>
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'
screenshot 2022-05-22 180728.png


 

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