POV-Ray : Newsgroups : povray.newusers : Attaching a vector to an object : Re: Attaching a vector to an object Server Time
28 Jul 2024 14:33:40 EDT (-0400)
  Re: Attaching a vector to an object  
From: Bill
Date: 20 Nov 2008 11:55:00
Message: <web.49259567516e9f3c24b378250@news.povray.org>
Thanks Tim, but I actually nailed it this morning.
Here is the final pov for the snipe.

#declare snipe_pos = <58.601052,1500.000000,100.000000>;
#declare snipe_rot = <0,10,12>;
#declare fok_pos = <59.034065,1500.000000,150.000000>;
#declare fok_rot = <0,60,0>;
#include "colors.inc"
#include "textures.inc"
#include "transforms.inc"
global_settings { ambient_light rgb<2,2,2> radiosity{} }
light_source{<0,5000,0> rgb<2,2,2> }
plane{<0,1,0>,1 hollow texture{ pigment{ bozo turbulence 0.92 color_map { [0.00
rgb <0.2, 0.2, 1>*0.9] [0.50 rgb <0.2, 0.2, 1>*0.9][0.70 rgb <1,1,1>][0.85 rgb
<0.25,0.25,0.25>][1.0 rgb <0.5,0.5,0.5>]} scale<1,1,1.5>*2.5
translate<1.0,0,-1> } finish {ambient 1 diffuse 0} } scale 10000 }
plane { <0,1,0>, 0 texture{ pigment{color rgb<0.35,0.65,0.0>*0.8} finish
{ambient 0.1 diffuse 0.8} } }
fog{distance 300000 color rgb <.5,.5,.5>}
#include "fok2.inc"
#include "snipe.inc"
object{fok rotate fok_rot translate fok_pos finish { ambient 1 diffuse .4 } }
object{snipe rotate snipe_rot translate snipe_pos finish { ambient 1 diffuse .4
}}
#local HeadPos = <0,3,4.3>;
#local hp = vtransform(HeadPos,Rotate_Around_Trans(snipe_rot, <0,0,0>));
#local sky_r = vtransform(<0,1,0>,Rotate_Around_Trans(snipe_rot, <0,0,0>));
#local hp2 = hp+snipe_pos;
#declare Cam0 = camera {
location hp2
direction <0, 0,  1>
sky sky_r
up <0,1,0>
right <-1.7777777778, 0,  0>
look_at fok_pos
}
camera{Cam0}

For a quick view of the low quality image (temp holder for the image)
http://76.164.116.48:8080/fortim.png

It all had to do with moving the translate outside the camera and play with the
sky vector!

Bill


Post a reply to this message

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