POV-Ray : Newsgroups : povray.binaries.images : vrotate example from p.general : vrotate example from p.general Server Time
29 Jul 2024 22:25:09 EDT (-0400)
  vrotate example from p.general  
From: Anthony D  Baye
Date: 16 Aug 2013 14:25:02
Message: <web.520e6da63cd66e01328783aa0@news.povray.org>
#include "kolors.inc"

light_source { <10, 20, -30> rgb 1 }
camera {
    perspective
    location <3, 5, -15>
    up y
    right x*(image_width/image_height)
    look_at 0
    }

#default { pigment { White } }

#declare obj = sphere { 0, 0.25 }

union {
    cylinder { -5*y, 5*y 0.0625 }
    cylinder { -5*x, 5*x 0.0625 }
    cylinder { -5*z, 5*z 0.0625 }
    object { obj translate vrotate(<3,4,3>, <30, 60, 90>) }
        translate -5.0*x
    }

union {
    cylinder { -5*y, 5*y 0.0625 }
    cylinder { -5*x, 5*x 0.0625 }
    cylinder { -5*z, 5*z 0.0625 }
    object { obj translate <3,4,3> rotate <30, 60, 90> }
        translate 5.0*x
    }


Post a reply to this message


Attachments:
Download 'vrotate_test.png' (37 KB)

Preview of image 'vrotate_test.png'
vrotate_test.png


 

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